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)

Dan 04-29-2004 01:17 AM

Quote:

Originally Posted by msimplay
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

Quote:

Originally Posted by Dan
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

Quote:

Originally Posted by yabba
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]

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

PHP Code:

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

PHP Code:

 <!-- [START HACK='Now Playing Hack' AUTHOR='Dan' VERSION='1.3' 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="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] --> 


LOD-squa 04-29-2004 08:37 PM

Thanks, i'll go test it now.
:: ??

msimplay 04-29-2004 08:38 PM

Quote:

Originally Posted by gohanssj2
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....7&postcount=83

LOD-squa 04-29-2004 08:42 PM

Works perfectly, thank you very much.
:: ??

msimplay 04-29-2004 08:44 PM

Quote:

Originally Posted by gohanssj2
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 :(

[high]* Dan pouts[/high]

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

HTML Code:

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

Quote:

Originally Posted by msimplay
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

HTML Code:

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

Quote:

Originally Posted by msimplay
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

Quote:

Originally Posted by moley
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

Quote:

Originally Posted by Dan
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

Quote:

Originally Posted by Goober
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

Quote:

Originally Posted by Dan
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

Quote:

Originally Posted by Goober
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

Quote:

Originally Posted by moley
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:
HTML Code:

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

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

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

Below that, add:
Code:

fetch_object("qr_nowplaying").disabled = true; // nowplaying text
Find:
Code:

fetch_object("qr_message").value = "";
Below that, add:
Code:

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

Quote:

Originally Posted by PET
:( 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

Quote:

Originally Posted by yabba
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:
Quote:

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:

Quote:

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

Quote:

Originally Posted by Dan
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

Quote:

Originally Posted by nando415
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

Quote:

Originally Posted by Brad.loo
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.


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.01674 seconds
  • Memory Usage 1,866KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_html_printable
  • (2)bbcode_php_printable
  • (20)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