View Full Version : Show Post Help
Kratheous
05-26-2002, 12:50 AM
Okay, in order for a hack I'm working on (that I prolly won't release, as it's very specific to my forums) to work, I need the first post of every topic in 13 specific forums to use a different showpost template than every other post on the forums... how would I go about doing this?
Kratheous
05-26-2002, 03:11 AM
Well, I tried something, but it hasn't worked...
$getpost=$DB_site->query_first("SELECT postid FROM post WHERE threadid=$thread[threadid] ORDER BY dateline LIMIT 1");
if ($getpost[postid]==$postid) {
$isfirst=1;
} else {
$isfirst=0;
}
if($isfirst AND $forumid==13 || 14 || 15 || 16 || 17 || 18 || 19 || 20 || 21 || 22 || 23 || 24 || 25) {
eval("dooutput(\"".gettemplate("showquest")."\");");
} else {
eval("dooutput(\"".gettemplate("showthread")."\");");
}
And I have the "showquest" template pointing to $questbits, but it's showing the same thing as $postbits, instead of what $questbits is supposed to show...
Kratheous
05-26-2002, 05:51 AM
Would there be anything else I have to change? I've been trying to fix this all night, and it's not going well...
Oh, and BTW- One of my friends registered, but he hasn't received the e-mail conformation... And I dunno why... any help on this would be appreciated.
Admin
05-26-2002, 10:30 AM
Check out my profile, I have released a hack that does just this. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.