vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Profile Enhancements - EPC MySpace Music Player to Profile (https://vborg.vbsupport.ru/showthread.php?t=156039)

blogtorank 08-22-2007 10:00 PM

EPC MySpace Music Player to Profile
 
EPC MySpace Music Player to Profile

Description:


All of you bands, music artists on MySpace looking to increase your hits and plays? Well here you go!

Install:

Follow the README.pdf :) or here:
  • Go To: Admincp > User Profile Fields > Add a new user profile field
    • See the PDF document for a screenshot of the required fields.
    • Note down the field id
    • Edit the memberinfo_customfields template
    • Add the following at the end:
PHP Code:

<if condition="$profilefield[profilefieldid]=='5'"

*Remember to change the number 5 to match the custom field ID for your forums.
  • Import the attached plugin ? plugin_epc_myspace_player.xml
  • Edit the plugin:-
PHP Code:

$url ="http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=".$bbcode_parse
r
->parse($userinfo["field5"],0true);

Replace field5 with the field number that corresponds to the custom field id for ?My Space
Friend ID
field

  • Save the plugin.
  • Thats all
Usage:

Enter your friend id in the usercp profiles section. Goto member profile to view your myspace player. Viola Pure Love!!!!!

Requirements:

You mush have CURL installed on your server.

Don't ask me how to install CURL or verify, ask your webhost, technician or whoever runs this server for you if CURL is installed.

Enjoy as it works look at the screenshot and do add do friend up with me at MySpace :) EPCTechno

Oh and mark install if you like this!
Copyrights:


Another thing, do NOT use this code elsewhere in another hack unless you ask for permissions stating you made this and made that :D Let's get real and give props to my MySpace profile for this!

blogtorank 08-23-2007 11:04 AM

Reserved for future usage. Have a great day!

jasculs 08-23-2007 01:43 PM

hello...this isn't working for me it seems....my host says that curl is enabled...also can I put the code $myplayercode in the MEMBERINFO? I have a custom profile set-up

jasculs 08-23-2007 01:50 PM

ok...this only works with myspace music pages? can I somehow get the player/music that is in my profile..I don't have a myspace music page?

jasculs 08-23-2007 02:23 PM

Ok...I know what the problem is, but I'm not sure how to change it....MySpace music profiles and regular profiles have different music players when you look at the source code...MySpace music players use the id "mp3player", where as regular profiles with the smaller players use "mini" I think.

Also I believe the object code may be a bit different.

It would be great if you could get it to fetch the music players from regular profiles also.

yahoooh 08-23-2007 04:39 PM

great idea

blogtorank 08-23-2007 06:40 PM

Quote:

Originally Posted by jasculs (Post 1324002)
ok...this only works with myspace music pages? can I somehow get the player/music that is in my profile..I don't have a myspace music page?

Yes this works for MySpace Artist's Music Player due to this thread:

https://vborg.vbsupport.ru/showthread.php?t=155259

The screenshot depicts what this supports... Everyone and their brother has a Embed Video code to the forums, now an Artist on MySpace can put their music in their profile on a forums that supports this!

jasculs 08-23-2007 06:49 PM

But is there a way to have it embed the smaller players also like you see in regular myspace profiles because I have custom profiles and music profile players are too big. See here at my profile:

www.grapplersguide.com/forums/grapplersguide

When I add the player it makes the profile go off the template

jasculs 08-23-2007 06:55 PM

or is there a way to embed the music profile players but make them smaller?

blogtorank 08-23-2007 06:56 PM

Quote:

Originally Posted by jasculs (Post 1324249)
But is there a way to have it embed the smaller players also like you see in regular myspace profiles because I have custom profiles and music profile players are too big. See here at my profile:

www.grapplersguide.com/forums/grapplersguide

When I add the player it makes the profile go off the template

Yeah well like I said this is for the WHOLE player for the Artist only... To help increase plays :) However on the smaller one I'll see about that...

jasculs 08-23-2007 07:10 PM

Quote:

Originally Posted by blogtorank (Post 1324254)
Yeah well like I said this is for the WHOLE player for the Artist only... To help increase plays :) However on the smaller one I'll see about that...

Yes...I know...the music that is in the smaller players though are from the artists on myspace too...so it helps get exposure both ways.

I would also definitely use the MySpace artists players if it didn't effect the profiles in my forum...is there a way I can parameters for the size of the player.

blogtorank 08-23-2007 07:22 PM

Quote:

Originally Posted by jasculs (Post 1324260)
Yes...I know...the music that is in the smaller players though are from the artists on myspace too...so it helps get exposure both ways.

As I said I'll look into this, because the fact is that I made this for the whole player. I would make a baby mod for this one! How's that sound? I like your recommendation, and see your point for your forums, even though you have a slightly slow loading profile on your forums, fractioned T-1 took 8 seconds to load your profile :eek: (I would check that out and see what you can do to speed that up though and not add no more hacks :rolleyes:)

Just rather keep them separate and not to mix nothing up, because the intentions for this mod is for the respect to the Artist's full player!

jasculs 08-23-2007 07:27 PM

Quote:

Originally Posted by blogtorank (Post 1324266)
As I said I'll look into this, because the fact is that I made this for the whole player. I would make a baby mod for this one! How's that sound? I like your recommendation, and see your point for your forums, even though you have a slightly slow loading profile on your forums, fractioned T-1 took 8 seconds to load your profile :eek: (I would check that out and see what you can do to speed that up though and not add no more hacks :rolleyes:)

Just rather keep them separate and not to mix nothing up, because the intentions for this mod is for the respect to the Artist's full player!

I understand...I'm planning on upgrading my hosting soon so hopefully that will help with the speed...Thank you for your replies also..they are much appreciated.

blogtorank 08-23-2007 08:16 PM

Quote:

Originally Posted by jasculs (Post 1324270)
I understand...I'm planning on upgrading my hosting soon so hopefully that will help with the speed...Thank you for your replies also..they are much appreciated.

I did post here: https://vborg.vbsupport.ru/showthread.php?t=129339 Which you should check out sometime when you get the time, about checking speeds, optimizing, and etc for your hosting environment...

You are welcome too, I just like to keep these mods separated and to the point!

blogtorank 08-24-2007 01:38 AM

Updated the Mod's Description with the Install notes so it'll be easier for anyone to simply copy/paste the code now. Enjoy! Love to hear all that did install of their feedback...

COBRAws 08-24-2007 03:04 AM

mmm somehow this is slowing up CONSIDERABLY my profile pages.

The D 08-24-2007 03:18 AM

This may be a dumb question, but is there any chance of a version that doesn't require CURL? As you can tell, I'm very unfamiliar with it, but as I installed the mod, I came to find out that my host doesn't have it installed and would love to use this mod.

If not, no harm done. Just thought I would ask. :)

blogtorank 08-24-2007 04:12 AM

Quote:

Originally Posted by COBRAws (Post 1324524)
mmm somehow this is slowing up CONSIDERABLY my profile pages.

Well is your Argentina domain the one that's slowed up? Because here is your overall benchmark test on your site to show the speeds of how fast your site in your signature loads from the index page:

Quote:

> ab -n 1000 -c 10 http://www.nightclubber.com.ar/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.121.2.1 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/

Benchmarking www.nightclubber.com.ar (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Finished 1000 requests


Server Software: Apache/1.3.37
Server Hostname: www.nightclubber.com.ar
Server Port: 80

Document Path: /
Document Length: 124528 bytes

Concurrency Level: 10
Time taken for tests: 462.591012 seconds
Complete requests: 1000
Failed requests: 987
(Connect: 0, Length: 987, Exceptions: 0)
Write errors: 0
Total transferred: 125102302 bytes
HTML transferred: 124516212 bytes
Requests per second: 2.16 [#/sec] (mean)
Time per request: 4625.910 [ms] (mean)
Time per request: 462.591 [ms] (mean, across all concurrent requests)
Transfer rate: 264.10 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 39 39 0.9 39 55
Processing: 1129 4576 2467.5 4159 20924
Waiting: 867 4263 2446.7 3881 20670
Total: 1168 4615 2467.6 4199 20963

Percentage of the requests served within a certain time (ms)
50% 4199
66% 5212
75% 5907
80% 6319
90% 7603
95% 8931
98% 11287
99% 13756
100% 20963 (longest request)
>
Should check out this thread sometime:

https://vborg.vbsupport.ru/showthrea...=129339&page=4

So if I were you, I wouldn't say this is slowing your pages down :), it's basically your home page that failed 987 out of 1000 requests.... Got it? ;)

Quote:

Originally Posted by The D (Post 1324532)
This may be a dumb question, but is there any chance of a version that doesn't require CURL? As you can tell, I'm very unfamiliar with it, but as I installed the mod, I came to find out that my host doesn't have it installed and would love to use this mod.

If not, no harm done. Just thought I would ask. :)

I'll figure something out for you, but perhaps ask your host why it's NOT installed?

COBRAws 08-24-2007 06:47 AM

Thanks!

blogtorank 08-24-2007 06:53 AM

Quote:

Originally Posted by COBRAws (Post 1324593)
Thanks!

You got it man! Do love your forums though!!!

blogtorank 08-24-2007 09:37 AM

One had an issue and PM me to look at what could be causing an issue with 4 players showing up in their profile here is a fix for this:

If you used this inside your memberinfo_customfields:

Quote:

  • Edit the memberinfo_customfields template
    • Add the following at the end:
Quote:
<tr>
<td>
$myplayercode
</td>
</tr>
Replace with:

PHP Code:

<if condition="$profilefield[profilefieldid]=='5'"

See the 5? Remove this 5 with the profile ID that's within your User Profile Field Manager when you set up the new field within the user profile.

This is only for the ones that are facing 4x players within their profile or perhaps multiples :) So we went for an if conditional and found this to work fine even with a new install!

Best regards!

applyimage 08-24-2007 10:57 AM

Installing this now good sir!

edit: Installed but a 'page cannot be displayed page' is shown whenever I click a profile that has their ID entereted. This may because I don't have 'curl' :(

edit2: Going to contact my server admin, this 'curl' is far too confusing for me.

Quote:

The server uses f_open() instead of cURL()
Does this mean anything to anybody? :) guessing the plugin would have to re-written to work for 'f_open()'

blogtorank 08-24-2007 06:49 PM

f_open() = more resources used on your server vs the cURL(), however you can have f_open and cURL() on the same time on a server... It's advisable to use cURL over fopen....

applyimage 08-24-2007 09:40 PM

ok he will be installing curl in the next few days. thanks blogtorank.

rb290 08-24-2007 11:16 PM

Damn this hack is awesome but that CURL stuff is confusing do I have to get my host admin to install for me? Or can I do it myself?

blogtorank 08-24-2007 11:41 PM

Quote:

Originally Posted by applyimage (Post 1325059)
ok he will be installing curl in the next few days. thanks blogtorank.

You got it man, it's not that hard to compile into php and if you have cpanel you can simply do this via

Quote:

Originally Posted by rb290 (Post 1325101)
Damn this hack is awesome but that CURL stuff is confusing do I have to get my host admin to install for me? Or can I do it myself?

Do you even know if you have it compiled into PHP? Have you viewed your PHP info?

applyimage 08-25-2007 11:20 AM

Quote:

Originally Posted by blogtorank (Post 1325111)
You got it man, it's not that hard to compile into php and if you have cpanel you can simply do this via

Yeah I have access to cpanel and ftp, but I downloaded the curl package and there where files that I have no idea what im supposed to do with them, never heard of curl before this thread. No worries though man I'll just be patient :cool:

blogtorank 08-25-2007 11:25 AM

Ummm if you have cPanel just run /scripts/easyapache pick option 7, and then go from there, if you aren't too familiar with SSH or anything like that it's best you hire someone to do it or have your host do it ASAP.

We did get a guy write in the yesterday about how he went from 100 plays a day to over 800+ from using this MOD :)

applyimage 08-26-2007 09:46 PM

Knowing me, I'd just f*** it up :)

Yeah how this mod was never created earlier idk, Myspace is becoming huge for aspiring musicians now and they love their play counts, so this should be a popular mod as soon as people know about it.

blogtorank 08-26-2007 10:28 PM

Well do you have SSH? Send me a PM if you do I'll compile it into your PHP if you like... Sunday Free day :D

applyimage 09-09-2007 08:50 PM

My host cannot install curl, any possability this can be written for f_open? :)

Iskib 10-12-2007 12:19 PM

--------------------------------------------------------------------------------

I purchased the full version of another one of this guys products. It has been 5 days and still not able to download it. They have asked for information which I have sent and still the file is not there to download.

I have sent 3 support tickets with no response.

************WARNING**************

STAY AWAY

subnet_rx 10-12-2007 01:39 PM

I'm getting this error:
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /member.php(607) : eval()'d code on line 157

sinistergaming 10-25-2007 07:37 AM

i tried to get this working but
it dont just show th music player it displays he entire profile and messes the style on vb up.

Conner85 04-06-2008 09:55 AM

Quote:

Originally Posted by sinistergaming (Post 1368138)
i tried to get this working but
it dont just show th music player it displays he entire profile and messes the style on vb up.

Same here. But it could be that I have the Interactive Profiles hack. I installed this hack and it took away the footer along with the other profile information. Everything from the signature on down. When I take the $customfields out, everything goes back to normal. As well as disabling the MySpace Player plugin.

Note: this only happens in IE. FireFox looks perfect. Is there any way to fix this so that my IE users are able to view it as if they were using FireFox?

Conner85 04-07-2008 03:37 AM

Also.. when just a regular user wants to edit their profile and they don't put anything in the MySpace Friend ID field, after clicking save, this shows up:

Quote:

You did not enter the correct format for the MySpace Friend ID field. Please read the field description for the expected format.
I set the field not to be required.

Although, this is my test site and I don't have any users, I'm just trying to correct all errors before I move everything over to my real site which has almost 200,000 members.

This is an awesome hack by far, and probably one of the best I've seen since I run a site that promotes Metal bands. They'll get a kick out of this.


**EDIT**

Delete the [0-9] that shows in the screen shot. If the field is left blank, it won't let you go beyond the Edit Profile page. But still having problems with it screwing the profile up in IE.

Conner85 04-18-2008 12:27 AM

Or... I'm guessing this thread has been abandoned?

Conner85 04-18-2008 12:07 PM

OK .. I found a fix for anyone using IE.

IE doesn't recognize the closing </object> tag in the PHP script. Therefore, anything after the flash movie will not show up, due to the flash movie covering all of the other script. So.. if you choose not to use the $customfields in the template, and you decide to just place the $myplayercode into your MEMBERINFO template, type it out like this

Code:

$myplayercode</object>
Or if you decide to use the $customfields in the template, in your MEMBERINFO template, type it out like this

Code:

$customfields</object>
If this thread wasn't abandoned, I'd say it should be posted in the first post.

rapsearch 05-19-2008 01:56 PM

i'm very interested in this.. does anyone know if this goes with the stable 3.7 version??

rapsearch 06-16-2008 05:50 PM

seems dead :(... any coder willing to take over/update this for vb 3.7+??


All times are GMT. The time now is 07:58 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.01443 seconds
  • Memory Usage 1,851KB
  • 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
  • (3)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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