The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
This is for vb 3.0.7
So I've learned how to change the $post query in the showthread.php and showpost.php so that I can query other tables without adding queries using the LEFT JOIN. And the code works perfect there. It creates the variables as $post[mapname] However I can't find the $post query anywhere in the private.php and of course $post[mapname] just brings up a blank in pms ![]() Kinda at my wits end here, any ideas? |
#2
|
||||
|
||||
![]()
There is no reason for private.php to query the post table, since PM's have no relevance to posts, they are completely seperate.
|
#3
|
|||
|
|||
![]()
Use $pm instead of $post.
|
#4
|
|||
|
|||
![]()
Would $pm[field31] get the information from a profile field?
Let me be a bit more specific hehe. I've created a variable that I can use in the postbit template, in the showthread.php and showpost.php I used the $post query to grab it so that it didn't use an extra query. Sorta like how the rpg integration hack works. In the postbit template I now use $post[mapname] to display that info. Unfortunately in PM's it just comes up blank. Trying to figure out which query I can fiddle with to add the information the same way and recreate the $post[mapname] variable in there. I know there has to be a way, because the postbit template is used in PMs and it understands and translates all the $post[xxx] I just can't figure out how it's doing that heh. |
#5
|
|||
|
|||
![]()
Profile Fields are stored in the user information array called $bbuserinfo.
You could use: $bbuserinfo[fieldX] In general, if you are not sure how a variable is called, look in the php-file and in the template, which array's are being used. Then TEMPORARY add the following code to your php script: PHP Code:
PS Do this on a testboard, not a live board. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|