Member Color Link

Started by Nibogo, April 02, 2005, 06:32:51 AM

Previous topic - Next topic

Rain Forest

I had posted in this topic a link to the mod with a manual edit for RC4 which is also usable on RC5 but it's removed so I guess you all have to wait for the real author to answer this. :)

Jayne Louise

Is it possible to make the Administrator name colour be their post group colour rather than the name being the Administrator membergroup colour?

RC4
~J:L

turtleautos

hi i installed this with the rc5 edit now im getting the folloing errors in the error log any ideas??


Apply Filter: Only show the error messages of this URL
http://www.r1-yzf1000.co.uk/index.php?action=pm;f=inbox;l=-1;done=sent
Apply Filter: Only show the errors with the same message
8: Undefined variable: MemberSetColor
Apply Filter: Only show the errors from this file
File: /homepages/16/d292974422/htdocs/forum/Sources/PersonalMessage.php
Line: 879


Apply Filter: Only show the error messages of this URL
http://www.r1-yzf1000.co.uk/index.php?action=pm;f=inbox;l=-1;done=sent
Apply Filter: Only show the errors with the same message
8: Undefined variable: colormodcheck
Apply Filter: Only show the errors from this file
File: /homepages/16/d292974422/htdocs/forum/Sources/PersonalMessage.php
Line: 854

bharatforum

Does this version compatible with SMF version 1.1.12?

Rain Forest

Quote from: turtleautos on March 12, 2011, 01:23:38 PM
hi i installed this with the rc5 edit now im getting the folloing errors in the error log any ideas??


Apply Filter: Only show the error messages of this URL
http://www.r1-yzf1000.co.uk/index.php?action=pm;f=inbox;l=-1;done=sent
Apply Filter: Only show the errors with the same message
8: Undefined variable: MemberSetColor
Apply Filter: Only show the errors from this file
File: /homepages/16/d292974422/htdocs/forum/Sources/PersonalMessage.php
Line: 879


Apply Filter: Only show the error messages of this URL
http://www.r1-yzf1000.co.uk/index.php?action=pm;f=inbox;l=-1;done=sent
Apply Filter: Only show the errors with the same message
8: Undefined variable: colormodcheck
Apply Filter: Only show the errors from this file
File: /homepages/16/d292974422/htdocs/forum/Sources/PersonalMessage.php
Line: 854

The original is not (yet) compatible with RC5.

TheListener

Have any of you tried to emulate the version?

Rain Forest

Quote from: Brack1 on March 15, 2011, 11:33:25 AM
Have any of you tried to emulate the version?

1 or 2 edit's are not comtable with RC5.

If someone needs this mod for RC5, contact me.

Groovy™


TheListener


bharatforum


Rain Forest

Quote from: Brack1 on March 15, 2011, 02:07:08 PM
Quote from: Groovy on March 15, 2011, 02:05:04 PM
please update to 2.0 RC5 :(

Please read the post above yours.

::)

Haha, sometimes it's easier not to read :P

halcyon

getting an error when trying to install. This was already mentioned on the previous page and no one answered it. I'm attempting to install on RC4 security patch.


Execute Modification   ./Sources/Load.php   Test failed

3.   Replace   ./Sources/Load.php   Test failed

It can't do the following...

Find...
if (!empty($row['id_moderator']))
$board_info['moderators'][$row['id_moderator']] = array(
'id' => $row['id_moderator'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_moderator'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_moderator'] . '" title="' . $txt['board_moderator'] . '">' . $row['real_name'] . '</a>'
);


Replace with...
if (!empty($row['id_moderator'])) {
//Online Color if needed for a Moderator :D, to many ways possible <<
if(!empty($modSettings['MemberColorModeratorLinks']))
$onlineColor = load_mod_color(true);
if(!empty($onlineColor))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_moderator'] . '" title="' . $txt['board_moderator'] . ' ' . $row['real_name'] . '"'.(!empty($modSettings['MemberColorLinkOldSpanStyle']) ? '><span style="color:'.$onlineColor.';">' : ' style="color:'.$onlineColor.';">') . $row['real_name'] . (!empty($modSettings['MemberColorLinkOldSpanStyle']) ? '</span>' : '').'</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_moderator'] . '" title="' . $txt['board_moderator'] . '">' . $row['real_name'] . '</a>';

$board_info['moderators'][$row['id_moderator']] = array(
'id' => $row['id_moderator'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_moderator'],
'link' => $link
);
}




Can anyone help?

Rain Forest

Quote from: halcyon on March 16, 2011, 06:54:41 PM
getting an error when trying to install. This was already mentioned on the previous page and no one answered it. I'm attempting to install on RC4 security patch.


Execute Modification   ./Sources/Load.php   Test failed

3.   Replace   ./Sources/Load.php   Test failed

It can't do the following...

Find...
if (!empty($row['id_moderator']))
$board_info['moderators'][$row['id_moderator']] = array(
'id' => $row['id_moderator'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_moderator'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_moderator'] . '" title="' . $txt['board_moderator'] . '">' . $row['real_name'] . '</a>'
);


Replace with...
if (!empty($row['id_moderator'])) {
//Online Color if needed for a Moderator :D, to many ways possible <<
if(!empty($modSettings['MemberColorModeratorLinks']))
$onlineColor = load_mod_color(true);
if(!empty($onlineColor))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_moderator'] . '" title="' . $txt['board_moderator'] . ' ' . $row['real_name'] . '"'.(!empty($modSettings['MemberColorLinkOldSpanStyle']) ? '><span style="color:'.$onlineColor.';">' : ' style="color:'.$onlineColor.';">') . $row['real_name'] . (!empty($modSettings['MemberColorLinkOldSpanStyle']) ? '</span>' : '').'</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_moderator'] . '" title="' . $txt['board_moderator'] . '">' . $row['real_name'] . '</a>';

$board_info['moderators'][$row['id_moderator']] = array(
'id' => $row['id_moderator'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_moderator'],
'link' => $link
);
}




Can anyone help?
Attach Sources/Load.php please.

halcyon


Rain Forest

Try this:

Search:
if (!empty($row['id_moderator']))
$board_info['moderators'][$row['id_moderator']] = array(
'id' => $row['id_moderator'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_moderator'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_moderator'] . '">' . $row['real_name'] . '</a>'
);


Replace by:
if (!empty($row['id_moderator'])) {
//Online Color if needed for a Moderator :D, to many ways possible <<
if(!empty($modSettings['MemberColorModeratorLinks']))
$onlineColor = load_mod_color(true);
if(!empty($onlineColor))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_moderator'] . '" title="' . $txt['board_moderator'] . ' ' . $row['real_name'] . '"'.(!empty($modSettings['MemberColorLinkOldSpanStyle']) ? '><span style="color:'.$onlineColor.';">' : ' style="color:'.$onlineColor.';">') . $row['real_name'] . (!empty($modSettings['MemberColorLinkOldSpanStyle']) ? '</span>' : '').'</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_moderator'] . '" title="' . $txt['board_moderator'] . '">' . $row['real_name'] . '</a>';

$board_info['moderators'][$row['id_moderator']] = array(
'id' => $row['id_moderator'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_moderator'],
'link' => $link
);
}

halcyon

Fantastic, it worked! I still got the install error but I made the one change manually and everything seems good.  ;D

uninvited13th

can you please post the mod for rc5 please.. :D

Rain Forest

Quote from: giovannie_1 on March 15, 2011, 11:51:27 AM
Quote from: Brack1 on March 15, 2011, 11:33:25 AM
Have any of you tried to emulate the version?

1 or 2 edit's are not comtable with RC5.

If someone needs this mod for RC5, contact me.

Quote from: uninvited13th on March 18, 2011, 05:11:23 AM
can you please post the mod for rc5 please.. :D

Cobra97

Ok, I have done this, numerous times with no luck??  For 1.1.12 u just change this one line using notepad, right?  I have no idea why it's not working, I see comment from others that got it working fine?

Thanks
John



Quote from: assam_siddibapa on January 12, 2011, 03:47:40 PM
Hello , If you are getting

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

The fix is
1) Download the package .
2) Extract it .
3) Find and edit "package-info.xml" with note pad ++ or notpad .
4) Search for and replace he following

For 1.1.12 users:-
Search for
<install for="1.1.5,1.1.6,1.1.7,1.1.8,1.1.9,1.1.10,1.1.11">

Replace with :
<install for="1.1.5,1.1.6,1.1.7,1.1.8,1.1.9,1.1.10,1.1.11,1.1.12">

Next save the files
Pack it in zip format and install .

This mod is great . Thanks to the author , I have been using this for years .


Slateer

i install in 2.0 rc.5 and replace load.php, but have errors

any can help in this thread?... (no PM)

Advertisement: