Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
[HTL] Now Playing Hack v.1.3 Details »»
[HTL] Now Playing Hack v.1.3
Version: 1.00, by Dan Dan is offline
Developer Last Online: May 2020 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-02-2004 Last Update: Never Installs: 37
 
No support by the author.

[high]Now Playing Hack[/high]
Version: 1.5
vB-version: 3.0.1
Developer: Dan
Install difficulty: Easy
File edits: 3
Template edits: 5

[high]Description of the Hack:[/high]
This hack lets your users specify what they are listening to at the time of posting.

[high]HACK INSTALLATION DETAILS:[/high]

[high]Files modified for this Hack:[/high]
includes/functions_newpost.php
newthread.php
newreply.php

[high]Templates modified for this Hack:[/high]
postbit_legacy
postbit
newreply
newthread
showthread_quickreply

[high]Changes:[/high]
  • Added a new HTML install file. (Not automatic)
  • Updated to 3.0.1
  • Changed postbit look
  • Moved to HTL
  • Fixed double step in installer
  • Fixed the not allow html/censored words in the now playing field
  • Added Quick Reply functionality
ALWAYS remember to backup before installing anything.


Comments always welcome.

Add-Ons:
Last 10 songs on Forumhome by yabba







SCREENSHOT BELOW:

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 01-25-2004, 10:43 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dan
Updated the hack to version 1.2
Yay, a HTL hack ^_^
Reply With Quote
  #53  
Old 01-26-2004, 12:55 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KuraFire
Yay, a HTL hack ^_^
Dan you have one too many steps in the install FYI you tell us to do the same step twice in a sorta

for the template mods you ask us to change somthing twice

PHP Code:
 Find in Template newreply
<!-- subject field -->
<
table cellpadding="0" cellspacing="0" border="0" class="fieldset">
<
tr>
<
td class="smallfont" colspan="3">$vbphrase[title]:</td>
</
tr>
<
tr>
<
td><input type="text" class="bginput" name="title" value="$titlesize="50" maxlength="85" tabindex="1" title="$vbphrase[optional]/></td>
<
td>&nbsp;&nbsp;</td>
<
td><if condition="$posticons"><img id="display_posticon" src="$selectedicon[src]alt="$selectedicon[alt]/><else />&nbsp;</if></td>
</
tr>
</
table>
<!-- / 
subject field --> 
Add BELOW that:
<!-- [
START HACK='Now Playing Hack' AUTHOR='Dan' VERSION='1.2' CHANGEID] -->
<!-- 
nowplaying field -->
<
table cellpadding="0" cellspacing="0" border="0" class="fieldset">
<
tr>
<
td class="smallfont" colspan="3">Now Playing:</td>
</
tr>
<
tr>
<
td><input type="text" class="bginput" name="nowplaying" value="$post[nowplaying]size="50" maxlength="85" tabindex="1" title="$vbphrase[optional]/></td>
<
td>&nbsp;&nbsp;</td>
<
td><if condition="$posticons"><img id="display_posticon" src="$selectedicon[src]alt="$selectedicon[alt]/><else />&nbsp;</if></td>
</
tr>
</
table>
<!-- / 
nowplaying field -->
<!-- [
END HACK='Now Playing Hack' AUTHOR='Dan' VERSION='1.2' CHANGEID] --> 
Find in Template newreply
<!-- subject field -->
<
table cellpadding="0" cellspacing="0" border="0" class="fieldset">
<
tr>
<
td class="smallfont" colspan="3">$vbphrase[title]:</td>
</
tr>
<
tr>
<
td><input type="text" class="bginput" name="title" value="$titlesize="50" maxlength="85" tabindex="1" title="$vbphrase[optional]/></td>
<
td>&nbsp;&nbsp;</td>
<
td><if condition="$posticons"><img id="display_posticon" src="$selectedicon[src]alt="$selectedicon[alt]/><else />&nbsp;</if></td>
</
tr>
</
table>
<!-- / 
subject field --> 
REPLACE that with:
<!-- [
START HACK='Now Playing Hack' AUTHOR='Dan' VERSION='1.2' CHANGEID] -->
<!-- 
nowplaying field -->
<
table cellpadding="0" cellspacing="0" border="0" class="fieldset">
<
tr>
<
td class="smallfont" colspan="3">Now Playing:</td>
</
tr>
<
tr>
<
td><input type="text" class="bginput" name="nowplaying" value="$post[nowplaying]size="50" maxlength="85" tabindex="1" title="$vbphrase[optional]/></td>
<
td>&nbsp;&nbsp;</td>
<
td><if condition="$posticons"><img id="display_posticon" src="$selectedicon[src]alt="$selectedicon[alt]/><else />&nbsp;</if></td>
</
tr>
</
table>
<!-- / 
nowplaying field -->
<!-- [
END HACK='Now Playing Hack' AUTHOR='Dan' VERSION='1.2' CHANGEID] --> 
you should fix that

should also be ADD UNDER not REPLACE WITH

also for the postbit templates your missing the end of an if condition
Reply With Quote
  #54  
Old 01-26-2004, 10:17 AM
Dan's Avatar
Dan Dan is offline
 
Join Date: Dec 2002
Location: Titusville, Florida
Posts: 1,787
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Faranth
Dan you have one too many steps in the install FYI you tell us to do the same step twice in a sorta

for the template mods you ask us to change somthing twice

PHP Code:
 Find in Template newreply
<!-- subject field -->
<
table cellpadding="0" cellspacing="0" border="0" class="fieldset">
<
tr>
<
td class="smallfont" colspan="3">$vbphrase[title]:</td>
</
tr>
<
tr>
<
td><input type="text" class="bginput" name="title" value="$titlesize="50" maxlength="85" tabindex="1" title="$vbphrase[optional]/></td>
<
td>&nbsp;&nbsp;</td>
<
td><if condition="$posticons"><img id="display_posticon" src="$selectedicon[src]alt="$selectedicon[alt]/><else />&nbsp;</if></td>
</
tr>
</
table>
<!-- / 
subject field --> 
Add BELOW that:
<!-- [
START HACK='Now Playing Hack' AUTHOR='Dan' VERSION='1.2' CHANGEID] -->
<!-- 
nowplaying field -->
<
table cellpadding="0" cellspacing="0" border="0" class="fieldset">
<
tr>
<
td class="smallfont" colspan="3">Now Playing:</td>
</
tr>
<
tr>
<
td><input type="text" class="bginput" name="nowplaying" value="$post[nowplaying]size="50" maxlength="85" tabindex="1" title="$vbphrase[optional]/></td>
<
td>&nbsp;&nbsp;</td>
<
td><if condition="$posticons"><img id="display_posticon" src="$selectedicon[src]alt="$selectedicon[alt]/><else />&nbsp;</if></td>
</
tr>
</
table>
<!-- / 
nowplaying field -->
<!-- [
END HACK='Now Playing Hack' AUTHOR='Dan' VERSION='1.2' CHANGEID] --> 
Find in Template newreply
<!-- subject field -->
<
table cellpadding="0" cellspacing="0" border="0" class="fieldset">
<
tr>
<
td class="smallfont" colspan="3">$vbphrase[title]:</td>
</
tr>
<
tr>
<
td><input type="text" class="bginput" name="title" value="$titlesize="50" maxlength="85" tabindex="1" title="$vbphrase[optional]/></td>
<
td>&nbsp;&nbsp;</td>
<
td><if condition="$posticons"><img id="display_posticon" src="$selectedicon[src]alt="$selectedicon[alt]/><else />&nbsp;</if></td>
</
tr>
</
table>
<!-- / 
subject field --> 
REPLACE that with:
<!-- [
START HACK='Now Playing Hack' AUTHOR='Dan' VERSION='1.2' CHANGEID] -->
<!-- 
nowplaying field -->
<
table cellpadding="0" cellspacing="0" border="0" class="fieldset">
<
tr>
<
td class="smallfont" colspan="3">Now Playing:</td>
</
tr>
<
tr>
<
td><input type="text" class="bginput" name="nowplaying" value="$post[nowplaying]size="50" maxlength="85" tabindex="1" title="$vbphrase[optional]/></td>
<
td>&nbsp;&nbsp;</td>
<
td><if condition="$posticons"><img id="display_posticon" src="$selectedicon[src]alt="$selectedicon[alt]/><else />&nbsp;</if></td>
</
tr>
</
table>
<!-- / 
nowplaying field -->
<!-- [
END HACK='Now Playing Hack' AUTHOR='Dan' VERSION='1.2' CHANGEID] --> 
you should fix that

should also be ADD UNDER not REPLACE WITH

also for the postbit templates your missing the end of an if condition
opps.... I'll go fix that now
Reply With Quote
  #55  
Old 01-26-2004, 10:25 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dan
opps.... I'll go fix that now
just a suggest might want to tie it into the quick reply as well, i didnt find it that hard my self
Reply With Quote
  #56  
Old 01-26-2004, 05:16 PM
wrongful wrongful is offline
 
Join Date: Apr 2003
Location: Atlanta, Georgia
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MrWee
what can i add to the code to not allow html?
Yes could somebody look into this as it seems that it could be a big security risk
Reply With Quote
  #57  
Old 01-26-2004, 05:42 PM
eXtremeTim eXtremeTim is offline
 
Join Date: Jun 2002
Location: eXtremewebtech.com
Posts: 1,201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

okay heres the fix i just did for my hacks and this one. This fix will also apply you swear filtering to the now playing text.

Find:
PHP Code:
// ### POST NEW POST ### 
Add below:
PHP Code:
        $post['nowplaying'] = htmlspecialchars_uni(fetch_censored_text($post['nowplaying'])); 
Reply With Quote
  #58  
Old 01-28-2004, 12:35 PM
TheComputerGuy's Avatar
TheComputerGuy TheComputerGuy is offline
 
Join Date: Oct 2001
Location: TX
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by eXtremeTim
okay heres the fix i just did for my hacks and this one. This fix will also apply you swear filtering to the now playing text.

Find:
PHP Code:
// ### POST NEW POST ### 
Add below:
PHP Code:
        $post['nowplaying'] = htmlspecialchars_uni(fetch_censored_text($post['nowplaying'])); 
Installed!

Much appreciated.
Reply With Quote
  #59  
Old 01-28-2004, 01:20 PM
eXtremeTim eXtremeTim is offline
 
Join Date: Jun 2002
Location: eXtremewebtech.com
Posts: 1,201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem. Dan you might want to build that into your release.
Reply With Quote
  #60  
Old 01-28-2004, 01:59 PM
TheComputerGuy's Avatar
TheComputerGuy TheComputerGuy is offline
 
Join Date: Oct 2001
Location: TX
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Faranth
just a suggest might want to tie it into the quick reply as well, i didnt find it that hard my self
Is there anyway to connect it to the quick reply...most my users love the quick reply.
Reply With Quote
  #61  
Old 01-28-2004, 07:02 PM
Dan's Avatar
Dan Dan is offline
 
Join Date: Dec 2002
Location: Titusville, Florida
Posts: 1,787
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheComputerGuy
Is there anyway to connect it to the quick reply...most my users love the quick reply.
I'll add that in a few and make it version 1.3
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:54 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05368 seconds
  • Memory Usage 2,400KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_php
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete