Announcement

Collapse
No announcement yet.

Include different php for different templates?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Include different php for different templates?

    Still new at this, still not fully wrapping my head around it...

    There is a single php include at the start and end, this is good, I get it.

    What is the approach when some page/templates require a lot of php code, and it is specific to that one template?

    Say I have a database query which I only want to execute for one template, and never anywhere else?

    Please and thank you.

  • #2
    If you need run a query for one specific template you might want to hack the file, as i dont think you will be able to do it with phpinclude_start as it is run, after everything else is already done.

    For futher help with hacking you can probaly get better help and anwsers at vBulletin.org

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X