Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Thread as postbit and Reply as postbit_legacy Details »»
Thread as postbit and Reply as postbit_legacy
Version: 1.00, by Sulaiti Sulaiti is offline
Developer Last Online: Jun 2014 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.8 Rating:
Released: 09-22-2007 Last Update: Never Installs: 19
Template Edits
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 10-14-2007, 03:42 AM
Cubevisions Cubevisions is offline
 
Join Date: Aug 2007
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Jasculs, just revert the code.

PHP Code:
<if condition="$post['postcount'] == 1">
 
(
postbit_legacy template)
 
<else />
 
(
postbit template)
 
</if> 
Reply With Quote
  #13  
Old 10-14-2007, 09:08 AM
baghdad4ever baghdad4ever is offline
 
Join Date: Apr 2007
Location: baghdad
Posts: 443
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks

install

but there is one problem

when i use this code

Code:
<if condition="$thread['forumid'] == X">
all thread in other forum disapear

i used it like that



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

is that ok????
Reply With Quote
  #14  
Old 10-16-2007, 03:35 AM
Cubevisions Cubevisions is offline
 
Join Date: Aug 2007
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think that the forumid condition must come first. But i don't know very much about vB, just starting.
Reply With Quote
  #15  
Old 10-23-2007, 11:02 AM
J.Pazos J.Pazos is offline
 
Join Date: Oct 2007
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I use this code from this way:

Code:
<if condition="$thread['forumid'] == forumid">
<if condition="$post['postcount'] == 1">

(postbit template)
 
<else />
 
(postbit_legacy template)
 
</if>  

<else />
(postbit_legacy template)

</if>
I edit the postbit_legacy template (Admin CP ? vBulletin Options ? Style & Language Settings ? Use Legacy (Vertical) Postbit Template ? (YES)), and it works perfectly .
Reply With Quote
  #16  
Old 10-26-2007, 07:57 PM
Marcus-VS Marcus-VS is offline
 
Join Date: May 2007
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by J.Pazos View Post
I use this code from this way:

Code:
<if condition="$thread['forumid'] == forumid">
<if condition="$post['postcount'] == 1">

(postbit template)
 
<else />
 
(postbit_legacy template)
 
</if>  

<else />
(postbit_legacy template)

</if>
I edit the postbit_legacy template (Admin CP ? vBulletin Options ? Style & Language Settings ? Use Legacy (Vertical) Postbit Template ? (YES)), and it works perfectly .
Same works fine here aswell
Reply With Quote
  #17  
Old 11-17-2007, 11:16 PM
marcsmith73 marcsmith73 is offline
 
Join Date: Dec 2006
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool...nice alternative.
Reply With Quote
  #18  
Old 11-25-2007, 12:52 AM
ChU v2 ChU v2 is offline
 
Join Date: May 2007
Location: Chicago
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by J.Pazos View Post
I use this code from this way:

Code:
<if condition="$thread['forumid'] == forumid">
<if condition="$post['postcount'] == 1">

(postbit template)
 
<else />
 
(postbit_legacy template)
 
</if>  

<else />
(postbit_legacy template)

</if>
I edit the postbit_legacy template (Admin CP ? vBulletin Options ? Style & Language Settings ? Use Legacy (Vertical) Postbit Template ? (YES)), and it works perfectly .

I used this code, put it at the top of the Postbit Legacy template and doesn't work.

See attachment.
Reply With Quote
  #19  
Old 11-25-2007, 06:44 AM
Defkalion Defkalion is offline
 
Join Date: Jan 2007
Location: Athens, Greece
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice. How can you define more than one forums to use this in?
Reply With Quote
  #20  
Old 12-06-2007, 11:44 AM
sweede's Avatar
sweede sweede is offline
 
Join Date: Jan 2007
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you people need to read these forums more
https://vborg.vbsupport.ru/showthread.php?t=72556

Quote:
Code:
<if condition="in_array($bbuserinfo[usergroupid], array(9,10,11))">
Code:
<if condition="in_array($thread['forumid'],array(1,2,3,4,5,6))">

(postbit template)
 
<else />
 
(postbit_legacy template)
 
</if>
Reply With Quote
  #21  
Old 04-04-2008, 02:56 PM
Meatshield Meatshield is offline
 
Join Date: Dec 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working in 3.7 rc2
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:31 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04632 seconds
  • Memory Usage 2,309KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete