The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Where is "$post" defined?
I want to get rid of the automated "<img src="...." when i place $post[rank] somewhere. Ive been looking for awhile and i cant find it anywhere.
Need this for a sweet mod... |
#2
|
|||
|
|||
You can use preg_replace to remove the HTML tags.
|
#3
|
|||
|
|||
do i do that in the PHP or HTML?
how would that code go to get rid of the stuff surrounding the rank url? |
#4
|
|||
|
|||
still need help
|
#5
|
|||
|
|||
look it up.
|
#6
|
|||
|
|||
gee...thanks?
preg_replace doesnt help unless i know the PHP file in which $post[rank] is defined. |
#7
|
|||
|
|||
I remember having trouble with this.
Check out the file /includes/class_postbit.php. The functions "construct_postbit();" and "process_registered_user();" should aid you well in your quest. Look forward to seeing your hack! |
#8
|
|||
|
|||
okay, this is pissing me off...
All im tryin to do is find $post[rank] defined in a PHP so i can remove the <img src="" alt="" border="" /> so i can put it in the background of a table. Thanks to you guys above for your help. Sadly, it didnt work. |
#9
|
|||
|
|||
I guess your avatar suits you.
You can query the "rank" table with a left join on the user table. Then you can check the post count of the user and return the rank image where the user's post count is greater or equal to the minimum number of posts for the rank. |
#10
|
|||
|
|||
...but what on earth does that have to do with removing the <img src="blah" alt="" border="" /> that comes with the $post[rank] code
What i want is to have <table background="www.site.com/forums/$post[rank]"> so it comes out as |www.site.com/forums/images/ranks/evil.gif| instead of |www.site.com/forums/<img src="images/ranks/evil.gif" alt="" border="" />> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|