Sign Up! Login: Password: New User? Forgot? Support
Top Mods!
Wowhead Search
by sonofsamedi
Digital Clock
by Wolfar15
Admin Forums
Welcome to the GuildPortal Help Community! These forums are for admin-to-admin help.
Available Forums
Forums : Help from the Community > Adding Profile link in Free form HTML boxes
Huthur (New Admin) 1/20/2010 5:02 AM EST : Adding Profile link in Free form HTML boxes
Huthur
Posts: 458
Fingers of Fury!

Hi

As the Officers list is screwed up when you activate Council members, I have to make my own Officers List. The problem here is that I'll loose the Profile link to the Officers. I'l not be able to see the alts, to chat directly, and to send PM in a easy way.

Is there a way to add some HTML code to activate the profile link in the HTML boxes?
TopBottom

Mottie (MVP) 1/20/2010 6:16 AM EST : RE: Adding Profile link in Free form HTML boxes
GuildPortal MVP
Mottie
Posts: 3884
Zomgawsh Poster

Hi Huthur!

Well there isn't an easy way to do this, but I threw together a little script to make it a tiny bit easier.

Basically, follow these steps:
  1. For each officer you will need to get their profile ID#

    • Click on their name in the forums to open their profile. The window should look something like this:


    • See the text at the bottom of the window "/UserClick.aspx?p=537964690&Requestor=GuildPortal"? You will need to copy that ID number in red. As you can see my profile ID is 537964690. I know it's a pain.

    • Alternatively if they've never posted in the forums, you can get their ID from the Control Panel - This actually might be an easier way to do it.

      Go to Control Panel > Member Management > Profile Tracking. Find the person's name and right click on it, then copy the link location. It should be something like this:

      http://guildportal.com/CExplorer/exProfileTracking.aspx?Group=258012&Profile=537964690

      See the profile ID on the end? Paste the link then just copy/cut the ID from there.

  2. Now you just need to add some HTML to a Free Form Text/HTML widget, like this to your Officer List widget. Add it to a list (ul li) or how ever you want, just keep the link HTML like you see it. Replace the profile ID (in red) and User Names (in green).
    <a class="profile tooltip" title="Open profile for Mottie" name="537964690">Mottie</a><br>
    <a class="profile tooltip" title="Open profile for Someone Else" name="111111111">Someone Else</a><br>
    <a class="profile tooltip" title="Open profile for Somebody" name="222222222">Somebody</a><br>
  3. Then add this code inside the widget to make it all work properly.
    <script type="text/javascript">
    $(document).ready(function(){
     $('.profile').click(function(){
      var uid = this.name;
      if (uid == '' || typeof(uid)=="undefined") return false;
      openExternalDialog('/UserClick.aspx?p=' + uid , 515, 605);
      return false;
     })
    })
    </script>
TopBottom

Huthur (New Admin) 1/20/2010 7:11 AM EST : RE: Adding Profile link in Free form HTML boxes
Huthur
Posts: 458
Fingers of Fury!

Fantastic! Thanks a lot. Emergency avoided

Only thing missing from original is that there is no hand with finger poining (the actual mouse pointer). If you have a fast suggestion then please share. If it's much work the drop it. This works JUST fine!

Thanks again
TopBottom

Mottie (MVP) 1/20/2010 9:41 AM EST : RE: Adding Profile link in Free form HTML boxes
GuildPortal MVP
Mottie
Posts: 3884
Zomgawsh Poster

Add this bit of CSS to change the cursor ( it changes it for all tooltips )
<style type="text/css">
.tooltip { cursor: pointer; }
</style>
TopBottom

Huthur (New Admin) 1/22/2010 2:26 AM EST : RE: Adding Profile link in Free form HTML boxes
Huthur
Posts: 458
Fingers of Fury!

That worked well. Thanks again!
The officer List is nicer than ever.
TopBottom

Admins Online
There are   members online.
So-and-so has logged on!
%title%
%message%