Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

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

Category: Portal Software - Version: 3.7.x Rating:
Released: 07-28-2008 Last Update: 07-31-2008 Installs: 503
DB Changes Uses Plugins
Additional Files  
No support by the author.

(This hack is for vb version 3.7.x & 3.8.x ONLY. For vb 3.6.x, 3.5.x, 3.0.x and 2.x see my profile for relevant threads.)

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

VB4 version Update (9.9.2010): Please find 4.x version of WebTemplates4.x in its own thread.


WEBTEMPLATES 3.7.x BASIC FEATURES:
  • Very Easy Installation : Webtemplates can be installed to your board without modifying even a single vbulletin file. It is coded as a vb product and can be imported very easily.
  • 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.
ADVANCED FEATURES FOR ADVANCED USERS:
  • 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.)

http://www.worldwideknights.com/view_mission.htm
http://www.theadminzone.com/forums/view.php?pg=aboutus
http://www.hystersisters.com/vb2/view_guidelines.htm
http://www.worldwideknights.com/view_info.htm
http://www.hystersisters.com/vb2/view_books.htm
http://www.worldwideknights.com/view_spread.htm
http://www3.fertilethoughts.com/forums/view.php?pg=acronyms
http://www.makeuptalk.com/forums/view.php?pg=makeuptalk-newsletter
http://www.bklab.com (entire site is designed with Webtemplates only)
(Actually this hack is one of the most popular vb hacks so it is used by hundreds -if not thousands- of vbulletin sites and you can easily find them if you go to google and search "Logician's WebTemplates" WITH quotation marks)

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

About this 3.7.xx Version: This 3.7.xx version is same as previous 3.6.x version. 3.6.x version was already working in vbulletin 3.7.x except a few minor bugs and these bugs are fixed in this version to make it dedicated solely to vbulletin 3.7.x. Please see "what's new" in the next post for more details.

Version Updates:
29.July.2008 - > Version 3.7.00
* Hack 3.7.00 is released.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
Xexiu

Comments
  #662  
Old 09-14-2011, 05:27 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 Spinball View Post
Can I do this?
HTML Code:
<tr> 
 <td class="$alternate" align="left" VALIGN="TOP"><div class="smallfont">$queryqueryresult) <a href='http://www.avforums.com/forums/member.php?$session[sessionurl]u=$WQfield[userid]'>$WQfield[username]</a></div></td>
 <td class="$alternate" VALIGN="TOP"><div class="smallfont">$WQfield[email]</div></td>
<td class="$alternate" VALIGN="TOP"><div class="smallfont">$WQfield[title]</div></td>
<td class="$alternate" VALIGN="TOP"><div class="smallfont">$WQfield[joined]</div></td>
<td class="$alternate" VALIGN="TOP"><div class="xsmallfont">$WQfield[ipaddress]<br /><? echo(geoip_country_name_by_addr($gi, $WQfield[ipaddress])); ?></div></td>
</tr>
in the Query Result Row of a WebQuery? Note the php element
PHP Code:
<? echo(geoip_country_name_by_addr($gi, $WQfield[ipaddress])); ?>
It's not working. I was wondering whether it was at all possible.
Thanks
Sorry nope, webquery section does not support external function calls.
Reply With Quote
  #663  
Old 09-14-2011, 08:23 PM
Spinball's Avatar
Spinball Spinball is offline
 
Join Date: Feb 2002
Location: Telford, England
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bummer. Ok, thanks. Still love Webtemplates
Reply With Quote
  #664  
Old 09-25-2011, 12:41 PM
cowcowcow cowcowcow is offline
 
Join Date: Jul 2009
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Logician,

I am really liking WebTemplates so far.


Anyway to allow comments? Like a simple system comment system like bannalives tournament mod where anyone can leave comments on the pages.


Anyway this is a really cool mod and wish you had premium products, would definitely pay for something like this with pro features, you seem like a talented developer and super helpful to noobs in your documentation, which is fantastic for people like me

Would gladly offer my site to be featured too in the OP if you like.
Reply With Quote
  #665  
Old 03-10-2012, 07:46 AM
N8's Avatar
N8 N8 is offline
 
Join Date: Dec 2004
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm having an issue using jQuery in my webtemplates:

the templates are taking the "$"s and converting them to $ in the html output.

Any way to stop this from happening?
Reply With Quote
  #666  
Old 03-13-2012, 04:07 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 N8 View Post
the templates are taking the "$"s and converting them to $ in the html output.
This is an intended feature to provide security

I don't recommend disabling it but if you should, replacing the line
$val = preg_replace( "/\\\$/" , "$" , $val );

as

//$val = preg_replace( "/\\\$/" , "$" , $val );

in wt_include.php should take care of it.
Reply With Quote
  #667  
Old 03-16-2012, 05:30 AM
N8's Avatar
N8 N8 is offline
 
Join Date: Dec 2004
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^ Thanks.


I also have a question regarding WebQueries:


Inside of:

Query Result Row
Use $WQfield[fieldname] variables to replace returned fields in your HTML code


Is there a way to use conditional statements?



I have a webtemplate set up as basically a global "New thread" page - which grabs a list of forumid's / titles and outputs a list of every forum, with every forum name linking to it's respective newthread.php link.

What I want to do now is be able to show which forums are empty, but can't figure out how to use a conditional statement to do so...


I've tried
Code:
<if condition=" $WQfield[lastpostid] == 0">code here</if>
.. but noticed that it doesn't matter what I put inside of condition="" - whatever is inside still ends up being displayed.


Is this just not builtinto the functionality of WebTemplates or am I doing something wrong? thanks
Reply With Quote
  #668  
Old 03-16-2012, 07:42 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 N8 View Post
^ Thanks.


I also have a question regarding WebQueries:


Inside of:

Query Result Row
Use $WQfield[fieldname] variables to replace returned fields in your HTML code


Is there a way to use conditional statements?



I have a webtemplate set up as basically a global "New thread" page - which grabs a list of forumid's / titles and outputs a list of every forum, with every forum name linking to it's respective newthread.php link.

What I want to do now is be able to show which forums are empty, but can't figure out how to use a conditional statement to do so...


I've tried
Code:
<if condition=" $WQfield[lastpostid] == 0">code here</if>
.. but noticed that it doesn't matter what I put inside of condition="" - whatever is inside still ends up being displayed.


Is this just not builtinto the functionality of WebTemplates or am I doing something wrong? thanks
Webqueries result row section does not support template condiditionals.

You can do what you want by hacking view.php. Find this line:
PHP Code:
@eval("\$birikenrow .= \"".WTgettemplate("$WTWQ[resultrow]"10)."\";"); 
and before that use something like this

PHP Code:
 if ($WTWQ['qname']=='$WQ_last10threadfromforum2'
{
$WQfield[title] = "If webquery name is $WQ_last10threadfromforum2' this is what all thread titles will be!!";

Important: There are 2 of these lines so you should add the hack before BOTH of them.
Reply With Quote
Благодарность от:
N8
  #669  
Old 05-16-2012, 05:05 PM
webmastershome webmastershome is offline
 
Join Date: Apr 2005
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have just download and it's works good on my forums
Reply With Quote
  #670  
Old 06-26-2012, 12:31 PM
mindhunter77 mindhunter77 is offline
 
Join Date: Jan 2006
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I keep getting this on my forum, is there anyway to fix this or maybe disable the visitor log?

Code:
Database error in vBulletin 3.8.7:

Invalid SQL:
SELECT count(*) as num,floor((1340668799-dateline)/604800) as week FROM vbwwu002visitlog WHERE 

(userid=1)AND(dateline>=1338249600) GROUP BY week ORDER BY week;

MySQL Error   : BIGINT UNSIGNED value is out of range in '(1340668799 - 

`bbq`.`vbwwu002visitlog`.`dateline`)'
Error Number  : 1690
Request Date  : Tuesday, June 26th 2012 @ 03:26:56 PM
Error Date    : Tuesday, June 26th 2012 @ 03:26:57 PM
Script        : .com/forum/
Referrer      : admincp/index.php?do=head
IP Address    : 71.
Username      : c
Classname     : vB_Database
MySQL Version : 5.5.24-0ubuntu0.12.04.1
Reply With Quote
  #671  
Old 06-26-2012, 01:14 PM
mindhunter77 mindhunter77 is offline
 
Join Date: Jan 2006
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

disregard my last post, this was related to the server time being off apparently.
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 03:56 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.06810 seconds
  • Memory Usage 2,354KB
  • Queries Executed 27 (?)
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
  • (3)bbcode_code
  • (1)bbcode_html
  • (3)bbcode_php
  • (3)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
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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