vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Username HTML Markup (everywhere) (https://vborg.vbsupport.ru/showthread.php?t=77356)

Mechanical Mind 03-02-2005 07:02 PM

Username HTML Markup (everywhere)
 
1 Attachment(s)
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:

AN-net 03-02-2005 07:17 PM

i believe its like fetch_musername() or sumthing like that;) look in the index.php file:)

Mechanical Mind 03-02-2005 09:24 PM

Quote:

Originally Posted by AN-net
i believe its like fetch_musername() or sumthing like that;) look in the index.php file:)

Can you clarify a little more about what you mean? (I'm a noob, or more like a muggle. Me no do programming.) :nervous:

Zero Tolerance 03-03-2005 02:34 PM

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']);
UNDERNEATH Place:
Code:

require_once('./includes/functions_databuild.php');
$birthdaystore = build_birthdays();

Save & Upload index.php

Now open includes/functions_databuild.php
Find:
Code:

        $bdays = $DB_site->query("
                SELECT username, userid, birthday

After This Place:
Code:

, usergroupid
Now Find:
Code:

if ($todayneggmt == $day[0] . '-' . $day[1])
Above This Place:
Code:

$username = fetch_musername($birthday);
Next step, go to your forum index page, hit refresh, this will rebuild the cache.

Now re-open index.php, find:
Code:

$birthdaystore = unserialize($datastore['birthdaycache']);
require_once('./includes/functions_databuild.php');
$birthdaystore = build_birthdays();

Replace that with:
Code:

$birthdaystore = unserialize($datastore['birthdaycache']);
Save & Upload index.php

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

Mechanical Mind 03-03-2005 09:44 PM

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!


All times are GMT. The time now is 08:31 AM.

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.00966 seconds
  • Memory Usage 1,730KB
  • 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
  • (8)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete