![]() |
Avatar in menu
Trying to get the user's avatar to show up by placing it in the functions.php with the links. I'm failing though... any ideas?
|
Of course 10 minutes after I posted I figured it out... Will post if anyone is interested.
|
I'm interested in that - I've wanted to do that for ages. D:
you have the coolest mods. |
My script is different than yours.... so I don't know the proper lines but...
Code:
$sidebar = "You have {$GLOBALS['money']} {$GLOBALS['settings']['cost']}.<br /> |
I'll try it soon. Gotta do some homework. xD Thank you!
(den mod, deeeeennnn moooooddddd srsly it is awesome.) |
I'm still having problems getting this to work. No matter where/how I put the code in it still says something like "error on line..." and when I check that line it was a code that worked before.
This is practically the default code, with minor edits for my site. Can you help? Code:
//This function determines what shows in the side bar of the template |
solskenn, try this:
PHP Code:
|
What version are you using of the Mys script?
|
v1.3 and I've only made small edits to the software (usually microscopic changes in a file).
I tried yours Stargirl and I got another "error in line.." message. |
Can you post your script here so I can take a look?
|
the whole thing? or just the sidebar part?
|
Just the sidebar part will be fine.
|
Code:
function getsidebar() { |
Where do you want your avatar to show up?
|
At the bottom, beneath where the "online members" is currently at.
While your poking in there, could I also ask that the "online members" be moved to above the links? If you just want to stick to adding the avatar then that's fine ^,^ Just thought I'd ask while you were already looking. |
I tried doing this as well - as well as the edit posted, but I'm getting the same error. D:
|
It shows me this when i refresh the page
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/989717/public_html/functions/functions.php on line 252 |
All times are GMT -5. The time now is 06:43 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.