Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 940
  • Dot Hidden: 0
  • Dot Users: 1
  • Dot Users Online:

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Blocks speak! Do you have an interest in getting more blocks - or even making your own? The Blocks Board is for you!

Roster

Started by Hoodie, May 13, 2013, 04:35:58 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Hoodie

OK.  I know I said that I was done but I have one more, hopefully small, request.  Is there any way to implement the Member Color Link mod to the page?

http://custom.simplemachines.org/mods/index.php?mod=111
Auto Junkiez..

Cal

A super easy way, in fact!  Add g.online_color to your SELECT string, and then call that in CSS for the member name cell.  So, like this:

SELECT m.real_name, m.id_member, g.group_name, g.online_color, GROUP_CONCAT(CASE WHEN t.value = "" THEN "N/A" ELSE t.value END ORDER BY t.variable SEPARATOR "</td><td class=\"windowbg\">") AS custom_fields, m.date_registered


And then

<td class="windowbg" style="color: ' . $row['online_color'] . ';"><a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '" title="' . $txt['profile_of'] . ' ' . $row['real_name'] . '">' . $row['real_name'] . '</a></td>