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)

MarkB 01-09-2004 07:42 PM

Quote:

Originally Posted by Dan
Sorry Man, I thought you had disappeared or something and I had already hacked it in for vB3 a couple months ago. If you want credit or something I can give it to you. But I really didn't know you even created the original one.

I was only messing about - it's a simple hack. And yours is probably better than my slap-dash vB3 effort anyway LOL

Good on yer matey!

adusei 01-19-2004 06:34 PM

... very nice hack, thanks for posting!
One question:
how do I get the text inserted to my new field (e.g. nowplaying) into the searchindex? If I'm now searching for that inputs, it's not working. Would be great to get a help;

regards,

adusei

amseven 01-20-2004 06:48 AM

is this hack compatible with RC2?

yabba 01-20-2004 07:00 AM

jepp. it works perfectly with RC 2

Ky Kiske 01-20-2004 02:31 PM

Quote:

Originally Posted by yabba
jepp. it works perfectly with RC 2

Mine isn't working...I can't get it to post the Test

EDITTED IN:
My custom code had some missing variables.

amseven 01-20-2004 06:47 PM

thanks for the reply. Im somewhat of a newbie when it comes to adding hacks so I have just one question, how would I go about doing this..
-----------
|Run Query|
-----------

ALTER TABLE post ADD nowplaying VARCHAR(40) NOT NULL

any help would be much appreciated.

adusei 01-21-2004 01:28 PM

[QUOTE]
Just run SQL-Query in your admincp and add

ALTER TABLE post ADD nowplaying VARCHAR(40) NOT NULL

in the editorfield.
Then follow the rest of the install-steps.

Regards,
adusei

amseven 01-21-2004 07:35 PM

excellent, thanks for the reply.

amseven 01-22-2004 12:35 AM

installed a running great on RC3. Great hack, the work is very appreciated.

Dan 01-25-2004 10:41 PM

Updated the hack to version 1.2

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

nhochochack 01-28-2004 11:51 PM

what is HTL file .. how do i use this file in this hack ... because in intruction file i don't see step for use it ...PLZ help me ..

Link14716 01-29-2004 12:25 AM

<a href="https://vborg.vbsupport.ru/showthread.php?t=60735" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=60735</a>

alwafi 01-31-2004 04:16 AM

Dan

nice work

thanks

alwafi :tired:

adusei 02-17-2004 04:26 PM

Quote:

Originally Posted by adusei
... very nice hack, thanks for posting!
One question:
how do I get the text inserted to my new field (e.g. nowplaying) into the searchindex? If I'm now searching for that inputs, it's not working. Would be great to get a help;

Ok, again:

I changed the nice hack for my board. The input will now be added to the title of the thread. But two things I can`t fix:

1.) The input only appears on showthread.php, not at forumdsplay.php, where I like to get it too!

2.) The input isn't accessable for the search. How is that to be changed?

Any ideas?

Best regards,

adusei

Dan 02-17-2004 06:58 PM

Quote:

Originally Posted by adusei
Ok, again:

I changed the nice hack for my board. The input will now be added to the title of the thread. But two things I can`t fix:

1.) The input only appears on showthread.php, not at forumdsplay.php, where I like to get it too!

2.) The input isn't accessable for the search. How is that to be changed?

Any ideas?

Best regards,

adusei

Why would you want to show it on the forumdisplay.php page?

Also what is the reason for searching this? I can do both of them but it will take time. I'd just like to know the reason why you would need these features as I don't really see them as much of a use.

adusei 02-18-2004 11:54 AM

Hi Dan,
thx for your reply!
Of course, it sems to be somehow senseless, but I ty to explain.

I need more than the one input in the editor, because I want (somehow) "force" the user to give special information. And for those who are not so used to www, PC & Co. it is more easy, when there appears this input-fields.
The board - it's not ready yet - will be for cars and spareparts; so it will be fine, if I get the users to input:

e.g. i.)brand of car / ii.)type / iii.)year /iv.) price ... and so on--------> to let it appear in the threads SUBJECT or TITLE ROW above the message.

The "Nowplayig-Hack" helped me to change my db, to insert the additional fields etc. I must say that I'm an absolute beginner and that this hack took me a lot of steps forward - although I don't need, what the hack is for originally! So I appreciate the hack and the work the author did!!!

Everything is working with it - but only my "connected" thread-title appears, when showthread.php is opened - I want it to be seen also, when forumdisplay.php is opened.

And being searchable should this "puzzled" title too - I gess now it is clear why.

I hope now it is understandable, what I mean.

Maybe through this it can be possible to add to the "Nowplaying-Hack" something like a "Boost-Your-editor-Hack"...?

Thanks for your attention,
best regards from

adusei

btw: sorry for my poor English...! :disappointed:

Dan 02-24-2004 09:30 PM

Just a note to everyone this does work on RC4

Fi_InCogNiTo 03-04-2004 09:24 PM

I changed a lil code in the postbit to make the posters name appear. I'll attach a screen shot.

Find:
Code:

<legend>Now Playing</legend>
Replace with:
Code:

<legend>$post[musername] is Now Playing</legend>
Nuthin big. I just think it looks nice =D
Great hack, my users will love it.

Owen 03-06-2004 10:47 AM

when I post a reply it doesnt show...

Oopsie forgot I was using the legacy postbit.

Is there anyway to show the top now playing poster on forumhome?

Dan 03-06-2004 12:23 PM

Quote:

Originally Posted by Owen
when I post a reply it doesnt show...

Oopsie forgot I was using the legacy postbit.

Is there anyway to show the top now playing poster on forumhome?

Um... I don't know what you mean... but yabba did make a mod Last 10 songs on Forumhome by yabba

Owen 03-06-2004 12:34 PM

What I mean is to show the user that has posted the most songs with the now playing function.

example: if john makes 10 posts with now playing and mike make 15 with now playing Mike is the top song poster.

yabba 03-06-2004 01:18 PM

Hmm, thats a good Idea, but not released now.

A script must count the nowplaying field and get an output of the most counted User.

Another and I thing better feature where a chart script for the "Most played Songs" I think that was a truley fine feature too.

Greets from a snowy germany
Yabba

Owen 03-06-2004 02:03 PM

That would be very cool. Like a [insert forum name] Top 50 Hitlist

Owen 03-07-2004 05:59 PM

How come my users can use html in their now playing thing? I was able to post an image and other html good in the now playing thing. It actually worked :S

SlackerAPM 03-24-2004 01:00 PM

I have a quick question. I had this hack installed before it went to htl, when it was first released so my nowplaying table already exitsts. Upon upgrading vb I installed the htl and now want to use this hack via the htl, however, it won't get past step 1, running the query, as the table already exists. What should I do to skip that step?

Many thanks.

Sketch 04-13-2004 02:41 PM

Nice hack. Might come in useful, but yeah, I'd like to see it read:

-Winamp playlists
-Windows MEdia Playlists
-iTunes playlists

Not sure how to read all those (Are they in plaintext and what are they called?). Of course if I knew that info, I could add that functionality myself. Ah, shoot...lemme go look. :D

Dan 04-13-2004 10:34 PM

Quote:

Originally Posted by Sketch
Nice hack. Might come in useful, but yeah, I'd like to see it read:

-Winamp playlists
-Windows MEdia Playlists
-iTunes playlists

Not sure how to read all those (Are they in plaintext and what are they called?). Of course if I knew that info, I could add that functionality myself. Ah, shoot...lemme go look. :D

I can't do that unless I knew how to code plug-ins for those, but i don't know how to code plug-ins for them so it is unlikely I'll ever do that.

msimplay 04-28-2004 11:20 PM

can u release a text file version :o
please of 1.3

Dan 04-28-2004 11:28 PM

Quote:

Originally Posted by msimplay
can u release a text file version :o
please of 1.3

There is one check it out in the first post.

msimplay 04-28-2004 11:47 PM

thats not version 1.3 text file thats only htl


All times are GMT. The time now is 04:17 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.01419 seconds
  • Memory Usage 1,929KB
  • 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
  • (2)bbcode_code_printable
  • (6)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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