vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   End-User Options - Individual Username HTML Markup (https://vborg.vbsupport.ru/showthread.php?t=184426)

Opserty 07-04-2008 10:00 PM

Individual Username HTML Markup
 

/*================================================= =====================*\
|| # -------------- 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:
  1. 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
  2. Import Product
    • Import the product as normal through the AdminCP. AdminCP > Plugins & Products > Manage Products
  3. 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


Nominate For Modification of the Month

Opserty 07-05-2008 10:56 AM

Known issues
  1. FIXED (v1.0.1): Wrong filename in README 'functions_opserty_prefix_ugps.php' should read 'functions_op_user_html_markup.php'
  2. FIXED (v1.0.1): (as best possible) Text overhangs background when using italics
  3. FIXED (v1.0.1): Text Decoration (underline, overline, strikethrough) does not save
  4. FIXED (v1.0.1): Markup does not show on Who's online list
  5. QUICK FIX Strikethrough does not work
    • Type: CSS Error
    • Priority: High
  6. Markup not show on Users browsing forum/thread
    • Priority: Low
    • Notes: No query hooks available for use, which would mean the addition of an extra query for each user. May include an on/off option in future release

BigDog56 07-05-2008 11:18 AM

Clicks installed! Thank you. One minor proplem with it, when using Italics, the name hangs over the background on the right. Other then that, looks great!

Opserty 07-05-2008 11:21 AM

Quote:

Originally Posted by BigDog56 (Post 1567289)
Clicks installed! Thank you. One minor proplem with it, when using Italics, the name hangs over the background on the right. Other then that, looks great!

Thanks. That is more of a browser problem but I'll see if I can figure out a way of getting around it.

BigDog56 07-05-2008 11:34 AM

Quote:

Originally Posted by Opserty (Post 1567292)
Thanks. That is more of a browser problem but I'll see if I can figure out a way of getting around it.

Thanks! It's no biggie, either way I'll still use this!

SwollenCranium 07-05-2008 11:39 AM

# Upload Files

* Upload functions_opserty_prefix_ugps.php


Your instructions do not match the downloaded files. No such file in the download.

I figured it out anyway .. just thought you would want to know.

srkrocks 07-05-2008 11:54 AM

Installed..
Thanks

Opserty 07-05-2008 11:58 AM

Quote:

Originally Posted by SwollenCranium (Post 1567301)
# Upload Files

* Upload functions_opserty_prefix_ugps.php



Your instructions do not match the downloaded files. No such file in the download.

I figured it out anyway .. just thought you would want to know.

Thanks

~ Corrected in modification post. Will be updated in README in next release.

dannykilla 07-05-2008 12:14 PM

will this show up on the last post column on forum home?

Opserty 07-05-2008 12:59 PM

It is only applied where the Usergroup Markup is usually shown (as it modifies that function).

chennairam 07-05-2008 03:25 PM

It is Possible To More Fonts

Like Joint HandWring (Monotype corsiva)

And One more Request

We Can Enlarge Font Size

sorry Poor English

regards
Ram

GriZzm0 07-05-2008 03:35 PM

Could you create a similar script which let the users change font/color etc in their usertitle? ;) Basically a script that let the users use BBCode in their usertitles and where you can enable/disable it on a usergroup basis.

Opserty 07-05-2008 04:05 PM

Quote:

Originally Posted by chennairam (Post 1567426)
It is Possible To More Fonts

Like Joint HandWring (Monotype corsiva)

Edit in AdminCP > vBulletin Options > vBulletin Options > Opserty: User Specific Username HTML Markup > Font Options

Add:
Code:

monotype_crosiva|'Monotype Crosiva', 'Times New Roman', serif;

Opserty 07-05-2008 04:08 PM

Quote:

Originally Posted by GriZzm0 (Post 1567432)
Could you create a similar script which let the users change font/color etc in their usertitle? ;) Basically a script that let the users use BBCode in their usertitles and where you can enable/disable it on a usergroup basis.

This would require something different as well as editing existing vBulletin fields, I currently have no plans to create such a modification.

Phornixx 07-05-2008 04:15 PM

Does it works for 3.6.x?

Thanks, I've been waiting ages for this.

Opserty 07-05-2008 04:40 PM

I have tested in on 3.6.8 the functionality is there, however the colour picker in the UserCP does not function (as its based on the 3.7 clientscript).

If you can go without the colour picker then yes it does work (note: its only made to accept hex color codes).

Amm0 07-05-2008 08:21 PM

Is there an option to set this for specific usergroups?

Opserty 07-05-2008 08:42 PM

The 2nd screenshot is from the usergroup permissions page. So yes. ;)

GriZzm0 07-05-2008 10:31 PM

Quote:

Originally Posted by Opserty (Post 1567459)
This would require something different as well as editing existing vBulletin fields, I currently have no plans to create such a modification.

Aight. Thanks anyway. ;)

GraNdMaStEr-B 07-06-2008 02:14 AM

I get this error when I go to my edit option in my usercp

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(1799) : eval()'d code on line 1

Fatal error: require_once() [function.require]: Failed opening required '/home/rawtalen/public_html/forum/includes/functions_op_user_html_markup.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rawtalen/public_html/forum/profile.php(1799) : eval()'d code on line 1

pooker 07-06-2008 06:02 AM

I tried it out but my users were not able to use multiple instances of it, like if they chose bold and a yellow name it would only show a color change not the bold.

Opserty 07-06-2008 10:19 AM

Quote:

Originally Posted by GraNdMaStEr-B (Post 1567829)
I get this error when I go to my edit option in my usercp

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(1799) : eval()'d code on line 1

Fatal error: require_once() [function.require]: Failed opening required '/home/rawtalen/public_html/forum/includes/functions_op_user_html_markup.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rawtalen/public_html/forum/profile.php(1799) : eval()'d code on line 1

You haven't uploaded the functions_op_user_html_markup.php file (or you've uploaded it to the incorrect directory). Sorry I wrote the wrong file name in the README file see the first post for corrected instructions.

Opserty 07-06-2008 10:21 AM

Quote:

Originally Posted by pooker (Post 1567908)
I tried it out but my users were not able to use multiple instances of it, like if they chose bold and a yellow name it would only show a color change not the bold.

I haven't had any such problems, what version of vBulletin are you running? (Can you provide a link to your board? Either by PM or post it here)

nebu 07-06-2008 12:50 PM

is it possible to make the name everywhere shines red/blue ......?
in "forumhome", in "who is online", in "visited last 24 hours"

thx :)

Opserty 07-06-2008 03:24 PM

Quote:

Markup is only applied in cases where the Usergroup Markup is typically applied.
You have to find a modification that enables usergroup markup in the places you want, then this code will be applied automatically (dependant on settings).

GraNdMaStEr-B 07-06-2008 03:41 PM

I've done everything you ask and it still hasnt fixed this. This has mess up my ALL my usergroups in my adminCP. I need to get this fix

Opserty 07-06-2008 04:15 PM

Quote:

Originally Posted by GraNdMaStEr-B (Post 1568237)
I've done everything you ask and it still hasnt fixed this. This has mess up my ALL my usergroups in my adminCP. I need to get this fix

PM'd

GraNdMaStEr-B 07-06-2008 05:15 PM

Hey this dude is good ppl man. Was on top of everything. Even went out of his way and fix it for me.

**Installed**

thankyou!

KURTZ 07-06-2008 06:01 PM

just tagged, nice job Opserty ;)

Opserty 07-07-2008 08:51 AM

Thanks KURTZ :)

Update for the two bugs posted in post #2 should be here in a few days.

Mike-D 07-07-2008 10:57 AM

Wonderful and really great Hack, Opserty :) Finally someone who is using Bitfield Permissions where they belongs to, instead of placing those in vB Settings like other hacks!!! Installed and Nominated :up:

Tip: Maybe another good way is to place those Settings into the "Customize Profile" instead of "Edit Options" UserCP. Just an idea of course ;)

verino 07-07-2008 11:26 AM

I tried to set for the admin in user cp\options.

Usergroup settings for admin is allowed all for this markup except for italic font.

When try to change the text decoration to 1 of the available options, such as strikethrough and save, the text decoration go back to : use default.

Is this normal ? because the admin username is not strikethrough :D

Good hack though :up:

Opserty 07-07-2008 11:54 AM

Quote:

Originally Posted by Mike-D (Post 1568988)
Tip: Maybe another good way is to place those Settings into the "Customize Profile" instead of "Edit Options" UserCP. Just an idea of course ;)

There are no template hooks there, as such it would require a template edit. (Hence I opted to stick it in the Edit Options template, to avoid forcing people to make a template edit.

Quote:

Originally Posted by verino (Post 1569010)
Usergroup settings for admin is allowed all for this markup except for italic font.

When try to change the text decoration to 1 of the available options, such as strikethrough and save, the text decoration go back to : use default.

I will look into, maybe I have made a small error somewhere. ;)

Darmak 07-08-2008 05:40 AM

Quote:

Originally Posted by verino (Post 1569010)
I tried to set for the admin in user cp\options.

Usergroup settings for admin is allowed all for this markup except for italic font.

When try to change the text decoration to 1 of the available options, such as strikethrough and save, the text decoration go back to : use default.

Is this normal ? because the admin username is not strikethrough :D

Good hack though :up:

I have the same problem :/

DarkGizmo 07-08-2008 04:30 PM

OMG THANKS! I originally requested this, you rock man! :D

Can this appear in the header for where users are logged in? Eg:

Welcome NegativeSmoke

but show my name in colors?

Also, can you add a BORDER option? So you can have a solid, dashed or dotted border around your name? and it doesn't show up in the online list, It should....

Opserty 07-08-2008 07:50 PM

Quote:

Originally Posted by NegativeSmoke (Post 1570202)
OMG THANKS! I originally requested this, you rock man! :D

Can this appear in the header for where users are logged in? Eg:

Welcome NegativeSmoke

but show my name in colors?

Try following this topic it should show up then:Username HTML Markup in Navbar

Quote:

Also, can you add a BORDER option? So you can have a solid, dashed or dotted border around your name?
I'll consider it for future releases once I have fixed any bugs

Quote:

and it doesn't show up in the online list, It should....
Will be looked into. Edit: Seems to work fine for me.

DarkGizmo 07-08-2008 08:40 PM

The link you posted doesn't work, and I use version 3.7.2 Patch Level 2, could that have something to do with it? Can i see a working preview of the mod?

This is very odd...and I would really like the border option, thanks. :D

Opserty 07-08-2008 08:55 PM

Oops sorry: Username HTML Markup in Navbar

Oh you're right, I was getting mixed up between the Members List and the Online list. I'll take a look and see what is going on.

(Border option may not be added for a while - till I fix bugs at least)

DarkGizmo 07-08-2008 10:04 PM

Okay and when that comes could you also add it so it shows in:

forum display (forumdisplay.php) and last post info? (Forum Home)

Thanks alot. :)

Opserty 07-09-2008 05:21 PM

Version 1.0.1 released - Contains bug fixes and a minor update.


All times are GMT. The time now is 05:20 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01657 seconds
  • Memory Usage 1,839KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete