vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   What style are we all using? (https://vborg.vbsupport.ru/showthread.php?t=63068)

dtsrules 01-05-2005 09:43 AM

Code:

<!-- skin select code -->
<form action="profile.php" method="post">
<input type="hidden" name="s" value="$session[dbsessionhash]" />
<input type="hidden" name="do" value="updateoptions" />
 <fieldset class="fieldset">
  <legend><label for="sel_newstyleset">$vbphrase[board_skin]</label></legend>
  <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" align="center">
  <tr>
    <td>
    $vbphrase[switch_skin_select]
    </td>
  </tr>
  <tr>
    <td>
    <label for="sel_newstyleset">Skin:</label>
    <select name="newstyleset" id="sel_newstyleset">
    $quickchooserbits
    </select>
    <input type="submit" class="button" value="Go" accesskey="s" />
    </td>
  </tr>
  </table>
 </fieldset>
</form>
<!-- / skin select code -->

place the above in your forumhome template and you'll have a working quick style chooser ;)

thanks for the hack!

fridayweb 01-18-2005 05:02 PM

How would we go about changing this code to add it to a person's profile?

neocorteqz 01-18-2005 06:47 PM

Quote:

Originally Posted by fridayweb
How would we go about changing this code to add it to a person's profile?

add it somewhere in the memberinfo template.

this code, the phrases are global so you can use it anywhere.
HTML Code:

<!-- user forum style -->
<div>$vbphrase[style]: <if condition="$post[style] == '$vbphrase[not_specified]'"><a href="$vboptions[forumhome].php?styleid=$vboptions[styleid]">Default Style</a><else />$post[style]</if></div>
                                        <!-- / user forum style -->


Gizmo99 01-23-2005 10:39 AM

DONT USE THE HTML POSTED BY dtsrules it turns off your PM's in your profile !!!

This is a good hack, BUT as loads of peeps have asked, it needs to read the Quick Style Chooser, Pritty Please

Giz

nautiqeman 02-02-2005 01:37 PM

I see that there's a realstyleid which is the one that the Quick Style Chooser uses -- but how can we get the name of the style by using the id??

boiboi 02-02-2005 05:11 PM

installed it but most users style displays (style not specified) can someone post an sql query on how to change everyone's style? thanks

ogden2k 02-05-2005 04:17 PM

This is a nice hack, but this only displays properly if the style is chosen in the User CP...

Guy G 02-11-2005 08:09 AM

Getting

style: (not specified)

on 3.0.6

anyone know how to fix it ?

EDIT: It works... but on from the user-cp selection like the post above me said...

Sin City 02-22-2005 07:59 AM

just wondering if there was any update on someone making this work with the quick style chooser

Acers 03-17-2005 03:45 PM

hmm any updates ??
How to make it work with the style chooser?


All times are GMT. The time now is 08:27 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.01119 seconds
  • Memory Usage 1,740KB
  • 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)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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