vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Is there ha public mod for vbulletin.org style mod posts? (https://vborg.vbsupport.ru/showthread.php?t=143677)

NolF 03-31-2007 08:48 AM

Is there ha public mod for vbulletin.org style mod posts?
 
Hi, I know I shouldn't probabilly post this, but after spending over 6 hours looking on 3.5 and 3.6 sections I still couldn't find a hack which would make the first post of a selected subforum look like the ones here for modifications.

By this I mean a hack which makes the 1st posts of a selected subforum to lokk like this (any mod would do). I'm pretty sure I've seen a modification like this but can't find it. I would appreciate your help greatly.

Thank you ^^

WetWired 03-31-2007 01:46 PM

For the most part, it can be done with just a simple template mod. Surround the whole postbit in a conditional:
Code:

<if condition="$post[postcount]==1"><else /></if>
Put the old postbit between the else and the /if, put your modified one between the if condition and the else. AFAIK, they only need to use a plugin in order to make the first post appear on each page, and I know I've seen that here at some point. Also, you'll probably want to include a forumid in that condition.

NolF 03-31-2007 02:52 PM

Ahhhhh so annoying can't find the hack you mention even though I've seen it around too.

Regarding the conditional thanks a lot gave me a great Idea for the modification. Just wondering, <if> </if> are fully evaluated by the server if the condition is not true? I ask this because if i make the </ else> fairly edited would make a large template...

For example: i have <if bablabla>111111111</ else>222222222</if> if bablabla is not true, the server ignores all the ones straright away and goes for the </ else>

Do large templates affect greatly on the server's performance?

Thx for the help, (I'm repeating my self but...) it gave me good ideas ^^

WetWired 03-31-2007 07:18 PM

Those are kind of technical questions that I can't really answer, but my experience is that it's perfectly fine to use conditionals to create 3 entire versions of a template. My forumdisplay_x_* templates all have 3 versions: 1 for forumhome, 1 for forumdisplay, and another for the user CP.

Marco van Herwaarden 03-31-2007 07:42 PM

<if> are evaluated on the server, as your browser would not understand them as they are not standard HTML.

NolF 04-01-2007 12:52 PM

Thank you Marco van Herwaarden and WetWired. Very useful help, I hope I'll have the time soon to get the edits rolling ^^


All times are GMT. The time now is 07:59 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.01048 seconds
  • Memory Usage 1,720KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete