Version: 1.0.1, by Opserty
Developer Last Online: Apr 2009
Category: End-User Options -
Version: 3.7.x
Rating:
Released: 07-04-2008
Last Update: 07-08-2008
Installs: 188
DB Changes Uses Plugins Auto-Templates
Additional Files
No support by the author.
/*================================================= =====================*\
|| # -------------- USER SPECIFIC USERNAME HTML MARKUP -------------- # ||
|| # ---------------------- CREATED BY OPSERTY----------------------- # ||
|| # This modification may not be redistributed without prior consent # ||
\*================================================ ======================*/
What does this modification do?
This modification allows users to specify their 'own' HTMLwhich surrounds their username. It is similar to that which is used for the Usergroup HTML Markup, however this modification is more restrictive. (Note: Markup is only applied in cases where the Usergroup Markup is typically applied).
Features:
Users can choose:
Italics
Bold
SmallCaps
Text Decoration
Underline
Overline
StrikeThrough
Font Color
Background Color
Font Family/Face
Admins can choose to:
Global Enable/Disable
Ban Certain Users
Ban Certain Font Colors
Enable/Disable each Option globally
Enable/Disable each Option Per Usergroup
Choose whether User HTML Markup overrides Usergroup HTML Markup
To install:
Upload Files
Upload functions_op_user_html_markup.php to the '/includes/' directory of your forum
Upload bitfield_op_user_html_markup.xml to the '/includes/xml/' directory of your forum
Import Product
Import the product as normal through the AdminCP. AdminCP > Plugins & Products > Manage Products
Accessing Product
To use this product the user can find the options listed on the UserCP > Edit Options page.
Troubleshooting & Common Problems
If you forget to upload the files before importing the product, simply upload the files and then visit the AdminCP > Usergroups > Usergroup Manager page. (This is required to rebuild the bitfield cache after uploading a file). This only needs to be done if you do not upload the files before the import.
Modification History
09/07/08
Version: 1.0.1
Type: Bug Fix
Fixed bugs: #1 #2 #3 #4
Added current username markup example to Edit Options Page
05/07/08
Version: 1.0
Type: Initial Release
(Please post suggestions for addition HTML/CSS tags and I will consider them for future releases) Mark As Installed
Works great! only thing I don't like is I got this for a few people that I was going to edit their color myself from Admin CP, couldn't do it. Tested as a user though and it's all good, I'll just make them do it themselves lol
Nominated since this saved me from losing a few picky members
You can make it so they can't edit it themselves, but you can.
For the usergroup set "Can use username html markup?" Yes, and set the rest to No, it will prevent THEM from using the markup, but you will be able to edit theirs for them via admin CP.
I install this but get this error when I go to usercp>edit options:
Warning: require_once([path]/includes/functions_op_user_html_markup.php) [function.require-once]: failed to open stream: No such file or directory in [path]/profile.php(1836) : eval()'d code on line 1
Fatal error: require_once() [function.require]: Failed opening required '/home/customi5/public_html/forums/includes/functions_op_user_html_markup.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/customi5/public_html/forums/profile.php(1836) : eval()'d code on line 1
Thanks -smoke. The thin is there is a functions_op_user_html_markup.php in the includes folder but it is 48 bytes smaller than it should be, no matter how many times I try and overwrite it..I guess its a problem with the server not the mod.
Thanks -smoke. The thin is there is a functions_op_user_html_markup.php in the includes folder but it is 48 bytes smaller than it should be, no matter how many times I try and overwrite it..I guess its a problem with the server not the mod.
Thanks!
EDIT: Everything is fine now,marked as installed
Very good. Glad ya got it fixed up bro.
If ya need any further assistance with the mod or anything in general feel free to drop me a PM.
Is There A Way, Where I Can Make It So Only Administrators Can Adjust The Markup For Other Users? Like...Where The User Can't Adjust It, But I Can Change It For Them?
To the beginning of :
op_user_html_options
(sub 6, 11, 5 for the usergroups you want to allow to edit their own markup)
add </if> to the end as well.
Now....New Problem.
I've Made A Hidden Profile Field That I Want To Function As Permission For Editing Your Own Markup.
I.E. I Want To Give SOME Users The Ability To Edit Their Markup, But Not Others
There is no need to edit the code, you can set all permissions under AdminCP > Usergroups > Edit Usergroup.
To only allow Administrators to set the code, set "Can use Markup" to "Yes" and the rest of the functions to "No"
If you only want to allow some users to edit the MarkUp simply but them in their own usergroup and then set the permissions in the "Edit Usergroup" page.
(You can see all the usergroup Options listed in the 2nd screenshot).