![]() |
Variable in Blog Template
I am modifying the vB Blog 'blog_show_entry' template and, more specifically, the code pages that generate data for the template. Problem is I cannot figure out where the data for this variable "$article[message]" found on line 60 of the aformentioned template is getting its data.
Anybody have any ideas? |
I don't have the blogs feature on my forums, but I would do a search for $article[message] in blog.php if you haven't already done so.
|
BTW, I meant "$blog[message]" We're going to be using the blog addon to post and manage articles on our site and so I got my names confused as I was typing.
Warlord, thanks for responding. Yeah I did try that. I searched blog.php and all (as far as I could figure) of the included files that get called from blog.php and I couldn't find that direct variable. I also tried the reasonable variations like $blog['message'] etc. I am guessing that 'message' must be getting assinged while it is part of a different array and then the compiled contents are getting transfered to or referenced by blog[]. But I haven't been able to figure out where that is happening. :confused: |
Did you look through your plug-ins yet? The code might be in one of those if vBulletin's blog feature uses plug-ins. That's really the only other place I would think to look. If that fails, I guess it couldn't hurt to try searching the templates but I would guess the code you're looking for is in a plug-in.
|
I didn't think to look through the plugins and the blog has a lot of them. I'll have to keep that in mind for the future.
However, I managed to finally locate it. Turns out it is set in class_blog_entry.php when you call $entry_handler->construct(); at line 813 in blog.php. Thanks again. |
Glad I could be of no help. LOL
|
All times are GMT. The time now is 01:07 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|