vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   'Now Playing' Hack (https://vborg.vbsupport.ru/showthread.php?t=32587)

Chris M 06-25-2002 09:58 AM

Anyone?

Satan

disillusioned 08-06-2002 10:23 AM

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:

<p>
<
smallfont><b>Now Playing</b>: What are you listening to? [optional]
<
br><input type="text" class="bginput" name="nowplaying" value="$nowplayingsize="40" maxlength="85" tabindex="1"></smallfont

code to allow them to input the song, but the title doesn't display.

Any ideas?

Chris M 08-06-2002 12:37 PM

What title?

It doesnt work on 2.2.6...

Satan

disillusioned 08-07-2002 09:31 PM

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?

Unknown553 08-07-2002 11:49 PM

Is this what you're looking for??

disillusioned 08-07-2002 11:52 PM

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!

Unknown553 08-08-2002 12:01 AM

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>

In red is the NP part. Hope that helps :)

disillusioned 08-08-2002 01:19 AM

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!

Unknown553 08-08-2002 05:05 AM

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.

Mike Gaidin 08-11-2002 04:52 PM

Installed on 2.2.6 and it works great. I did leave off the editpost stuff though.


All times are GMT. The time now is 10:46 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01129 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete