PDA

View Full Version : Any one know how to run PHP code inside any vbulletin page?


thewebhostingdi
01-09-2009, 10:20 AM
Hello guys,

May be my question here will look like a very basic one...

I want to display some information in sidebar of my forum using PHP code.... that sidebar is created using a template called ULTIMATE SIDE Column.

I am not a programmer... Just trying to run a small php code in vbulletin template file (ultimate side column)

However, i noticed that templates doesn't run php code ... Is it true ?

What should I do to run php in the template?

Marco van Herwaarden
01-09-2009, 10:38 AM
Please see the manual: Including External Files (http://www.vbulletin.com/docs/html/main/templates_externalfiles)

thewebhostingdi
01-09-2009, 10:42 AM
That was helpful a littlebit, but since i am not a programmer, i don't know how to create plugin.

Can you give me one more link on that?

Dismounted
01-09-2009, 10:53 AM
<a href="http://www.vbulletin.com/docs/html/add_plugin" target="_blank">Adding or Editing a Plugin</a>

thewebhostingdi
01-09-2009, 11:21 AM
1st article says that ... "2. Place $includedphp in one of your templates, such as header, navbar, FORUMHOME, depending upon where you want the contents of your PHP file to appear."

Is it possible to call this variable $includephp with parameters? For example,

$includephp forumid

(forumid is parameter here)