PDA

View Full Version : Variable in Blog Template


tstrkat
12-02-2008, 10:52 PM
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?

Warlord
12-03-2008, 01:57 AM
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.

tstrkat
12-03-2008, 04:35 AM
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:

Warlord
12-03-2008, 05:14 AM
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.

tstrkat
12-03-2008, 02:27 PM
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.

Warlord
12-03-2008, 03:29 PM
Glad I could be of no help. LOL