PDA

View Full Version : First Post on every pages


AnhTuanCool
10-31-2004, 10:00 PM
Fully tested on vb 3.0.3
Request by Johnny

Hacks Stats:
Install diffuculty: medium
File to edit: 4
File to add: none
Template to edit: 3
Template to add: 1
Query to run: 1
Install time: less than 5 min

Description:
This hack add an additional option to show FIRSTPOST of the thread on every pages after page#1. Can be considered useful for some competition or request or chat chitting threads that need to review the rules or some marked things showed on the firstpost.

Feature:
- Show option to enable show firstpost for mod only
- Show option to enable for old thread too
- Show firstpost (if enable for thread) on everypage and doesn't count for postcount
- Click edit or quote as normal
- postbit Template
- show username and avatar as default

Feature has not achieved yet:
- Attachment in firstpost
- postbit_legacy template support
- Lessen 1 query for showthread.php

Update:
- The update came with a preset for forum that automatically enable this hack when new thread is made and option to turn on or off this hack overal (see attachment)

Installing instruction:
attachment

If you find this hack useful and want to inform any update, plz click INSTALL. Have fun ;)

EDIT: I've been gone and will be long from now, sorry if I can't support my hack as I specified before.

nexialys
10-31-2004, 11:00 PM
i like that idea... i was planning to build something similar, so it's good !

Amavisca
10-31-2004, 11:52 PM
NOt sure gonna use yet but seem nice to me. Thnx

Johnny
11-01-2004, 03:38 AM
this is one awsome mod for my site, AnhTuanCOol im gonna call you the god of vb3 hacking, you been making some awsome mods these few days. i been looking and trying to figure out how to create this mod for months and now its finally made. this is going to go perfect for my site when its done.

but is their anyway to have the option so the check box is already checked on certain forums already.

HiDeo
11-01-2004, 07:15 AM
Nice job, thanks

AnhTuanCool
11-01-2004, 12:39 PM
this is one awsome mod for my site, AnhTuanCOol im gonna call you the god of vb3 hacking, you been making some awsome mods these few days. i been looking and trying to figure out how to create this mod for months and now its finally made. this is going to go perfect for my site when its done.

but is their anyway to have the option so the check box is already checked on certain forums already.


You can use this script (in attachment) put in under yor admincp directory and run http://yourdomain/admincp/firstpostreset.php?do=edit or contact me invidually. Have fun ;)

PS: thank everyone

Johnny
11-01-2004, 01:47 PM
it works perfect just not able to view what forum ids i used.

AN-net
11-01-2004, 02:17 PM
so this is thread specific?

AnhTuanCool
11-01-2004, 02:55 PM
so this is thread specific?

Thread that has option to show. Just like close or open.

James T Brock
11-06-2004, 05:35 AM
Can I use this to set it to automatically show the first post of a thread(on every page) on any subforum I want, or would I or th thread starter have to do it manually to every thread? or can this be made into a preset only in a certain subforum?

AnhTuanCool
11-07-2004, 12:09 AM
This shows firstpost on everypage publicly, but the option to have it shown is only for Moderator or above. I just don't want to make the hack more complicate but if you want, just request here at once I'll make an add-on for this hack serve those things you want. ;)

James T Brock
11-08-2004, 11:11 AM
Ok, I just read over again what the mod does and it's fine the way it is. HOWEVER, if it's not too much to ask...I'd like it if you could make an add-on that either automatically did it for every thread in a specific subforum, or one that had a preset and allowed the thread-starters in that forum to do it themselves.

The mod is fine the way it is, but those would be added benefits.

TCattitude
11-09-2004, 01:10 AM
I'd like it if you could make an add-on that either automatically did it for every thread in a specific subforum

Right.
The same thing here :) Please

lancepoint
11-11-2004, 06:01 AM
How do i get this to look like vbulletin.orgs... where its has custom bold text with alternate table colors for custom defined text. The one used here is exactly what i want.

I have Attached a snapshot of what I am talking about.

AnhTuanCool
11-11-2004, 11:01 PM
vB.org may or maynot have the same one as I posted but I am SURE you can do that by editting the postbit_firstpost template. You may ask one of the staff to get those modification. ;)

lancepoint
11-12-2004, 12:12 AM
well im asking here.. is there a specific place i should ask or just repost it as a request?

AnhTuanCool
11-12-2004, 12:20 AM
Site Feedback forum, you might want to repost it in there. ;)

lancepoint
11-12-2004, 12:21 AM
thanks ...

lancepoint
11-12-2004, 07:27 PM
still no luck~

AnhTuanCool
11-15-2004, 10:26 PM
Ok, I just read over again what the mod does and it's fine the way it is. HOWEVER, if it's not too much to ask...I'd like it if you could make an add-on that either automatically did it for every thread in a specific subforum, or one that had a preset and allowed the thread-starters in that forum to do it themselves.

The mod is fine the way it is, but those would be added benefits.

I made the add-on, have fun ;)

https://vborg.vbsupport.ru/attachment.php?attachmentid=21783

TrangNgoc
12-12-2004, 10:47 PM
Thanks, installed :-)

Blindchild02
12-18-2004, 02:20 PM
how could i achieve this:

i want like... the first post to be the Vertical Vb3 one, and the rest of the posts to be vb2 (legacy)

Blindchild02
12-18-2004, 02:21 PM
also, the 1st post isnt showing up on everypage... :\

Blindchild02
12-19-2004, 01:28 PM
*bump* any help??

phprus
12-19-2004, 01:56 PM
Prompt how to add please a conclusion attachments in the firstpost?

phprus
12-20-2004, 02:53 PM
Well unless nobody knows as it to make?

Blindchild02
12-20-2004, 04:31 PM
im still tryin to get help on my problem.
the support seems very poor on this hack

Sulaiti
12-20-2004, 10:07 PM
run

UPDATE thread SET showfirstpost = 1

Blindchild02
12-21-2004, 12:37 AM
still isnt workin.
and i know i followed the hack correctly :\

EDIT: wait. on the first page its the old vb2 posbit (which is default) and on the 2nd page it shows up how i want it, the new vb3 one....

