vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Mini Mods - YBMF - Playlist.com Mp3 Player for Member profile (https://vborg.vbsupport.ru/showthread.php?t=201794)

TimberFloorAu 01-13-2009 10:00 PM

YBMF - Playlist.com Mp3 Player for Member profile
 
Please mark as Installed and RATE

YoBroMoFo Playlist.com Mp3 Player for member profile in right side block v3.0

Inspired by code from Stangger5

All I have done is remodel the xml files, and template edits.

IF YOU USE THIS PLEASE CLICK INSTALL and vote for MOTM

Requirements ( vb3.7.0+ works on vb3.8.0 not tested on other versions )

First create 2 profile fields.
---First one is for your Playlist.com id
example: http://www.playlist.com/generate_code?playlist=57131775
so the ID is 57131775
---Second one is for your Playlist.com Mp3 player colour, default is black

__________________________________________________ ______________________
admin >> User Profile Fields >> Add New User Profile Field

1:
Single-Line Text Box
Title: YoBroMoFo.com Playlist.com ID
Description: Put your Playlist.com player ID here.<br />
example: http://www.playlist.com/generate_code?playlist=57131775
so the ID is <b>57131775</b>

Private Field: Yes
Field Searchable on Members List: NO
Show on Members List: NO

Then Save..

*** Remember the Field number..
Lets say the field number is 20 you will need to change the
a in $userinfo[fielda] to 20 like this to $userinfo[field20]
__________________________________________________ ______________________
Create another Profile Field,,

2:
Single Selection Menu
Title: YoBroMoFo.com Playlist.com Colour
Description: Choose your colour for your YoBroMoFo playlist player.

Options: ( remember a new line for each of these options )
black
gray
purple
blue
red
green
pink

Private Field: Yes
Field Searchable on Members List: NO
Show on Members List: NO

Then Save..

*** Remember the Field number..
Lets say the field number is 21 you will need to change the
b in $userinfo[fieldb] to 21 like this to $userinfo[field21]
__________________________________________________ ______________________


Import the plugin..

admin >> Plugins & Products >> [Add/Import Product] and import
playlist-member-profile.xml file..

__________________________________________________ ______________________

Edit two templates.

1:
admincp >> Styles & Templates >> Member Info Templates >>
memberinfo_block_playlist

Find ONE $userinfo[fielda] and change the a to the Playlist ID field number..

Find ONE $userinfo[fieldb] and change the b to the Playlist field number..


2:
Edit: Styles & Templates >> Member Info Templates >> MEMBERINFO

Look for,,

$blocks[stats_mini]
$template_hook[profile_right_mini]
$blocks[friends_mini]
$blocks[albums]
$template_hook[profile_right_album]
$blocks[groups]
$blocks[visitors]

Put $blocks[playlist] anywhere in there..
I have mine after $blocks[friends_mini]..
Like this,,

$blocks[stats_mini]
$template_hook[profile_right_mini]
$blocks[friends_mini]
$blocks[playlist]
$blocks[albums]
$template_hook[profile_right_album]
$blocks[groups]
$blocks[visitors]

__________________________________________________ ______________________

Go to www.playlist.com and log into your account.
Get the playlist code for Myspace, Blogger, Hi5 or any other site.
Click GET CODE
look for playlist=7657567589 ( or whatever number is for you )

Put 7657567589 in your Playlist ID field..



To edit your Playlist fields..
USERCP >> Edit Your Details >>

find also: YoBroMoFo.com Playlist.com Colour and choose a colour for your Player in your Usercp
__________________________________________________ ______________________
HAVE FUN.

This code has been adapted from stannger5 YouTube Code, please give credit where credit is due to Stangger5

stangger5
http://www.next-level-arcade.com/

His code is awesome, all I have done is reconfigure for others to enjoy.

R+E+S+P+E+C+T

Brought to you by British Expats Australia, www.yobromofo.com/forum.

To Contact myself or Stangger5

Timberfloorau > https://vborg.vbsupport.ru/member.php?u=252664
Stangger5 > https://vborg.vbsupport.ru/member.php?u=100434




If you dont click Install your requests for assistance slip down the queue :)

ENJOY

Tuesday 20th January 2009
***UPDATED***

Please change bbuserinfo to userinfo
Product updated.

Will when viewing other users profiles, show that members playlist.com playlist.

Enjoy.

TimberFloorAu 01-14-2009 10:14 PM

Reserved:

ZIP includes: Product and readme

tommyturnage 01-19-2009 06:21 PM

I did everything Exactly as you said and it didnt do anything

G-man561 01-19-2009 11:08 PM

Dude! I've totally seen this before.... I just can't remember where? Dajavu maybe... lol
Thanks though, I'll tell ya if i works!

Edit
Wasn't able to get it to work either.... =/

TimberFloorAu 01-19-2009 11:51 PM

Updating the product now, and instructions.

Please try again, and if possible list error that you get.

Ste

*******************************************
To Help others, its always recommended that you be more specific with issues you may have. This mod works in 3.7 and 3.8

G-man561 01-20-2009 12:11 AM

Hey, I got it to work after messing around with it. =]
Thanks man.

BobbyDiesel 01-20-2009 12:19 AM

Nothing shows up. Has anyone had success with this?

BobbyDiesel 01-20-2009 12:19 AM

Quote:

Originally Posted by G-man561 (Post 1718417)
Hey, I got it to work after messing around with it. =]
Thanks man.

What did you do?

G-man561 01-20-2009 11:16 PM

Quote:

Originally Posted by BobbyDiesel (Post 1718421)
What did you do?

I mean, I messed around with the code until I got it to work.
Not sure if its 100% but its working for me.
Link

TimberFloorAu 01-21-2009 01:28 AM

