vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Variable in Blog Template (https://vborg.vbsupport.ru/showthread.php?t=197867)

tstrkat 12-02-2008 10:52 PM

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?

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


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
  • Page Generation 0.00965 seconds
  • Memory Usage 1,716KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete