Member Color Link

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

Previous topic - Next topic

Nibogo

Quote from: sremick on July 06, 2011, 10:50:01 AM
Thanks for updating this for 2.0! I had been looking at SimpleColorizer but now with this I need to decide. Without having to try each, is there someone who can outline the differences?

With this one you can colorize only the areas when you want to colorize usernames, you can select colors for guests, users in birthday and banner members

Jessica.

Quote from: Jessica. on July 08, 2011, 10:30:25 AM
@sremick. SimpleColorizer edits no files

no problems from this until a few days ago.

see the attachment? all of my username in the forums except for the last one is colored



anyone know why it's like this?
Testing Zone - SMF 2.0.7, default Curve
School & Chat - phpBB3, over 170 mods installed, official live forum

I use the latest version of Chrome

phpBB: Forum = a section; Board = whole site
SMF: Forum = whole site; Board = a section

Do not heart me......

Color links are not shown on my smf . How it will show on my site. Version 2.0 i am using.I have install the last one which is 3.1.


TheListener

Quote from: Do not heart me...... on July 13, 2011, 01:19:48 AM
Color links are not shown on my smf . How it will show on my site. Version 2.0 i am using.I have install the last one which is 3.1.

Any errors on install?


Kurogane

I got "id_member" error  in my logs files


http://www.domain.com/forum/index.php?topic=246.0
8: Undefined index: id_member
File: /home/domain/public_html/forum/Sources/Load.php
Line: 1112



//Memeber Color Link will used Chached Data, too wheee.
if($set == 'normal' || $set == 'profile') //This are the only sets with the info the mod need.
$color_profile[$row['id_member']] = array(
'id_member' => $row['id_member'],
'real_name' => $row['real_name'],
'member_group_color' => $user_profile[$row['id_member']]['member_group_color'],
'post_group_color' => $user_profile[$row['id_member']]['post_group_color'],
);
}
$smcFunc['db_free_result']($request);
}

if (!empty($new_loaded_ids) && $set !== 'minimal')
{
$request = $smcFunc['db_query']('', '
SELECT *
FROM {db_prefix}themes
WHERE id_member' . (count($new_loaded_ids) == 1 ? ' = {int:loaded_ids}' : ' IN ({array_int:loaded_ids})'),
array(
'loaded_ids' => count($new_loaded_ids) == 1 ? $new_loaded_ids[0] : $new_loaded_ids,
)
);
while ($row = $smcFunc['db_fetch_assoc']($request))
==>1112: $user_profile[$row['id_member']]['options'][$row['variable']] = $row['value'];
$smcFunc['db_free_result']($request);
}

if (!empty($new_loaded_ids) && !empty($modSettings['cache_enable']) && $modSettings['cache_enable'] >= 3)
{
for ($i = 0, $n = count($new_loaded_ids); $i < $n; $i++)
cache_put_data('member_data-' . $set . '-' . $new_loaded_ids[$i], $user_profile[$new_loaded_ids[$i]], 240);
}

Biology Forums

How do we add color to the:

Hello, Member

In the index.template.php

?

Using 1.x

diablo3x.dk

Hello Nibogo! Great mod. Been using for quite some time.

I was wondering if you have any plans adding new features in the future? I miss a feature on my forums that allow me to create membergroups with 'different' colors. Like this: diablo3x.dk

If not in this mod then maybe a seperate mod?  :o

Nibogo

Quote from: diablo3x.dk on August 12, 2011, 08:12:23 AM
Hello Nibogo! Great mod. Been using for quite some time.

I was wondering if you have any plans adding new features in the future? I miss a feature on my forums that allow me to create membergroups with 'different' colors. Like this: diablo3x.dk

If not in this mod then maybe a seperate mod?  :o

That would be a totally different and custom solution for your forum, PM me if you're interested

uninvited13th


ozo

#1130
Hi,

I'm using this MOD in my forum.
I have a problem with Load.php data.

Thanks  ;D


Warning: require(/homez.466/fmanthol/www/cache/data_fabfefbd47947a67b64c321dc4068c16-SMF-modSettings.php) [function.require]: failed to open stream: No such file or directory in /homez.466/fmanthol/www/Sources/Load.php on line 2938

Fatal error: require() [function.require]: Failed opening required '/homez.466/fmanthol/www/cache/data_fabfefbd47947a67b64c321dc4068c16-SMF-modSettings.php' (include_path='.:/usr/local/lib/php') in /homez.466/fmanthol/www/Sources/Load.php on line 2938

fernandozap


TiPsY

Hello, i've started from scratch my forum because of a couple of package errors, everything runs normally but i can't install this package.

The error is here:

Replace    ./Themes/default/Profile.template.php    Test failed

Find:

<div class="username"><h4>', $context['member']['name'], ' <span class="position">', (!empty($context['member']['group']) ? $context['member']['group'] : $context['member']['post_group']), '</span></h4></div>



Replace:
<div class="username"><h4>', $context['member']['colored_name'], ' <span class="position">', (!empty($context['member']['group']) ? $context['member']['group'] : $context['member']['post_group']), '</span></h4></div>


I don't get whats wrong with it. My forum is supporting it (SMF 2.0 Gold), i would edit the files from profile.template.php myself but i'm aware of further errors

Jessica.

#1133
hmmm I think I encountered the same error but somehow I fixed it myself...don't remember -_- let me check

edit: it seems to me that the only difference between the find and replace is

$context['member']['name']

and
$context['member']['colored_name']

the 'name' and 'colored_name'

can you find something like the Find in your profile.template.php? not EXACT, but almost similar?
Testing Zone - SMF 2.0.7, default Curve
School & Chat - phpBB3, over 170 mods installed, official live forum

I use the latest version of Chrome

phpBB: Forum = a section; Board = whole site
SMF: Forum = whole site; Board = a section

TiPsY

#1134
Yeah, here's the full line from profile.template.php


<div class="username"><h4>', $context['member']['name'], ' <span class="position">', (!empty($context['member']['group']) ? $context['member']['group'] : $context['member']['post_group']), '<br />', (!empty($context['member']['group_stars']) ? $context['member']['group_stars'] : ''), '</span></h4></div>


The whole editing is one word, from ['name'] to ['colored_name']

Is there any chance to end up with an error at package install afterall if i change it manually?




Edit: I've done it manually, and it looks that it works perfectly. Anyway, thanks :')

Grosraisin

Hi,

What were the changes on the 3.1 compared to 3.0.8? (File updated?)

Thank you.

SMF / Le Partage et l'Entraide
SMF / Sharing and Caring


Mes modifications de Mods / Templates



ozo

Thanks for yours answers.
So, this MOD is not compatible with SMF 2.0.1 Version ?

Thanks  :)

TheListener

Quote from: ozo on September 23, 2011, 05:34:54 AM
Thanks for yours answers.
So, this MOD is not compatible with SMF 2.0.1 Version ?

Thanks  :)


It is if I am using it on 2.0.1

XxRxX

Quote from: Brack1 on September 23, 2011, 10:31:12 AM
Quote from: ozo on September 23, 2011, 05:34:54 AM
Thanks for yours answers.
So, this MOD is not compatible with SMF 2.0.1 Version ?

Thanks  :)


It is if I am using it on 2.0.1

I still can't use it dude. I have 2.0.1 version and I can't install the mod. Could you help me?

TheListener


Advertisement: