vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Multiple thread display like vBulletin.org (https://vborg.vbsupport.ru/showthread.php?t=71501)

paulyy 11-08-2004 10:45 PM

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?

HiDeo 11-09-2004 03:33 AM

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

Wait ....

traderx 11-09-2004 05:17 AM

Man I hate to wait.... LOL

I really like what he has done, nice job:)
**waits for post**

Xenon 11-09-2004 05:06 PM

the general thing is just a template condition

HTML Code:

<if condition="$threadinfo['forumid'] == hackforum">
$hackinfos
<else />
normal stuff here
</if>


paulyy 11-11-2004 01:20 AM

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 ...

Reeve of shinra 11-11-2004 01:27 AM

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.

traderx 11-11-2004 01:40 AM

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

when will the merge start with vbtemplates into org?

Xenon 11-11-2004 04:14 PM

well, that an easy condition as well:

HTML Code:

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


paulyy 11-11-2004 06:34 PM

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?

Xenon 11-14-2004 04:07 PM

not in the nearer future, i'm totally overworked with more important things currently..


All times are GMT. The time now is 03: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.01044 seconds
  • Memory Usage 1,728KB
  • 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
  • (3)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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