how do i make it so that the vb3 postbit is on every page?

Sulaiti
12-21-2004, 08:00 AM
fix :nervous:

in showthread.php
find:


if ($post['isdeleted'])
{
$template = 'postbit_deleted';
}



underneath that add:


else if($post['postid']==$threadinfo['firstpostid'])
{
$template ='postbit_firstpost';
}

Blindchild02
12-21-2004, 09:46 AM
sweet, that worked.
now how do i put the first post above the NEW REPLY button, and the page nav and the thread drop downs?

but it still has to look good, i added it above it, and it was all messed up lookin :p

phprus
12-22-2004, 10:07 AM
Help me please to change this hack that it showed the Attachments files.

peterska2
12-22-2004, 10:24 PM
It's not working here on my test site

[kicks self]

actually it is. I didn't find the First Post on every page option coz I was looking under the wrong menu :blush:

peterska2
12-22-2004, 10:44 PM
It's good :)

Installed and clicked :D

Just one quick question. Will you be adding ACP support at any point or is this not something that you are considering at the moment?

Blindchild02
12-23-2004, 02:56 AM
id still like my post to be addressed

"

now how do i put the first post above the NEW REPLY button, and the page nav and the thread drop downs?

but it still has to look good, i added it above it, and it was all messed up lookin

"

Sebastian
12-23-2004, 09:39 PM
what about the last post on every page? would seem more useful.

Moya
12-23-2004, 09:44 PM
what about the last post on every page? would seem more useful.


Urghhh how is that proved useful?

Sebastian
12-28-2004, 02:39 PM
well you can see what the last post was... just a reminder of what was last said on the previous page..

AnhTuanCool
12-29-2004, 01:03 AM
@BlindChild02 - you do want to put the new first post on top of the POST REPLY button and the thread navigation right?
This might help:
Open template SHOWTHREAD, erase

<if condition="$pagenumber != 1">
<div id="firstpost">$postbits_firstpost</div>
</if>
<div id="posts">$postbits</div>

Find:

<!-- controls above postbits -->

Add ABOVE:

<if condition="$pagenumber != 1">
<div id="firstpost">$postbits_firstpost</div>
</if>
<div id="posts">$postbits</div>

Done

@peteska2 - I didn't get what you said, do you mean about the update part?

Takamine334
12-29-2004, 02:08 AM
hi, excellent hack. Quick question. I read that attachments in the first post aren't supported. Is this still the case?

I'd definitely use it, but I'd need to let people have attachment access since I run a music site.

Blindchild02
12-29-2004, 02:50 AM
@BlindChild02 - you do want to put the new first post on top of the POST REPLY button and the thread navigation right?
This might help:
Open template SHOWTHREAD, erase

<if condition="$pagenumber != 1">
<div id="firstpost">$postbits_firstpost</div>
</if>
<div id="posts">$postbits</div>

Find:

<!-- controls above postbits -->

Add ABOVE:

<if condition="$pagenumber != 1">
<div id="firstpost">$postbits_firstpost</div>
</if>
<div id="posts">$postbits</div>

Done

@peteska2 - I didn't get what you said, do you mean about the update part?


that moved everything above the buttons.. and all the tables are about 90% instead of the 100%

AnhTuanCool
12-29-2004, 03:07 AM
In your template SHOWTHREAD
Find:

<if condition="$pagenumber != 1">
<div id="firstpost">$postbits_firstpost</div>
</if>
<div id="posts">$postbits</div>

Replace with

<if condition="$pagenumber != 1">
<div id="firstpost">$postbits_firstpost</div>
</if>


Very sorry because I typed all this right out of my mind, I don't have any tools with me now...and if it still gets errors, just post it and I think them out. Thanks

Blindchild02
12-29-2004, 04:49 AM
not workin... :\ that removes the actual postbits

AnhTuanCool
12-29-2004, 04:02 PM
Find:

<!-- start content table -->

Replace with:


<div id="posts">$postbits</div>

<!-- start content table -->


I think this is enough, good luck :)

Blindchild02
12-29-2004, 04:29 PM
http://www.imageranch.com/files/1104344953_showthread.gif

this is what happens when i follow all those steps....
it seems to be in the middle of all the posts... dunno why,
and the other posts are only 90% and the first post is 100%

lasto
12-29-2004, 04:33 PM
can see the problem straight away - u never gave the woman in your sig time to undress :)

AnhTuanCool
12-29-2004, 05:06 PM
@BlindChild - Here it is :D
Last update I believe
Revert your SHOWTHREAD template and remember to save your further modification than this one so you can hack it back later.
In your SHOWTHREAD template, find:

<!-- controls above postbits -->

Replace with

<if condition="$pagenumber != 1">
<div width="100%" id="firstpost">$postbits_firstpost</div>
</if>

<!-- controls above postbits -->

Save
In your postbit_firstpost template
Remove this part:

<if condition="$show['spacer']">
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">
<if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>
</if>


Remove this also:

<if condition="$show['spacer']">
</div>
$spacer_close
</if>

Done

Blindchild02
12-29-2004, 06:23 PM
worked. lol thank you

wait. no. on the 1st page its ++++ed up :\
but on 2nd and so on its fine..

AnhTuanCool
12-29-2004, 07:47 PM
What's wrong? I checked my test board with a thread on the first page, it still normal.

Blindchild02
12-29-2004, 07:54 PM
Heres my SHOWTHREAD

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - $thread[title]</title>
$headinclude

</head>
<body onload="$onload">
$header
$navbar

$poll

<a name="poststop" id="poststop"></a>

<if condition="$pagenumber != 1">
<div width="100%" id="firstpost">$postbits_firstpost</div>
</if>
<br>
<!-- controls above postbits -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
<if condition="$show['largereplybutton']">
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
<else />
<td class="smallfont">&nbsp;</td>
</if>
<if condition="$show['pagenav']"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
<!-- / controls above postbits -->

<!-- toolbar -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
<td class="tcat" width="100%">
<div class="smallfont">
<if condition="$show['firstunreadlink']">
<a href="$firstunread"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[view_first_unread]" border="0" /></a>
<a href="$firstunread"><strong>$vbphrase[view_first_unread]</strong></a>
</if>
&nbsp;
</div>
</td>
<td class="vbmenu_control" id="threadtools">
<a href="#goto_threadtools"<if condition="is_browser('ie')"> accesskey="3"</if>>$vbphrase[thread_tools]</a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadtools"); </script></if>
</td>
<if condition="$show['search']">
<td class="vbmenu_control" id="threadsearch">
<a href="#goto_threadsearch">$vbphrase[search_this_thread]</a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadsearch"); </script></if>
</td>
</if>
<if condition="$show['threadrating']">
<td class="vbmenu_control" id="threadrating">
<a href="#goto_threadrating"><if condition="$show['rating']">$vbphrase[rating]: <img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" border="0" /><else />$vbphrase[rate_thread]</if></a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadrating"); </script></if>
</td>
</if>
<if condition="$vboptions['allowthreadedmode']">
<td class="vbmenu_control" id="displaymodes">
<a href="#goto_displaymodes">$vbphrase[display_modes]</a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("displaymodes"); </script></if>
</td>
</if>
</tr>
</table>
<!-- / toolbar -->

<!-- end content table -->
$spacer_close
<!-- / end content table -->

<if condition="$show['threadedmode'] OR $show['hybridmode']">
<!-- thread posts list -->
$threadlist
<!-- /thread posts list -->
</if>


<div id="posts">$postbits</div>

<!-- start content table -->
$spacer_open
<!-- / start content table -->
<br>

<!-- controls below postbits -->
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr valign="top">
<if condition="$show['largereplybutton']">
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$LASTPOSTID"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
<else />
<td class="smallfont">&nbsp;</td>
</if>
<if condition="$show['pagenav']"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
<!-- / controls below postbits -->

<br />

<div class="smallfont" align="center">
<strong>&laquo;</strong>
<a href="showthread.php?$session[sessionurl]t=$threadid&amp;goto=nextoldest">$vbphrase[prev_thread]</a>
|
<a href="showthread.php?$session[sessionurl]t=$threadid&amp;goto=nextnewest">$vbphrase[next_thread]</a>
<strong>&raquo;</strong>
</div>

<br />

$quickreply

<!-- currently active users -->
<if condition="$show['activeusers']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="2">
<phrase 1="$totalonline" 2="$numberregistered" 3="$numberguest">$vbphrase[users_viewing_this_thread_x_y_z]</phrase>
</td>
</tr>
<tr>
<td class="alt1" colspan="2">
<span class="smallfont">$activeusers</span>
</td>
</tr>
</table>
</if>
<!-- currently active users -->














<if condition="$show['popups']">
<!-- popup menu contents -->
<br />

<!-- thread tools menu -->
<div class="vbmenu_popup" id="threadtools_menu" style="display:none">
<form action="postings.php" method="post" name="threadadminform">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[thread_tools]<a name="goto_threadtools"></a></td>
</tr>
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt="$vbphrase[show_printable_version]" /> <a href="printthread.php?$session[sessionurl]t=$threadid" accesskey="3">$vbphrase[show_printable_version]</a></td>
</tr>
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[email_this_page]" /> <a href="sendmessage.php?$session[sessionurl]do=sendtofriend&amp;t=$threadid">$vbphrase[email_this_page]</a></td>
</tr>
<if condition="$show['member']">
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" />
<if condition="$show['subscribed']">
<a href="subscription.php?$session[sessionurl]do=removesubscription&amp;t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
<else />
<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
</if>
</td>
</tr>
</if>
<if condition="$show['addpoll']">
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/addpoll.gif" alt="$vbphrase[add_a_poll]" /> <a href="poll.php?$session[sessionurl]do=newpoll&amp;t=$threadinfo[threadid]">$vbphrase[add_a_poll_to_this_thread]</a></td>
</tr>
</if>
<if condition="$show['adminoptions']">
<tr>
<td class="thead">$vbphrase[admin_tools]<a name="goto_threadadmin"></a></td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<div><label for="ao_oct"><input type="radio" name="do" id="ao_oct" value="openclosethread" checked="checked" /><if condition="$show['closethread']">$vbphrase[close_thread]<else />$vbphrase[open_thread]</if></label></div>
<div><label for="ao_mvt"><input type="radio" name="do" id="ao_mvt" value="movethread" />$vbphrase[move_copy_thread]</label></div>
<div><label for="ao_sut"><input type="radio" name="do" id="ao_sut" value="stick" /><if condition="$show['unstick']">$vbphrase[unstick_thread]<else />$vbphrase[stick_thread]</if></label></div>
<div><label for="ao_edt"><input type="radio" name="do" id="ao_edt" value="editthread" />$vbphrase[edit_thread]</label></div>
<div><label for="ao_dlt"><input type="radio" name="do" id="ao_dlt" value="deletethread" />$vbphrase[delete_thread]</label></div>
<div><label for="ao_dlp"><input type="radio" name="do" id="ao_dlp" value="deleteposts" />$vbphrase[delete_posts]</label></div>
<div><label for="ao_mgt"><input type="radio" name="do" id="ao_mgt" value="mergethread" />$vbphrase[merge_threads]</label></div>
<div><label for="ao_spt"><input type="radio" name="do" id="ao_spt" value="splitthread" />$vbphrase[split_thread]</label></div>
<div><label for="ao_rrd"><input type="radio" name="do" id="ao_rrd" value="removeredirect" />$vbphrase[remove_redirects]</label></div>
<if condition="$show['editpoll']"><div><label for="ao_edp"><input type="radio" name="do" id="ao_edp" value="editpoll" />$vbphrase[edit_poll]</label></div></if>
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite" align="center">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="t" value="$threadid" />
<input type="hidden" name="pollid" value="$pollid" />
<input type="submit" class="button" value="$vbphrase[perform_action]" />
</td>
</tr>
</if>
</table>
</form>
</div>
<!-- / thread tools menu -->

<!-- ************************************************** ** -->

<!-- thread display mode menu -->
<div class="vbmenu_popup" id="displaymodes_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[display_modes]<a name="goto_displaymodes"></a></td>
</tr>
<tr>
<if condition="$show['linearmode']">
<td class="vbmenu_option" title="nohilite"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_linear.gif" alt="$vbphrase[linear_mode]" /> <strong>$vbphrase[linear_mode]</strong></td>
<else />
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_linear.gif" alt="$vbphrase[linear_mode]" /> <a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&amp;mode=linear$highlightwords#post$FIR STPOSTID">$vbphrase[switch_to_linear_mode]</a></td>
</if>
</tr>
<tr>
<if condition="$show['hybridmode']">
<td class="vbmenu_option" title="nohilite"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_hybrid.gif" alt="$vbphrase[hybrid_mode]" /> <strong>$vbphrase[hybrid_mode]</strong></td>
<else />
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_hybrid.gif" alt="$vbphrase[hybrid_mode]" /> <a href="showthread.php?$session[sessionurl]mode=hybrid&amp;t=$thread[threadid]$highlightwords">$vbphrase[switch_to_hybrid_mode]</a></td>
</if>
</tr>
<tr>
<if condition="$show['threadedmode']">
<td class="vbmenu_option" title="nohilite"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_threaded.gif" alt="$vbphrase[threaded_mode]" /> <strong>$vbphrase[threaded_mode]</strong></td>
<else />
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_threaded.gif" alt="$vbphrase[threaded_mode]" /> <a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&amp;mode=threaded$highlightwords#post$F IRSTPOSTID">$vbphrase[switch_to_threaded_mode]</a></td>
</if>
</tr>
</table>
</div>
<!-- / thread display mode menu -->

<!-- ************************************************** ** -->

<if condition="$show['search']">
<!-- thread search menu -->
<div class="vbmenu_popup" id="threadsearch_menu" style="display:none">
<form action="search.php" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_this_thread]<a name="goto_threadsearch"></a></td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="searchthread" value="1" />
<input type="hidden" name="showposts" value="1" />
<input type="hidden" name="searchthreadid" value="$threadid" />
<input type="text" class="bginput" name="query" size="20" />$gobutton<br />
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</form>
</div>
<!-- / thread search menu -->
</if>

<!-- ************************************************** ** -->

<!-- thread rating menu -->
<div class="vbmenu_popup" id="threadrating_menu" style="display:none">
<form action="threadrate.php" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>







<td class="thead">$vbphrase[rate_this_thread]<a name="goto_threadrating"></a></td>
</tr>
<if condition="$show['ratethread']">
<tr>
<td class="vbmenu_option" title="nohilite">
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_5.gif" alt="$vbphrase[excellent]" /><label for="vote5"><input type="radio" name="vote" id="vote5" value="5" $votechecked[5] />$vbphrase[excellent]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_4.gif" alt="$vbphrase[good]" /><label for="vote4"><input type="radio" name="vote" id="vote4" value="4" $votechecked[4] />$vbphrase[good]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_3.gif" alt="$vbphrase[average]" /><label for="vote3"><input type="radio" name="vote" id="vote3" value="3" $votechecked[3] />$vbphrase[average]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_2.gif" alt="$vbphrase[bad]" /><label for="vote2"><input type="radio" name="vote" id="vote2" value="2" $votechecked[2] />$vbphrase[bad]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_1.gif" alt="$vbphrase[terrible]" /><label for="vote1"><input type="radio" name="vote" id="vote1" value="1" $votechecked[1] />$vbphrase[terrible]</label></div>
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite" align="center">
<input type="hidden" name="s" value="$session[dbsessionhash]" />
<input type="hidden" name="t" value="$threadid" />
<input type="hidden" name="pp" value="$perpage" />
<input type="hidden" name="page" value="$pagenumber" />
<input type="submit" class="button" value="$vbphrase[vote_now]" />
</td>
</tr>
<else />
<tr>
<td>$vbphrase[already_rated_this_thread]</td>
</tr>
</if>
</table>
</form>
</div>
<!-- / thread rating menu -->


<!-- / popup menu contents -->
<else />
<!-- controls for non-popup browsers -->


<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-top-width:0px">
<tr>
<td class="thead" <if condition="!$show['search']">colspan="2"</if>>$vbphrase[thread_tools]<a name="goto_threadtools"></a></td>
<if condition="$show['search']"><td class="thead">$vbphrase[search_this_thread]<a name="goto_threadsearch"></a></td></if>
</tr>
<tr valign="top">
<td class="alt1" <if condition="!$show['search']">colspan="2"</if>>

<!-- thread tools -->
<div class="smallfont">
<div><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt="$vbphrase[show_printable_version]" vspace="1" /> <a href="printthread.php?$session[sessionurl]t=$threadid" accesskey="p">$vbphrase[show_printable_version]</a></div>
<div><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[email_this_page]" vspace="1" /> <a href="sendmessage.php?$session[sessionurl]do=sendtofriend&amp;t=$threadid">$vbphrase[email_this_page]</a></div>
<if condition="$show['member']">
<div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" vspace="1" />
<if condition="$show['subscribed']">
<a href="subscription.php?$session[sessionurl]do=removesubscription&amp;t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
<else />
<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
</if>
</div>
</if>
<if condition="$show['addpoll']">
<div><img class="inlineimg" src="$stylevar[imgdir_button]/addpoll.gif" alt="$vbphrase[add_a_poll]" vspace="1" /> <a href="poll.php?$session[sessionurl]do=newpoll&amp;t=$threadinfo[threadid]">$vbphrase[add_a_poll_to_this_thread]</a></div>
</if>
</div>
<!-- / thread tools -->

</td>
<if condition="$show['search']">
<td class="alt1">

<!-- search this thread -->
<form action="search.php" method="post">
<div class="smallfont">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="searchthread" value="1" />
<input type="hidden" name="showposts" value="1" />
<input type="hidden" name="searchthreadid" value="$threadid" />
<strong>$vbphrase[search_this_thread]</strong>:<br />
<input type="text" class="bginput" name="query" size="20" style="width:175px" />$gobutton<br />
<a href="search.php?$session[sessionurl]">$vbphrase[advanced_search]</a>
</div>
</form>
<!-- / search this thread -->

