Version: , by MarkB
Developer Last Online: Nov 2009
Version: 2.2.x
Rating:
Released: 11-21-2001
Last Update: Never
Installs: 71
No support by the author.
NOW PLAYING HACK for vBulletin 2.2.8 (UPDATE)
Adds a 'Now Playing' field to your new thread and new reply pages where users can enter whatever they're listening to, and their post will be appended with something akin to: "NP: Some Song by Some Band".
All support questions should be posted in this thread
Remember: BACKUP YOUR DATABASE!! I am not a PHP guru by any stretch of the imagination -- the following code works fine for me, so you should not have any problems.
It's been tested on cB 2.2.8. I will not be held responsible if your forum crashes, or turns into a Britney Spears BB
You can see it in action at my Ultimate Metal forums where I've modified it slightly to have a small CD icon in place of the usual 'NP:'.
This is my first ever hack, so please do let me know any shortcomings or errors!!
I hope you enjoy it as much I plan to
Added to: now includes 'editpost.php' and 'editpost' template changes!
UPDATED for 2.2.8 (very minor fix in newreply.php - if it's working for you, there is NO NEED to upgrade! This will be the last update until vB3 is out
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Something like that sounds about right - Chen did a hack for me where certain forums have a different first post display - I imagine that this would use something similar...
I wouldn't know how to do it in PHP or anything, but I'm sure that the only 'scripting' necessary here, is for one single IF statement to check whether this forum is id x (where x is defined in the code by the admin) and IF so, it makes this hack appear, and if NOT, it doesn't...
Maybe we should ask someone with more experience about it..
$DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signature',iconid='$iconid',attachmentid='$attachmentid' WHERE postid='$postid'");
Originally posted by ReT i cant find this piece of code in 2.2.1
PHP Code:
$DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signature',iconid='$iconid',attachmentid='$attachmentid' WHERE postid='$postid'");
The only similiar UPDATE POST code is on line 202 of newthread.php:
PHP Code:
$DB_site->query("UPDATE post SET pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signature',iconid='$iconid',attachmentid='$attachmentid' WHERE postid='$posts[minpost]'");
change above code to:
PHP Code:
$DB_site->query("UPDATE post SET pagetext='".addslashes($message)."',NP='".addslashes($nowplaying)."',allowsmilie='$allowsmilie',showsignature='$signature',iconid='$iconid',attachmentid='$attachmentid' WHERE postid='$posts[minpost]'");
I installed this one very easily. I'd like to know: in edit post, the choice that was entered at first is not being redisplayed and have to be re-entered. Is that the way it is supposed to be or did I miss something?
i installed the hack and i thought everything was working fine, EXCEPT now when people hit post reply on old threads it puts there reply 2nd from last instead of last post.