Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
WebTemplates 2.x: VB Integrated Content Management System Details »»
WebTemplates 2.x: VB Integrated Content Management System
Version: 1.00, by Logician Logician is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 06-29-2003 Last Update: Never Installs: 154
 
No support by the author.

After a long wait, here is the new 2.x version of Webtemplates. First a short introduction for users who are not familiar with the old version:

This hack is a vbulletin integrated content management system. Term "Webtemplates" stands for dynamic webpages that reside in your MYSQL database and administered inside your vbulletin admin control panel. But they are more than regular site pages because they can automatically inherit visual design of your forum, can apply permissions according to your vb usergroup settings, can keep track of page counts, last visitorname/visit time, display page browsers in the page itself and in your whoisonline page etc. So basically webtemplates are dynamic web pages of your site which are powered by vbulletin.


WEBTEMPLATES 2.x FEATURES:
([New] indicates feature that is recently introduced in this 2.x version)
  • Easy Installation : Webtemplates can be installed to your board without hacking even a single vbulletin file! It is coded as an add-on, not a hack.
  • Conditionals : Webtemplates has built-in support for Logician's advanced templates conditionals so you can design webtemplates which change their display under different conditions. (Even if you don't have that hack installed)
  • Private Webtemplates (NEW): With 1 click you can make a webtemplate "private" and it will be displayed to only certain usergroups.
  • Apply VB Permissions: You can ban any webtemplate to any user or usergroup according to their userids or usergroupids. 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.
  • Draft Webtemplates (NEW): You can put webtemplates in "draft" mode which makes them invisible to all but admins.
  • Visitor Logging&Tracking (NEW): You can track certain users (by usergroup or userid) to monitor who visited a webtemplate and when. This is configurable per webtemplate basis.
  • Site Contributers (Editor) Support (NEW): 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.
  • Categories (NEW): Webtemplates 2.x supports multi-categories for better webtemplate organizations.
  • Multi Parsing (NEW): Webtemplates can now parse PHP or HTML or TEXT (=smilie/img tags/bbcode parsing like vb posts)
  • 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.
  • Outside Variables (NEW): Advanced users can now use outside variables in webtemplates, then webtemplates will accept/use/process user sent variables via HTTP_GET and HTTP_POST methods (eg. a HTML form can post to a webtemplate with this feature)
  • Page Counter : Webtemplate has built-in counter and you can display page count to your visitors and you can edit it or turn it OFF or ON per webtemplate basis.
  • Page Browsers Display (NEW): Webtemplates can display who is browsing that webtemplate while people is reading them (like default forum browse display of vbulletin)
  • Who is Online Display (NEW): Webtemplates can display page visitors in who is online (This is Optional and require a simple hacking in file online.php). You can create private webtemplates which are hidden in who is online too.
  • Theme Support (NEW): 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 theme for them, then just insert their content into this theme. If you change theme later, all 20 pages' visual will change automatically.
  • Header/Footer Inclusion : Webtemplates can use headers/footers (your default vb header/footer or custom ones)
  • PHPINCLUDE per webtemplate (NEW) : Every webtemplate has its own "phpinclude" field which you can run PHP codes before loading the Webtemplate
  • Help Documents : The script comes with built-in & detailed help documents (they are webtemplates too).
  • Webquery Feature : With advanced "webquery" feature you can now add create dynamic webtemplates which include database query results. For instance you can easily add member count/post count/thread count/last 10 threads forum X etc. to your webtemplates with default webqueries that comes with installation or you can create your custom webqueries with basic SQL knowledge.
  • Archieve to Text File (NEW): Webtemplates/Webqueries can be downloaded to a text file with one click for archiving purposes. You can also easily share these text files with other hack users.
  • Login/Logout box (NEW): You can insert login/register box to your webtemplate if visitor is a guest and log off box if she is a member.
  • Admin Panel in Webtemplates (NEW): 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.
  • Better Performance (NEW): Webtemplates 2.x structured so that it performs well even under heavy load conditions and high traffic servers. (See Performance issues below)
  • Easy Back up: Simply back up your database (inside vbulletin or externally) and all your webtemplate structure is also backed up automatically.

For screenshots, FAQ, performance issues, migration from old version to new version, see below.

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..


Version Updates:
30.July.2003 - > Version 2.03

* Adds feature to include regular vbtemplates into webtemplates

2.02 users: apply this fix to update.
New users: Get the hack from the first post of this thread (which is the latest version), you don't need to apply this update.


12.July.2003 - > Version 2.02

* Fixes a bug with outside variables.

2.01 users: apply this fix to update.
New users: Get the hack from the first post of this thread (which is the latest version), you don't need to apply this update.


2.July.2003 - > Version 2.01

* Fixes bug that bothers webqueries if "Show Template Name" option enabled in vb admin cp
* Fixes bug in webquery $WQ_mostactivemembers
* Fixes visual look of webtemplate test
* Fixes visual look of admin panel and makes sure it looks ok in dark backgrounded boards too.

2.00 users: update here.
New users: Get the hack from the first post of this thread (which is the latest version), you don't need to apply this update.



Webtemplates 3.x (for vb.3.x) is released here:
https://vborg.vbsupport.ru/showthread.php?t=76422

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #202  
Old 02-04-2004, 05:55 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cindyd
I need to know how to tie the new pages into the regular forum? Do I just set up a parent forum and list all the links? I know I could do that, but there must be another way.....I just don't know what to call what I want on a search.
I'm not sure what you mean by tie the webtemplates into the forum?
Reply With Quote
  #203  
Old 02-10-2004, 01:05 PM
XtReMaTriX's Avatar
XtReMaTriX XtReMaTriX is offline
 
Join Date: Dec 2002
Location: Just beyond the realm of
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Logician
Included vb templates do not work on headers. You have to add inside regular templates. So you'll add $WTT_templatename (of course rename "templatename" section in this variable!) inside your webtemplate that you want to inherit.

Or create a webtemplate header template and copy/paste your templates content into this one and then you can use this webtemplate header in your other webtemplates

I was rather confused by how you explained that.. Ok so I cant use VBTemplates in the header.. ok.

In the old version I created a VB Template called top and bottom, and put my layout and everything in there.

Is that how it should be done now? Or is there a better way??

I tried making a vbTemplate with all the values and adding that to the WebTemplate but nothing showed up... I would really appriciate some more help...
Reply With Quote
  #204  
Old 02-10-2004, 06:47 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by XtReMaTriX
I was rather confused by how you explained that.. Ok so I cant use VBTemplates in the header.. ok.

In the old version I created a VB Template called top and bottom, and put my layout and everything in there.

Is that how it should be done now? Or is there a better way??

I tried making a vbTemplate with all the values and adding that to the WebTemplate but nothing showed up... I would really appriciate some more help...
You have 2 options:
1- You can create header/footer Webtemplates. (or modify existing default ones). Then you can add your content there and you can use these header/footer webtemplates in other webtemplates.

2- You can create a regular vb template as you did. Then add its name in the "included vb template" part in your webtemplate edit page. Then add "$WTT_templatename" in your webtemplate and this template will show up in the location you put "$WTT_templatename". In this method, if you have more than 1 template sets, create your template in all template sets.
Reply With Quote
  #205  
Old 02-24-2004, 08:30 AM
roxics's Avatar
roxics roxics is offline
 
Join Date: Jan 2002
Location: Detroit Area
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Logician from page 12
The structure won't be flexible so don't expect something fancy but here is a draft webquery: (Remember to replace X with threadid)
I've been playing around with this webquery and it's great. Here is an example:
http://www.visionengine.com/board/view.php?s=&pg=sound

But when you said it won't be flexible what exactly do you mean? The reason I'm asking is because I'm curious if it can do more.

Is there a way to get it to pull only the second post and beyond from a particular thread? Along with a "post reply" link (image and all) to that thread?


Second query
Is there a way to pull only the first post from a given thread? With username, avatar, edit link, homepage link, profile link. Pretty much everything from the postbit.

The reason is because I'm looking for an easy way for members to contribute articles. Most don't know HTML and send me word documents I have to format into simple HTML. It's a pain. They are used to using the board. Plus that way there is a copy of the article on the board.

If there is anyway to make these two queries work togther that would be even better.
Reply With Quote
  #206  
Old 02-25-2004, 10:37 AM
Highlander Highlander is offline
 
Join Date: Apr 2002
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Logocian,

i used the first version too .. and it wored fine.. but now i changed to this version.. witrh a news install of my board.. and have this error when i visit our TEST template

http://spielplanet2.de/forums/view.php?pg=test

can you help me?
Reply With Quote
  #207  
Old 02-25-2004, 05:59 PM
roxics's Avatar
roxics roxics is offline
 
Join Date: Jan 2002
Location: Detroit Area
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone help me with this. I'm trying to get the next 10 events for the next ten days on the calendar to show on this page. But I'm pretty clueless as to what I'm doing.

Here is the page:
http://www.visionengine.com/board/view.php?s=&pg=events

Here is my query
PHP Code:
SELECT *
FROM calendar_events
WHERE 
public = AND eventdate >= +10()
ORDER BY eventdate LIMIT 10 
Here is my query result row

PHP Code:
<table border='0' cellspacing='0' cellpadding='0' width='100%'>
<
tr><td bgcolor='#000000' width='100%' height="0" 
<
table width='100%' border='0' cellspacing='1' cellpadding='3'>
<
tr>
<
td bgcolor='#cecfce' width='100%'>
      <
div align="left">
<
font style="FONT-FAMILY: Verdana, MS Sans Serif;FONT-SIZE: 10pt;"><b>Event</b$WQfield[subject]<br>
<
font style="FONT-FAMILY: Verdana, MS Sans Serif;FONT-SIZE: 10pt;"><b>From 
       
:</b> <a href="$bburl/member.php?s=&action=getinfo&userid=$WQfield[postuserid]">$WQfield[username]</a></div>
      <
div align="right"><font style="FONT-FAMILY: Verdana, MS Sans Serif;FONT-SIZE: 8pt;"><b>Date:</b$WQfield[eventdate]</div></td>
</
tr>
<
tr
     <
td bgcolor='#F1F1F1' width='100%' height="5" align='left'
      <
font style="FONT-FAMILY: Verdana, MS Sans Serif;FONT-SIZE: 10pt;"
      
$WQfield[event]</font> </td>
</
tr>
</
table>
</
td>
</
tr>
</
table>
<
br
On top of that I can't seem to get the username to show up. Or manage to get it so the event information is formatted properly.
Reply With Quote
  #208  
Old 02-25-2004, 06:42 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Highlander
Hi Logocian,

i used the first version too .. and it wored fine.. but now i changed to this version.. witrh a news install of my board.. and have this error when i visit our TEST template

http://spielplanet2.de/forums/view.php?pg=test

can you help me?
Your PHP version is old. Either upgrade it or change all instances of "array_key_exists" in the script as "key_exists"
Reply With Quote
  #209  
Old 02-25-2004, 06:46 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by roxics
Can someone help me with this. I'm trying to get the next 10 events for the next ten days on the calendar to show on this page.
This wont work.. calendar dates in vb2 is not saved in a nice format to get via a webquery for future dates.
Reply With Quote
  #210  
Old 02-25-2004, 07:54 PM
Highlander Highlander is offline
 
Join Date: Apr 2002
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

found the error

<*YERAH**

everybdy who has PHP 4.0.6 has to find in view.php following code:

Code:
array_key_exists
replace with (think more than 18 times)
->with this please-> key_exists
Reply With Quote
  #211  
Old 02-25-2004, 07:55 PM
Highlander Highlander is offline
 
Join Date: Apr 2002
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ahh okai.. you helped me out already while i searched the error .. lol .. anyway muchas grazias
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 11:39 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07661 seconds
  • Memory Usage 2,349KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete