Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

User ranks

Code in post #19 fixed.
Ok, now, now errors, but still, can't see image in profile. I think i done everything as i had to..

i52.tinypic.com/10qctbq.jpg

I use this for image and it's definetly working: http://www.rsbots.lt/images/ranks/patikimas.png
File

/includes/user_fields/user_srank_include.php

Look for...

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]echo "<font color='green'>".$user_data['user_srank']."</font>\n";[/syntaxhighlighter]

Change that too...

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]echo "<img src='".$user_data['user_srank']." width='100px' height='100px' alt='' />\n"; [/syntaxhighlighter]

Save upload overwrite.

Now edit special_ranks.php

Look for...
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]
echo " <td class='".$row_color."'><span style='color:#339900;'>".$data['user_srank']."</span></td>\n";[/syntaxhighlighter]

Change it too...
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]
echo " <td class='".$row_color."'><img src='".$user_data['user_srank']." width='100px' height='100px' alt='' /></td>\n";[/syntaxhighlighter]

Save upload overwrite.

Now to use this when editing a users profile just simply add the url to the image in the textfield. something like...

http://www.theimagehost.com/imasges/the_image.jpg
Still, i was already changed these. After i changed super_ranks.php i got that error again.
I tried all that again today, and still it doesn't work. I deleted the mod, then uploaded it again, changed rows i needed to, but nothing. The one thing i don't like about php-fusion is that you can't do simple things simple.

Look, it shows that, user has rank, but it doesnt show image:

i54.tinypic.com/24enxgw.jpg
i knew there is a simple way to do that:

if (checkgroup(9, $data['user_id'])) echo "<img src='img.png' border='0' alt=''><br />\n";
Thread Information
Author
Replies
26 posts
Views
7,099 times
Last Post
Last updated on 9 years ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Craig, staktas