vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Show Thread Enhancements - Thread as postbit and Reply as postbit_legacy (https://vborg.vbsupport.ru/showthread.php?t=158567)

Sulaiti 09-22-2007 10:00 PM

Thread as postbit and Reply as postbit_legacy
 
This little modification will show the thread as postbit and reply as postbit_legacy.

Install:

First step:

Admin CP ? vBulletin Options ? Style & Language Settings ? Use Legacy (Vertical) Postbit Template ? (NO)

Second step:

Replace the postbit template with the following:

PHP Code:


<if condition="$post['postcount'] == 1">
 
(
postbit template)
 
<else />
 
(
postbit_legacy template)
 
</if> 


Done!

Please make sure you click INSTALL if you like it.

Attached contain the full modification needed.

Aeolian 09-23-2007 07:25 PM

awesome!!
can i make this only for a specific forum?

thanks~

Sulaiti 09-23-2007 07:43 PM

It’s a template modification will affect all the threads.

You can view this product it will help.

https://vborg.vbsupport.ru/showthread.php?t=156141

Regards,

Gray Matter 09-23-2007 08:22 PM

Quote:

Originally Posted by Aeolian (Post 1345370)
awesome!!
can i make this only for a specific forum?

thanks~

You can easily achieve this with a template conditional. :)

Code:

<if condition="$thread['forumid'] == X">
Where X will be the forum's ID. ;)

lasto 09-24-2007 02:53 PM

i would like this for one forum only if posible

Gray Matter 09-24-2007 09:31 PM

Quote:

Originally Posted by lasto (Post 1346061)
i would like this for one forum only if posible

Did you read my last post?

Cybertims 09-25-2007 08:50 AM

So you replace the entire postbit template with the code above??

Doesn't sound right......

Sulaiti 09-25-2007 05:02 PM

Quote:

Originally Posted by Gray Matter (Post 1345403)
You can easily achieve this with a template conditional. :)

Code:

<if condition="$thread['forumid'] == X">
Where X will be the forum's ID. ;)

Agreed with appreciated you're add.

Regards,

petacat 10-05-2007 08:59 AM

It works nicely for me.

I can see a fully featured mod in this that installs and has ACP settings to say which forums to include and not to :P

It might even mean having another template or something (I lack experience with the product :P) that controls this conditional and avoids duplicating the whole code for postbit_legacy and complicating any mods to legacy in the future....

jasculs 10-11-2007 05:22 AM

How can I do it in reverse order...I would like the first post to be postbit legacy and the reply posts to be postbit.


All times are GMT. The time now is 02:53 PM.

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.01286 seconds
  • Memory Usage 1,735KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (3)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