Member Color Link

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

Previous topic - Next topic

.HuNTeR.

i dont know they have but i find it myself it is stats.php
somthing like:

// First the Top Starter =)
foreach($context['top_starters'] as $key => $value) {
if(!empty($colorDatas[$context['top_starters'][$key]['id']]['colored_link']))
$context['top_starters'][$key]['link'] = $colorDatas[$context['top_starters'][$key]['id']]['colored_link'];
}

thanks anyway

AZ-{OVGY}

I have a little problem with this mod, it works perfectly fine however in my forum error logs it writes alot of errors. I reinstalled my SMF forum last night to try to fix the problem (less than 12 hours ago) and I allready have 46 pages of errors reffering to the row variable in Load.php.

8: Undefined index:
File: C:\webserver\azovgy\Sources\Load.php
Line: 872

thats what it shows in the logs, the line it has problems with can be any with the row variable. The main section it has problems with is

'member_group_color' => $user_profile[$row['ID_MEMBER']]['member_group_color'],      
'post_group_color' => $user_profile[$row['ID_MEMBER']]['post_group_color'],

Like I said the mod works fine but I wish it didn't produce all these error logs, anybody have any ideas? Thanks in advance.

I'm using SMF 1.1.5
[nofollow]

ディン1031

Quote from: Mrs_Kiwi on September 02, 2008, 07:20:23 AM
I'm not sure exactly what you need to see from the error log.. there are a few errors, all referring to post color..

8: Undefined index: post_group_color
File: /home/content/q/u/i/quindey615/html/SMF/Sources/Display.php
Line: 944

8: Undefined index: post_color
File: /home/content/q/u/i/quindey615/html/SMF/Themes/default/languages/Profile.english.php (eval?)
Line: 454

      Database Error: Unknown column 'postColor' in 'field list'
File: /home/content/q/u/i/quindey615/html/SMF/Sources/ManageMembergroups.php
Line: 515
This have nothing to do with my mod, i think it came from the color post mod i think you did not make the db changes.

Quote from: HuNTeR@sm on September 02, 2008, 09:15:42 AM
i dont know they have but i find it myself it is stats.php
somthing like:

// First the Top Starter =)
foreach($context['top_starters'] as $key => $value) {
if(!empty($colorDatas[$context['top_starters'][$key]['id']]['colored_link']))
$context['top_starters'][$key]['link'] = $colorDatas[$context['top_starters'][$key]['id']]['colored_link'];
}

thanks anyway
Did you enable the option and it do not appear in that color?
I will look into it, please write me a pm which thank-o-matic version and which smf version.

Quote from: AZ-{OVGY} on September 02, 2008, 09:17:36 AM
I have a little problem with this mod, it works perfectly fine however in my forum error logs it writes alot of errors. I reinstalled my SMF forum last night to try to fix the problem (less than 12 hours ago) and I allready have 46 pages of errors reffering to the row variable in Load.php.

8: Undefined index:
File: C:\webserver\azovgy\Sources\Load.php
Line: 872

thats what it shows in the logs, the line it has problems with can be any with the row variable. The main section it has problems with is

'member_group_color' => $user_profile[$row['ID_MEMBER']]['member_group_color'],      
'post_group_color' => $user_profile[$row['ID_MEMBER']]['post_group_color'],

Like I said the mod works fine but I wish it didn't produce all these error logs, anybody have any ideas? Thanks in advance.

I'm using SMF 1.1.5
Hmmm can you attach the Load.php? I think something is missing :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

AZ-{OVGY}

[nofollow]

ディン1031

Quote from: AZ-{OVGY} on September 02, 2008, 10:45:22 AM
Here's my Load.php
I think you found a bug and here is the fix 8)

New Version ;)

Version 3.0.4 (02.09.08):
! Not correct selected cache data bug is removed (SMF 2.0.x/ 1.1.x)
- Upgrades Included

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

AZ-{OVGY}

Brilliant work, no error logs so far, excellent mod too, thx.   :)
[nofollow]

Mrs_Kiwi

Quote from: ディン1031 on September 02, 2008, 09:44:22 AM
Quote from: Mrs_Kiwi on September 02, 2008, 07:20:23 AM
I'm not sure exactly what you need to see from the error log.. there are a few errors, all referring to post color..

8: Undefined index: post_group_color
File: /home/content/q/u/i/quindey615/html/SMF/Sources/Display.php
Line: 944

8: Undefined index: post_color
File: /home/content/q/u/i/quindey615/html/SMF/Themes/default/languages/Profile.english.php (eval?)
Line: 454

      Database Error: Unknown column 'postColor' in 'field list'
File: /home/content/q/u/i/quindey615/html/SMF/Sources/ManageMembergroups.php
Line: 515
This have nothing to do with my mod, i think it came from the color post mod i think you did not make the db changes.

Thank you for that info.. in the meantime I still can't uninstall your mod because it says there is no uninstaller.. anyway for me to get around this?

ディン1031

Quote from: ディン1031 on September 02, 2008, 09:44:22 AM
Quote from: Mrs_Kiwi on September 02, 2008, 07:20:23 AM
I'm not sure exactly what you need to see from the error log.. there are a few errors, all referring to post color..

8: Undefined index: post_group_color
File: /home/content/q/u/i/quindey615/html/SMF/Sources/Display.php
Line: 944

8: Undefined index: post_color
File: /home/content/q/u/i/quindey615/html/SMF/Themes/default/languages/Profile.english.php (eval?)
Line: 454

      Database Error: Unknown column 'postColor' in 'field list'
File: /home/content/q/u/i/quindey615/html/SMF/Sources/ManageMembergroups.php
Line: 515
This have nothing to do with my mod, i think it came from the color post mod i think you did not make the db changes.

Thank you for that info.. in the meantime I still can't uninstall your mod because it says there is no uninstaller.. anyway for me to get around this?
My Mod?

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

Mrs_Kiwi

Yes.. I can't uninstall the member color link because as I said before, when I try it says there is no uninstaller.  Do you know how I can fix this error?

ディン1031

Quote from: Mrs_Kiwi on September 03, 2008, 08:03:08 AM
Yes.. I can't uninstall the member color link because as I said before, when I try it says there is no uninstaller.  Do you know how I can fix this error?
I look into my mod and i see there is an uninstaller, which version? ;)

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

Mrs_Kiwi


ディン1031

#631
Hummm a old version xD, i'm not sure if there is a uninstaller...

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

J-Rad14

Is it compatible with smf shop now?

Mystiquo

hi i have a problem with this mod, it's version 305  my smf version is 1.1.5 , i have an error with load.php i manualy modify load.php but in the registry i have this :
8: Undefined variable: coloredData
Sources/Load.php
Riga: 1095

Mystiquo


ディン1031

Quote from: J-Rad14 on September 04, 2008, 09:25:50 AM
Is it compatible with smf shop now?
Hmmm i don't know. Log time ago that i tested it ;).

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

Sabre™

This mod is definitely a good addition to any forum :)

A little off topic :)
ディン1031...  will you be releasing your parser?
Is it possible to package such a thing into a mod?

Thank You, and sorry for being slightly off topic :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


ディン1031

Quote from: Sabre™ on September 11, 2008, 05:07:09 AM
This mod is definitely a good addition to any forum :)

A little off topic :)
ディン1031...  will you be releasing your parser?
Is it possible to package such a thing into a mod?

Thank You, and sorry for being slightly off topic :)
SMF,org provide a parser now for each uploaded mod an version ;).

My parser is not work with an upload function ;). The Mods who are parsed must be uploaded that they could be parsed. But i can give you the files for my parser. (They need to uploaded unpacked in a owe directory where alls version are need to be stored) ;).

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

NS Lite

Hello.
First, sorry for my english.
Second, my forum work on 1.1.6 version.
When i want intall this great mod, i have a problem with  ./Sources/BoardIndex.php. Failure
What i must doing for mod work good?


ディン1031

Quote from: NS Lite on September 11, 2008, 07:03:31 AM
Hello.
First, sorry for my english.
Second, my forum work on 1.1.6 version.
When i want intall this great mod, i have a problem with  ./Sources/BoardIndex.php. Failure
What i must doing for mod work good?
You can install it, and try to make the Missing changes in teh BoardIndex.php manual ;).

Follow Changes need to be done there:
Change in Filename: $sourcedir/BoardIndex.php
Quote
Search for this
if (!empty($row_board['ID_MODERATOR']))
{

Replace All with
if (!empty($row_board['ID_MODERATOR']))
{
//Color the Mods, too...
if(!empty($modSettings['MemberColorModeratorLinks'])) {
$context['MemberColor_ID_MEMBER'][$row_board['ID_MODERATOR']] = $row_board['ID_MODERATOR'];
$context['MemberColor_ModBoard'][$isChild ? $row_board['ID_PARENT'] : $row_board['ID_BOARD']] = array(
'bid' => ($isChild ? $row_board['ID_PARENT'] : $row_board['ID_BOARD']),
'cat' => $row_board['ID_CAT']
);
}

Search for this
'link' => $row_board['posterName'] != '' ? (!empty($row_board['ID_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row_board['ID_MEMBER'] . '">' . $row_board['realName'] . '</a>' : $row_board['realName']) : $txt[470],

Replace All with
'link' => $row_board['posterName'] != '' ? (!empty($row_board['ID_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row_board['ID_MEMBER'] . '">' . $row_board['realName'] . '</a>' : (!empty($modSettings['MemberColorGuests']) ? '<span style="color:'.$modSettings['MemberColorGuests'].';">' : '').$row_board['realName'].(!empty($modSettings['MemberColorGuests']) ? '</span>' : '')) : $txt[470],

Search for this
'start' => 'msg' . $row_board['new_from'],
'topic' => $row_board['ID_TOPIC']
);

Add after this
if (!empty($modSettings['MemberColorBoardindex']) && !empty($row_board['ID_MEMBER'])) {
$context['MemberColor_ID_MEMBER'][$row_board['ID_MEMBER']] = $row_board['ID_MEMBER'];
$MemberColor_board[$isChild ? $row_board['ID_PARENT'] : $row_board['ID_BOARD']] = array(
'bid' => ($isChild ? $row_board['ID_PARENT'] : $row_board['ID_BOARD']),
'cat' => $row_board['ID_CAT']);
}

Search for this
// Determine a global most recent topic.
if (!empty($row_board['posterTime']) && forum_time(true, $row_board['posterTime']) > $most_recent_topic['timestamp'])
$most_recent_topic = array(
'timestamp' => forum_time(true, $row_board['posterTime']),
'ref' => &$this_category[$isChild ? $row_board['ID_PARENT'] : $row_board['ID_BOARD']]['last_post'],
);
}
mysql_free_result($result_boards);

Add after this
//The latest member?
if (!empty($modSettings['latestMember']) && !empty($modSettings['MemberColorLatestMember']))
$context['MemberColor_ID_MEMBER'][$modSettings['latestMember']] = $modSettings['latestMember'];

// Know set the colors for the last post...
if (!empty($context['MemberColor_ID_MEMBER'])) {
$colorDatas = load_onlineColors($context['MemberColor_ID_MEMBER']);
$cmemcolid = null;

//So the BoardIndex need colored links
if (!empty($modSettings['MemberColorBoardindex']) && !empty($MemberColor_board))
foreach($MemberColor_board as $boardid_memcolor) {
$cmemcolid = $context['categories'][$boardid_memcolor['cat']]['boards'][$boardid_memcolor['bid']]['last_post']['member']['id'];
if(!empty($colorDatas[$cmemcolid]['colored_link']))
$context['categories'][$boardid_memcolor['cat']]['boards'][$boardid_memcolor['bid']]['last_post']['member']['link'] = $colorDatas[$cmemcolid]['colored_link'];
}

//You are not know what you do ;P Colors allready loaded :D
if(!empty($modSettings['MemberColorModeratorLinks']) && !empty($context['MemberColor_ModBoard'])) {
//This site will evertime use the correct Moderator Color, for this i need a extra query,
//because at the moment i don't know the correct color
$onlineColor = load_mod_color(true);
foreach($context['MemberColor_ModBoard'] as $boardid_memcolor) {
global $color_profile;
//Reset it :D
$context['categories'][$boardid_memcolor['cat']]['boards'][$boardid_memcolor['bid']]['link_moderators'] = array();
foreach($context['categories'][$boardid_memcolor['cat']]['boards'][$boardid_memcolor['bid']]['moderators'] as $moderators) {
$cmemcolid = $moderators['id'];
//Replace "Profil of" with "Moderator" ;D
$link = str_replace($txt[92], $txt[62], $colorDatas[$cmemcolid]['colored_link']);
if(empty($colorDatas[$cmemcolid]['online_color']) && !empty($onlineColor))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $color_profile[$cmemcolid]['ID_MEMBER'] . '" title="' . $txt[62] . ' ' . $color_profile[$cmemcolid]['realName'] . '"'.(!empty($modSettings['MemberColorLinkOldSpanStyle']) ? '><span style="color:'.$onlineColor.';">' : ' style="color:'.$onlineColor.';">') . $color_profile[$cmemcolid]['realName'] . (!empty($modSettings['MemberColorLinkOldSpanStyle']) ? '</span>' : '').'</a>';
$context['categories'][$boardid_memcolor['cat']]['boards'][$boardid_memcolor['bid']]['moderators'][$cmemcolid]['link'] = $link;
//Create the new list...
$context['categories'][$boardid_memcolor['cat']]['boards'][$boardid_memcolor['bid']]['link_moderators'][] = $link;
}
}
}
}

Search for this
lo.ID_MEMBER, lo.logTime, mem.realName, mem.memberName, mem.showOnline,

Replace All with
lo.ID_MEMBER, lo.logTime, mem.realName, mem.memberName, mem.showOnline,
mem.birthdate as birthdate, mem.is_activated as is_activated,

Search for this
$context['num_users_hidden']++;
continue;
}

Replace All with
$context['num_users_hidden']++;
continue;
}
//Happy Birthday Color ;D Hope you love it :D
if(!empty($modSettings['MemberColorBirthdayColor']) && !empty($row['birthdate']) && compare_colorBirthdate($row['birthdate']))
$row['onlineColor'] = $modSettings['MemberColorBirthdayColor'];
//Color Banned user, replace there color...?
if(!empty($modSettings['MemberColorBanned']) && isset($row['is_activated']) && $row['is_activated'] >= 10)
$row['onlineColor'] = $modSettings['MemberColorBanned'];


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

Advertisement: