The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Username HTML Markup (everywhere)
Greetings! :classic:
-------------------------------------------------------------------------- DESCRIPTION: In vB 3.0.0 and up, you can go into AdminCP > Usergroup Manager > Specific Usergroup > Add "Username HTML Markup". This is a nice option, BUT..................... It only adds "Username HTML Markup" on SOME places on the forumhome display. For example, it will add HTML markup to usernames in the following fields: 1. Currently in chat 2. Currently active users 3. Visited in the last 24 hours BUT, it will NOT add "Username HTML Markup" to the following fields: 1. Today's birthdays 2. Statistics *** There may be more fields that occur infrequently on the forumhome page that I am unaware of *** -------------------------------------------------------------------------- PROBLEM: It looks like crap. And it is visually confusing to members when they see the same names appearing differently on the same page. -------------------------------------------------------------------------- ADDITIONAL INFORMATION: I have been assured at vBulletin.com that "Username HTML Markup" cannot be added to these OTHER fields without modifying files. So, I am posting this here. Here are the two threads where I inquired about this: Here and Here I have searched here for an answer to this, but have not found one, at least to the best of my knowledge. So I apologize if this has been answered elsewhere. I have attached an image to display the problem. -------------------------------------------------------------------------- REQUEST: Could somebody please fix this ? :tired: :tired: :tired: |
#2
|
||||
|
||||
i believe its like fetch_musername() or sumthing like that look in the index.php file
|
#3
|
||||
|
||||
Quote:
|
#4
|
||||
|
||||
The newest member is stored in a serialized array, this only contains username and userid, to allow for that to have the usergroup settings, the array would need to be changed to contain the usergroupid, or an additional query been executed.
Birthdays however, can be done, these edits will be a bit tricky, as we have to override the cache.. Anyway in index.php, find: Code:
$birthdaystore = unserialize($datastore['birthdaycache']); Code:
require_once('./includes/functions_databuild.php'); $birthdaystore = build_birthdays(); Now open includes/functions_databuild.php Find: Code:
$bdays = $DB_site->query(" SELECT username, userid, birthday Code:
, usergroupid Code:
if ($todayneggmt == $day[0] . '-' . $day[1]) Code:
$username = fetch_musername($birthday); Now re-open index.php, find: Code:
$birthdaystore = unserialize($datastore['birthdaycache']); require_once('./includes/functions_databuild.php'); $birthdaystore = build_birthdays(); Code:
$birthdaystore = unserialize($datastore['birthdaycache']); This is to stop the reloading the data each time, the cache has been updated with the HTML Markup, and will now appear Enjoy, - Zero Tolerance |
#5
|
||||
|
||||
Thanks for the info ZT.
A couple of things: I followed the steps as you laid them out: BUT... when I got to the part where you said to refresh the forums index page, I did, but received an error... Something about "parse and/or undefined function". So I continued with the steps and I still don't see a change? I think something about the order of the "steps" didn't allow me properly update the cache... Hmmm... This morning I could not access my website, it was displaying the same error. So, I went through these steps in reverse and I could get back on my website again. But now the birthday and stats bar areas are not being displayed. Yikes! Help! :nervous: Update... Couldn't get any help to fix these errors, had to pay webhost to revert site back 7 days. OUCH! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|