![]() |
|
Thread Tools |
#1
|
||||
|
||||
bbquote template
For my hack: http://www.vbulletin.org/forum/showthread.php?t=175282
I'm trying to get the font code to display within the quote box, but I can't get this to work. Here is my code within the bbcode_quote template:
No members have liked this post.
|
#2
|
||||
|
||||
Lack of quotes here maybe?
<if condition="$userinfo[field10] Should be.. <if condition="$userinfo['field10'] What is it doing exactly? Nothing for the quotes at all? Or just some? Is it in the source code incorrectly or not at all?
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#3
|
||||
|
||||
Originally Posted by Lynne
The single quotes will cause a parse error.![]()
Your css won't work right if the user doesn't provide all the fields. You might be able to try something like this but it will get complex.
No members have liked this post.
|
#4
|
||||
|
||||
Originally Posted by MoT3rror
![]()
Yes the quotes did give me an error, I will try your suggestion though, thanks. No members have liked this post.
|
#5
|
||||
|
||||
How do you memorize this stuff. I can never remember. I just try it and if it works, great! If not, I try it without. It seems to be one way in php and the other in the templates.
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#6
|
|||
|
|||
Ya I can't get it to work with either way. It seems it does not like variable $userinfo. $bbuserinfo works fine, but obvisously that just displays what the browsing user has entered in his/her profile NOT what the acually user that is displayed has selected. I don't know why that is, php works differently between each template.
No members have liked this post.
|
#7
|
|||
|
|||
Yeah $userinfo isn't a variable in the template system. Sorry didn't catch that.
$bbuserinfo contains all the userinfo. No members have liked this post.
|
#8
|
|||
|
|||
Originally Posted by MoT3rror
but $bbuserinfo doesn't display the poster's fields, it displays the user that is browsing, what they have entered into the fields.![]()
So what variable could I use? $post doesn't work either ![]() No members have liked this post.
Last edited by ChU v2; 22 Apr 2008 at 23:22. |
#9
|
||||
|
||||
When the quote is parsed in vB_BbCodeParser::handle_bbcode_quote, it only globalize these variables.
So a way to get around this might be to globalize $post or whatever is used in the location you need but this will take a file edit because there is no hook in this location. No members have liked this post.
|
#10
|
||||
|
||||
Originally Posted by MoT3rror
How would I go about globalizing the variable?
![]()
No members have liked this post.
|
#11
|
|||
|
|||
No members have liked this post.
|
#12
|
|||
|
|||
so for example: <if condition="global $post[field6]">
Where do I put that code No members have liked this post.
|
#13
|
||||
|
||||
Find the function handle_bbcode_quote in the class_bbcode.php file in the includes folder.
In this function add
These will allow you use $post in the that template. I would suggest you find a way around it if you can if you are using this in a mod. No members have liked this post.
|
#14
|
||||
|
||||
Originally Posted by MoT3rror
Well If I knew a way around it, we wouldn't be having this discussion ![]()
![]() Thanks for your help No members have liked this post.
|
#15
|
||||
|
||||
Globalising variables should not have any impact on security.
__________________
Former vBulletin.org Staff Member View My Modifications 29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x) Please do not PM me to ask for support - please use the relevant thread or forum. No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 19:49.