vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Change Style of First Post (https://vborg.vbsupport.ru/showthread.php?t=35191)

Admin 02-17-2002 10:00 PM

This is a rather old hack I did some time ago for someone, but never really released it as a full hack. :)

Very simple, this hack lets you change the template the first post is using (in either all forums or only one), so it can look differently.
Great for article and review forums. :D

Before installing the hack, create a new template named "postbit_first" from the current "postbit" template. After you're done, you can edit that template and it will control the first post in the threads.

Everything else you need is in the attached file, have fun! :)

Chen

Lesane 02-18-2002 11:56 AM

Great for my reviews forum, thank you Firefly. Well done :up:

MarkB 02-18-2002 11:59 AM

That 'someone' was me :D You can see it on my forums in the 'zine' section. Definitely a great addition to my board, and still my favourite hack :)

snyx 02-18-2002 01:56 PM

creepy, I needed this very hack yesterday....
none the less, excelent job!! now I get to us it! :D

dost 02-18-2002 03:12 PM

is anyone else getting a parse error in showthread.php? i just installed it on my win32 test server.

Bald Bouncer 02-18-2002 08:29 PM

Im trying to get it working on 2.2.0, anyone had any luck Im getting a parse error in showthread :(

PHP Code:

$postbits getpostbit($post,iif($counter==and $pagenumber==1'postbit_first''postbit')); 

if I change the line in showthread to the above I dont get the error but it doesnt show the first post?

Psychdrone 02-19-2002 12:47 AM

could I seee a pic, pleas anyone?

Ambex Net 02-19-2002 01:39 AM

Yes can we have a picture of this in action please :D

X-Fan 02-19-2002 04:28 AM

Quote:

Originally posted by Bald Bouncer
Im trying to get it working on 2.2.0, anyone had any luck Im getting a parse error in showthread :(
I was getting that too, but all that's needed is a closing bracket after $pagenumber==1

Chen, this is an absolutely brilliant hack for my forums as I have a sponsor and needed to get my sponsor's ads in the faces of people who clicked through to my news articles from other sites. With this hack, I can do that with ease!

THANKS!!!!!!!!!

X-Fan 02-19-2002 05:11 AM

Screen Shot!

I've edited the left column (the one that usually contains username, registered date, # posts, etc) in the postbit_first template to include basic information about the poster (as they're staff) and an iframe with my sponsor's ad in it.

Of course, the great thing about this hack is it's completely customizable. You can edit the postbit_first to look however you want it to!


All times are GMT. The time now is 06:05 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.01151 seconds
  • Memory Usage 1,733KB
  • 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_php_printable
  • (1)bbcode_quote_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