Register Members List Search Today's Posts Mark Forums Read

Mod Options
WebTemplates 3.5.x: VB Integrated CMS (Content Management System) Details »
WebTemplates 3.5.x: VB Integrated CMS (Content Management System)
Mod Version: 3.6.03, by Logician (Coder) Logician is offline
Developer Last Online: Jan 2021 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.8 Rating: (59 votes - 4.85 average) Installs: 698
Released: 16 Dec 2005 Last Update: 21 Jun 2008 Downloads: 2292
Not Supported Uses Plugins Template Edits Additional Files  

(This hack is for vb version 3.5.x AND 3.6.x. For vb 3.0.x and 2.x see my profile for relevant threads.)

(For vb 3.7 version, please go to this thread)

"WebTemplates" is a vBulletin integrated Content Management System which allows you to create vb integrated "HTML" pages in your vb admin cp very easily. The pages can inherit your vbulletin skin/style, can recognize logged-in user, can be applied permissions per user or usergroup basis, can keep visit logs, hit counts and do many more.

  • Very Easy Installation : Webtemplates can be installed to your board without modifying even a single vbulletin file. It is coded as an pluggin and supports phrase system for user interfaces.
  • Apply VB Permissions: You can ban any webtemplate to any user or usergroups easily. So for instance you can design a webtemplate which only members can see while guests can not, or only user A can not see etc.
  • Page Counter : Each webtemplate has a built-in counter and you can display page count to your visitors and you can edit it or turn it OFF/ON per webtemplate basis.
  • Visitor Logging&Tracking : You can track certain users' (by usergroup or userid) webtemplate visits to see who visited a webtemplate and when. This is configurable per webtemplate basis.
  • Site Contributers (Editor) Support : You can grant editing permissions for certain users or usergroups for your webtemplates individually and they will be able to update these webtemplates using their own editor interface. vB's WYSIWYG editor is supported in Editor interface.
  • Page Browsers & Who is Online Display: Webtemplates can display who is browsing that webtemplate while visitor is reading them (like default forum browse display of vbulletin). Webtemplate visits can also be monitored in who is online page.
  • Header/Footer Inclusion : Webtemplates can automatically use headers/footers (your default vb header/footer or custom ones)
  • Help Documents : The script comes with an extensive help document.
  • Admin Panel in Webtemplates : Your webtemplates can include an "admin panel" displayed to only admins and by using them you can access many details and stats of your page while you are browsing them.
  • SEO friendly URLs: You can make webtemplate URLs seo friendly in vb settings (Requires apache server).
  • XML Import/Export : XML Import/Export feature allows you to backup your webtemplates and use other hack users webtemplates in your board.
  • Webquery Feature : With advanced "webquery" feature you can create dynamic webtemplates which include database query results. For instance you can easily add "last 10 threads forum X", "most active users list" etc. to your webtemplates with default webqueries that comes with installation or you can create your custom webqueries with basic SQL knowledge.
  • Multi Parsing : Webtemplates can parse PHP or HTML or TEXT (=smilie/img tags/bbcode parsing like vb posts). This means you can design a page just like vb posts (TEXT parsing), standart HTML (HTML parsing) or even in PHP (PHP parsing).
  • PHPINCLUDE per webtemplate : Every webtemplate has its own "phpinclude" field which you can run PHP codes before loading the Webtemplate
  • Theme Support : Webtemplates support "themes" which are parent webtemplates which include child webtemplates in them. For instance if you have 20 similiar pages which uses the same visual look, you can make a single theme for all of them, then just insert their content into this theme. If you change theme later, all 20 pages' visual will change automatically.
  • Conditionals : Webtemplates supports VB3 template conditionals so you can design webtemplates which change their display under different conditions.
  • Default variables : You can use/display certain variables in your webtemplates like username of the visitor, visitor email address, last visit time, page creation time, page last edit time, Last visitor name, last visit time etc.