</td>
</if>
</tr>
<if condition="$vboptions['allowthreadedmode'] OR $show['threadrating']">
<tr>
<if condition="$vboptions['allowthreadedmode']"><td class="thead" $nodhtmlcolspan>$vbphrase[display_modes]<a name="goto_displaymodes"></a></td></if>
<if condition="$show['threadrating']"><td class="thead" $nodhtmlcolspan>$vbphrase[rate_this_thread]<a name="goto_threadrating"></a></td></if>
</tr>
<tr valign="top">
<if condition="$vboptions['allowthreadedmode']">
<td class="alt2" $nodhtmlcolspan>

<!-- thread display modes -->

<div class="smallfont">
<div><img class="inlineimg" src="$stylevar[imgdir_button]/mode_linear.gif" alt="$vbphrase[linear_mode]" vspace="1" /> <if condition="$show['linearmode']"><strong>$vbphrase[linear_mode]</strong><else /><a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&amp;mode=linear$highlightwords#post$FIR STPOSTID">$vbphrase[switch_to_linear_mode]</a></if></div>
<div><img class="inlineimg" src="$stylevar[imgdir_button]/mode_hybrid.gif" alt="$vbphrase[hybrid_mode]" vspace="1" /> <if condition="$show['hybridmode']"><strong>$vbphrase[hybrid_mode]</strong><else /><a href="showthread.php?$session[sessionurl]mode=hybrid&amp;t=$thread[threadid]$highlightwords">$vbphrase[switch_to_hybrid_mode]</a></if></div>
<div><img class="inlineimg" src="$stylevar[imgdir_button]/mode_threaded.gif" alt="$vbphrase[threaded_mode]" vspace="1" /> <if condition="$show['threadedmode']"><strong>$vbphrase[threaded_mode]</strong><else /><a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&amp;mode=threaded$highlightwords#post$F IRSTPOSTID">$vbphrase[switch_to_threaded_mode]</a></if></div>
</div>

<!-- / thread display modes -->

</td>
</if>
<if condition="$show['threadrating']">
<td class="alt2" $nodhtmlcolspan>

<!-- rate this thread -->
<form action="threadrate.php" method="post">
<div class="smallfont">
<input type="hidden" name="s" value="$session[dbsessionhash]" />
<input type="hidden" name="t" value="$threadid" />
<input type="hidden" name="pp" value="$perpage" />
<input type="hidden" name="page" value="$pagenumber" />
<strong>$vbphrase[rate_this_thread]</strong>:<br />
<select name="vote" onchange="this.form.submit()" style="width:175px">
<optgroup label="$vbphrase[choose_a_rating]">
<option value="5" $voteselected[5]>5 : $vbphrase[excellent]</option>
<option value="4" $voteselected[4]>4 : $vbphrase[good]</option>
<option value="3" $voteselected[3]>3 : $vbphrase[average]</option>
<option value="2" $voteselected[2]>2 : $vbphrase[bad]</option>
<option value="1" $voteselected[1]>1 : $vbphrase[terrible]</option>
</optgroup>
</select>$gobutton
</div>
</form>
<!-- / rate this thread -->

</td>
</if>
</tr>
</if>
</table>
<br />


<!-- / controls for non-popup browsers -->
</if>
















<!-- forum rules and admin links -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr valign="bottom">
<td class="smallfont" align="$stylevar[left]">
$forumrules
</td>
<td class="smallfont" align="$stylevar[right]">
<table cellpadding="0" cellspacing="0" border="0">
<if condition="!$show['popups'] AND $show['adminoptions']">
<tr>
<td>
<div class="smallfont" style="text-align:$stylevar[left]; white-space:nowrap">
<form action="postings.php" method="post" name="adminoptionsform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="t" value="$threadid" />
<strong>$vbphrase[admin_tools]</strong>:<br />
<select name="do" onchange="this.form.submit()">
<optgroup label="$vbphrase[thread_admin_tools]">
<option value="openclosethread" selected="selected"><if condition="$show['closethread']">$vbphrase[close_thread]<else />$vbphrase[open_thread]</if></option>
<option value="movethread">$vbphrase[move_copy_thread]</option>
<option value="stick"><if condition="$show['unstick']">$vbphrase[unstick_thread]<else />$vbphrase[stick_thread]</if></option>
<option value="editthread">$vbphrase[edit_thread]</option>
<option value="deletethread">$vbphrase[delete_thread]</option>
<option value="deleteposts">$vbphrase[delete_posts]</option>
<option value="mergethread">$vbphrase[merge_threads]</option>
<option value="splitthread">$vbphrase[split_thread]</option>
<option value="removeredirect">$vbphrase[remove_redirects]</option>
</optgroup>
</select>$gobutton
</form>
</div>
</td>
</tr>
<br />
</if>
<tr>
<td>
$forumjump
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- /forum rules and admin links -->

<br />

$similarthreads

<br />

$footer

<!-- temp -->
<div style="display:none">
<!-- thread rate -->
<if condition="$show['ratethread']">
<!-- thread ratings form here -->
<else />
<if condition="$show['threadrating']">
$vbphrase[you_rated_this_thread]: <b>$threadinfo[vote]</b>
</if>
</if>
<!-- / thread rate -->
</div>

</body>
</html>


Heres my postbit_firstpost

<!-- post #$post[postid] -->


<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
<td class="tcat" width="100%">

<div align="center"> <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if> </div>

</td>
<if condition="$show['search']"> </if> <if condition="$show['threadrating']">
</if> <if condition="$vboptions['allowthreadedmode']"> </if> </tr>
</table>


<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" $scrolltothis> <div class="normal" style="float:$stylevar[right]">
&nbsp; <a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new"><strong>First
post of this thread</strong></a> &nbsp; <if condition="$show['reputationlink']"><a href="#" onclick="return reputation($post[postid])"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>"
border="0" /></a> &nbsp;</if> <if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a>
&nbsp;</if> $post[iplogged] </div>
<div class="normal">
<!-- status icon and date -->
<a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
<if condition="!$show['announcement']"> $post[postdate]<if condition="!$show['detailedtime']">,
$post[posttime]</if> <else /> <phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</if> $post[firstnewinsert]
<!-- / status icon and date -->
</div></td>
</tr>
<tr>
<td class="alt2" style="padding:0px">
<!-- user info -->
<table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
<tr> <if condition="$show['avatar']">
<td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>"
border="0" /></a></td>
</if>
<td nowrap="nowrap"> <div id="postmenu_$post[postid]"> <if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]<br>
</a>$post[onlinestatus]
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else /> $post[musername]</if></div>
<if condition="$post['usertitle']">
<div class="smallfont">$post[usertitle]</div>
</if> <if condition="$post['rank']">
<div class="smallfont">$post[rank]</div>
</if> </td>
<td width="100%">&nbsp;</td>
<td valign="top" nowrap="nowrap"> <div class="smallfont"> <if condition="$post['joindate']">
<div>$vbphrase[join_date]: <strong>$post[joindate]</strong></div>
</if> <if condition="$post['field2']">
<div>$vbphrase[location_perm]: <strong>$post[field2]</strong></div>
</if> <if condition="$post['age']">
<div>$vbphrase[age]: <strong>$post[age]</strong></div>
</if> <div> $vbphrase[posts]: <strong>$post[posts]</strong></div></td>
</tr>
</table>
<!-- / user info -->
</td>
</tr>
<tr>
<td class="alt1">
<!-- message, attachments, sig -->
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont"> <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if> </div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
</if>
<!-- message -->
<div>$post[message]</div>
<!-- / message -->


</td>
</tr>
<tr>
<td class="alt1">

<if condition="$show['attachments']">
<!-- attachments -->
<div style="padding:$stylevar[cellpadding]px"> <if condition="$show['thumbnailattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_thumbnails]</legend>
<div style="padding:$stylevar[formspacer]px"> $post[thumbnailattachments]
</div>
</fieldset>
</if> <if condition="$show['imageattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<div style="padding:$stylevar[formspacer]px"> $post[imageattachments]
</div>
</fieldset>
</if> <if condition="$show['imageattachmentlink']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</fieldset>
</if> <if condition="$show['otherattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_files]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
</fieldset>
</if> <if condition="$show['moderatedattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attachments_pending_approval]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
</fieldset>
</if> </div>
<!-- / attachments -->


</td>
</tr>
<tr>
<td class="alt1">

</if> <if condition="$post['signature']">
<!-- sig -->
<div> __________________<br />
$post[signature] </div>
<!-- / sig -->


</td>
</tr>
<tr>
<td class="alt1">

</if> <if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont">
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<em> <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
</em> </div>
<!-- / edit note -->
</if> <div align="$stylevar[right]">
<!-- controls -->
<if condition="$post['editlink']"> <a href="$post[editlink]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if> <if condition="$post['forwardlink']"> <a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if> <if condition="$post['replylink']"> <a href="$post[replylink]"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif"
alt="$vbphrase[reply_with_quote]" border="0" /></a> </if> <if condition="$SHOWQUICKREPLY AND !$show['threadedmode']">
<a href="$post[replylink]" onclick="return qr($post[postid]);"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<!-- / controls -->
</div>
<!-- message, attachments, sig -->


</td>
</tr>
</table>

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]userid=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
</table>
</div>
<!-- / post $post[postid] popup menu -->





<!-- / post #$post[postid] -->

AnhTuanCool
12-30-2004, 01:37 AM
Replace your postbit_firstpost with this


<!-- post #$post[postid] -->
<if condition="$show['spacer'] AND $pagenumber == 1">
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">
<if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>
</if>

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
<td class="tcat" width="100%">

<div align="center"> <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if> </div>

</td>
<if condition="$show['search']"> </if> <if condition="$show['threadrating']">
</if> <if condition="$vboptions['allowthreadedmode']"> </if> </tr>
</table>


<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" $scrolltothis> <div class="normal" style="float:$stylevar[right]">
&nbsp; <a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new"><strong>First
post of this thread</strong></a> &nbsp; <if condition="$show['reputationlink']"><a href="#" onclick="return reputation($post[postid])"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>"
border="0" /></a> &nbsp;</if> <if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a>
&nbsp;</if> $post[iplogged] </div>
<div class="normal">
<!-- status icon and date -->
<a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
<if condition="!$show['announcement']"> $post[postdate]<if condition="!$show['detailedtime']">,
$post[posttime]</if> <else /> <phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</if> $post[firstnewinsert]
<!-- / status icon and date -->
</div></td>
</tr>
<tr>
<td class="alt2" style="padding:0px">
<!-- user info -->
<table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
<tr> <if condition="$show['avatar']">
<td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>"
border="0" /></a></td>
</if>
<td nowrap="nowrap"> <div id="postmenu_$post[postid]"> <if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]<br>
</a>$post[onlinestatus]
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else /> $post[musername]</if></div>
<if condition="$post['usertitle']">
<div class="smallfont">$post[usertitle]</div>
</if> <if condition="$post['rank']">
<div class="smallfont">$post[rank]</div>
</if> </td>
<td width="100%">&nbsp;</td>
<td valign="top" nowrap="nowrap"> <div class="smallfont"> <if condition="$post['joindate']">
<div>$vbphrase[join_date]: <strong>$post[joindate]</strong></div>
</if> <if condition="$post['field2']">
<div>$vbphrase[location_perm]: <strong>$post[field2]</strong></div>
</if> <if condition="$post['age']">
<div>$vbphrase[age]: <strong>$post[age]</strong></div>
</if> <div> $vbphrase[posts]: <strong>$post[posts]</strong></div></td>
</tr>
</table>
<!-- / user info -->
</td>
</tr>
<tr>
<td class="alt1">
<!-- message, attachments, sig -->
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont"> <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if> </div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
</if>
<!-- message -->
<div>$post[message]</div>
<!-- / message -->


</td>
</tr>
<tr>
<td class="alt1">

<if condition="$show['attachments']">
<!-- attachments -->
<div style="padding:$stylevar[cellpadding]px"> <if condition="$show['thumbnailattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_thumbnails]</legend>
<div style="padding:$stylevar[formspacer]px"> $post[thumbnailattachments]
</div>
</fieldset>
</if> <if condition="$show['imageattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<div style="padding:$stylevar[formspacer]px"> $post[imageattachments]
</div>
</fieldset>
</if> <if condition="$show['imageattachmentlink']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</fieldset>
</if> <if condition="$show['otherattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_files]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
</fieldset>
</if> <if condition="$show['moderatedattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attachments_pending_approval]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
</fieldset>
</if> </div>
<!-- / attachments -->


</td>
</tr>
<tr>
<td class="alt1">

</if> <if condition="$post['signature']">
<!-- sig -->
<div> __________________<br />
$post[signature] </div>
<!-- / sig -->


</td>
</tr>
<tr>
<td class="alt1">

</if> <if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont">
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<em> <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
</em> </div>
<!-- / edit note -->
</if> <div align="$stylevar[right]">
<!-- controls -->
<if condition="$post['editlink']"> <a href="$post[editlink]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if> <if condition="$post['forwardlink']"> <a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if> <if condition="$post['replylink']"> <a href="$post[replylink]"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif"
alt="$vbphrase[reply_with_quote]" border="0" /></a> </if> <if condition="$SHOWQUICKREPLY AND !$show['threadedmode']">
<a href="$post[replylink]" onclick="return qr($post[postid]);"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<!-- / controls -->
</div>
<!-- message, attachments, sig -->


</td>
</tr>
</table>

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]userid=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
</table>
</div>
<!-- / post $post[postid] popup menu -->



<if condition="$show['spacer'] AND $pagenumber == 1">
</div>
$spacer_close
</if>

<!-- / post #$post[postid] -->

Done man

Blindchild02
12-30-2004, 05:33 AM
not fixed :\

look here... http://www.xamira.net/forums/showthread.php?t=2166
page 1 is messed up.
page 2 is fine.

AnhTuanCool
12-30-2004, 02:38 PM
You probably did something wrong to the source file, the firstpost on the firstpage isn't supposed to be in different form to the others. Ok so now revert your showthread.php and remember to save those further modification, hack this again, see if it works

Blindchild02
12-30-2004, 04:44 PM
thats there.... :\

Takamine334
12-31-2004, 11:38 PM
when are attachments going to be working?

bold
01-01-2005, 01:08 AM
I made the add-on, have fun ;)

https://vborg.vbsupport.ru/attachment.php?attachmentid=21783

I've added this, but how do you preset the forums?

EDIT: Oh nvm, it was in Thread Display Options.

Takamine334
01-06-2005, 09:53 PM
please answer my question.

aussiev8
01-07-2005, 12:43 AM
thanks! very interested in this! i have a competion section that could really benefit from this!

Blindchild02
01-08-2005, 09:43 PM
mine is still messed up :(

Aros
01-09-2005, 12:40 AM
If you want the attachments to work, please read this;

If you have the hack installed search in showthread.php for:
$post['musername'] = fetch_musername($firstpost);
Add Below:
$firstpost['attachments'] = &$postattach["$firstpost[postid]"];

And done :)

AnhTuanCOol if you want to update your hack with this, that's fine.

Takamine334
01-11-2005, 04:17 PM
Replace your postbit_firstpost with this


<!-- post #$post[postid] -->
<if condition="$show['spacer'] AND $pagenumber == 1">
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">
<if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>
</if>

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
<td class="tcat" width="100%">

<div align="center"> <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if> </div>

</td>
<if condition="$show['search']"> </if> <if condition="$show['threadrating']">
</if> <if condition="$vboptions['allowthreadedmode']"> </if> </tr>
</table>


<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" $scrolltothis> <div class="normal" style="float:$stylevar[right]">
&nbsp; <a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new"><strong>First
post of this thread</strong></a> &nbsp; <if condition="$show['reputationlink']"><a href="#" onclick="return reputation($post[postid])"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>"
border="0" /></a> &nbsp;</if> <if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a>
&nbsp;</if> $post[iplogged] </div>
<div class="normal">
<!-- status icon and date -->
<a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
<if condition="!$show['announcement']"> $post[postdate]<if condition="!$show['detailedtime']">,
$post[posttime]</if> <else /> <phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</if> $post[firstnewinsert]
<!-- / status icon and date -->
</div></td>
</tr>
<tr>
<td class="alt2" style="padding:0px">
<!-- user info -->
<table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
<tr> <if condition="$show['avatar']">
<td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>"
border="0" /></a></td>
</if>
<td nowrap="nowrap"> <div id="postmenu_$post[postid]"> <if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]<br>
</a>$post[onlinestatus]
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else /> $post[musername]</if></div>
<if condition="$post['usertitle']">
<div class="smallfont">$post[usertitle]</div>
</if> <if condition="$post['rank']">
<div class="smallfont">$post[rank]</div>
</if> </td>
<td width="100%">&nbsp;</td>
<td valign="top" nowrap="nowrap"> <div class="smallfont"> <if condition="$post['joindate']">
<div>$vbphrase[join_date]: <strong>$post[joindate]</strong></div>
</if> <if condition="$post['field2']">
<div>$vbphrase[location_perm]: <strong>$post[field2]</strong></div>
</if> <if condition="$post['age']">
<div>$vbphrase[age]: <strong>$post[age]</strong></div>
</if> <div> $vbphrase[posts]: <strong>$post[posts]</strong></div></td>
</tr>
</table>
<!-- / user info -->
</td>
</tr>
<tr>
<td class="alt1">
<!-- message, attachments, sig -->
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont"> <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if> </div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
</if>
<!-- message -->
<div>$post[message]</div>
<!-- / message -->


</td>
</tr>
<tr>
<td class="alt1">

