vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   [HTL] Now Playing Hack v.1.3 (https://vborg.vbsupport.ru/showthread.php?t=59538)

KuraFire 01-25-2004 10:43 PM

Quote:

Originally Posted by Dan
Updated the hack to version 1.2

Yay, a HTL hack ^_^

Zachery 01-26-2004 12:55 AM

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

Dan 01-26-2004 10:17 AM

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

Zachery 01-26-2004 10:25 AM

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

wrongful 01-26-2004 05:16 PM

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

eXtremeTim 01-26-2004 05:42 PM

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'])); 


TheComputerGuy 01-28-2004 12:35 PM

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.

eXtremeTim 01-28-2004 01:20 PM

No problem. Dan you might want to build that into your release.

TheComputerGuy 01-28-2004 01:59 PM

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.

Dan 01-28-2004 07:02 PM

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


All times are GMT. The time now is 12:01 PM.

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.01564 seconds
  • Memory Usage 1,840KB
  • 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
  • (6)bbcode_php_printable
  • (8)bbcode_quote_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