Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Change Style of First Post Details »
Change Style of First Post
Mod Version: 1.00, by Chen (Member) Chen is offline
Developer Last Online: Mar 2009 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (0 vote - 0 average) Installs: 23
Released: 18 Feb 2002 Last Update: Never Downloads: 9
Not Supported  

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.

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

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 18 Feb 2002, 12:56
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Real name: Maurice
Great for my reviews forum, thank you Firefly. Well done
Reply With Quote
  #3  
Old 18 Feb 2002, 12:59
MarkB's Avatar
MarkB MarkB is offline
 
Join Date: Oct 2001
That 'someone' was me You can see it on my forums in the 'zine' section. Definitely a great addition to my board, and still my favourite hack
Reply With Quote
  #4  
Old 18 Feb 2002, 14:56
snyx's Avatar
snyx snyx is offline
 
Join Date: Oct 2001
creepy, I needed this very hack yesterday....
none the less, excelent job!! now I get to us it!
Reply With Quote
  #5  
Old 18 Feb 2002, 16:12
dost dost is offline
 
Join Date: Oct 2001
is anyone else getting a parse error in showthread.php? i just installed it on my win32 test server.
Reply With Quote
  #6  
Old 18 Feb 2002, 21:29
Bald Bouncer's Avatar
Bald Bouncer Bald Bouncer is offline
 
Join Date: Oct 2001
Im trying to get it working on 2.2.0, anyone had any luck Im getting a parse error in showthread


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

Last edited by Bald Bouncer; 18 Feb 2002 at 21:41.
Reply With Quote
  #7  
Old 19 Feb 2002, 01:47
Psychdrone Psychdrone is offline
 
Join Date: Nov 2001
could I seee a pic, pleas anyone?
Reply With Quote
  #8  
Old 19 Feb 2002, 02:39
Ambex Net's Avatar
Ambex Net Ambex Net is offline
 
Join Date: Nov 2001
Yes can we have a picture of this in action please
Reply With Quote
  #9  
Old 19 Feb 2002, 05:28
X-Fan's Avatar
X-Fan X-Fan is offline
 
Join Date: Jan 2002
Real name: Eric
Thumbs up

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!!!!!!!!!
__________________
Eric J. Moreels
ComiX-Fan Editor/Webmaster
Researcher, Marvel Encyclopedia Vol 2: X-Men
e-mail: webmaster@comixfan.cjb.net
Web: http://www.comixfan.com/xfan/
AIM: XFan2k

My Hacks:
Store Redemption Hack v1.1
QuickStats Hack v1.1
Reply With Quote
  #10  
Old 19 Feb 2002, 06:11
X-Fan's Avatar
X-Fan X-Fan is offline
 
Join Date: Jan 2002
Real name: Eric
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!
Attached Images
File Type: jpg firstpost.jpg (54.9 KB, 623 views)
__________________
Eric J. Moreels
ComiX-Fan Editor/Webmaster
Researcher, Marvel Encyclopedia Vol 2: X-Men
e-mail: webmaster@comixfan.cjb.net
Web: http://www.comixfan.com/xfan/
AIM: XFan2k

My Hacks:
Store Redemption Hack v1.1
QuickStats Hack v1.1

Last edited by X-Fan; 19 Feb 2002 at 07:25.
Reply With Quote
  #11  
Old 19 Feb 2002, 09:57
dost dost is offline
 
Join Date: Oct 2001
Originally posted by X-Fan
I was getting that too, but all that's needed is a closing bracket after $pagenumber==1
Thanks for the help but then I start getting this error:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #12  
Old 20 Feb 2002, 02:10
X-Fan's Avatar
X-Fan X-Fan is offline
 
Join Date: Jan 2002
Real name: Eric
Sorry dost, but I'm no hacker. I just stumbled across that fix by accident and it worked for me.
__________________
Eric J. Moreels
ComiX-Fan Editor/Webmaster
Researcher, Marvel Encyclopedia Vol 2: X-Men
e-mail: webmaster@comixfan.cjb.net
Web: http://www.comixfan.com/xfan/
AIM: XFan2k

My Hacks:
Store Redemption Hack v1.1
QuickStats Hack v1.1
Reply With Quote
  #13  
Old 20 Feb 2002, 06:55
SirSteve SirSteve is offline
 
Join Date: Oct 2001
And I got this:

Missing argument 2 for getpostbit() in /usr/www/users/gandalf/starwarsguide.com/forums/admin/functions.php on line 57

Line 57 is this:

function getpostbit($post,$templatename) {

also, my showthread.php has this:

$postbits = getpostbit($post);

(notice no period in front of the equal sign?)

but I still replaced it with:
$postbits .= getpostbit($post,iif($counter==1 and $pagenumber==1, 'postbit_first', 'postbit'));

Using 2.2.2
Reply With Quote
  #14  
Old 20 Feb 2002, 17:00
SirSteve SirSteve is offline
 
Join Date: Oct 2001
* gentle bump *

leased:
Reply With Quote
  #15  
Old 20 Feb 2002, 17:49
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
Reinstall the hack SirSteve. Trust me...
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

chen@avinadav.com
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 08:13.

Layout Options | Width: Wide Color: