The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
ok thanks you guys rule! I'm not good at modding/hacking forums, It's odd too, I can make a forum system but I can't hack one |
#12
|
|||
|
|||
Quote:
"You may not double post on the $bbtitle forums, however we are redicrting you to the edit page for your last post" I need to stress the fact that this will not work if you have Guest posting on. |
#13
|
||||
|
||||
I dont have guest posting
oh and thanks by the way you guys rock at template modding |
#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 |
#15
|
||||
|
||||
Ok I'll try it on one of my old styles I dont use anymore
|
#16
|
||||
|
||||
I got this error
Parse error: parse error, unexpected ')' in C:\Paradox Network\vbulletin\global.php(185) : eval()'d code on line 47 Warning: Cannot add header information - headers already sent by (output started at C:\Paradox Network\vbulletin\global.php(185) : eval()'d code:47) in C:\Paradox Network\vbulletin\showthread.php on line 136 |
#17
|
|||
|
|||
Sorry try this in phpinclude:
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> } } |
#18
|
||||
|
||||
I still get
Parse error: parse error, unexpected ')' in /home/virtual/site22/fst/var/www/html/forums/global.php(185) : eval()'d code on line 58 Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site22/fst/var/www/html/forums/global.php(185) : eval()'d code:58) in /home/virtual/site22/fst/var/www/html/forums/showthread.php on line 136 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|