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?


All times are GMT. The time now is 09:37 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.01135 seconds
  • Memory Usage 1,756KB
  • 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
  • (3)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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