Thats not our original code, please click uninstalled gman, and either upload our product and do code changes. then click installed.

You have an error.

<embed style="width:240px; visibility:visible;
height:240px;" allowScriptAccess="never" src="http://www.musicplaylist.net/mc/mp3player-othersite.swf?
config=http://www.musicplaylist.net/mc/config/config__shuffle.xml&mywidth=240&myheight=220&playl ist_url=http://www.musicplaylist.net/lo
adplaylist.php?playlist=
" menu="false" quality="high" width="240" height="220" name="mp3player" wmode="transparent"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" border="0"/></embed>


Presumably you didnt follow the easy instructions, Of creating 2 new user profile fields. Then pasting your playlist id into one of them, and choosing a colour for the other one.

If you get stuck, pm me
Regards

tommyturnage 01-21-2009 04:41 AM

I'm not sure why but its not working.

I did everything u said and it still didn't work

I thought, "Maybe Im a n00b" so I did it several more times.

Still nothing

Everything showed up except the player on the profile

Help?

TimberFloorAu 01-22-2009 05:42 AM

Quote:

Originally Posted by tommyturnage (Post 1719771)
I'm not sure why but its not working.

I did everything u said and it still didn't work

I thought, "Maybe Im a n00b" so I did it several more times.

Still nothing

Everything showed up except the player on the profile

Help?

Did you add the extra profile fields ?
Did you take down the profile field number for the 2 you created? .. if you did, are you sure you got the id, and not the display order ! ( common mistake ) heres a piccy.

Come back to me if you did this correctly or not.

tommyturnage 01-22-2009 05:20 PM

Quote:

Originally Posted by TimberFloorAu (Post 1720905)
Did you add the extra profile fields ?
Did you take down the profile field number for the 2 you created? .. if you did, are you sure you got the id, and not the display order ! ( common mistake ) heres a piccy.

Come back to me if you did this correctly or not.

Yeah I Used The Right Profile Field Numbers

14 & 15

TimberFloorAu 01-22-2009 08:20 PM

Can you give me a link to a profile, with the playlist enabled ( albeit not working so I may check )

I am presuming you have entered the correct playlist id. In USerCP, edit your details ?

tommyturnage 01-23-2009 03:15 AM

<a href="http://iw4r3z.net/member.php?u=1" target="_blank">http://iw4r3z.net/member.php?u=1</a>

Yes I entered the right playlist ID

dirtyfeast 01-28-2009 04:42 AM

Works Great. I am using 3.7.4 vBulletin. In the code below is what is causing the others to have problems.

Code:

<!-- yobromofo.com playlist -->
<if condition="$bbuserinfo[fieldi]">
<div id="playlist" class="tborder content_block">
        <h4 class="thead block_title">
                <a href="#top" class="collapse_gadget" onclick="return toggle_collapse('playlist')"><img id="collapseimg_playlist" src="images/buttons/collapse_generic.gif" alt="" border="0" /></a>
                <a name="albums"></a>
                <span class="block_name">My Music Player</span>
        </h4>
        <div class="block_content" id="collapseobj_playlist" style="">
       

               
                       
        <div class="alt2 block_row block_footer">               
        <embed style="width:300px; visibility:visible;
height:250px;" allowScriptAccess="never" src="http://www.musicplaylist.net/mc/mp3player-othersite.swf?
config=http://www.musicplaylist.net/mc/config/config_$bbuserinfo[fieldb]_shuffle.xml&mywidth=300&myheight=250&playlist_url=http://www.musicplaylist.net/lo
adplaylist.php?playlist=$bbuserinfo[fielda]" menu="false" quality="high" width="300" height="250" name="mp3player" wmode="transparent"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" border="0"/></embed></div>

</div>
</div>
</if>
<!-- / yobromofo.com playlist -->

In the directions for first template edit you have to change fielda to the Playlist ID profile field #. You have to change fieldb to the Playlist Colour profile field #. Near the top of this code there is also a fieldi that has to be changed to Playlist ID profile field #. Once this is done the playlist will show up, and all will enjoy.

My only issue is that I can not get it to change color. Some help would be appreciated on this. I also changed name, and size dimensions for my site which are reflected in above code.

I also cant get this to show for guests.

dirtyfeast 01-28-2009 04:56 AM

You also need to add this to directions so that permission can be set.

To edit usergroups,,
admincp >> Plugins & Products >> Plugin Manager:
YoBroMoFo Playlist for member profile

Add the usergroup ID,that you want to be able to use the YoBroMoFo Playlist..

Code:
Code:

if (is_member_of($vbulletin->userinfo,1 ,2 ,5 ,6 ,7))
Like this: ,1 ,2 ,3 ,4 ,5 ,6 ,7 ,8 ,9

Rider69 01-28-2009 07:49 AM

Might like this, but waiting for a stable release...

TimberFloorAu 01-29-2009 03:20 AM

works fine mate !!

lil ru and lost in your playlist, working and loading sweet

TimberFloorAu 01-29-2009 03:20 AM

Quote:

Originally Posted by dirtyfeast (Post 1726867)
You also need to add this to directions so that permission can be set.

To edit usergroups,,
admincp >> Plugins & Products >> Plugin Manager:
YoBroMoFo Playlist for member profile

Add the usergroup ID,that you want to be able to use the YoBroMoFo Playlist..

Code:
Code:

if (is_member_of($vbulletin->userinfo,1 ,2 ,5 ,6 ,7))
Like this: ,1 ,2 ,3 ,4 ,5 ,6 ,7 ,8 ,9

Great idea, will add this into future release.

:up:


All times are GMT. The time now is 07:41 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.01301 seconds
  • Memory Usage 1,800KB
  • 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
  • (3)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete