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)

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:38 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.01118 seconds
  • Memory Usage 1,743KB
  • 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
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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