Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 08 Jan 2010, 13:28
trancetopia trancetopia is offline
Join Date: Feb 2005
Real name: Paul
Can php be executed within a template?

I have a function which I need in forumdisplay.php but I need to execute that function from within the threadbit template.

The function will detect the first image in the post and i'm then diaplaying it as a thumbnail so in threadbit I need to put something like:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The php context seems to be ignored so wondering if vBulletin ignores direct php code within the template?

I would really appreciate anyone pointing me in the right direction.

.: Trancetopia :.
UK Photography Forum
Reply With Quote
Old 08 Jan 2010, 15:38
Lynne's Avatar
Lynne Lynne is offline
Join Date: Sep 2004
Real name: Lynne
You will need to use a plugin to execute the php and then pass the results off to the template for output.
Former 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.)
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 21:16.

Layout Options | Width: Wide Color: