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 01-02-2004 10:00 PM

[HTL] Now Playing Hack v.1.3
 
[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:

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

Quote:

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

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.

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

HTML Code:

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

Quote:

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

Quote:

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

HTML Code:

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:

Code:

.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

Quote:

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

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

Quote:

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

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

Quote:

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

Quote:

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

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

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

Quote:

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

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

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

Quote:

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

Quote:

Originally Posted by restless
that would be AWESOME.

almost impossible, not with out a plugin to ie


All times are GMT. The time now is 04:47 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.02984 seconds
  • Memory Usage 1,832KB
  • 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
  • (1)bbcode_code_printable
  • (6)bbcode_html_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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