Sample WebTemplates from Sites using this hack:
(Some 3.5 and some are 3.0 versions but WebTemplate look and feel didn't change much so both will give you the idea) (entire site is designed with Webtemplates only!)

3.5 version Admin CP screenshot attached to this post. 3.0.x screenshots (here and here) also still applies for this version.

If you use the hack, clicking here will make sure you'll know about updates&bug fixes. It will also help me understand how many people is using the hack so please click the install button if you use it. Thank you..

Note in 6.August. 2006 : I've tested Webtemplates with vbulletin 3.6.0 gold version and they are compatible. So this hack released here is both for vb 3.5.x AND 3.6.x

Note for vb 3.7.x : (29.July.2008): For vb 3.7.x, I released a new version here:

Version Updates:
16.Dec.2005 - > Version 3.5.01
* Hack released.
16.Dec.2005 - > Version 3.5.02
* A webquery bug fix for boards which use table_prefix. To upgrade just overwrite hack .php files.
17.Dec.2005 - > Version 3.5.03
* A minor bug in WOL page fixed. To upgrade overwrite hack .php files + reinstall product XML
17.Dec.2005 - > Version 3.5.04
* A bug fix for edit webtemplate page not remembering webtemplate's showbrowsers setting.To upgrade overwrite hack .php files
16.Jan.2006 - > Version 3.5.05
* A bug fix for boards which has too many usergroups. To upgrade overwrite hack .php files + uninstall product, then reinstall (your existing webtemplates will be intact)
20.Aug.2006 - > Version 3.6.00
* A bug fix that can cause a MYSQL warning in a few servers in WT admin cp. A minor and unusual problem that happens in certain servers and you don't need to upgrade if you don't see such a message. To upgrade overwrite /includes/wt_include.php and /admincp/wt_wt.php files.
1.Oct.2006 - > Version 3.6.01
* A minor bug fix for showing user avatar and ipaddress in webtemplates. To upgrade overwrite /includes/wt_include.php and view.php files.
2.May.2007 - > Version 3.6.02
* IMPORTANT SECURITY UPDATE! A security problem has been fixed in this version. To upgrade overwrite /includes/wt_include.php and view.php files which is attached to this post.
21.June.2008 - > Version 3.6.03
* Two minor bugs (1 & 2) fixed.
29.July.2008 - > Version 3.7.00
* A new version for vbulletin 3.7.x is released in a seperate thread here:

Download Now

Only licensed members can download files, Click Here for more information.



Click image for larger version

Name:	WebTemplate_AdminCP_ScreenShot.jpg
Views:	13124
Size:	674.9 KB
ID:	39483  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Portal Software WebTemplates 3.7.x: VB Integrated CMS (Content Management System) Logician vBulletin 3.7 Add-ons 682 01 Mar 2014 08:30
WebTemplates 3.x: VB Integrated Content Management System Logician vBulletin 3.0 Full Releases 254 14 Dec 2006 03:30
WebTemplates 2.x: VB Integrated Content Management System Logician vBulletin 2.x Full Releases 265 13 Sep 2006 19:48

Old 16 Dec 2005, 15:18
Logician's Avatar
Logician Logician is offline
Join Date: Nov 2001
Pre-Installation & Post-Installation FAQs:

Webtemplate Pre-Installation FAQ:

1) I still didn't understand what webtemplate is. Can you clarify more?

Webtemplate is a HTML (or php) page. It is different than your other HTML pages in that you can create them in your vbulletin admin cp and you can integrate them with your vbulletin like applying them vb permissions, styles etc.

2) Uh! This hack looks too complicated! I'm a newbie; can I use it?

This hack has powerful features. But it does not mean you have to learn and use all the features. If you are a newbie, you can be pretty happy with its primary feature: Administering your webpages in your vb admin cp and apply vb permissions on them. For this you need no knowledge on anything. Simple copy / paste HTML code of your page, give it a name, enter user/usergroup ID who are banned from this page, click save and you have a webtemplate ready and published automatically. You'll also find a "How to Create your First WebTemplate" document in the ZIP file.

3) Is installation/uninstallation easy?

Yes, can't be easier. Webtemplates is NOT an hack so you don't need to modify any vbulletin files to install webtemplates.

4) Is Webtemplates a portal system?

Umm, no, not exactly! I would define a portal system as a content management system for especially targeting your site home page. I didn't hear a portal which does not replace your site home page. Webtemplates has similiar features like a portal, however it is not designed to replace your site home page. Webtemplates are your "other" site pages but site home.

5) For what can I use this hack?

You can use it to create pages that needs to inherit your vb skin and permissions. For instance you can design pages like "About Us", "Donations" etc.

6) Can I use other portal/vbulletin integrated home page hacks (eg. vbadvanced) with webtemplates?

Yes you can. Webtemplates neither substite/replace any of them, nor touch them.

7) Can I use a webtemplate as my site home page?

It is not designed to act as a site home page. I don't use it as my site home page in my site either. However since the prior version, some hack users always insisted to use this hack as their site home page and they managed to do it too. Basically you can do it in 2 ways:
a) you can create a file named index.php and use this line in it:
<?php include (""); ?>
When you upload this file in your site home directory, your site home page will be a webtemplate.

b)You can edit your .htaccess file and make a redirection so that whenever your main page (=index.htm or index.html) is called, server opens your webtemplate. A sample redirection line is that:

Redirect /index.html

Please search keywords ".htaccess+redirect" in google for more info about .htaccess redirection

Although both methods are safe and effective, I neither encourage, nor support site main page webtemplates as the system is not designed this way in the first place.

8) Does it work in all 3.5.x? What about 3.6.x?

Yes, I would say. It is tested with 3.5.0, 3.5.1, 3.5.2, 3.5.3 and it will work new coming vb versions until 4.x shows up. It is also tested with 3.6.0 gold and they are compatible too.

For 3.0.x version or 2.x version see relevant threads.

9) How is the hack performance? Does it affect server load? Does it have a lot of queries?

Webtemplates is coded to perform "very well" even under heavy load. A webtemplate has an average of 12-18 queries per page. How many queries you have, depends on which features you enabled for that webtemplate and how many webqueries you use in it.

However always bear in mind that webtemplates, vbulletin itself, or any other dynamic PHP pages which make connection to MYSQL database can never be as "performance friendly" as static HTML pages. Static HTML pages is not dynamic (so does not change according to different conditions etc.) but much less server intensive. So especially in heavy loaded servers and for heavy traffic pages, you may want to use default static .html pages especially if you are not after having a dynamic content in them.

But if you are ready to use a dynamic script/structure/software/solution then webtemplates is NOT a performance killer, you can enjoy this hack. Its performance and affect on the server load is very similiar to a regular vbulletin page, like vb forum home page.

10) Do you support this hack?

This hack is 100% free although it can be good match to many commercial CMS. Besides IMO it is one of the best vb integrated CMS you can find in the internet. I share the hack here without any commercial intentions just like many other of my hacks but please understand that I can not commit my entire life to support this free hack. If there is any general bugs, problems or security issues in the hack, I'll do my best to fix them ASAP and release new versions in this thread. You are also very welcomed to ask any hack related questions or future requests here in this thread but please excuse me if I can not find time to answer all. I also don't have plans to enhance the hacks in the near future so new feature requests are welcomed but should not be expected to be coded very soon. I also have many other hacks released here that requires my attention and time so webtemplates is not the only project I devote my time. Thanks for understanding.

11) I was using WebTemplates in 3.0.x board and I have custom WebTemplates. Can I keep them in version 3.5 ?

Yes. Read "Upgrade from version 3.0.x.txt" document in the ZIP file.
Logician's Blog | WebTemplates for vb 4.x : VB Integrated Content Management System

Last edited by Logician; 06 Aug 2006 at 11:32.
Reply With Quote
Old 16 Dec 2005, 15:18
Logician's Avatar
Logician Logician is offline
Join Date: Nov 2001
Webtemplate Post-Installation FAQ:

1) I have installed the webtemplates but I guess it does not work ok?

Double check you've installed it correctly. Especially make sure you uploaded the files to the correct locations.

If you are sure you installed it correctly, then check the thread to see if someone posted a similiar problem and get an answer. If no, post your problem into the thread but please give details! It does not help me to read "the hack does not work!", I need details like what exactly happens when you visit admin cp, default webtemplates etc., what error messages/screens you get etc.

2) Can webtemplates parse PHP code?

Yes, it can. Besides you are given 2 grounds to run PHP:
a) You can make a webtemplate's marking as PHP and it will be treated as a PHP script.
b) Even if your parsing is HTML or TEXT, you can still have php incode in phpinclude section of the webtemplate which will run before webtemplate is displayed.

However its PHP parsing capability is limited to vbulletin's PHP parsing capability due to its integration with vb. In other words if your PHP code does not work fine in vb phpinclude template, it wouldn't work fine as a webtemplate either.

3) Can I put view.php in a different directory?

No. This requires too many modifications in the hack code so I don't suggest or support it. Do it by your own risk.

4) Can webtemplates include other webtemplates in it?

a) Webtemplates can include header / footer webtemplates in them. So if you need to include webtemplate A, in webtemplate B, you can make A a header or footer.
b) New version supports "themes" which are webtemplates that includes other webtemplates in them. So you can make webtemplate B a theme to include webtemplate A in it.
c) Webtemplates can include regular vb templates in them.
d) Other than that webtemplates can NOT include other webtemplates in them, nor nests loops: (eg A includes B, B includes C etc.)

5) I want display login box if visitor is a guest and log off link if visitor is a member, can I do it?

Yes, use variable $WT_Login in your webtemplate

6) You say Webtemplates inherits visual look (colors/fonts) of our forum. This is good but I want to create a webtemplate with a different design, say red background color. Can I do it?

Yes. Simply create your HTML Code and paste it into webtemplate field and you have your red backgrounded page.

Your Webtemplates inherits your visual design when you use vbulletin HTML tags in your webtemplates. (like default vbulletin templates uses). For instance if you use

<div class=normaltext>Hello</div>
in your webtemplates your text "Hello" will be displayed in the default font (color, size, font name etc.) of your board. But if you use:
<font face="Times New Roman" color="#FF0000" size="4">Hello</font>
your webtemplates will display "Hello" in Times New Roman, RED color and size 4.

your webtemplates will display "Hello" in Times New Roman, RED color and size 4.

7) I want to post smilies/bbcode/IMG tags to my webtemplate, can I?

Yes. Simply change your webtemplate parse method as TEXT. In TEXT parsing, webtemplates will display your bbcodes/smilies etc.

After that, if you want to have a page creation enviroment like thread posting (bbcode/smilie boxes are displayed in formation page), design your webtebtemplate in editor interface instead of admin interface.

8) How do I backup my webtemplates?

1- While backing up your database in your admin cp, vbulletin will back up your webtemplate tables too.
2- You can export your webtemplates/webqueries as XML files. You are welcomed to share them here with other hack users.

9) I have more than 1 database. Can webqueries query my other databases?

No. They only query the database your vbulletin resides.

10) Can webtemplate content be searched in Vbulletin search?


11) Do Webtemplates have search engine friendly URLs?
Yes. However it is experimantal and works only in apache servers. See help document for more info.

12) How can I create a webquery that does X?

You are welcomed to ask these questions and I'm hoping that someone will help you with creating custom webtemplates/webqueries but please understand that I can not take time to answer all "how can I create such webquery" questions as there are infinite SQL queries that can be requested. Thanks for understanding.

13) Can I add a vb poll into a webtemplate?

Manually yes.. Simply copy paste its HTML code. Automatically no.

14) Can I use this as a news page by retriving last X posts from forum Y?
It is possible. As a matter of fact I've included a sample webquery to do that into the installation and you can check it in the test2 webtemplate.

15) Can I use vb Phrases in WebTemplates?

Mostly. Webtemplate recognizes and parses the vb phrases that are in GLOBAL group and in some other groups which are specified in the begining of "view.php" starting with this line: $phrasegroups = array('

You can edit this line to add more phrase groups to webtemplates pages. Though only basic phrases in these groups are supported, not the advanced ones that includes {1} {2} in it.

16) How can I use "Editors" feature effectively?

You can assign Editors to your webtemplates who can edit them by using their own editor interface.

If your editors know HTML, that is ok, then you can assign them to any webtemplate you like even the ones with HTML parsing.

However in most cases your site helpers will not know HTML to customize your HTML templates. If this is the case, you can follow this strategy:
1- Create a theme (with HTML parsing) and design it yourself with HTML.
2- Create child webtemplates that uses this theme. Make sure child webtemplates has TEXT parsing (not HTML).
3- Assign your editors to these child webtemplates. Since they are in TEXT parsing, your editors interface will now include smilie box, BBCode box and will look like exactly thread posting interface. They can then design the webtemplate with BBCode, smilies, IMG tags just like they are posting a new thread and without any need to use HTML commands.

17) Can link a certain section (paragraph, line etc.) in a webtemplate?
Yes you can:
a) Insert an HTML anchor to the location you want to link (eg. to the very begining of the paragraph) like this : <a name="anchor1"></a>

b) Then you can link this section like this:

18) Can I use vb's WYSIWYG Editor to design Webtemplates?

Yes. However not in your admin interface, but in the editor interface. So create a webtemplate page, then visit it and click "Edit This Page" link you see in stats line which will take you to the editor interface. You'll have WYSIWYG editor in that interface provided that:
a) That is your set bbcode interface in your usercp
b) The webtemplate is a "TEXT" parsed webtemplate.

19) Can Webtemplates run FLASH code in it?

Webtemplates can do anything regular HTML pages can do, so yes, they allow flash too. Just create your flash snippet and add it to your webtemplate just like you are adding in a regular .html page. Make sure your webtemplate's parsing is set as "HTML".

20) How can I uninstall it?

Select "uninstall" in Product Manager and it will automatically uninstall. Uninstalling does not remove database tables so that your custom webtemplates will not be lost when you reinstall. If you want to delete database records too run this query :
DROP TABLE `wt35_query`, `wt35_theme`, `wt35_visitlog`, `wt35_webtemplate`;

21) It is nice to see WebTemplate visits in Who is Online but I have a private WebTemplate which I want to hide from other WOL visitors. Can I do that?

Yes. Rename your webtemplate and make sure its name starts with affix priv_

22) After the installation, I get "Fatal error: Call to undefined function: key_exists()". Any fix for this?

Yes. See here:

23) Editor interface of regular users can be improved in many ways to create other hacks around Webtemplates. What do you think?

Please read this :

24) If I ban a certain usergroup from viewing a webtemplate, anybody who belongs to this usergroup in anyway is banned even if their primary usergroup is different. Can the permission system work differently?

Please read this :

25) (vb 3.7.x) 25) When I try to export existing webtemplates and webqueries, I get Warning: Missing argument 1 for vb_xml_builder() in /includes/class_xml.php on line 465
Fatal error: vB_XML_Builder::Registry object is not an object in /includes/class_xml.php on line 473? Any fix for this?

Please read this :

26) (vb 3.7.x) 26) I was using the hack fine in 3.6 but after upgrading to 3.7, all webtemplates disappeared and webtemplate pages display just text "header". Any fix for this?

Yes, read here:

27) I have quoteit! hack and I get Parse error: syntax error, unexpected T_STRING in .... /forums/view.php(901) : eval()'d code on line 1 error in webtemplates.

Read here:
Logician's Blog | WebTemplates for vb 4.x : VB Integrated Content Management System

Last edited by Logician; 16 Jul 2008 at 16:17.
Reply With Quote
Old 16 Dec 2005, 15:19
Logician's Avatar
Logician Logician is offline
Join Date: Nov 2001
Differences Between 3.0.x Version and 3.5.x Version:

• Page Security Settings are now simpler. You don’t have to enter userids or usergroupids anymore. Instead you can directly enter disallowed usernames and check disallowed usergroups in a more friendly interface.

• Same simplicity applies to “WebTemplate Editors” and “Logged Usergroups/Usernames” Sections.

• “Is Private” per Webtemplate option is removed as it was redundant. WebTemplates Hack has now “is draft” option and banned usergroups/usernames options for your page security needs.

• Meta Keywords and Meta Description per WebTemplate is added for better search engine optimization.

• “Download WebTemplate/Webquery as a text file” option is removed and replaced with “Import / Export WebTemplates as a XML” file. This will help you to save your WebTemplates in a better supported format and hack users can very easily share eachothers WebTemplates by import feature.

• “Logician Conditional Syntax” is no more supported in this version of the WebTemplates. Instead you can use vb3 conditional syntax for your conditional needs. That is:
<if condition = “…………..”>……………<else />…………….</if>

• User friendly URL support is added. So instead of calling your WebTemplates as:
You can now ALSO call it as:
Please note this feature is experimental, and not fully supported by me at this time. I tested it and it works for me but it may not work for you due to your server settings, webserver program, .htaccess settings etc.

• “Outside variables” are removed from the hack as it is confusing for novice users and redundant for expert users. Someone who needs to pass outside variables to the webtemplate can use PHPINCLUDE field of webtemplate to clean and process variables in the vbulletin way. Eg.
$vbulletin->input->clean_array_gpc('r', array(
'my_variable_1' => TYPE_STR,
'my_variable_2' => TYPE_INT,
Logician's Blog | WebTemplates for vb 4.x : VB Integrated Content Management System

Last edited by Logician; 16 Dec 2005 at 15:22.
Reply With Quote
Old 16 Dec 2005, 15:19
Logician's Avatar
Logician Logician is offline
Join Date: Nov 2001
A kudo Received Kudo:

Hey Logician,

I abolutely LOVE your webtemplates!

I wanted to show you a little test I did. I wanted to see if I could put together a little site with JUST using your web templates only.

Maybe you can include this site in the hack description? There are about 25 templates running on that site

Thanks again
Logician's Blog | WebTemplates for vb 4.x : VB Integrated Content Management System

Last edited by Logician; 05 Jul 2006 at 22:11.
Reply With Quote
Old 16 Dec 2005, 15:23
ok, i'm the first...

can i say i'm happy now, that it is really for 3.5.x ?!

that was the missing link for my taking control of the web.. lol

/me clicks THANKS!
Reply With Quote
Old 16 Dec 2005, 15:29
waza waza is offline
Join Date: Apr 2005
Nice work!
Now available: SAPR, it's like god send an angel
Reply With Quote
Old 16 Dec 2005, 15:31
chairman miaow chairman miaow is offline
Join Date: May 2005

Wow ! Impressive stuff........easy to install - cheers ! :banana:
Reply With Quote
Old 16 Dec 2005, 15:39
-=Sniper=-'s Avatar
-=Sniper=- -=Sniper=- is offline
Join Date: May 2002
wow this is amazing dude, something with similiar features but as an article manager would be a dream. hehe

great work
Reply With Quote
Old 16 Dec 2005, 15:44
Stachel Stachel is offline
Join Date: Jun 2004
Thank you thank you thank you !!
Reply With Quote
Old 16 Dec 2005, 15:54
kaniksu kaniksu is offline
Join Date: May 2003
I've been waiting for this! Thank you!!!
Reply With Quote
Old 16 Dec 2005, 16:00
jesse jesse is offline
Join Date: Mar 2004
Damn the work into this I wouldnt mind donating Great work
Reply With Quote
Old 16 Dec 2005, 16:02
Chris M's Avatar
Chris M Chris M is offline
Join Date: Dec 2001
Real name: Chris Murphy, BSc
Very nice, as always

Reply With Quote
Old 16 Dec 2005, 16:06
SMO's Avatar
SMO SMO is offline
Join Date: Sep 2005
Real name: Geoff
this sounds fun!
Reply With Quote
Old 16 Dec 2005, 16:21
Cyricx Cyricx is offline
Join Date: Sep 2002
You never fail to amaze bro
Cyricx (Chris)
Reply With Quote

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

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 03:25.

Layout Options | Width: Wide Color: