vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   End-User Options - UKBL ~ Choose Multiple Forum Colors - like VB.Org (https://vborg.vbsupport.ru/showthread.php?t=205755)

Manic Mechanic 09-11-2009 01:56 AM

Quote:

Originally Posted by sKippah (Post 1863194)
Ok so far.. but what about the code? seems i have to add this to every footer Template? Thanks

The code you add to the footer, you only have to add it one time to your parent/default style. It will be in all the other styles you make.

Manic Mechanic 09-11-2009 02:06 AM

Quote:

Originally Posted by PGAmerica (Post 1879394)
Thank you for this. It works perfectly for me. However, I have 2 questions.

1) How do I remove the pull-down style selection list so this is the only way to change styles?

2) How do I make this the only way to select a new style in the UserCP?

Edit: Sorry I checked this as an Admin and it worked fine. When I checked as a regular user the colors will not change if you do as I say below.

Go to acp and click vBulletin Options, then go to Style & Language Settings. Go to 3rd. box down marked Allow Users To Change Styles. Click no then scroll to bottom and click save.

Manic Mechanic 09-11-2009 02:09 AM

Oh by the way I did this hack on 3.8.4 and it works great. Thanks

The Smoking Gun 11-08-2009 02:06 AM

Thanks for the convenient hack UKBL, is there an option for the fluid fixed change over too?

Also will running vBa be an issue with this hack?

Thanks, will mark installed as soon as I manage to get through the install LOL!

TIA,

TSG!

caliman 12-17-2009 11:27 PM

With 'allow users to select styles' and this mod... when somebody clicks a color square - will vb remember your selection next time you come to the site?

Devanand 01-04-2010 05:46 AM

Great hack, work fine but don't work on IE8 for me...what can be problem?

TheLastSuperman 01-04-2010 11:50 AM

Quote:

Originally Posted by The Smoking Gun (Post 1911491)
Thanks for the convenient hack UKBL, is there an option for the fluid fixed change over too?

Also will running vBa be an issue with this hack?

Thanks, will mark installed as soon as I manage to get through the install LOL!

TIA,

TSG!

It should work in Fluid or Fixed width's as long as the code has been added for selection. This should also work with vBa just be sure to upload the cloro squares and any other required files into the correct style folder in your vBa directory ;).

Quote:

Originally Posted by caliman (Post 1932569)
With 'allow users to select styles' and this mod... when somebody clicks a color square - will vb remember your selection next time you come to the site?

Caliman... come on bud... did you test that before you posted? You could have logged out, closed the browser and checked yourself :p Let us know, maybe we can add it in to remember if not ;).

Quote:

Originally Posted by Devanand (Post 1946651)
Great hack, work fine but don't work on IE8 for me...what can be problem?

What can it be... IE! Firefox FTW :D (For the Win!) See if this works in IE7 and if your in IE8 try the compatibility tab ;) (IE8 it works for me, reverting back to IE7 now.. bad IE!!!)

AND to everyone, if your style is showing the blue or "purple once visited" border arounf the image simply modify each img code like this:

Code:

<img src="http://www.yoursite.com/yourimage.png" style="border-style: none"/>
Your just adding the code to remove any styling per say i.e.

Code:

style="border-style: none"
Mike

Hornstar 01-18-2010 12:54 AM

Would love if something simple was made for VB4. Are you interested in making a new one for Vb4?

archet1337 03-02-2010 11:15 AM

Working with vB 4.0.2. Thanks :)

caliman 03-02-2010 05:10 PM

Quote:

Originally Posted by OcR Envy (Post 1874683)
It bothered me that regardless of what page you were on this would redirect you to index.php when you change the color so I wrote up a simple javascript so when a user selects a different color they stay on the page they were viewing.

Place this above your color images:


Then the color image/link would change to:



onclick="updatestyle(5);" 5 represents the style id, change this to whatever.

Enjoy :)

This javascript did not work for me... did it work for anyone else?


All times are GMT. The time now is 12:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01402 seconds
  • Memory Usage 1,741KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete