Member Color Link

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

Previous topic - Next topic

ivo2296

Hello,
is there any chance moderators color to be shown on "who is online" index?

DemonicInfluence

I think then, you need to manually create a new group for the moderator... Only then can u change their color

ivo2296

Quote from: DemonicInfluence on January 19, 2006, 01:02:55 PM
I think then, you need to manually create a new group for the moderator... Only then can u change their color

This won't work for me, moderators have permitions for some boards, not for hole forum. If i create a group and i put all moderators is this group their color will appear all over the forum and also in boards where they don't have permitions to moderate.

LostProphecy

Quote from: din1031 on January 19, 2006, 06:37:16 AM

Oh, i never new that top 10 karma exists xD.

Okay i made a version for this ;).

Look into the thread -> http://www.simplemachines.org/community/index.php?topic=18720.new

But give me some time XD.

Bye
DIN1031

thanx heaps for this i really appreciate it :)

it would be even heaps better if someone would make that top 10 karma into a mod...

i would but i sadly don't know anything about making a mod package (needs to learn) there's so many little code hacks that i'd like to make into packages
Angelus Ex Quo Nox

Roger

Hello,

Tried to install this mod but I get the following error:

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

Roger

ディン1031

#145
Quote from: Roger on January 19, 2006, 10:50:40 PM
Hello,

Tried to install this mod but I get the following error:

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

Roger
I test it on all my local installs and it work... i don't know why it not working <<... but i test it again <<...
and in which version of SMF did this happend?

Okay i hope i found the bug in my package.xml...

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Roger

Hi that was on a RC2 install... I will try again.

Thanks!

Roger

[edit]  Works now, thanks again! [/edit]

The Soldier

Execute Modification     ./Sources/ModSettings.php     Failure


^^Can someone please help me on that error? :-[

dehm

Thanks... hand installed without problems... :)

Only one error:

$txt['MemberColorThreadChild'] = 'Mostrar color en la parte de subforos;

It needs the last ':

$txt['MemberColorThreadChild'] = 'Mostrar color en la parte de subforos;'

Now for the spoiler one... ^^

dehm

TinaCat

This is a great Mod.
I installed this Mod in my forum and it works well.
But I'd like to know how can I change member color in shoutbox.
I installed Ultimate Shoutbox 1.31 in my forum, and want to change the color of member link too.
Please tell me how to do it.
Thanks~
hxxp:www.justusers.net/forums/index.php [nonactive]

ディン1031

#150
Hmmm simple XD i've made it somehow *g* hmmm i must look XD.

Change in the $sourcedir/shout.php

Search for

//Loop through the results and print them to the screen
$context['arc_shouts'] = array();
while($row = mysql_fetch_array($request))
$context['arc_shouts'][] = array(
'time' => timeformat($row['time']),
'id' => $row['ID_SHOUT'],
'message' => doUBBC(censorText($row['message'])),
'memberID' => $row['ID_MEMBER'],
'displayname' => $row['displayname'],
'email' => $row['email'],
'link' => empty($row['email']) && empty($row['ID_MEMBER']) ? $row['displayname'] : ('<a href="' . (empty($row['email']) ? $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] : 'mailto: ' . $row['email']) . '">' . $row['displayname'] . '</a>'),
);
mysql_free_result($request);


replace with


//Loop through the results and print them to the screen
$context['arc_shouts'] = array();
while($row = mysql_fetch_array($request)) {
$context['arc_shouts'][] = array(
'time' => timeformat($row['time']),
'id' => $row['ID_SHOUT'],
'message' => doUBBC(censorText($row['message'])),
'memberID' => $row['ID_MEMBER'],
'displayname' => $row['displayname'],
'email' => $row['email'],
'link' => empty($row['email']) && empty($row['ID_MEMBER']) ? $row['displayname'] : ('<a href="' . (empty($row['email']) ? $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] : 'mailto: ' . $row['email']) . '">' . $row['displayname'] . '</a>'),
);
$MemberColor_ID_MEMBER[$row['ID_MEMBER']] = $row['ID_MEMBER'];
}
mysql_free_result($request);

// Colors for the shoutbox :)
if (!empty($MemberColor_ID_MEMBER)) {
//Now i can Load the Missing global :)
global $user_profile;

loadMemberData($MemberColor_ID_MEMBER);

//So the Shout need colored links
foreach($context['arc_shouts'] as $k => $s) {
$profile = &$user_profile[$s['memberID']];
if(!empty($profile['member_group_color']) || !empty($profile['post_group_color']))
$context['arc_shouts'][$k]['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';
}
}


i think this should work ;).

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

TinaCat

din1031
I've tried your code, but it doesn't work.
The color of member link in shoutbox still be normal link color.
Anyway, thanks for your help.
hxxp:www.justusers.net/forums/index.php [nonactive]

ディン1031

I'm a idiot, yesterday i forget to add the first part of the replacemant <<

Please replace the part in the shout.php


$context['shouts'][] = array(
'time' => timeformat($row['time']),
'id' => $row['ID_SHOUT'],
'message' => $row['message'],
'memberID' => $row['ID_MEMBER'],
'displayname' => $row['displayname'],
'email' => $row['email'],
'link' => empty($row['email']) && empty($row['ID_MEMBER']) ? $row['displayname'] : ('<a href="' . (empty($row['email']) ? $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] : 'mailto: ' . $row['email']) . '">' . $row['displayname'] . '</a>'),
);
}
mysql_free_result($request);


replace with


$context['shouts'][] = array(
'time' => timeformat($row['time']),
'id' => $row['ID_SHOUT'],
'message' => censorText($row['message']),
'memberID' => $row['ID_MEMBER'],
'displayname' => $row['displayname'],
'email' => $row['email'],
'link' => empty($row['email']) && empty($row['ID_MEMBER']) ? $row['displayname'] : ('<a href="' . (empty($row['email']) ? $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] : 'mailto: ' . $row['email']) . '">' . $row['displayname'] . '</a>'),
);

$MemberColor_ID_MEMBER[$row['ID_MEMBER']] = $row['ID_MEMBER'];
}

mysql_free_result($request);

// Colors for the shoutbox :)
if (!empty($MemberColor_ID_MEMBER)) {
//Now i can Load the Missing global :)
global $user_profile;

loadMemberData($MemberColor_ID_MEMBER);

//So the Shout need colored links
foreach($context['shouts'] as $k => $s) {
$profile = &$user_profile[$s['memberID']];
if(!empty($profile['member_group_color']) || !empty($profile['post_group_color']))
$context['shouts'][$k]['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';
}
}


Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

TinaCat

Thank you very much, din1031.
My shoutbox can display member link in different colors now.

At first I got error with 1st code that you tell me.
The error is about }, so I try to delete the last } in your 1st code, and it works then.

I edited all 2 parts in my Shout.php, and make my shoutbox colorful now.
Thanks din1031 for your help.
I love this Mod much~
:)

Sorry for my poor English..
hxxp:www.justusers.net/forums/index.php [nonactive]

ディン1031

Okay i copy to much from the file ;D (I deleted, if other user want use the change :X).

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

beachmama

I tried to install this and I get this

You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

I checked and they should be..

Help!

SolidSnake@GTI

I'm using SMF 1.1 RC2 & I have installed the lastest version of this hack 1.87 & nothing seems to be changed

whats wrong ?

Gary

You'll need to edit the settings in the Features and Options section of your admin center

Quote from: beachmama on February 08, 2006, 10:55:14 AM
I tried to install this and I get this

You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

I checked and they should be..

Help!
Chmod your Packages directory to 777
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

SolidSnake@GTI

thanks
it wasn't appear for me coz of the language files I'm using doesn't edited

now its all right

// peace

lawless314

When viewed in Firefox, I have this problem...



It looks fine in IE.  The problem being that the link underline is not the same colour as the link.  This only happens with the new mod linked members.

Is there any quick solution to this?

Advertisement: