The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
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
|
Comments |
#72
|
||||
|
||||
Anyone?
Satan |
#73
|
|||
|
|||
Awesome hack-
But my forum members are all strong users of the Quick Reply box... and would like the NP functionality to be included there, as well.. I copied the basic PHP Code:
Any ideas? |
#74
|
||||
|
||||
What title?
It doesnt work on 2.2.6... Satan |
#75
|
|||
|
|||
The hack is working fine, and I'm running 2.2.6.
I'm just wondering why, when the form and the code above is included in the quick reply box, does it not add that to the post data. Anyone? I know this hack won't get much use unless I can put a field for now playing... Suggestions? |
#76
|
||||
|
||||
Is this what you're looking for??
|
#77
|
|||
|
|||
Absolutely it- I had the form input on the quick reply template, but do I need to make any changes? The NP wasn't showing up in the post that was made from the quick reply box...
Thanks! |
#78
|
||||
|
||||
Here's what I have as my showthread_quickreply template (yours might be "replybox"):
Code:
<script language="Javascript" src="vbcode.js"></script> <form enctype="multipart/form-data" action="newreply.php" name="vbform" method="post"> <input type="hidden" name="s" value=""> <input type="hidden" name="action" value="postreply"> <input type="hidden" name="threadid" value="$threadid"> <input type="hidden" name="title" value=""> <input type="hidden" name="iconid" value="0"> <input type="hidden" name="parseurl" value="yes"> <input type="hidden" name="email" value=""> <input type="hidden" name="disablesmilies" value=""> <input type="hidden" name="signature" value="yes"> <input type="hidden" name="rating" value=""> <table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td> <table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%"> <tr> <td bgcolor="{categorybackcolor}" colspan="2"><normalfont color="{categoryfontcolor}"><b>Quick Reply</b></normalfont></td> </tr> <tr> <td bgcolor="{firstaltcolor}" valign="top" nowrap><normalfont><b>Your Reply:</b></normalfont><br> <smallfont>[<a href="javascript:opensmiliewindow(350,450,'')">Smilies</a>]</smallfont></td> <td bgcolor="{firstaltcolor}"> <table cellpadding="0" cellspacing="0" border="0"> <tr valign="top"> <td><textarea name="message" rows="7" cols="$textareacols" wrap="virtual" tabindex="1"></textarea> </td> </tr> </table> </td> </tr> <tr> <td bgcolor="{secondaltcolor}" valign="top"><normalfont><b>Now Playing:</b></normalfont></td> <td bgcolor="{secondaltcolor}" valign="top"><smallfont> <input type="text" class="bginput" name="nowplaying" size="40" maxlength="85" tabindex="2"> (Optional)<br> What are you listening to?</smallfont></td> </tr> </table> </td></tr></table> <br> <table cellpadding="2" cellspacing="0" border="0" width="100%" align="center"> <tr> <td align="center"><normalfont> <input type="submit" class="bginput" name="submit" value="Submit Reply" accesskey="s" tabindex="3"> </normalfont></td> </tr> </table> </form> |
#79
|
|||
|
|||
Thanks- I used that exact code even before, and the form appears, and you can enter in the name of the song- but it won't display when entered in through the quick reply method...
It will work through the normal editpost, or new thread or reply to post... or anything but quick reply... Please help! |
#80
|
||||
|
||||
Make sure you have this at the top:
<form enctype="multipart/form-data" action="newreply.php" name="vbform" method="post"> and that you have name="nowplaying" in the input tag for the now playing box. If that doesnt fix it contact me privately and I'll try to help you from there. |
#81
|
||||
|
||||
Installed on 2.2.6 and it works great. I did leave off the editpost stuff though.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|