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?

EscortCossie 03-25-2005 11:51 PM

I can't seem to get the quick style chooser problem solved.

Could anyone please tell me what to do in a step-by-step guide? Thanks

Vampyre 03-27-2005 05:28 AM

Thanks, Gary King. :)

Snake 04-01-2005 08:24 AM

Will this work on vB v3.0.7?

neocorteqz 04-01-2005 09:05 AM

Quote:

Originally Posted by fusioncreations
Will this work on vB v3.0.7?

Yep. :)

Allan 04-01-2005 10:41 AM

Quote:

Originally Posted by neocorteqz
Yep. :)

thanks ;)

b00k 04-30-2005 04:48 AM

Quote:

Originally Posted by EscortCossie
I can't seem to get the quick style chooser problem solved.

Could anyone please tell me what to do in a step-by-step guide? Thanks


would be sweet to see that fixed... and yes, it does work with vBulletin Version 3.0.7

Silmarillion 08-14-2005 08:51 AM

The functions_showthread.php doesn`t exist anymore in vB3.5.
Where do I have to add the text now?

lewisbeech 08-14-2005 11:31 AM

why does it only say Style: (not specified)
i thought it is supposed to tell you what style you are using.

lewisbeech 08-16-2005 07:44 AM

*bump*

Snake 08-16-2005 03:59 PM

Nice move. :D

Datenpapst 09-15-2005 12:30 PM

Quote:

Originally Posted by lewisbeech
why does it only say Style: (not specified)
i thought it is supposed to tell you what style you are using.

also thought this... Where can I specify which Style I am using? :o

Clayton 09-18-2005 05:20 PM

This may sound crazy

However, I can't seem to find this:

static $gotrank, $sigcache, $sigperms, $gotage, $month, $day, $year, $counter;

Have I missed something?

Thank you

C

b00k 09-19-2005 07:28 PM

Quote:

Originally Posted by Clayton
This may sound crazy

However, I can't seem to find this:

static $gotrank, $sigcache, $sigperms, $gotage, $month, $day, $year, $counter;

Have I missed something?

Thank you

C

search static then, it is there.

Quote:

Originally Posted by lewisbeech
why does it only say Style: (not specified)
i thought it is supposed to tell you what style you are using.

it will, only if the user specifies through user cp.

Omega Prime 09-19-2005 08:51 PM

Quote:

Originally Posted by lewisbeech
why does it only say Style: (not specified)
i thought it is supposed to tell you what style you are using.

If you haven't already, you'll need to number each of your styles in order in your admincp (1, 2, 3, etc.) :)

Edison Chen 10-09-2005 10:31 AM

It shows not specified since the user has selected the default style as his/her style in the user options. ;)

Now... There is a way to remove it very easily and display Default Style instead... Just a small error. You see, in the postbit, the if conditional it says: == '$vbphrase[not_specified]' while in the file you edited in: '(' . $vbphrase['not_specified'] . ')' Duh! They don't match ;).

What I suggest is....

Change this (in includes/functions_showthread.php):
PHP Code:

 // check what style the user is viewing 
    
if (!$post['styleid']) 
    { 
        
$post['style'] = '(' $vbphrase['not_specified'] . ')'
    } 

Into this:
PHP Code:

 // check what style the user is viewing 
    
if (!$post['styleid']) 
    { 
        
$post['style'] = 'default'
    } 


Change (in your postbit or postbit_legacy):
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 -->

Into:
HTML Code:

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

Now, with this you do not have to add 'not specified' to the phrases. :) I mean, after all - the Default Style will be displayed, not the phrase or word that was put in the PHP as... ah, I'll shut up :p.

michaelbenson 10-15-2005 01:04 PM

Will this be converted to vBulletin 3.5 ?

Snake 10-15-2005 04:33 PM

It works on 3.5 Gold just fine. :)

http://forums.mgszone.com


All times are GMT. The time now is 01:00 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.01589 seconds
  • Memory Usage 1,790KB
  • 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
  • (3)bbcode_html_printable
  • (2)bbcode_php_printable
  • (8)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
  • (27)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