<if condition="$show['attachments']">
<!-- attachments -->
<div style="padding:$stylevar[cellpadding]px"> <if condition="$show['thumbnailattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_thumbnails]</legend>
<div style="padding:$stylevar[formspacer]px"> $post[thumbnailattachments]
</div>
</fieldset>
</if> <if condition="$show['imageattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<div style="padding:$stylevar[formspacer]px"> $post[imageattachments]
</div>
</fieldset>
</if> <if condition="$show['imageattachmentlink']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</fieldset>
</if> <if condition="$show['otherattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_files]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
</fieldset>
</if> <if condition="$show['moderatedattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attachments_pending_approval]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
</fieldset>
</if> </div>
<!-- / attachments -->


</td>
</tr>
<tr>
<td class="alt1">

</if> <if condition="$post['signature']">
<!-- sig -->
<div> __________________<br />
$post[signature] </div>
<!-- / sig -->


</td>
</tr>
<tr>
<td class="alt1">

</if> <if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont">
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<em> <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
</em> </div>
<!-- / edit note -->
</if> <div align="$stylevar[right]">
<!-- controls -->
<if condition="$post['editlink']"> <a href="$post[editlink]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if> <if condition="$post['forwardlink']"> <a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if> <if condition="$post['replylink']"> <a href="$post[replylink]"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif"
alt="$vbphrase[reply_with_quote]" border="0" /></a> </if> <if condition="$SHOWQUICKREPLY AND !$show['threadedmode']">
<a href="$post[replylink]" onclick="return qr($post[postid]);"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<!-- / controls -->
</div>
<!-- message, attachments, sig -->


</td>
</tr>
</table>

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]userid=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
</table>
</div>
<!-- / post $post[postid] popup menu -->



<if condition="$show['spacer'] AND $pagenumber == 1">
</div>
$spacer_close
</if>

<!-- / post #$post[postid] -->

Done man

That doesn't seem to work. Page 1 is messed up, but page 2,3,4,etc are fine. How can we fix this?

Takamine334
01-24-2005, 02:04 AM
anyone? Is the hacker still giving support on this?

Aros
02-06-2005, 08:41 AM
anyone? Is the hacker still giving support on this?
It works fine for me, can you link me to your page where it messes up?

ericgtr
03-06-2005, 01:57 PM
Thanks, nice hack! Just a question though, the "update showfirstpost preset.txt" says:

Show First Post On every pages of Thread Preset for Forum
This update adds an option to enable this hack overal and one to specify the forum that automatically enabled this hack when new thread is made.

Where do we set (specifiy) this on a per forum basis?

Osterling
03-06-2005, 02:24 PM
will you be tell what forum you want this on and what forums you do not..

Reaktor7
03-15-2005, 04:55 AM
I havent installed it wrong but when i use the legacy_postbits (ie the vertical column for the user info, the top post still shows as a normal postbit and im unsure how to change it.

AnhTuanCool
03-23-2005, 01:00 PM
Thanks, nice hack! Just a question though, the "update showfirstpost preset.txt" says:

Where do we set (specifiy) this on a per forum basis?

It's in the vbulletin option.

Hellspire
05-04-2005, 06:47 PM
Nice hack, made my life easier (was going to code this myself) although still a few kinks to work out. I will investigate these kinks later today when I get home from work and report my findings.

almqdad
05-05-2005, 12:14 AM
has any body tried it on 3.06

index
05-24-2005, 03:56 PM
Hi there

I want to know if I can change the look of the firts post without showing it in the all pages if theres a way

Thanks a lot

index

AnhTuanCool
05-30-2005, 01:53 PM
Hi there



I want to know if I can change the look of the firts post without showing it in the all pages if theres a way

Thanks a lot

index

Make changes in either postbit or postbit_legacy template (which you use).

index
05-31-2005, 12:46 PM
Hi AnhTuanCool


Thanks a lot for replying, I didn't get what you wrote at all :( can you tell me in details a lel bit so I can do it


Thanks a lot

ProperMethodz
06-04-2005, 12:30 AM
Cool... My problem isn't here... or maybe it isn't a problem.

I installed it and it works great on threads while they're created. I would like to do this on some threads which are already posted, but when I hit edit there is no option for this.

Did I skip a step or something?

EDIT: I found it... but it shows two boxes. I realized later you need to use thread tools>edit thread to do this.

Can you help with the two boxes? What code would be pertinant for me to post so that you can see what I've done wrong?

ProperMethodz
06-06-2005, 07:19 PM
Hm... I read earlier that the support on this one was rather slow... Guess you people weren't kidding.

COBRAws
07-11-2005, 02:50 PM
3.0.7? does this work? i dont want to install and see it wont work
thanks

armkbdotcom
08-19-2005, 08:23 PM
I'm also wondering if someone istalled this on 3.0.7
Or is there more advanced version of this to be able to stick first posts on desirable threads only?

Deska
08-31-2005, 04:26 AM
I install on v3.0.8 and it's work only on page 1, on page 2,3,4... not show up :(
Anyone know how to fix it?

Thank's for any help....

armkbdotcom
09-02-2005, 01:55 PM
I guess this hack is not supported anymore.
Very sad...

Deska
09-03-2005, 11:43 AM
Too bad then... :(

Deska
09-16-2005, 10:23 AM
I can pay if someone could help to fix this hack.
Thank's...

BigMac1111
09-27-2005, 06:44 PM
y not? has AnhTuanCOol left?

i've got a problem...

i can't make first post to be shown on every page if i edit a thread.
there is no checkbox for that.
i can't see why really...

nebu
03-19-2007, 06:33 PM
is it possible to use this hack with 3.6.5. ?

2impulsiv
03-27-2007, 09:27 PM
Yes this is what I'm looking for.

Something like this forum uses, showing the first post on the top of each page.

3.6.5 anyone?

:)


Cheers.

Nathan.

mhackl
04-14-2007, 05:47 AM
is it possible to use this hack with 3.6.5. ?

Yes this is what I'm looking for.

Something like this forum uses, showing the first post on the top of each page.

3.6.5 anyone?

:)


Cheers.

Nathan.

I'm with you guys. This would be great to have in 3.6.5