Sign Up! Login: Password: New User? Forgot? Support
Code 
 
 
Forums 
Forums : Contact > Officer contact list alternative
chill808 (Applicant) 6/2/2010 2:14 PM EST : Officer contact list alternative
chill808
Posts: 34

0
Like

0
Dislike

So I really didn't like the officer contact list widget. I really wanted a way to display site admins, guild officers, and still have a way to be able to contact all of them. I fooled around and took some snippets of code here and there (I'm not all that great with code so if you see something that's redundant or wrong please let me know) and came up with a really simple way of displaying what I wanted. I know that mottie had gone over a custom box in another thread, I just wanted something to make it easy for members to send off quick messages. I threw the picture together just to show you and idea of how it looks.








        <div class="StyledListHeader">SubjectHeader</div>
        <ul class="StyledList">
   
        <li class="AltGridRow">
<a class="tooltip" title="Open profile for USER." onclick="openExternalDialog('/UserClick.aspx?p=userID&g=360141', 515, 605); return false;" href='javascript:void(0);'>USER</a>&nbsp;
<a class="tooltip" title="<b>Send GuildPortal Mail</b> : Click to send a message to the GuildPortal member who this character is associated with." onclick="openSendMsg('userID'); return false;"><img src="/Layout2006/email_add.png" /></a>
</li>
        <li class="NormGridRow">
<a class="tooltip" title="Open profile for USER." onclick="openExternalDialog('/UserClick.aspx?p=userID&g=360141', 515, 605); return false;" href='javascript:void(0);'>USER</a>&nbsp;
<a class="tooltip" title="<b>Send GuildPortal Mail</b> : Click to send a message to the GuildPortal member who this character is associated with." onclick="openSendMsg('userID'); return false;"><img src="/Layout2006/email_add.png" /></a>
</li>
</ul>

  • So each StyledListHeader will give you a new section so you can organize roles if you want, for instance if you wanted site admins and forum admins seperated. Just label to SubjectHeader what ever you want, such as in the picture it has Site Admins and Forum Admins.
  • Change USER to the name of the person you're assigning so it displays the correct tooltip and name on the site.
  • Then get the userID from either your roster, forum, where ever. (Mottie has it explained well on this post.)
  • You can use AltGridRow and NormGridRow if you choose.

Well that's about it, I'm probably going to add to this as I go along. Again I'm not really too great with code all I know is that it works.
TopBottom

 
 
Key 
New posts No new posts
New posts ( popular ) No new posts ( popular )
New posts ( sticky ) No new posts ( sticky )
New posts ( locked ) No new posts ( locked )
 
 
Who's Online 
There are   members online.
 
 
So-and-so has logged on!
%title%
%message%