Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-08-2004, 10:45 PM
paulyy paulyy is offline
 
Join Date: Jul 2004
Location: England, UK
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Multiple thread display like vBulletin.org

I noticed that vBulletin.org uses different template types for thread display in the "hacks" forums.

For example going here; https://vborg.vbsupport.ru/showthread.php?t=63140

you get a "normal" display, but if you go here; https://vborg.vbsupport.ru/showthread.php?t=71481

you get a different first post display template. My forum would make great use of something like these, but more of a car showcase that a hack forum. I searched and one hack came close but the description didn't seem to fit what I want to do properly. How would I go about doing this? Is there a release for the hack vBulletin.org uses or was it internal?
Reply With Quote
  #2  
Old 11-09-2004, 03:33 AM
HiDeo's Avatar
HiDeo HiDeo is offline
 
Join Date: Oct 2003
Posts: 306
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a Xenon's modification. He don't release this hack yet !!

Wait ....
Reply With Quote
  #3  
Old 11-09-2004, 05:17 AM
traderx's Avatar
traderx traderx is offline
 
Join Date: Jul 2003
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Man I hate to wait.... LOL

I really like what he has done, nice job
**waits for post**
Reply With Quote
  #4  
Old 11-09-2004, 05:06 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the general thing is just a template condition

HTML Code:
<if condition="$threadinfo['forumid'] == hackforum">
$hackinfos
<else />
normal stuff here
</if>
Reply With Quote
  #5  
Old 11-11-2004, 01:20 AM
paulyy paulyy is offline
 
Join Date: Jul 2004
Location: England, UK
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I understand what you mean Xenon, but how would that change only the first post, and not all? I assume that's the part that hasn't been released yet ...
Reply With Quote
  #6  
Old 11-11-2004, 01:27 AM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think its on vbulltintemplates but it uses conditionals as Xenon mentioned. You could also make that forum use a specific style which would have that code in it.
Reply With Quote
  #7  
Old 11-11-2004, 01:40 AM
traderx's Avatar
traderx traderx is offline
 
Join Date: Jul 2003
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm if someone should find it, would you please post the url here pls.

when will the merge start with vbtemplates into org?
Reply With Quote
  #8  
Old 11-11-2004, 04:14 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well, that an easy condition as well:

HTML Code:
<if condition="$post['postid'] == $threadinfo['firstpostid']">
postbit for first post
<else />
normal postbit
</if>
Reply With Quote
  #9  
Old 11-11-2004, 06:34 PM
paulyy paulyy is offline
 
Join Date: Jul 2004
Location: England, UK
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So;

HTML Code:
<if condition="$threadinfo['6'] == Showroom">
   <if condition="$post['postid'] == $threadinfo['firstpostid']">
       postbit for first post
   </if>
<else />
normal postbit
</if>

Would that be correct?

But then there would be the question of getting 'new fields' to appear in the right places. Is there any chance you will release this hack?
Reply With Quote
  #10  
Old 11-14-2004, 04:07 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not in the nearer future, i'm totally overworked with more important things currently..
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 05:47 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.04489 seconds
  • Memory Usage 2,252KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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