The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#14
|
|||
|
|||
![]()
Ok i thru this toghter. Its really alpha and its not tested, tell me how it works (re installing mySQL, php and apache today and dont wanna test it on live board.)
In phpinclude add: if (strpos($_SERVER['PHP_SELF'], 'showthread.php') != false) { // Lets query the database $DB_site->query_first("SELECT postid,post.dateline FROM post,thread WHERE post.threadid=thread.threadid AND thread.threadid='$threadid' AND post.visible=1 AND thread.visible=1 ORDER BY post.dateline DESC LIMIT 1")) { // getting everything set. $lastreplyname = $thread[lastposter] if ($bbuserinfo[username] == $lastreplyname) { $editurl = <a href="/editpost.php?s=$session[sessionhash]&action=editpost&postid=$getlastpost[postid]\"><img src="/$replyclose\" border="/0\" alt="/Post A Reply\"></a> } else { $editurl = <a href="/newreply.php?s=$session[sessionhash]&action=newreply&threadid=$threadid\">< img src="/$replyclose\" border="/0\" alt="/Post A Reply\"></a> } } In showthread replace this: <a href="newreply.php?s=$session[sessionhash]&action=newreply&threadid=$threadid"><img src="$replyclose" border="0" alt="Post A Reply"></a> With this: $editurl |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|