Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-02-2005, 07:02 PM
Mechanical Mind's Avatar
Mechanical Mind Mechanical Mind is offline
 
Join Date: Sep 2004
Location: USA
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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:
Attached Images
File Type: jpg username_html_markup.JPG (52.2 KB, 0 views)
Reply With Quote
  #2  
Old 03-02-2005, 07:17 PM
AN-net's Avatar
AN-net AN-net is offline
 
Join Date: Dec 2003
Location: AnimationTalk.com
Posts: 2,367
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i believe its like fetch_musername() or sumthing like that look in the index.php file
Reply With Quote
  #3  
Old 03-02-2005, 09:24 PM
Mechanical Mind's Avatar
Mechanical Mind Mechanical Mind is offline
 
Join Date: Sep 2004
Location: USA
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Reply With Quote
  #4  
Old 03-03-2005, 02:34 PM
Zero Tolerance's Avatar
Zero Tolerance Zero Tolerance is offline
 
Join Date: Feb 2004
Location: England
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 03-03-2005, 09:44 PM
Mechanical Mind's Avatar
Mechanical Mind Mechanical Mind is offline
 
Join Date: Sep 2004
Location: USA
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:22 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.04506 seconds
  • Memory Usage 2,224KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (8)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (1)postbit_attachment
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete