Customizing SMF > Modifications and Packages

Glow And Color Title V2

<< < (3/10) > >>

hcfwesker:

--- Quote from: lostprodigy on October 10, 2011, 05:36:17 PM ---
Can you add permissions to it please? and possibly add it for membergroups rather than by a single person.

--- End quote ---

I've added permissions myself to make it member group based.  And it works.  Not sure if I'm allowed to share the edits here, though.

Very Nice MOd, members seem to like it

4Kstore:

--- Quote from: hcfwesker on November 16, 2011, 07:02:50 PM ---
--- Quote from: lostprodigy on October 10, 2011, 05:36:17 PM ---
Can you add permissions to it please? and possibly add it for membergroups rather than by a single person.

--- End quote ---

I've added permissions myself to make it member group based.  And it works.  Not sure if I'm allowed to share the edits here, though.

Very Nice MOd, members seem to like it

--- End quote ---

If we want is more than welcome
Just try to always respect the readme file
Thanks and cheers

hcfwesker:

--- Quote from: 4Kstore on November 16, 2011, 07:06:24 PM ---Just try to always respect the readme file

--- End quote ---

I won't ever edit a Package for redistribution.   But sometimes packages won't cater to each individual forum's needs, and some customization will be done by some.   Just, we had the original custom member name color, and was only available for members to buy in the shop to have this feature.  And all I did was add custom permissions in manage permissions and changed the allowedTo in ModifyProfile.

It's a great mod, and I'm very appreciative for it.  Something this great we prefer members to earn it, is all.  :)

Also, some members are reporting it doesn't show in IE browsers.

EDIT: 

A member onour forum just answered the IE issue


--- Quote from: Cycro ---The glow is the result of a CSS property, called text-shadow.

This property is supported in all major browsers, except Internet Explorer.

--- End quote ---

lostprodigy:

--- Quote from: hcfwesker on November 16, 2011, 07:02:50 PM ---
--- Quote from: lostprodigy on October 10, 2011, 05:36:17 PM ---
Can you add permissions to it please? and possibly add it for membergroups rather than by a single person.

--- End quote ---

I've added permissions myself to make it member group based.  And it works.  Not sure if I'm allowed to share the edits here, though.

Very Nice MOd, members seem to like it

--- End quote ---

Could you send me the permissions version speaking that he reply'd saying it was ok?

hcfwesker:
Ok, I'll post them here.  It's manual edits you'll have to make only on 3 files.

this will add a new Permission for member groups  Allow member to change username Color and Glow Effect

Sources/ManagePermissions.php

Find

--- Code: --- 'profile_remove' => array(true, 'profile', 'delete_account', 'moderate_general'),
--- End code ---

Add After ( or where ever else you prefer it to be listed)

--- Code: --- 'profile_cgcolor' => array(false, 'profile', 'edit_profile'),
--- End code ---


themes/default/languages/ManagePermissions.english.php ( and all other languages your forum uses.

Find

--- Code: ---?>
--- End code ---

Add Before

--- Code: ---$txt['permissionname_profile_cgcolor'] = 'Allow member to change username Color and Glow Effect';
$txt['permissionhelp_profile_cgcolor'] = 'Changes the members username color on topic display to whatever they set it as.';
--- End code ---

Sources/Profile-Modify.php

Find

--- Code: --- 'name_color' => array(
'type' => 'text',
'label' => $txt['name_color'],
'subtext' => $txt['name_color_desc'],
'size' => 24,
'input_attr' => array('maxlength="40"'),
'permission' => 'profile_extra',
),
'name_color_glow' => array(
'type' => 'text',
'label' => $txt['name_color_glow'],
'subtext' => $txt['name_color_glow_desc'],
'size' => 24,
'input_attr' => array('maxlength="40"'),
'permission' => 'profile_extra',
),
--- End code ---

Replace with

--- Code: --- 'name_color' => array(
'type' => 'text',
'label' => $txt['name_color'],
'subtext' => $txt['name_color_desc'],
'size' => 24,
'input_attr' => array('maxlength="40"'),
'permission' => 'profile_cgcolor',
),
'name_color_glow' => array(
'type' => 'text',
'label' => $txt['name_color_glow'],
'subtext' => $txt['name_color_glow_desc'],
'size' => 24,
'input_attr' => array('maxlength="40"'),
'permission' => 'profile_cgcolor',
),
--- End code ---


I believe that's everything.  Be sure to make backups of files while editing.  If SSimple Team wishes to add these edits in the next update, that's cool.  But I can't post a MOD package to install, I respect the MOD authors and won't do that.  The edits I supplied are simple enough.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version