PDA

View Full Version : New thread/post and last post hacks


TurboFC3S
09-13-2001, 01:26 AM
Ok, I know this has been posted ... but I've been searching for the last half hour trying to find a hack to do like SitePoint has. I want to have a button next to each forum/subforum that will let you post a new thread in that forum. Also have a button next to each thread that will let you post a new reply inside that thread.

I would also like to have the feature like UBB 6+ has where it not only shows the time and username of the last post made, but also the title of the last post and a clickable link to the thread.

I would appreciate a link to where I can find how to do these hacks.

Thanks

Admin
09-13-2001, 03:01 PM
These are simple template changes.

For a New Thread button next to each forum, add this link:
<a href="newthread.php?s=$session[sessionhash]&action=newthread&forumid=$forum[forumid]"><img src="{imagesfolder}/newthread.gif" border="0"></a>
to your forumdisplay_forumbit_levelX_post and forumhome_forumbit_levelX_post templates.

For a Reply button next to each thread, add this link:
<a href="newreply.php?s=$session[sessionhash]&action=newreply&threadid=$thread[threadid]"><img src="{imagesfolder}/reply.gif" border="0"></a>
to your forumdisplaybit template.

And about the last post thing, it's already there.

TurboFC3S
09-14-2001, 01:55 AM
Thanks man ... I've been messing with it all night trying to get it to line up like Sitepoints do, but I can't get it right. Here's what it looks like. www.rx7club.com/vorums/index.php

I know I need to put a nested table in the Thread column and have it be a 2x2 table, with the bottom two colums merged. then put the Forum name in the top left, new thread button in the top right aligned to the right, and the forum description in the bottom .. but I can't get it to work.

And what do you mean it's already there? Mine doesn't put the last thread name with a clickable link to it.

TurboFC3S
09-14-2001, 02:23 AM
Hmmm, I might be getting it figured out after all ... I got the individual threads looking good. Too bad it's time for bed now :(

Admin
09-14-2001, 10:42 AM
Just look at the source code of the SitePoint site, and see how they did it. :)

TurboFC3S
09-14-2001, 01:53 PM
I did, and it helped ... sure would be nice if he would turn on the show template option for a few seconds :D

I got it really close, but I can't figure out where that extra <td> is coming from.

TurboFC3S
09-14-2001, 02:55 PM
Ok, got it working right ... whew!

Now what do you mean that feature to show the last thread name and link to it is already there? I have 2.0.3 and mine doesn't have that? Nor do any of the other forums I see.

Admin
09-14-2001, 04:43 PM
Go here:
http://www.vbulletin.com/forum/member.php?s=&action=getinfo&userid=5598

Can't you see the "Last Post:" part? :confused:

TurboFC3S
09-14-2001, 05:17 PM
Ahhh, you misunderstood me. Let me explain again - on the front page of the forum, where you have the forum list - UBB shows not only the time and poster in the Last Post column, but it also has the title of the last post in that forum as a link. I've seen a vB forum with that, wish I would have bookmarked it to show you what I mean.

Admin
09-14-2001, 05:22 PM
Ahhh I see. :)

Look here:
http://www.vbulletin.com/forum/showthread.php?s=&threadid=23302
and
http://www.vbulletin.com/forum/showthread.php?s=&threadid=22881

TurboFC3S
09-14-2001, 05:29 PM
I just found it myself ... but thanks again :D

Admin
09-14-2001, 05:31 PM
No problem. :)

But note that these hacks are quite buggy with sub-forums. (at least last time I checked)