![]() |
Help with variables...
When you view a persons user profile by this URL member.php?u=1
Ok I have a custom music player put on the page. And I have a file which is called playlist.php Now in playlist.php I am making the playlist for the music player. Looks like this: PHP Code:
example: http://www.name.com/music.mp3 This might be confusing... not sure. But I need help! Thanks. So basically in the end all my users can have a music player. and they will have 3 profile fields in which to enter the URL for there music.. |
Have you tried: [minicode]$userinfo['field15'][/minicode] ?
|
well thats the thing Im not sure what to use..
PHP Code:
So basically at the bottom where it says $userinfo['field15'] is where I want this to show up: if i'm viewing member.php?u=1 How would I tell my config file that I'm viewing user=1 and I need to gather the info out of ['field15'] so that when I view his profile, it plays the song he inputed in his user cp. |
I'm not sure about the non-PHP bit but you'd need something like:
PHP Code:
|
--------------- Added [DATE]1208731136[/DATE] at [TIME]1208731136[/TIME] ---------------
PHP Code:
What would I do to get the ID # of the user's profile you are visiting... and then show that in the query above. |
You don't need to query the database, all the information is already available through the $userinfo array.
|
yea, but this file is standalone from and vb script. its in a file called playlist.php
Know when someone visits someones profile I need to send that user id to the playlist.php file so It can retrieve that persons music... any clues on how to do that... |
You don't send the data to playlist.php you include playlist.php into member.php (via. Plugins, using require_once()). This way you will be able to use the [minicode]$userinfo[/minicode] array on that page.
P.S. I also indicated in my previous post that you don't need to include the directory path when including global.php, you are already changing ([minicode]chdir()[/minicode]'ing) to that directory! However I'm not sure if there is a need to include it anyway. Read the PHP comments in my previous post. |
All times are GMT. The time now is 10:52 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|