vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Postbit / Postbit Legacy (https://vborg.vbsupport.ru/showthread.php?t=95542)

White_Snake 09-02-2005 10:37 PM

Postbit / Postbit Legacy
 
well my question is this one

i want to have a skin where users can choose the default postbit or postbit legacy, i suppose that i have to copy and paste my skin, but how can i make the copied skin runs with the legacy and my normal skin with default postbit?

Tony G 09-03-2005 01:07 AM

I don't understand the second part, you want one skin to be using postbit legacy and the default one with the normal postbit without user option, or do you want the user option?

White_Snake 09-03-2005 01:54 AM

well, what i frist have in mind is that the choose of legacy or normal postbit can be by skin ex: you pick up "default skin" and you can see the threads with the default postbit, but if you pick up the skin "default skin (Legacy)" you can see the threads with the legacy postbit

but if there is a better way, that can be nice to know too :)

thanks for reading

Tony G 09-03-2005 03:42 AM

I'm pretty sure there is a mod where users are able to choose what postbit they'd like (legacy or normal) through the User CP. Is this what you are after?

Adrian Schneider 09-03-2005 04:40 AM

You could just be lazy and make a child style where you copy the legacy template over the postbit template.

White_Snake 09-03-2005 03:34 PM

Quote:

Originally Posted by SirAdrian
You could just be lazy and make a child style where you copy the legacy template over the postbit template.

i was thinking about doing that, but i was looking for another way ya' know in programming there are various ways to achieve the same goal, so, i was also curious about what Tony G said, a mod, but i suppose a mod like that would require a plugin/hack to be done and well, im not that skilled in php :ninja:

Adrian Schneider 09-03-2005 06:44 PM

You could try this..

hook cache_templates

PHP Code:

if ($styleid == X)
{
    
$vbulletin->options['legacypostbit'] = 1;



White_Snake 09-03-2005 09:11 PM

hmm intresting, this maybe can be out of the topic but,

$vbulletin->options['legacypostbit'] is an array, isnt it? so now, where i can have a reference about all the $vbulletin->options ?

Adrian Schneider 09-03-2005 10:06 PM

$vbulletin->options is an array containing all the options, and should be available everywhere.

$vbulletin->options['legacypostbit'] just contains 1 or 0 depending on what you have that option set to.

White_Snake 09-03-2005 10:14 PM

Quote:

Originally Posted by SirAdrian
$vbulletin->options is an array containing all the options, and should be available everywhere.

$vbulletin->options['legacypostbit'] just contains 1 or 0 depending on what you have that option set to.

0k, we're getting progress, so, now, where i can have a referrence of all the options? i mean, the php file with all of em?

and well, now on the if statement you told me, i suppose there is a way can be re arranged, so, the users can choose something on UCP like "Show normal postbit or postbit legacy"

PHP Code:

 if ($user_have_choose_postibt == legacy)
{
    
$vbulletin->options['legacypostbit'] = 1;
}  
else
{
    
$vbulletin->options['legacypostbit']= 0;


btw, sorry for bother with all this Uber Newbie questions lol, but im a very newbie on php


All times are GMT. The time now is 12:35 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.01206 seconds
  • Memory Usage 1,738KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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