vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Where is "$post" defined? (https://vborg.vbsupport.ru/showthread.php?t=148352)

sonichero 05-29-2007 03:05 AM

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...

harmor19 05-29-2007 10:38 AM

You can use preg_replace to remove the HTML tags.

sonichero 05-29-2007 08:18 PM

do i do that in the PHP or HTML?

how would that code go to get rid of the stuff surrounding the rank url?

sonichero 05-31-2007 02:55 AM

still need help

harmor19 05-31-2007 03:13 AM

look it up.

sonichero 05-31-2007 07:28 PM

gee...thanks?

preg_replace doesnt help unless i know the PHP file in which $post[rank] is defined.

Brad 06-01-2007 01:53 AM

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! :)

sonichero 06-01-2007 04:20 AM

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.

harmor19 06-01-2007 05:06 AM

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.

sonichero 06-01-2007 05:14 AM

...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="" />>


All times are GMT. The time now is 09:27 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.02332 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete