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.
Not a member yet? Click here to register.
Forgot Password?

User ranks

Asked Modified Viewed 8,044 times
S
staktas
S
  • Junior Member, joined since
  • Contributed 18 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
asked
Junior Member

Hi, i created user rank, and wondered, how i can set it for user. Could i set it for user through rank_apply field as you see in this pic?

i56.tinypic.com/rupfl3.jpg

Thanks.
0 replies

25 posts

C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Code in post #19 fixed.
0 replies
S
staktas
S
  • Junior Member, joined since
  • Contributed 18 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Junior Member

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
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

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
0 replies
S
staktas
S
  • Junior Member, joined since
  • Contributed 18 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Junior Member

Still, i was already changed these. After i changed super_ranks.php i got that error again.
0 replies
S
staktas
S
  • Junior Member, joined since
  • Contributed 18 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Junior Member

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
Edited by staktas on 21-01-2011 13:32,
0 replies
S
staktas
S
  • Junior Member, joined since
  • Contributed 18 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Junior Member

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";
0 replies

Category Forum

User Administration - 8

Labels

None yet

Statistics

  • Views 0 views
  • Posts 25 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
S
S
  • Junior Member, joined since
  • Contributed 18 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet