Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 07-24-2012, 04:43 PM
Aasixx's Avatar
Aasixx Aasixx is offline
.. your friendly geek. c:
 
Join Date: Nov 2011
Location: somewhere ur not.
Posts: 191
Gender: Female
Credits: 27,191
Aasixx is on a distinguished road
Default Staff rankings?

Is there anyway I can make it, under their username when viewing their profile, it shows their staff ranking? For example, "Moderator" appears under their name. Thanks.
__________________
Reply With Quote
  #2  
Old 07-24-2012, 10:39 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 327,707
Hall of Famer is on a distinguished road
Default

Well you can see this by clicking this link:
http://www.mysidiaadoptables.com/forum/showgroups.php

And you are not able to see such information by looking at their profile.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #3  
Old 07-24-2012, 11:34 PM
Aasixx's Avatar
Aasixx Aasixx is offline
.. your friendly geek. c:
 
Join Date: Nov 2011
Location: somewhere ur not.
Posts: 191
Gender: Female
Credits: 27,191
Aasixx is on a distinguished road
Default

Actually, I meant making rankings for my site. XD Like, if there was a code to add rankings.
__________________
Reply With Quote
  #4  
Old 07-24-2012, 11:56 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 327,707
Hall of Famer is on a distinguished road
Default

Oh sorry, I thought you were referring to this support forum since you mentioned Moderator. XD The usergroup Moderator does not exist on Mys sites, which is why it sounds so confusing.

No one has ever made a code to add ranking, but it should not be difficult. If you do not mind, take a screenshot of your profile page and use paint/photoshop to mark the location you want the text to display. I will write a code for you then.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #5  
Old 07-25-2012, 12:02 AM
Aasixx's Avatar
Aasixx Aasixx is offline
.. your friendly geek. c:
 
Join Date: Nov 2011
Location: somewhere ur not.
Posts: 191
Gender: Female
Credits: 27,191
Aasixx is on a distinguished road
Default



Like this, where you can set the rankings to either moderator or admin for a certain user.
Thanks. c:
__________________
Reply With Quote
  #6  
Old 07-25-2012, 12:42 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 327,707
Hall of Famer is on a distinguished road
Default

Well here you go!

Find this line in profile.php first:

PHP Code:
    $article_content .= "<li><strong><u>{$lang_basic_info} {$user}</u></strong><br /><br />
                            <img src='
{$row->avatar}' border=0 width='100' height=100 /><br />
                            <strong>Member Since:</strong> 
{$row->membersince}<br /><br />
                            Gender: 
{$row->gender}<br />
                            Favorite Color: 
{$row->color}<br />
                            Nickname: 
{$row->nickname}<br />
                            Bio: <br />
                            
{$row->bio}<br /></li>"
And replace with:

PHP Code:
    $usergroup $adopts->join("groups""groups.gid = users.usergroup")
                ->
select("users", array(), constant("PREFIX")."users.username = '{$user}'")->fetchObject();
    
$article_content .= "<li><strong><u>{$lang_basic_info} {$user}</u></strong><br /><br />
                            Usergroup: 
{$usergroup->groupname}<br />
                            <img src='
{$row->avatar}' border=0 width='100' height=100 /><br />
                            <strong>Member Since:</strong> 
{$row->membersince}<br /><br />
                            Gender: 
{$row->gender}<br />
                            Favorite Color: 
{$row->color}<br />
                            Nickname: 
{$row->nickname}<br />
                            Bio: <br />
                            
{$row->bio}<br /></li>"
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #7  
Old 07-25-2012, 12:51 AM
Aasixx's Avatar
Aasixx Aasixx is offline
.. your friendly geek. c:
 
Join Date: Nov 2011
Location: somewhere ur not.
Posts: 191
Gender: Female
Credits: 27,191
Aasixx is on a distinguished road
Default

This is what I get when I go to the user's profile:
"Fatal error: Call to undefined method PDO::join() in /home/ipetsx10/public_html/profile.php on line 110"
__________________

Last edited by Aasixx; 07-25-2012 at 01:00 AM.
Reply With Quote
  #8  
Old 07-25-2012, 07:06 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 327,707
Hall of Famer is on a distinguished road
Default

umm what version of this script are you using? Mys v1.3.1? o_o
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #9  
Old 07-25-2012, 03:50 PM
Aasixx's Avatar
Aasixx Aasixx is offline
.. your friendly geek. c:
 
Join Date: Nov 2011
Location: somewhere ur not.
Posts: 191
Gender: Female
Credits: 27,191
Aasixx is on a distinguished road
Default

Yep, that's the script version I'm using.
__________________
Reply With Quote
  #10  
Old 07-25-2012, 07:19 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 327,707
Hall of Famer is on a distinguished road
Default

Are you sure about this? Its impossible that Mys v1.3.1's script does not recognize the Database::join() method. Anyway I can rewrite the code for you a few hours later, which should work even with Mys v1.3.0 and its beta.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for Staff/Co-Owners ilrak Staff Central 2 05-02-2015 01:29 PM
Eternia - needs staff Rovick Staff Central 88 07-12-2014 04:01 PM
[SEO]Increase your search rankings! eaglelegend Addons/Mods Graveyard 2 03-24-2009 05:57 PM
Staff eaglelegend Suggestions and Feature Requests 7 03-06-2009 11:45 PM


All times are GMT -5. The time now is 01:34 AM.

Currently Active Users: 709 (0 members and 709 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636