Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Change style on index with UPDATE Details »»
Change style on index with UPDATE
Version: 1.00, by grog6 grog6 is offline
Developer Last Online: Dec 2008 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 05-01-2003 Last Update: Never Installs: 23
 
No support by the author.


This hack displays a small box at the top of your forum's index, where you can change easily of style.
The number of users who used is too displayed just next the Style's name.

This hacks was already existed :

https://vborg.vbsupport.ru/showthrea...tyle+AND+index

but it didn't updat the user's table in the database, and if you use others hacks which display the user's style in the postbit, or an other hack to list hacks used on your board (such as mine or Lesane's), information which was displayed was false ! Now, it's updated when the user uses this scroll menu, and so, no pb with other hacks :-)

Moreover, the style directly shown in the scroll menu, is the style that the user uses, so he knows which style he used
A simple changement in this scroll menu, and the user is automatically redirected to the forum's index with the new style selected





Ce hack affiche en haut de votre forum une petite boite, ou vous pouvez facilement changer de style.
Le nombre d'utilisateurs utilisant ce style est egalement montre a cote du nom du style.

Ce genre de hack existait deja :

https://vborg.vbsupport.ru/showthrea...tyle+AND+index

mais il ne mettait pas a jour les infos du membre dans la table user, et si vous utilisez d'autres hacks qui montre le style de chaque membre dans le postbit, ou mon hack qui liste les styles utilises sur votre forum, les infos affichees auraient alors pu etre fausses ! Maintenant c'est mis a jour quand le user utilise ce petit menu, et ainsi, plus de pb avec les autres hacks :-)

De plus, le style actuellement utilis? par le membre est directement affiche, ainsi il sait quel style il utilise a tout moment.
Un simple changement dans ce menu, redirige le membre vers l'accueil du forum avec le nouveau style choisi




[HIGH]Here is the english version.
I could understand a mod or Firefly want to remove this hack (which is only a modification of an other one)


Voici la version anglaise.
Je pourrais comprendre qu'un modo ou un Firefly veuille supprimer ce hack, etant donne que ce n'est que la modification d'un hack de Firefly
[/HIGH]

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 05-05-2003, 02:33 PM
Edgar Edgar is offline
 
Join Date: Dec 2001
Location: Belgium
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Done
Reply With Quote
  #23  
Old 05-05-2003, 06:53 PM
-Sidekick- -Sidekick- is offline
 
Join Date: May 2002
Location: Cudahy, Wi
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 04:50 AM o0stephane0o said this in Post #16
Side click, the bug you are experioencing have nothing to see with that hack, you have just noticed it now but it was there before installing that hack.
Yes it does have to do with this hack. I'm absolutely positive it does. I've changed my style many times before installing this hack and never had a problem.

It's not just this hack, it's any of these style changing hacks. Even here on vb.org you'll experience the problem if you do what I described and it's not even the same hack.

Now is there any solution to this?
Reply With Quote
  #24  
Old 05-05-2003, 09:09 PM
BustaCap BustaCap is offline
 
Join Date: Jan 2002
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Grog, I have a question about your hack. When I go to edit my forumhome template (Templates/modify) I see this:




Do I have to edit the forumhome template for all the different styles?

Also, when I create the two new templates, which template set do I save them to (Default, plasma, etc...)?

Thanks!
Reply With Quote
  #25  
Old 05-05-2003, 09:40 PM
grog6's Avatar
grog6 grog6 is offline
 
Join Date: Apr 2002
Location: France
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@ BustaCap : To add this modification to all styles, you have to add the 2 new templates and add the variable to each of your forumhome template

That's why I created 2 .txt file which countain the template to add, use the hack Template Backup System to add these 2 templates to each style faster (just 2 clicks )
Reply With Quote
  #26  
Old 05-06-2003, 12:31 AM
BustaCap BustaCap is offline
 
Join Date: Jan 2002
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've installed Firefly's template backup hack. I'm not clear on how I should use this to add the two templates to all of the style sets. ..

Sorry for being so dense about this but I'm new to this. Can you tell me how I should do this?
Reply With Quote
  #27  
Old 05-06-2003, 04:59 AM
-Sidekick- -Sidekick- is offline
 
Join Date: May 2002
Location: Cudahy, Wi
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can do it fast without any hacks. Create one of the templates to your top style. Then hit your back button for your browser and change the style you are saving it to from the dropdown menu. Then do the same for the second template.
Reply With Quote
  #28  
Old 05-06-2003, 05:00 AM
-Sidekick- -Sidekick- is offline
 
Join Date: May 2002
Location: Cudahy, Wi
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Grog any comment on my situation? Otherwise I'll just remove the style change option from the usercp since it will be on the main page of the forums.
Reply With Quote
  #29  
Old 05-06-2003, 09:26 AM
grog6's Avatar
grog6 grog6 is offline
 
Join Date: Apr 2002
Location: France
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@ -Sidekick- : Yup but you have to clik X times (the number of styles you have ) to install a template to all styles, and the same thing with the second template whereas with the TBS, just upload the 2 .txt files to your FTP, and then click import to all styles, and you"re done

For your question concerning the user profile's change, and the problem you have, as you've said above, this pb is when you install a hack to change the style elsewhere than ic the user CP
I don't know why, sorry guy
Reply With Quote
  #30  
Old 05-06-2003, 04:19 PM
BustaCap BustaCap is offline
 
Join Date: Jan 2002
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ah, so I can import a .txt file as a template? That's what had me confused. I though I had to somehow convert it to a template file before I could import it.

Anyway, I got it working and it seems to be both showing correctly the number of users using each style, including showing styles even if noone is using them. Thanks!
Reply With Quote
  #31  
Old 05-11-2003, 03:55 PM
BustaCap BustaCap is offline
 
Join Date: Jan 2002
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

grog6, I've got it working and it's working as it should except for one problem. On one of my styles it "squashes" it so that it looks really narrow. However, if I select the style through the UserCP it looks fine, so it must be something to do with the hack. The style is the Ravio Skin offered by VBskins.com. It happens with both the fixed width and expanded style. Any thoughts as to why this happens or how to fix it?

Right now what I've done is to remove the:

<center>
$style_select
</select>
<br>

from the forumhome template for the Ravio style. Of course, this means that I don't get the dropdown box on that skin. However, if I'm viewing another skin (with the dropdown box) I can at least change to the Ravio Skin. As soon as I add the:
<center>
$style_select
</select>
<br>

to the forum home for Ravio style it messes it up again. So I'm just leaving it out.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:23 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04473 seconds
  • Memory Usage 2,295KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete