You currently have Javascript disabled, to use some of the features (such as the login) you must enable it for this site
Checkbox Preference Toggler Button Discussion & Support | Custom Buttons²

Checkbox Preference Toggler Button Discussion & Support

Discuss Buttons & Ask for Help Editing Existing Buttons

Postby nicholas on Sun Jun 01, 2008 4:04 am

I found them and posted them here:
viewtopic.php?f=35&t=889
Custom Buttons²: v.2.0.7.7
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.4) Gecko/2008111318 Ubuntu/8.04 (hardy) Firefox/3.0.4
User avatar
nicholas
Admin
Admin
 
Posts: 1152
Joined: Thu Jun 14, 2007 6:30 pm
Location: Atlanta, GA USA

Postby xbayus on Sun Jun 01, 2008 7:26 am

Thank You Nicholas...
xbayus
Registered User
Registered User
 
Posts: 7
Joined: Sat Feb 16, 2008 9:12 pm

Postby nicholas on Sun Jun 01, 2008 2:16 pm

Just glad I was able to find them and get your request straightened out. I am going to split this section off to a request thread since it doesn't have anything to do with the checkbox button.

BTW, :welcome:
Custom Buttons²: v.2.0.7.7
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.4) Gecko/2008111318 Ubuntu/8.04 (hardy) Firefox/3.0.4
User avatar
nicholas
Admin
Admin
 
Posts: 1152
Joined: Thu Jun 14, 2007 6:30 pm
Location: Atlanta, GA USA

Postby _pi on Fri Jul 11, 2008 12:39 pm

hi,
i cloned my 'bg tabs' button to make a InformEnter on/off button.
the new button is working fine, but the checkbox icon doesn't show up.
it has the standard cb2 icon.

any idea what is causing that ?

thank & cheers
pi
Custom Buttons²: V2.0.7.4
Mozilla/5.0 (Windows; U; Windows NT 6.0; en; rv:1.9) Gecko/2008052906 Firefox/3.0
_pi
Registered User
Registered User
 
Posts: 54
Joined: Sun Aug 12, 2007 10:27 am
Location: Germany

Postby nicholas on Sat Jul 12, 2008 3:12 pm

It could be a few different things. Read all of the instructions at the top of the initialization tab. Here are a few different things to check:

Check that you have given the checkbox a label
Code: Select all
/*====================================================================*/
/* START OF AREA NEEDING EDITING */
/**/
/**/  // NAME OF YOUR BUTTON (DO NOT REMOVE QUOTES)
/**/    var name = 'test';
/**/

Check that you have put in a valid preference, look for it in about:config
Code: Select all
/**/  // PREFERENCE TO TOGGLE (DO NOT REMOVE QUOTES)
/**/    var preF = 'accessibility.tabfocus';
/**/

be sure the below preference is either true/false or integer/integer (7/0 or 1/0, etc)
Code: Select all
/**/  // PLACE VALUES FOR YOUR PREF HERE, (NO QUOTES NECESSARY)
/**/  // BOOLEAN VALUES ARE TRUE/FALSE
/**/  // INTEGER VALUES CAN BE ANY NUMBERS FOR TOGGLING BETWEEN
/**/    var on = 7;
/**/    var off = 0;
/**/

Leave these lines alone
Code: Select all
/**/    // do NOT edit the next two lines
/**/      this.pref=preF;
/**/      this.setState=function(){
/**/    // end do NOT edit these two lines
/**/

Comment out ("//") the line that the preference is not, in the following example Booleen is commented out
Code: Select all
/**/  // COMMENT OUT THE KIND OF PREFERENCE THIS IS NOT!
/**/    //var state=this.PS.getBoolPref(this.pref); // BOOLEAN
/**/    var state=this.PS.getIntPref(this.pref); // INTEGER
/**/
/* END OF AREA NEEDING EDITING */
/*====================================================================*/


That's it. Let me know if it still isn't working. Maybe paste your code in the Pastebin and I will have a look.
Custom Buttons²: v.2.0.7.7
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.4) Gecko/2008111318 Ubuntu/8.04 (hardy) Firefox/3.0.4
User avatar
nicholas
Admin
Admin
 
Posts: 1152
Joined: Thu Jun 14, 2007 6:30 pm
Location: Atlanta, GA USA

Postby _pi on Sat Jul 12, 2008 3:37 pm

thanks for your reply.
i forgot to uncomment the integer line.

btw. i can't open the second page of this thread.
the only way to see your reply is the Topic review when writing
this answer.
Custom Buttons²: V2.0.7.4
Mozilla/5.0 (Windows; U; Windows NT 6.0; en; rv:1.9) Gecko/2008052906 Firefox/3.0
_pi
Registered User
Registered User
 
Posts: 54
Joined: Sun Aug 12, 2007 10:27 am
Location: Germany

Previous

Return to Discussion & Support

Who is online

Users browsing this forum: • Registered: 0 and 1 guest