<![CDATA[PunBB Forums — Programming]]> http://www.xzqu8qr3.top/forums/ Sat, 25 Jan 2020 12:03:42 +0000 PunBB <![CDATA[Need help w/ toggling anchor + button]]> http://www.xzqu8qr3.top/forums/topic/30827/need-help-w-toggling-anchor-button/new/posts/ Heeey PunBB

How do i make a jQuery script that toggles visibility of a div and at the same time toggles anchor text of a button?

function toggle(user_id) {
   e = document.getElementById('toggleUserinfo_' + user_id);
   a = document.getElementById('displayUserinfo_' + user_id);
   if (e.style.display == 'block') {
       e.style.display = 'none';
       a.innerHTML = ‘Open';
   } else {
       e.style.display = 'block';
       a.innerHTML = ‘Close';

I tried to search for it and came up with the following. However i want something more clean and based on jQuery instead of javascript. I need the script to show more information in the table with a button here

Any ideas or suggestions?

Sat, 25 Jan 2020 12:03:42 +0000 http://www.xzqu8qr3.top/forums/topic/30827/need-help-w-toggling-anchor-button/new/posts/
<![CDATA[Fixed! Need help w/ toggling anchor + button]]> http://www.xzqu8qr3.top/forums/topic/30214/fixed-need-help-w-toggling-anchor-button/new/posts/ How can i make a jQuery script that toggles visibility of a div and at the same time toggles anchor text of a button?

function toggle(user_id) {
   e = document.getElementById('toggleUserinfo_' + user_id);
   a = document.getElementById('displayUserinfo_' + user_id);
   if (e.style.display == 'block') {
       e.style.display = 'none';
       a.innerHTML = ‘Open';
   } else {
       e.style.display = 'block';
       a.innerHTML = ‘Close';

I tried to search for it and came up with the following. However i want something more clean and based on jQuery instead of javascript. I need the script to show more information in the table with a button here.

Any ideas ?

Fri, 17 Mar 2017 12:36:34 +0000 http://www.xzqu8qr3.top/forums/topic/30214/fixed-need-help-w-toggling-anchor-button/new/posts/
<![CDATA[Angularjs JavaScrip]]> http://www.xzqu8qr3.top/forums/topic/30041/angularjs-javascrip/new/posts/ hello!!!
I’ve been using Angular 2 tutorials that covered how to deal with requests and handle responses.
I made classic mistakes like forgetting to add the correct providers to the bootstrap. It took more than expected to have everything working perfectly.
This guide made the difference for me:

angularjs timeout

http://bit.ly/2aTqtOF  part 1 and 2

The explanation about observables was short and clear.
If anyone has any other source for this topic or for learning Angular 2 in general, it will still help me a lot.

Fri, 05 Aug 2016 02:44:54 +0000 http://www.xzqu8qr3.top/forums/topic/30041/angularjs-javascrip/new/posts/
<![CDATA[sap online training classes]]> http://www.xzqu8qr3.top/forums/topic/29710/sap-online-training-classes/new/posts/ We offers the best SAP online Training based on the Real time experts, will train& guide with live projects. More Details attend free online DEMO @monstertrainings. Monster Online Trainings in Ameerpet Hyderabad, Bangalore, Noida, Chennai, Mumbai, USA, Canada, Australia, and UK.

Thu, 31 Dec 2015 07:27:46 +0000 http://www.xzqu8qr3.top/forums/topic/29710/sap-online-training-classes/new/posts/
<![CDATA[Pun BB stop bot questions]]> http://www.xzqu8qr3.top/forums/topic/29356/pun-bb-stop-bot-questions/new/posts/ Hello,
Our clients are complaining about the famous annoying 'Pun BB stop bot questions'.
You get to answer like 10 of these before being able to post a topic.
Any tricks on how to solve this?


Mon, 27 Apr 2015 20:23:53 +0000 http://www.xzqu8qr3.top/forums/topic/29356/pun-bb-stop-bot-questions/new/posts/
<![CDATA[control panel]]> http://www.xzqu8qr3.top/forums/topic/26689/control-panel/new/posts/ Hello, I'm new to PunBB but I come from a big company forumactif.
I have several knowledge at least I think, kkk;
Well, I installed the following is the 'PunBB 1.4.2' in my hosting found pretty cool, but it does not axei the control panel, I think some extension is not know, wanted to have a control panel similar to the forumactif.


Could anyone help me?

Thu, 15 May 2014 19:19:09 +0000 http://www.xzqu8qr3.top/forums/topic/26689/control-panel/new/posts/
<![CDATA[Login Integration]]> http://www.xzqu8qr3.top/forums/topic/26191/login-integration/new/posts/ Hello all!

I'm new to php and if someone could help me with a few questions it would be greatly appreciated!

I have an active punBB forum and I would like to use the login throughout the rest of the site.

We are adding some additional features that I would prefer users had to register for but I would like the registration to be universal throughout the site.

What I would like to be able to do is to have something on each page to show that they are logged in and if not a redirect to the forum sign in that would send them back to their original pager after logging on.

I don't know if this is possible but if anyone could point me in the right direction that would be awesome!

Thanks you for taking the time to read this.

Thu, 20 Jun 2013 15:30:24 +0000 http://www.xzqu8qr3.top/forums/topic/26191/login-integration/new/posts/
<![CDATA[Javascript Number object]]> http://www.xzqu8qr3.top/forums/topic/26128/javascript-number-object/new/posts/ Number object in Javascript is mainly used to convert between decimal, binary, octal and hexadecimal representations and to perform rounding off digits to a specific precision.

(function(con) {
    var oNum = new Number(2);
    var oNPi = new Number(Math.PI);
    console.log('Binary representation of 2: ' + oNum.toString(2)); //Prints 10
    console.log('Value of Pi: ' + Math.PI); //Prints value of Pi
    console.log('Value of Pi rounded to 4 decimal places: ' + oNPi.toFixed(4));

More about Number object at MDN https://developer.mozilla.org/en-US/doc … cts/Number

Thu, 23 May 2013 15:36:14 +0000 http://www.xzqu8qr3.top/forums/topic/26128/javascript-number-object/new/posts/
<![CDATA[Javascript Math object essentials]]> http://www.xzqu8qr3.top/forums/topic/26124/javascript-math-object-essentials/new/posts/ Javascript Math object is used to perform tasks like generating random numbers and evaluating constants like Pi.

(function() {
    console.log('Value of Pi: ' + Math.PI);
    console.log('Random number 0-6: ' + Math.floor(Math.random() * 6));
    console.log('Random number 1-6: ' + Math.ceil(Math.random() * 6));

Here too I am using Nodejs and closures.

Note that floor is used to generate random numbers starting from 0; where as ceil is used to generate random numbers starting from 1.

More on Math object available from MDN https://developer.mozilla.org/en-US/doc … jects/Math

Wed, 22 May 2013 08:00:48 +0000 http://www.xzqu8qr3.top/forums/topic/26124/javascript-math-object-essentials/new/posts/
<![CDATA[Display date and time using JavaScript]]> http://www.xzqu8qr3.top/forums/topic/26123/display-date-and-time-using-javascript/new/posts/ Well, seems like this board have been dead for quite a long time. So, thought of reviving it up with few worthwhile discussions. This is a start.

(function() {
    var oDate = new Date();
    var date = oDate.getDate();
    var mnth = oDate.getMonth();
    var year = oDate.getFullYear();
    var hrs = oDate.getHours();
    var min = oDate.getMinutes();
    console.log('Date: ' + date + '/' + mnth + '/' + year);
    console.log('Time: ' + hrs + ':' + min);

So, this is the code to display date and time using Javascript.

Note that I am using Nodejs, and so using console.log to display output.

The topic introduces useage of Date object to display current date and time based on users system.

The topic also introduces closures, a really interesting feature in javascript.

More details on Date object from MDN https://developer.mozilla.org/en/docs/J … jects/Date

Wed, 22 May 2013 07:27:30 +0000 http://www.xzqu8qr3.top/forums/topic/26123/display-date-and-time-using-javascript/new/posts/
<![CDATA[Custom theme for money]]> http://www.xzqu8qr3.top/forums/topic/25222/custom-theme-for-money/new/posts/ Hello! Can anyone help to make a custom theme for the forum from my sketch and connect it to website? In addition rather simple website based on wordpress or any other engine need to be coded too.

Привет! Ктонить может помочь с кодингом темы для форума по эскизу и подсоединением форума к сайту? Вдобавок нужно запрограмить относительно простой сайт на врдпрессе или не на вордпрессе?

Mon, 28 May 2012 15:20:27 +0000 http://www.xzqu8qr3.top/forums/topic/25222/custom-theme-for-money/new/posts/
<![CDATA[What's the going rate to clean up code and does anyone here do that?]]> http://www.xzqu8qr3.top/forums/topic/25209/whats-the-going-rate-to-clean-up-code-and-does-anyone-here-do-that/new/posts/ Without knowing what the hell I'm doing, I've been working on my company's website for 3 years now. Again - I know NOTHING of html, css, php or anything. So basically, I find what I like from free templates on the web and cut the functionality and paste into my site using cuteftp. The result has been decent and we like the site - but I know the code is out of control.

Yes, I've tried using HTML Tidy and Page Valet - but they break my pages and render my pages un-viewable.

What would a typical cost be for someone to review the site, fix the coding errors and generally clean everything up? I want it to be cross platform functional and look the same on every browser.

If someone is interested in doing this at a decent price, let me know - the site is www.intelifuel.com

Now, I have anti-right click enabled on the site because one of our competitors was stealing images - there are other ways of looking at the source code, or, if you are interested - PM me and I'll send you a sample of the code to see if you are interested in cleaning things up.

Wed, 23 May 2012 23:56:26 +0000 http://www.xzqu8qr3.top/forums/topic/25209/whats-the-going-rate-to-clean-up-code-and-does-anyone-here-do-that/new/posts/
<![CDATA[Use PHP to develop application of android]]> http://www.xzqu8qr3.top/forums/topic/25069/use-php-to-develop-application-of-android/new/posts/ PHP is very great, it is the sixth language in 3/2012 (Java=>C=>C#=>C  =>Objective-C=>PHP).
Tell you the truth, PHP enable to develop application of android (extension: .apk). At first, you need install SL4A and PHPforAndroid (see official site: www.phpforandroid.net) in order to build a PHP envoriment. Hello World as follow:
include 'Android.php';//引用安卓API
$droid = new Android();//创建安卓对象
$droid->dialogCreateAlert('www.liyujiang.tk提示:', 'Hello World');//创建对话框
<script language="javascript">
window.alert("Hello World");//弹窗

Fri, 30 Mar 2012 17:36:42 +0000 http://www.xzqu8qr3.top/forums/topic/25069/use-php-to-develop-application-of-android/new/posts/
<![CDATA[Online Games like "LineageII" in which language]]> http://www.xzqu8qr3.top/forums/topic/25042/online-games-like-lineageii-in-which-language/new/posts/ in Which language its develpoed? i mean the basic interface, not all the grafics around.

Wed, 14 Mar 2012 16:16:30 +0000 http://www.xzqu8qr3.top/forums/topic/25042/online-games-like-lineageii-in-which-language/new/posts/
<![CDATA[Req Modifications To My Punnbb Theme]]> http://www.xzqu8qr3.top/forums/topic/24894/req-modifications-to-my-punnbb-theme/new/posts/ Hay, i need some edits doing to my punbb theme-

1. add banner under first post and on right side of theme

2. enable a area to add html


Wed, 25 Jan 2012 10:44:38 +0000 http://www.xzqu8qr3.top/forums/topic/24894/req-modifications-to-my-punnbb-theme/new/posts/