PDA

View Full Version : [HTL] Now Playing Hack v.1.3


Dan
01-02-2004, 10:00 PM
Now Playing Hack
Version: 1.5
vB-version: 3.0.1
Developer: Dan
Install difficulty: Easy
File edits: 3
Template edits: 5

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

HACK INSTALLATION DETAILS:

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

Templates modified for this Hack:
postbit_legacy
postbit
newreply
newthread
showthread_quickreply

Changes:

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 (https://vborg.vbsupport.ru/showpost.php?p=455585&postcount=17) by yabba (https://vborg.vbsupport.ru/member.php?u=20728)








SCREENSHOT BELOW:

MindTrix
01-03-2004, 01:16 AM
Ohh no not the now playing hack :)

Thanks mate this will come in handy on my forum, Thank you

Chris Gwynne
01-03-2004, 01:18 AM
Great job Dan, I'll be using this when the time comes round! :D

Koutaru
01-03-2004, 01:49 AM
Pfft, and you didn't know what to hack? This is great :) will look into tonight

Dan
01-03-2004, 01:53 AM
Technically I already hacked this. I just upgraded it to vB3.

Koutaru
01-03-2004, 01:58 AM
I figured that would be your first vb3 hack here (seeing it at vbulletin.nl)

MarkB
01-03-2004, 09:31 AM
Would have been nice to have been told about this, since I created the original one ;)

gmarik
01-03-2004, 12:37 PM
It would be cool if you hack could read my:
1) winamp playlist
2) Windows media player playlist

and copy info from them - maybe you should ask some help at the winamp board?

Dan
01-03-2004, 01:02 PM
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.

flamingpeach
01-03-2004, 05:46 PM
This is a great hack, and I can't wait to install it.

The only thing is, I'm new to this, and at the risk of looking stupid, what do you mean when you say

"-----------
|Run Query|
-----------

ALTER TABLE post ADD nowplaying VARCHAR(40) NOT NULL"

:ermm:

I'm not sure where to do this, and its probably very simple and obvious, but like I said, I'm new. :disappointed:

Thanks

MindTrix
01-03-2004, 05:49 PM
Everyone starts somewhere mate ;)

A query is basically a piece of code that needs to be run on your MYSQL database, Usualy in PHPMYADMIN that your host should have linked you too, or you will find in your hosts Control Panel.

mmw
01-03-2004, 05:52 PM
In phpMyAdmin select the database then click on query and just past the code from above and click submit query. If you don't have access to phpmyadmin or something similar just email your webhosts asking them to do it for you :)

flamingpeach
01-03-2004, 05:54 PM
Thanks guys, I appreciate it :D

Dan
01-03-2004, 05:54 PM
Everyone starts somewhere mate ;)

A query is basically a piece of code that needs to be run on your MYSQL database, Usualy in PHPMYADMIN that your host should have linked you too, or you will find in your hosts Control Panel.
thanks mindtrix for reply i was mid-typing when I recieved a message saying you replied with the answer.

Thanks everyone so far that has installed this hack!

MindTrix
01-03-2004, 05:57 PM
I know the feeling Dan, your half way writting a response then someoen else posts it :)

TheAnt
01-03-2004, 06:04 PM
I may actually use this mod. It'll be easier than having it done via Profile Field.

yabba
01-03-2004, 10:17 PM
A little Add-on for Dans Now Playing Hack.

This little bit of Code display the last 10 Songs at your Forumhome.

Dan
01-03-2004, 10:29 PM
A little Add-on for Dans Now Playing Hack.

This little bit of Code display the last 10 Songs at your Forumhome.
thanks for the add-on yabba I'll add a link to the first post.

SiXXGuNNZ
01-04-2004, 02:45 AM
here is the way I modded the postbits, regular and legacy, this puts the nowplaying box under the attachments in a box like the attachments use


---------
|postbit|
---------
&
----------------
|postbit_legacy|
----------------
Find:
<!-- / attachments -->
Below add:
</if>

<if condition="$post['nowplaying']">
<!-- nowplaying -->
<div style="padding:6px">
<fieldset class="fieldset">
<legend>Now Playing</legend>
<div style="padding:3px" align="center">
<img src="/images/smilies/091.gif" alt="This song kicks ass!"
border="0" /><smallfont><b>$post[nowplaying]</b></smallfont></div>
</fieldset>
</div>
<!-- / nowplaying -->


attached are examples :)

Dan
01-04-2004, 02:59 AM
thanks for doing that I just put it in a place i could easily find a spot to put it. If you wouldn't mind I would like to add this to the install file.

SiXXGuNNZ
01-04-2004, 04:05 AM
thanks for doing that I just put it in a place i could easily find a spot to put it. If you wouldn't mind I would like to add this to the install file.
go for it, my members loved this for vb2, so I am grateful you did this for vb3, if you need the rockin' out mullet smilie, I will attach it just in case :)

flamingpeach
01-04-2004, 06:56 AM
I installed this and my members are using and loving it. The only thing they have mentioned is that sometimes they forget to fill in the form, and would like to go back and edit thier song in or correct their spelling mistakes in the song title etc.

Would there be a way to modify a template or one of the php pages in order to show the "now playing" field after a member clicks his or her edit button?

Just curious :o

Brad
01-04-2004, 08:37 AM
It is not hard to add that to the modification but I dont have time to document the changes atm, ill post them later on today when I find the time.

NuclioN
01-04-2004, 09:25 AM
It's nice Sixxgunzz but the fieldset/legend lines are always white and on a dark style it looks terrible. Is there a way to color the lines in these fieldset blocks?

MindTrix
01-04-2004, 12:05 PM
Hey Dan, you might want to add in the instructions when editin the postbit template, to edit the postbit_legacy one aswell ;)

Dan
01-04-2004, 03:08 PM
I will when i get home... not home at this current time... it is simple to do though.

SiXXGuNNZ
01-04-2004, 07:49 PM
It's nice Sixxgunzz but the fieldset/legend lines are always white and on a dark style it looks terrible. Is there a way to color the lines in these fieldset blocks?
I was looking thru the templates and couldn't find the info that tells vb what the legend is supposed to look like, all we have to do is find where that is and then it should be easy as pie.

SiXXGuNNZ
01-04-2004, 07:58 PM
it is easy, in the style's css


legend
{
color: #22229C;
font: 11px tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}

NuclioN
01-04-2004, 08:00 PM
in the extra css box i've added this as a replacement for the default fieldset:


.fieldset {
border: 2px groove #778;
padding: 2px;
margin-bottom: 4px;
}
.legend {
position: relative;
top: -1em;
left: 0.5em;
background-color: #445;
font-size: x-small;
}
.fieldset p {
margin-top: -5px;
}


were the colorcode can be altered :)

proxyMX
01-05-2004, 01:10 AM
hey got a problem
I want to

1. Limit the characters that can be input in this field because it can squish the postbit up.
2. When posting with a new thread, i get one of the de-notations as used in the code as in <--- Now Playing then it goes to the box
3. I want to write above the input "Song now playing: (Not Required)
4. I want to be able to have this input box BELLOW the post where you can add attachments etc.

MrWee
01-05-2004, 02:49 AM
4. I want to be able to have this input box BELLOW the post where you can add attachments etc.

4. I did this on my board.

instead of adding the <!-- nowplaying field --> section after the <!-- /subject field --> as instructed in the orignal instructions, replace it after this instead:

<!-- message area -->
<div class="smallfont">$vbphrase[message]:</div>
$messagearea
<!-- / message area -->

MrWee
01-05-2004, 02:56 AM
what can i add to the code to not allow html?

Ky Kiske
01-05-2004, 06:21 AM
A sweet addon would be to have the last time nowplaying in your Profile.

proxyMX
01-05-2004, 09:06 PM
4. I did this on my board.

instead of adding the <!-- nowplaying field --> section after the <!-- /subject field --> as instructed in the orignal instructions, replace it after this instead:

<!-- message area -->
<div class="smallfont">$vbphrase[message]:</div>
$messagearea
<!-- / message area -->

thanks, that helped! Its now bellow the message and i fixed the html now all i need is character limitations

yabba
01-07-2004, 07:23 PM
thanks, that helped! Its now bellow the message and i fixed the html now all i need is character limitations

Anyone works on Now Playing in Quick Reply Box ?

Greets yabba

Dan
01-07-2004, 07:30 PM
Sorry... at this time my computer is down and I'm unable to help support my hack currently. Hopefully I'll be up and running again in the next few weeks. I am sorry to anyone this may trouble.

MrWee
01-08-2004, 01:37 PM
Anyone works on Now Playing in Quick Reply Box ?

Greets yabba
Yeah, i also got it in the quick reply box, although it doesn't look very pretty.

i put the same <!--Now Playing --> block of code in the "showthread_quickreply" template
after this:


<!-- no-toolbar quick reply -->

<div class="controlbar">
<textarea name="message" id="qr_message" class="bginput" style="width:600px; height:100px;" rows="5" cols="60" tabindex="1"></textarea>
</div>

<!-- / no-toolbar quick reply -->
</if>


I dunno if that was the best place to put it, but i have it centered under the text input field, and it works, so it's good for me :)

yabba
01-08-2004, 06:06 PM
Yeah, i also got it in the quick reply box, although it doesn't look very pretty.

i put the same <!--Now Playing --> block of code in the "showthread_quickreply" template
after this:


<!-- no-toolbar quick reply -->

<div class="controlbar">
<textarea name="message" id="qr_message" class="bginput" style="width:600px; height:100px;" rows="5" cols="60" tabindex="1"></textarea>
</div>

<!-- / no-toolbar quick reply -->
</if>


I dunno if that was the best place to put it, but i have it centered under the text input field, and it works, so it's good for me :)

Many thanks .

It works perfect :-)

Greets from germany
yabba

restless
01-08-2004, 09:25 PM
It would be cool if you hack could read my:
1) winamp playlist
2) Windows media player playlist

and copy info from them - maybe you should ask some help at the winamp board?that would be AWESOME.

Zachery
01-08-2004, 09:28 PM
that would be AWESOME.
almost impossible, not with out a plugin to ie

MarkB
01-09-2004, 07:42 PM
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
jepp. it works perfectly with RC 2Mine 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
Updated the hack to version 1.2
Yay, a HTL hack ^_^

Zachery
01-26-2004, 12:55 AM
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

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="$title" 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>
<!-- / subject field -->
Add BELOW that:
<!-- [START HACK='Now Playing Hack' AUTHOR='Dan' VERSION='1.2' CHANGEID= 1 ] -->
<!-- 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= 1 ] -->
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="$title" 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>
<!-- / subject field -->
REPLACE that with:
<!-- [START HACK='Now Playing Hack' AUTHOR='Dan' VERSION='1.2' CHANGEID= 2 ] -->
<!-- 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= 2 ] -->


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
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

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="$title" 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>
<!-- / subject field -->
Add BELOW that:
<!-- [START HACK='Now Playing Hack' AUTHOR='Dan' VERSION='1.2' CHANGEID= 1 ] -->
<!-- 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= 1 ] -->
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="$title" 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>
<!-- / subject field -->
REPLACE that with:
<!-- [START HACK='Now Playing Hack' AUTHOR='Dan' VERSION='1.2' CHANGEID= 2 ] -->
<!-- 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= 2 ] -->


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
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
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:
// ### POST NEW POST ###

Add below:
$post['nowplaying'] = htmlspecialchars_uni(fetch_censored_text($post['nowplaying']));

TheComputerGuy
01-28-2004, 12:35 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:
// ### POST NEW POST ###

Add below:
$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
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
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
... 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
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:
<legend>Now Playing</legend>

Replace with:
<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
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 (https://vborg.vbsupport.ru/showpost.php?p=455585&postcount=17) by yabba (https://vborg.vbsupport.ru/member.php?u=20728)

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
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
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

Dan
04-29-2004, 01:17 AM
thats not version 1.3 text file thats only htl
Right now I have very tight time restraints. I shall try to make time to make one but you might have to wait till Sunday as I'm unlikely going to be on till then.

msimplay
04-29-2004, 08:09 AM
Right now I have very tight time restraints. I shall try to make time to make one but you might have to wait till Sunday as I'm unlikely going to be on till then.
its ok take your time as i do appreciate your efforts :)
sunday will do nicely :D

msimplay
04-29-2004, 10:39 AM
ok i converted the htl file into normal text instructions

hmm the htl file was a bit messed up since it asked me to do some file modifications twice for the same ones so was a bit annoying

anyway check the attachment for version 1.3 in normal text format
this should work fine as its a direct copy of the instructions plus i also have it working on my forums

msimplay
04-29-2004, 10:44 AM
A little Add-on for Dans Now Playing Hack.

This little bit of Code display the last 10 Songs at your Forumhome. is there anyway we could make this a vbadvanced block ?

ok made the vbadvanced block myself based on yabba's last ten on forumhome

located [here] (https://vborg.vbsupport.ru/showpost.php?p=455585&postcount=17)

if anyone has any problems please post here
it has been tested on vb3 gold

LOD-squa
04-29-2004, 08:30 PM
Hm, sorry if this has been asked before. But, how can I add the option on quick reply?
:: ??

msimplay
04-29-2004, 08:34 PM
use this to add to quick reply

Find in Template showthread_quickreply


<!-- no-toolbar quick reply -->

<div class="controlbar">
<textarea name="message" id="qr_message" class="bginput" style="width:600px; height:100px;" rows="5" cols="60" tabindex="1"></textarea>
</div>

<!-- / no-toolbar quick reply -->
</if>



Add BELOW that:


<!-- [START HACK='Now Playing Hack' AUTHOR='Dan' VERSION='1.3' CHANGEID= 8 ] -->
<!-- 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="40" maxlength="85" tabindex="1" /></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.3' CHANGEID= 8 ] -->

LOD-squa
04-29-2004, 08:37 PM
Thanks, i'll go test it now.
:: ??

msimplay
04-29-2004, 08:38 PM
I have it, I just downloaded the .txt file and theres nothing regarding the quickreply.
:: ??

in this post the one i added

https://vborg.vbsupport.ru/showpost.php?p=506777&postcount=83

LOD-squa
04-29-2004, 08:42 PM
Works perfectly, thank you very much.
:: ??

msimplay
04-29-2004, 08:44 PM
Works perfectly, thank you very much.
:: ??

glad to be of help :)

msimplay
04-30-2004, 08:57 AM
was wondering if i could get the now playing field on editpost ? @ Dan

Brahm
05-09-2004, 04:09 AM
Nice Hack -- thanks!

Dan
05-20-2004, 03:03 PM
Updated the hack and the first post.
Can someone change the title since it seems not to do it :(

* Dan pouts

msimplay
05-20-2004, 03:15 PM
nice hack but on the step for the quick reply instead of using the code in the hack

i think it would be better to use


<!-- nowplaying field -->
<fieldset>
<div>Now Playing:</div>
<div><input type="text" class="bginput" name="nowplaying" value="$post[nowplaying]" size="40" maxlength="85" tabindex="1" /></div>
<!-- / nowplaying field -->


because it doesn't conflict with another hack
a java script one that i use for smilie popup

i think the tables disrupt some of the harmony of the quick reply
as when i use the tables version it also seems to check both the signature and the quote message checkbox's at once

Dan
05-20-2004, 03:22 PM
nice hack but on the step for the quick reply instead of using the code in the hack

i think it would be better to use


<!-- nowplaying field -->
<fieldset>
<div>Now Playing:</div>
<div><input type="text" class="bginput" name="nowplaying" value="$post[nowplaying]" size="40" maxlength="85" tabindex="1" /></div>
<!-- / nowplaying field -->


because it doesn't conflict with another hack
a java script one that i use for smilie popup

i think the tables disrupt some of the harmony of the quick reply
as when i use the tables version it also seems to check both the signature and the quote message checkbox's at once
Weird I never had any trouble with that... I'll look at it and maybe change it later as I'm rather tired of looking at the code atm.

msimplay
05-20-2004, 03:36 PM
well the main benefit is that its tableless so it should be faster

moley
05-26-2004, 06:35 AM
was wondering if i could get the now playing field on editpost ? @ Dan
i've managed to make it appear but if you edit a post it doesnt show up so i'm looking for whatever i have to add/ edit now:ninja:

Dan
05-26-2004, 03:59 PM
i've managed to make it appear but if you edit a post it doesnt show up so i'm looking for whatever i have to add/ edit now:ninja:
I'll try to add it in the next few days I've been rather busy recently.

Goober
06-09-2004, 10:23 PM
I'll try to add it in the next few days I've been rather busy recently.
Im confused, does this hack allow the playing of the song or just adds the text of what someone was listening to at the time they posted?


It would be nice if this played the song one was listening too.




Goober

Dan
06-09-2004, 10:24 PM
Im confused, does this hack allow the playing of the song or just adds the text of what someone was listening to at the time they posted?


It would be nice if this played the song one was listening too.




Goober
That would require coding of the software they use and I'm unable to code that. It allows for the user to specify what they are listening to if they choose to say so.

Goober
06-09-2004, 10:26 PM
That would require coding of the software they use and I'm unable to code that. It allows for the user to specify what they are listening to if they choose to say so.
Thanks Dan, I was confused over it because it sounded like a nice hack that allowed someone to actually hear a song being played.



I take it there is nothing like this out there then....




Goober

Dan
06-09-2004, 10:29 PM
Thanks Dan, I was confused over it because it sounded like a nice hack that allowed someone to actually hear a song being played.



I take it there is nothing like this out there then....




Goober
No there isn't anything like that available that I know of.

msimplay
06-09-2004, 10:48 PM
i've managed to make it appear but if you edit a post it doesnt show up so i'm looking for whatever i have to add/ edit now:ninja:
i realised theres no point to have it on editpost coz it could interfear with the now playing thats already in the post

and it makes sense that u actually have a now playing at the time u made the post

the only way it could work is if the now playing only appeared in editpost if the post didn't have a now playing already

PalmNut
06-15-2004, 11:23 PM
Nice piece of work.

I'd also modify the quick reply HTML and JavaScript so that the input field is disabled if threading messages until a message is selected. Like so:

Edit the showthread_quickreply template by adding a new attribute to the text input field.

Find:
<td><input type="text" class="bginput" style="width:600px;" name="nowplaying" value="$post[nowplaying]" size="50" maxlength="85" tabindex="1" /></td>

Replace with:
<td><input type="text" class="bginput" style="width:600px;" name="nowplaying" id="qr_nowplaying" value="$post[nowplaying]" size="50" maxlength="85" tabindex="1" /></td>

Edit clientscript/vbulletin_quickreply.js as follows:

Find:
if (WYSIWYG != 2)
{
fetch_object("qr_message").disabled = true; // message textarea
fetch_object("qr_message").value = must_click_message; // message textbox

Below that, add:
fetch_object("qr_nowplaying").disabled = true; // nowplaying text

Find:
fetch_object("qr_message").value = "";

Below that, add:
fetch_object("qr_nowplaying").disabled = false;

PET
06-24-2004, 02:01 AM
:( i hoped that this will be a hack ho will automaticly take your winamp song. There are some programs ho can do this.

Dan
06-24-2004, 02:27 AM
:( i hoped that this will be a hack ho will automaticly take your winamp song. There are some programs ho can do this.
Programs? this isn't a program sorry its a php hack which has no actual tie in to the actual software of the user besides IE.

turbidblue
07-04-2004, 03:15 AM
Wow! This hack is sooo cool! Thanks to all of you who help bring this one about!!


*trys to click install more than once! :)

nando415
08-22-2004, 10:19 PM
How can i change the maximum limit of characters that can be entered???

Noiz Pollution
08-24-2004, 11:11 PM
A little Add-on for Dans Now Playing Hack.

This little bit of Code display the last 10 Songs at your Forumhome.
Somebody on your board likes their EBM ;) [/approval]


Cheers,
Robert

y2krazy
08-30-2004, 01:12 AM
/me clicks install!

Brahm
09-20-2004, 12:08 AM
Dan,
I am losing my mind! Heh. I have installed your hack and there were no problems during installation. I then installed the Yabba hack "last 10" and have got it working, unless you decide to log out and try to access the page. Then you get a message:There seems to have been a slight problem with the Ashkins' Family Web Site database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.


The error message I get is this:

<!--
Database error in vBulletin 3.0.3:

Invalid SQL: SELECT
post.postid, post.nowplaying AS post_nowplaying,
thread.threadid, thread.title AS thread_title,
user.userid, user.username
FROM
post AS post,
thread AS thread,
user AS user
LEFT JOIN deletionlog AS dlog_t ON (dlog_t.primaryid = thread.threadid AND dlog_t.type = 'thread')
LEFT JOIN deletionlog AS dlog_p ON (dlog_p.primaryid = post.postid AND dlog_p.type = 'post')
WHERE
thread.threadid = post.threadid AND
thread.forumid IN() AND
thread.visible = 1 AND
dlog_t.primaryid IS NULL AND
dlog_p.primaryid IS NULL AND
post.visible = 1 AND
thread.open &lt;&gt; 10 AND
user.userid = post.userid AND
post.nowplaying != ''
ORDER BY post.postid DESC LIMIT 10
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND
thread.visible = 1

mysql error number: 1064

Date: Sunday 19th of September 2004 07:52:28 PM
Script: http://ashkins.net/forum/index.php
Referer: http://www.ashkins.net/forum/login.php?do=logout
Username: Unregistered
IP Address: xx.xx.xx.xx
-->

My site uses "Vbindex" and I am using Vbulletin 3.03. It does this on my forum index page as well when I try it. I have been working on this for a while now and can't seem to get it to work. Whenever I insert the code into my index.php and save it, I am able to see the last ten displayed properly, but if I log out of the page, it will not let me back in. Web page is http://ashkins.net/forum

djjeffa
10-17-2004, 04:57 PM
I suck with this stuff but I installed a new style that had this hack build it and now I cant remove it I removed it from the postbit and the postbit_legacy but it still shows the box in reply and quick reply ... anyadvice guys?

Dan
10-17-2004, 04:59 PM
did you remove it from the quick reply template and the new post and new thread ones?

djjeffa
10-19-2004, 02:00 AM
did you remove it from the quick reply template and the new post and new thread ones?
did now thank you

mixx941
10-19-2004, 11:27 PM
This looks like a great hack, I'm eager to install it.

Although I'm wondering if it's just me, or does having the "Now Playing" look like somewhat like a quote or code tag look a little wierd? Is there an easy way to maybe put this somewhere else like on the left where the "Style: Dark Blue" thing is now on these forums, or maybe somewhere else more organized?

Thanks! :D

-Mark

SlackerAPM
12-27-2004, 11:54 AM
How can i change the maximum limit of characters that can be entered???When you run the query to add the nowplaying bit to the post table change the VARCHAR(40) to VARCHAR(whatever limit you want). If you've already ran the query just make sure to alter the VARCHAR bit with phpmyadmin or something.

Well, that's what I did and I'm a moron. Should be easy for anyone else.

plattopus
01-03-2005, 10:54 AM
Or you can just change the maxchars attribute of the input field and not have to screw around with your DB. :)

Lionel
04-14-2005, 07:03 AM
It is not hard to add that to the modification but I dont have time to document the changes atm, ill post them later on today when I find the time.

Has any one come up with a solution to edit? I am using this hack as thumb caption and I badly need the edit. I have to go in database to make a change.

darkon
11-22-2005, 05:54 PM
is there any solution for vb 3.5 ??

Ky Kiske
11-22-2005, 06:01 PM
That my friend is a very good question.

Dan
11-22-2005, 07:41 PM
Tada https://vborg.vbsupport.ru/showthread.php?s=&threadid=82779

darkon
11-23-2005, 10:30 AM
Tada https://vborg.vbsupport.ru/showthread.php?s=&threadid=82779

that?s not the same hack like yours :ermm:

it shows the last played songs from winamp. not a bad idea but not the kind of hack i need...

pete_brady
02-23-2006, 08:21 PM
any chance of a 3.5.x version?

please?

daddygrim
03-26-2007, 11:02 AM
3.6.5?????

Dan
03-26-2007, 03:21 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=117934" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=117934</a>