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)

UKBusinessLive 08-09-2009 01:45 AM

Excellent :D :up:

K4GAP 08-09-2009 06:58 PM

Quote:

Originally Posted by GaryT (Post 1863684)
This is what I came up with.... looks and works GREAT!

http://www.publicwarriors.com/gary/colormenu.jpg

So I thought. :confused:
The first two members on the web site to try it said the colors were not changing for them when they clicked a colored square. They are using IE8. I tried it with IE8 and it works fine for me????

Here is the code I'm using....
Code:

<center>Layout Options | <span class="smallfont">Width:</span><a target="_top" href="http://www.publicwarriors.com/forums/index.php?styleid=46">Narrow&nbsp;</a><span class="smallfont">Color:</span>
<a href="http://www.publicwarriors.com/forums/index.php?styleid=32"><img title="Default Style - Tan" alt="Default Tan" src="http://www.publicwarriors.com/forums/images/colors/default_tan.gif" border="0" height="9" width="9"></a>&nbsp;
<a href="http://www.publicwarriors.com/forums/index.php?styleid=10"><img title="Black" alt="Black" src="http://www.publicwarriors.com/forums/images/colors/black.gif" border="0" height="9" width="9"></a>&nbsp;
<a href="http://www.publicwarriors.com/forums/index.php?styleid=14"><img title="Gray" alt="Gray" src="http://www.publicwarriors.com/forums/images/colors/gray.gif" border="0" height="9" width="9"></a>&nbsp;
<a href="http://www.publicwarriors.com/forums/index.php?styleid=18"><img title="Blue" alt="Blue" src="http://www.publicwarriors.com/forums/images/colors/blue.gif" border="0" height="9" width="9"></a>&nbsp;
<a href="http://www.publicwarriors.com/forums/index.php?styleid=12"><img title="Dark Blue" alt="Dark Blue" src="http://www.publicwarriors.com/forums/images/colors/darkblue.gif" border="0" height="9" width="9"></a>&nbsp;
<a href="http://www.publicwarriors.com/forums/index.php?styleid=22"><img title="Light Blue" alt="Light Blue" src="http://www.publicwarriors.com/forums/images/colors/lightblue.gif" border="0" height="9" width="9"></a>&nbsp;
<a href="http://www.publicwarriors.com/forums/index.php?styleid=24"><img title="Royal Blue" alt="Royal Blue" src="http://www.publicwarriors.com/forums/images/colors/royalblue.gif" border="0" height="9" width="9"></a>&nbsp;
<a href="http://www.publicwarriors.com/forums/index.php?styleid=16"><img title="Perfect Blue" alt="Perfect Blue" src="http://www.publicwarriors.com/forums/images/colors/perfectblue.gif" border="0" height="9" width="9"></a>&nbsp;
<a href="http://www.publicwarriors.com/forums/index.php?styleid=28"><img title="Red" alt="Red" src="http://www.publicwarriors.com/forums/images/colors/red.gif" border="0" height="9" width="9"></a>&nbsp;
<a href="http://www.publicwarriors.com/forums/index.php?styleid=27"><img title="Coral" alt="Coral" src="http://www.publicwarriors.com/forums/images/colors/coral.gif" border="0" height="9" width="9"></a>&nbsp;
<a href="http://www.publicwarriors.com/forums/index.php?styleid=26"><img title="Chestnut" alt="Chestnut" src="http://www.publicwarriors.com/forums/images/colors/chestnut.gif" border="0" height="9" width="9"></a>&nbsp;
<a href="http://www.publicwarriors.com/forums/index.php?styleid=29"><img title="Rosy Brown" alt="Rosy Brown" src="http://www.publicwarriors.com/forums/images/colors/rosybrown.gif" border="0" height="9" width="9"></a>&nbsp;
<a href="http://www.publicwarriors.com/forums/index.php?styleid=30"><img title="Gold" alt="Gold" src="http://www.publicwarriors.com/forums/images/colors/gold.gif" border="0" height="9" width="9"></a></center>

Do you see anything in this code that would prevent anyone from being able to use it? This has got me stumped.

UKBusinessLive 08-09-2009 07:08 PM

:eek: The beauty of this hack is the fact that its quite easy to do the links are in fact clickable pictures and if your using the basic code there can't really be a problem??

Code:

<a href="yourstyle.com"><img src="picture.jpg"></a>
basically the Url to your style goes in the front and the url to the colored squares goes to the end

Test each url in your brower see if it goes where its meant to ;)

I've just checked a url http://publicwarriors.com/forums/index.php?styleid=28 and it goes to the brown style also with http://publicwarriors.com/forums/index.php?styleid=10 thats brown also ??

You have every style going to the brown style, I think you've not set somthing up right in your style manager???

K4GAP 08-09-2009 08:01 PM

Quote:

Originally Posted by UKBusinessLive (Post 1864180)
:eek: The beauty of this hack is the fact that its quite easy to do the links are in fact clickable pictures and if your using the basic code there can't really be a problem??

Code:

<a href="yourstyle.com"><img src="picture.jpg"></a>
basically the Url to your style goes in the front and the url to the colored squares goes to the end

Test each url in your brower see if it goes where its meant to ;)

I've just checked a url http://publicwarriors.com/forums/index.php?styleid=28 and it goes to the brown style also with http://publicwarriors.com/forums/index.php?styleid=10 thats brown also ??

You have every style going to the brown style, I think you've not set somthing up right in your style manager???

You have to be logged in. It works now. It requires user style selection be turned on. I had it off to hide the drop menu. As Admin it would work for me but nobody else.
Everything is good now... thanks!

UKBusinessLive 08-11-2009 12:48 AM

Quote:

Originally Posted by GaryT (Post 1864202)
You have to be logged in. It works now. It requires user style selection be turned on. I had it off to hide the drop menu. As Admin it would work for me but nobody else.
Everything is good now... thanks!

Just took a look Gary, You did a great job with all the styles, works ok for me buddy. What do your members make of it???

Well done again :D

K4GAP 08-11-2009 01:03 AM

Members? :)
Both of them love it!!

Kadence 08-13-2009 09:44 PM

There's probably no way this would work with 3.6.8 right? :)

UKBusinessLive 08-13-2009 10:50 PM

Quote:

Originally Posted by Kadence (Post 1866778)
There's probably no way this would work with 3.6.8 right? :)

This is Basic Html, It would work with VB 2.2 if people still have it ;)

OcR Envy 08-26-2009 11:16 AM

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:
Quote:

<script type="text/javascript">
<!--
//<![CDATA[
function updatestyle(styleid){
location.href = location.href + "?styleid=" + styleid;
}
//]]>
// -->
</script>
Then the color image/link would change to:

Quote:

<a href="#" onclick="updatestyle(5);"><img src="http://www.ukbusinesslive.co.uk/forum/images/misc/green.png"></a> &nbsp;
onclick="updatestyle(5);" 5 represents the style id, change this to whatever.

Enjoy :)

PGAmerica 09-04-2009 02:04 AM

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?

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?

Travis-Mc 03-15-2010 04:47 PM

Quote:

Originally Posted by caliman (Post 1995382)
This javascript did not work for me... did it work for anyone else?

It didn't work for me either. :( It's too bad too because that's exactly was I was looking for to use in a mobile skin. If the user is browsing on their phone and wants to see something in the default (full) view, I want them to able to click a button and be directed to the same location. Oh well.. For now I'm using the quick chooser at the top of the mobile skin along with a link next to it that says "Force Return to Default View". It they use the chooser, the won't lose what page they were on, if they use the force return, they will go to index.php.

Aurore 01-15-2011 06:47 AM

Quote:

Originally Posted by ry215 (Post 1747961)
http://img410.imageshack.us/img410/2...gchangeja1.png

http://img128.imageshack.us/img128/4...bchangedm9.png


You MUST add some new fields to Database, and use PHP Codes for this, not only edit template :)

Only use Main CSS and StyleID for all colors.

Anyone known about the additional fields to add in misc.php ??

nasko 03-11-2012 10:33 PM

Is there a mod like this for Vbulletin 4.08?

oxblood12 06-02-2012 02:50 AM

gracias por el datito

trollshrooms 11-11-2015 12:16 AM

My child styles are not inheriting edits made to the main style.

I uploaded the style i wanted as the main color, and all the other colors as children

safwan khazraji 01-03-2016 04:02 PM

good job


All times are GMT. The time now is 12:11 AM.

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.01251 seconds
  • Memory Usage 1,815KB
  • 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
  • (5)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (26)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