Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Formatting Usernames into HTML in postbit Details »»
Formatting Usernames into HTML in postbit
Version: , by Andrew111888 Andrew111888 is offline
Developer Last Online: Apr 2011 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 06-12-2003 Last Update: Never Installs: 0
 
No support by the author.

This is my first hack! Hurrah!

---------------------------------------
How to add HTML to usernames in the postbit (EASY)
by: Andrew111888
---------------------------------------
What does this hack do?
This hack allows you to format a member's username in the postbit via the Admin CP. (or User CP if you want)
Files to edit: None
Templates to edit: 1 (postbit)
Querys to Run: None
Installation Time: about three minutes.

I half-figured out how to accomplish HTML in the postbit from installing g-force2k2's Username Font Color Hack (https://vborg.vbsupport.ru/showthrea...threadid=39289) though he did not assist me in creating this hack.

I'm aware of only one other hack like this (filburt1's) but that requires running a query and multiple file edits. This gets the job I want done about 10x quicker than that hack (though I'm sure his does more than mine, such as auto-formatting by usergroup and stuff)

Enjoy! (sorry, no screen shots available)

Download Now

File Type: (21.4 KB, 54 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-12-2003, 04:29 AM
da prez da prez is offline
 
Join Date: Mar 2003
Location: texas
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i cannot get this to work for me.

i have tried every possible combination i can think of.
Quote:
Step 3------------------------------

Go to: Admin CP > Templates > Modify > postbit

Find:

<normalfont><b>$post[username]</b></normalfont><br>

----and replace with:-----

<normalfont><b>$post[field X1]$post[username]$post[field X2]</b></normalfont><br>

Replacing X1 and X2 with the appropriate values. (HTML Names 1 would be X1, HTML Names 2 would be X2)
i made mine field 5 and 6, for html names 1 and 2.

but after i alter the post bit file, none of my posts show up.

all the text, user name, title and everything is missing.
just the title and two sets of new thread and reply buttons.

what the heck did i do wrong ?


- da prez
Reply With Quote
  #3  
Old 06-12-2003, 08:28 AM
colicab-d's Avatar
colicab-d colicab-d is offline
 
Join Date: Dec 2002
Location: Glasgow
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

erm is this not a template modification rather than a hack as your not changing any of the internal php code?
Reply With Quote
  #4  
Old 06-12-2003, 08:50 AM
blackice912's Avatar
blackice912 blackice912 is offline
 
Join Date: Jun 2002
Location: Tacoma, WA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, this is a template edit it seems.
Reply With Quote
  #5  
Old 06-12-2003, 08:57 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes this is a template mod. Please read the page about what constitutes a hack before posting a hack. Basically it involves the editing of one of the php files that come with vBulletin.

Therefore... moved to template mods for now

However this has been done MANY times before so shall i delete this?

- miSt
Reply With Quote
  #6  
Old 06-12-2003, 03:08 PM
Andrew111888's Avatar
Andrew111888 Andrew111888 is offline
 
Join Date: Mar 2003
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just thought it'd be a help because when I searched through I only found one other hack allowing you to use html, and that's filburt1's hack which requires a ton of mods.

Da prez, can I see the parts of html around where you're editing, too? I want to make sure the html is correct.
Reply With Quote
  #7  
Old 06-12-2003, 04:07 PM
da prez da prez is offline
 
Join Date: Mar 2003
Location: texas
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the error occurs before i even put any html in.

the error is right after i alter the post bit file
with the copy and paste of your code.

i like i said field x1 is field 5 and field x2 is field 6.
i view the template after altering and all looks well....

i have no idea, but probably me.

- da prez
Reply With Quote
  #8  
Old 06-12-2003, 04:28 PM
Andrew111888's Avatar
Andrew111888 Andrew111888 is offline
 
Join Date: Mar 2003
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Show me a portion of your postbit, including the html I told you to put in and the html before and after it.

How much HTML are you putting in for the profile fields?

Also, make sure they are in order such as-

Field 5: <u><b>
Field 6: </b></u>
Reply With Quote
  #9  
Old 06-13-2003, 03:32 AM
da prez da prez is offline
 
Join Date: Mar 2003
Location: texas
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i did manage to make this work for me,
but i needed to remove the spaces in the $post[field x1]

i was using $post[field HTML Name 1]

i needed, (cause 5 is the field) $post[field5] and no space.

done deal.

- da prez
Reply With Quote
  #10  
Old 09-01-2003, 05:46 AM
Haddy Haddy is offline
 
Join Date: Jul 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Odd mine just shows the text I put in the there like itll say "<u>Username</u>" *minus the ""*

Is there something different for 2.3.2?
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 08:07 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.04318 seconds
  • Memory Usage 2,303KB
  • Queries Executed 24 (?)
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)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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