Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 27 Mar 2015, 16:25
!!!'s Avatar
!!! !!! is offline
Join Date: Nov 2002
Custom Blocks & Inserts

I've been searching for over 30 minutes now and it's taking up way too much time; is there a simple way to just create PHP blocks and insert them into templates parts? I've seen recommendations for the vB CMS and vBulletin 4, but not 3.
Reply With Quote
Old 27 Mar 2015, 16:55
kh99 kh99 is offline
Join Date: Aug 2009
Real name: Kevin
Well, you can create a plugin for your php that creates a string with html, then edit the template and insert the ariable where you want the html to appear. The plugin hook location and the template name depend on exactly where you want it to appear.

You can create your own template and have your plugin code render that template to a string, then insert that in another template, if you prefer to generate your html that way.

Last edited by kh99; 27 Mar 2015 at 16:57. Reason: oops - changed for vb3
Reply With Quote
Old 28 Mar 2015, 22:29
PinkMilk PinkMilk is offline
Join Date: May 2010
Real name: Milk Pink
Have a read of this: How to Include a PHP or HTML File
Reply With Quote

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add-On Releases vBonjour - Custom Blocks Add On peterska2 vBulletin 3.6 Add-ons 14 25 Jan 2007 18:41

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 02:00.

Layout Options | Width: Wide Color: