vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Change Style Drop-Down (https://vborg.vbsupport.ru/showthread.php?t=33418)

Admin 12-21-2001 10:00 PM

This is exactly what you see here, on this board's main page.
It allows you to easily change the style you are using.
Please note that it does not update your user profile as well, it simply sets a cookie, and until it expires you will see the style you selected.
Anyhow, download the attached .txt file and do what it says.

Scroll down to a post by me if you'd like the hack to update the user setting in the database!
The attached version does NOT do that!

Have fun and happy holidays! :)

-.valkyre 12-22-2001 06:16 AM

Nice, but I got an improvement idea!

Have a link on the main page saying "Change Style", when clicked it would popup a pre-defined window with a little box saying something to the degree of "Switch your current style with:", then you could either put a drop down menu your the user could have direct text links (He would probably have to manually add them though).

Sound good FireFly old buddy? ;)

floleb7 12-22-2001 06:39 AM

i have some prob with this hack
i made a screen so look the prob :D

http://www.latriade.net/div/drop.jpg

i have delete some style so maybe it's the reason

-.valkyre 12-22-2001 06:42 AM

Ah glitches, gotta love em' :D

OOO! Can I choose the 3 users style? :stupid:

floleb7 12-22-2001 06:44 AM

sure you can :D


it's anonymous style they don't want to be publicy known :D

Admin 12-22-2001 07:08 AM

valkyre, why make it so complicated?

floleb7, bug fixed. Re-apply changes to index.php.

squawell 12-22-2001 07:14 AM

FireFly thankz~~

u did a great hack again~~:D

and i love this hack~~~ :D

-.valkyre 12-22-2001 07:14 AM

Because complicated is good :D

If you look at my forum, you'll know why :)

floleb7 12-22-2001 08:12 AM

i still have the bug


http://forum.latriade.net/index.php?s=&styleid=33

Lesane 12-22-2001 09:55 AM

Nice hack, well done. Thanks.

Admin 12-22-2001 11:02 AM

floleb7, something must be wrong with your style setup.
If you want I'm willing to take a look at the Admin CP, if you'd like.

floleb7 12-22-2001 12:19 PM

i create an admin account and send you by pm

Kumaro 12-22-2001 06:51 PM

this is an excellent hack. Thanks a million!

VolsReport 12-22-2001 07:16 PM

This is a good hack...thanx firefly...

Baratator 12-22-2001 09:37 PM

Hi firefly :)

i've already posted it on the beta hack of supreemball...

okay that's what i needed but i have one question :

I use different group of users ===> diff levels
Is that possible :

The first grade see in the dropdown
-Trouffion style

The second grade see in the dropdown
-trouffion style
-Soldat style

The third
-trouffion style
-soldat style
-sergent style
etc ....

PLUS when you are trouffion you got the trouffion style and when you get one more grade (soldat), automaticly it sets you the soldat style (but after you can choose to get back the old style : you'll have the choice) but this is not abolutly needed because as you only change usergroup of one user on the admpinCP, at the same time i could change his style too...

Please i REALLY need this modification, REALLY REALLY REALLY :)

your hack make the same tjing than the other but in a different way no?
so i think that my question can apply your hack too :)

vertex 12-22-2001 09:57 PM

great hack sl used that since a while ago:

http://www.somethingleet.com/index.php

hondastyle 12-23-2001 01:21 AM

Wow, this is almost freaky weird. I just finished making a few available style sets for my users, so I came here a couple of days ago to see if anybody had a hack like this available. There wasn't one. I was actually returning today to see if someone could tell me how to do this and *viola* here it is!

Most excellent work. I've got it up and running in my forums. Looks great.

http://www.hondastyle.com/forums/index.php

Thank you,
Chris

Bop2Bop 12-23-2001 10:21 AM

all bow to firefly :lol:
nice one ;)

LuBi 12-23-2001 03:04 PM

I think it would just be some html to make this popup and effect the parent window... anyone wanna try this because I lack the skill but I'm sure that would be a great addition :D. Great one FireFly!

Matt 12-23-2001 09:31 PM

I don't know if its just me, but does it show up all style sets regardless of whether or not you select for them to be selectable by users? Cause tahst hwo its looking on my board.

hypedave 12-24-2001 12:20 AM

this is such a great hack, I wish all hack installs were easy like installing this one, keep up the good work

SirSteve 12-24-2001 05:42 AM

What about the Style Set option in the User CP? It doesn't change that if you change it via this pull-down.

SirSteve 12-24-2001 05:47 AM

Also, it looks like a few of my members have set their options to load a certain style but when I turn that particular style off (not user selectable), it still shows up in the pull-down hack.

hypedave 12-24-2001 09:11 AM

well I have noticed that the styel selector over rides what the user has chosen for that login session only, nowif they do a complete logout, and then logout back in, they have the style that was chosen from the control panel, and as far as selection to load a style when its disabled I havent sen that one yet, but I will ask around

Graphic-Forums 12-24-2001 07:43 PM

What could be my problem here, I did everything as said..
http://www.graphic-forums.com/index.php?styleid=5

Im running vb 2.2.1

Graphic-Forums 12-24-2001 08:05 PM

Here what i did in the index, about 15 lines down (surrounding code to give you a idea)
Code:

userid,username FROM user WHERE userid=$numbersmembers[max]");
$newusername=$getnewestusers['username'];
$newuserid=$getnewestusers['userid'];

// style drop

down box (by FireFly)
$allstyles=$DB_site->query("SELECT style.title, user.styleid, COUNT(*) AS count FROM user LEFT JOIN style USING (styleid) WHERE style.styleid IS NOT NULL

GROUP BY user.styleid");
$dropdownbits='';
while ($thisstyle=$DB_site->fetch_array($allstyles)) {
  if ($styleid==$thisstyle[styleid]) {
    $stylesel='selected';
  } else {
    $stylesel='';
  }
  eval("\$dropdownbits .= \"".gettemplate('forumhome_dropdownbit')."\";");
}
// style drop down box (by FireFly)
// if user is know, then welcome
if ($bbuserinfo['userid']!=0) {
  $username=$bbuserinfo['username'];
  eval("\$welcometext =


nuno 12-25-2001 08:18 PM

by looking at your page source code you are missing the <option> tags
check template name, maybe you have made a typo :)

Graphic-Forums 12-27-2001 01:29 AM

The option tags are included in the dropdown bits.

SirSteve 12-27-2001 03:03 AM

This doesn't work on Netscape... I believe because there are no <FORM> </FORM> tags...

exodus 12-27-2001 03:22 PM

This is a real sweet hack but it would be much better if it updated the information in the user profile. Is there any way to have it do that? Any way at all? That's the only thing stopping me from installing it.

SirSteve 12-27-2001 03:38 PM

[QUOTE]Originally posted by exodus
This is a real sweet hack but it would be much better if it updated the information in the user profile. Is there any way to have it do that? Any way at all? That's the only thing stopping me from installing it.

floleb7 12-28-2001 11:43 AM

some news for my bug :confused:

Admin 12-28-2001 11:52 AM

[QUOTE]Originally posted by Matt
I don't know if its just me, but does it show up all style sets regardless of whether or not you select for them to be selectable by users? Cause tahst hwo its looking on my board.

Admin 12-28-2001 11:55 AM

[QUOTE]Originally posted by hypedave
well I have noticed that the styel selector over rides what the user has chosen for that login session only, nowif they do a complete logout, and then logout back in, they have the style that was chosen from the control panel, and as far as selection to load a style when its disabled I havent sen that one yet, but I will ask around

Admin 12-28-2001 11:55 AM

[QUOTE]Originally posted by floleb7
some news for my bug :confused:

Admin 12-28-2001 12:00 PM

[QUOTE]Originally posted by FireFly
True. Easy fix, I'll post it in a bit.

Admin 12-28-2001 12:13 PM

[QUOTE]Originally posted by FireFly
I will post a new version of this hack for users that want the profile to be updated.
It will be more complicated though.

floleb7 12-28-2001 01:47 PM

i use the latest change the dropdown works but when i try to change i have this


Database error in vBulletin 2.2.0:

Invalid SQL: UPDATE user SET styleid=30 WHERE userid=
mysql error: You have an error in your SQL syntax near '' at line 1

mysql error number: 1064

Date: Friday 28th of December 2001 10:42:19 AM
Script: http://forum.latriade.net/index.php?changestyle=30
Referer:

Admin 12-28-2001 04:35 PM

Ok, my bad. It is a bit complicated. Re-install the hack, it should be ok now.

floleb7 12-28-2001 06:53 PM

with your change i cannot login in my forum :D


All times are GMT. The time now is 04:46 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.02162 seconds
  • Memory Usage 1,807KB
  • 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
  • (1)bbcode_code_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
  • (40)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