vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=271892

Username Font Selection Per User (Light) By BOP5 VB4
by BirdOPrey5
12 Oct 2011 15:18

6 Attachment(s)
Version 1.0 - Initial Release
Version 1.1 - Bugfix for vB 4.1.4 and above
Version 1.7.7 - Critical Security Update
Version 1.8.0 - Added post count setting / Added existing Markup setting

Live Demo: Qapla.com Forums Demo (Gold Version).

The purpose of this mod is to let users pick a custom font (either from a list you specify or optionally, a custom font they choose) to show up wherever username markup is allowed. (The postbit, profiles, who's online, blogs, CMS, etc...)

This is the free version, you can let users choose a font.

The GOLD version allows users to to choose a font, a font size, and/or a font color- each permission with independent usergroup control.
Gold version available at: Qapla.com Forums - Username Color, Size, & Font Selection.

Both versions include a "Live Preview" option allowing users to instantly see the effect of their changes before saving.

Both versions automatically add the options in Settings -> General Settings page, at the bottom, for users with permission.

In both versions all options font (and color/ size in gold) are independently controllable by usergroup permissions, so for example you could let registered users pick a font, mods pick a font AND color, and VIP users pick a font, color, and size.

You can add or remove available fonts from the list in Admin CP.

In the Gold version you can add/remove available colors and you can set a range of allowable font sizes.

See Screenshots for more details.
Screenshots are of free version only. See the GOLD thread, above, for screenshots of GOLD version.

Anyone running VB 4.1.4 to 4.1.8 please see the bug notice in the next post.

------------------------------------------------------

Please "Mark as Installed" if you use this. :)
Donations always appreciated. :up:
Nominate MOTM if you LOVE it! ;)

BirdOPrey5 12 Oct 2011 15:19

It looks like a bug was introduced in VB 4.1.4 where they accidentally re-used the same variable for new query causing this database error.

This is a vBulletin bug, not a bug with this mod.

Currently affected versions are VB 4.1.4 - 4.1.7 and even though it's not out yet, 4.1.8 will probably have it too.

To fix the problem you will have to manually edit your file: online.php

Find the code (around line 277- may vary by version):


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and delete the line $hook_query_fields so you make it:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And save and upload the fixed file. (Save a backup of the original of course.)

This will fix the database error on who's online.

I realize it is a pain to do a manual file edit so I added an option to simply disable the mod on "Who's Online" to avoid this bug.

Just to reiterate- VB versions below 4.1.4 are not affected by this bug.

Sunka 12 Oct 2011 17:29

Working good!
installed.

Small bug in info.txt:

Quote:

*****COMPATIBILITY******
This mod is tested and working on vB 3.8.6 and 3.8.7 and should work on all VB 3.8 forums, possibly earlier versions as well.
It will NOT work on VB 4.x.

BirdOPrey5 12 Oct 2011 18:24

oh thank you, I put the wrong readme file. Will fix ASAP.

Sunka 12 Oct 2011 18:40

Some database error...
Notification via e-mail..



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


BirdOPrey5 12 Oct 2011 19:09

For some reason it looks like the field wasn't added to your database during the install, you could try installing again. If it still gives an error I could give instructions on how to manually add the field to the database.

Sunka 12 Oct 2011 19:16

I have to uninstall...
It's deleted my custom modification (little icon before username)..

mitch84 12 Oct 2011 19:17

hi, gold version is free? thx

BirdOPrey5 12 Oct 2011 19:27

Quote:

Originally Posted by Sunka (Post 2256409)
I have to uninstall...
It's deleted my custom modification (little icon before username)..

If the icon was added through Username Markup in Usergroup settings then yes this mod will override it. This mod overrides the default markup in favor of the options the user chooses. It isn't really deleted, but hidden.

Quote:

Originally Posted by mitch84 (Post 2256410)
hi, gold version is free? thx

No, the gold version is not free.

Sunka 12 Oct 2011 21:31

Quote:

Originally Posted by BirdOPrey5 (Post 2256413)
If the icon was added through Username Markup in Usergroup settings then yes this mod will override it. This mod overrides the default markup in favor of the options the user chooses. It isn't really deleted, but hidden.

Yep...
It's added via Username Markup, and with some CSS styling...

But it is not the end of the world...

Keep creating MODs, it is awesome how you tweak vBulletin! :D:up:

Edit: you can see it here: http://www.pijanitvor.com/showthread...026#post186026

BirdOPrey5 12 Oct 2011 21:44

Thanks. :up:

I know when I was making this (which was actually weeks ago) I considered an option to keep any existing HTML markup present and just add to it, instead of replace it... but I don't remember why I didn't include it. I will have to check it out when I get time, might be something I can add in.

rob39 13 Oct 2011 03:14

Getting weird error, and my Who's Online don't work with this....Is there a quick fix?....seems to Not like the UserNames listed in Who's online....much the same error as in above post by Sunka...or will it Not work in VB4.x at all?

BirdOPrey5 13 Oct 2011 03:23

Quote:

Originally Posted by rob39 (Post 2256581)
Getting weird error, and my Who's Online don't work with this....Is there a quick fix?....seems to Not like the UserNames listed in Who's online....much the same error as in above post by Sunka...or will it Not work in VB4.x at all?

I would need to see the exact error to make a diagnosis...

The "quick fix" is to uninstall or disable for now until I can see the error.

You could UNINSTALL and attempt re-installing as well if you are up for it. If it is indeed the same error your board might have timed out making the database update.

rob39 13 Oct 2011 04:09

Here's the error i got...the mod works in postbit, ect....just renders Who's online inoperable...???
Had the Mod running for about two hours, and never noticed anything wrong until i tried to go to Who's online....and the error shows then...who's online doesn't load


https://www.vbulletin.org/forum/external/2011/10/41.jpg

BirdOPrey5 13 Oct 2011 11:39

I am seeing it now.
Sorry about that.

The "quick fix" is to go to plugin manager and disable the plugin "Who's Online Query" for this mod, the errors should stop but I still need to fix whosonline so the markup works.


All times are GMT. The time now is 19:27.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.