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 v.0.1 (Old Version) Details »»
WebTemplates v.0.1 (Old Version)
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: 03-21-2002 Last Update: Never Installs: 160
 
No support by the author.


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Attention: This version of webtemplates is obsolete since new version (2.xx) is released as of 30.June.2003.

If you are new user, please visit new hack's thread and install that one, not this version.

This thread is active for discussing migration issues and will be closed in the future.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=




Introduction:
Basically this hack allows you create vbulletin powered non-vb pages within vb admin CP and administer them just like vb templates.

Your "webtemplates" reside inside MYSQL and have the same structure as regular vbulletin templates and you edit/modify/delete them inside your Admin CP. You can create as many as you like and display them like:
http://yoursite URL/yourboard URL/show.php?pg=YOUR_WEBTEMPLATE_NAME.

Features of Your WebTemplates:
* You can easily edit/update your non-vb pages from your vb control panel just like vb templates. No need to FTP or smt.
* Simply backup your vbulletin and your entire site (including your webtemplates) is backed up too.
* You can use some vbulletin variables in your non-vb pages, so eg. address your members with their member names in your entire site.
* Your entire web site can mimic your forum's visual interface. All your fonts/colors etc. are kept in your non-vb. pages too. Besides users' style sets apply for your web templates either. So for instance if you have 2 styles, every user will see your webtemplates in the style and colors they are using in the board.
* This hack allows you to specify usergroups/usernames which can or cannot see the page you designed. So your non-vb pages can inherit vb. access permissions. Every webtemplate can have different display permissions for different users/usergroups.
* You can have counters in your pages and show/trace page visits individually for all your pages. Every webtemplate has its own counter.
* You can have "last visitor's name and visit time" in all your pages.
* You can insert fixed header/footer for all your pages.
* The "conditionals" you can set, allow you to design advanced and dynamic web pages, which change themselves according to the conditions you set. For example you can set different texts/page designs IN THE SAME PAGE for different users and every user will only see the text that is addressed to him.


Webtemplates are very easy to create. Just copy paste the HTML code of your page into the webtemplate box, give it a name, click submit and voila, your webtemplate is up and running! By using this method, you can convert your existing non-vb pages into webtemplates with ease too. It is just a matter of copy/paste its HMTML code. Installation of the hack is easy too and the hack will work any version of vbulletin I know.

For Advanced Users: If you want your webtemplates to get data from your database and display it, you have an advanced feature named "webqueries". WebQueries feature allows you to run SQL queries in your MYSQL database and automatically create sorted tables for you which you can add in any WebTemplates. So your non-vb pages can be dynamic and you can have any kind of SQL results (related with vb or not) in any page you want. Webqueries are optional to use and appeals to people with basic SQL knowledge. You can still create webtemplates very easily without using webqueries if you don't know SQL or don't need to query your database in your webtemplate. If you want to play with webqueries, please read and follow instructions CAREFULLY. This hack gives you advanced tools to create powerful and dynamic web pages, so give yourself sometime and learn how to create these pages. I wrote help pages which you can find in your webtemplates section after installation, so please read them carefully and examine sample page's code before pelting me with questions!

If you installed this hack, share your webquery samples in this thread


Fixes and Add-ons:
* If you have than 1 MYSQL databases, webquery section might not work properly. If you encounter any problems related to that issue, apply the small fix in this post.[/COLOR]
* If you want to display your webtemplates in who is online, apply this small hack .
Also there is a small bug with "conditionals" feature of the hack, if you use more than 1 conditional in 1 webtemplate. I guess very few people use this feature but anyway I fixed it in the new release that is in progress..
* If you want your webtemplates search engine friendly and indexed in google or other search engines, read this tip by Piper.


Current version (BETA v.0.1) is NOT actually a beta anymore, it's proven to be working very well in many people's boards and is stable.

I plan to develop this hack. However to enhance it more, I need to change its algortihm which requires rewriting and I wait for VB3 so that the hack will will be competible with VB3 too. That's why development is pending at the moment.


If you install the hack please click install, thank you.

Regards,
Logician //=^))

Show Your Support

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

Comments
  #12  
Old 03-22-2002, 09:18 PM
indiamike's Avatar
indiamike indiamike is offline
 
Join Date: Oct 2001
Location: New Jersey, India
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

MY GOD...you can have my first born child.

This is amazing!!!!!!

I have a feeling that this is going to explode.

Mike
Reply With Quote
  #13  
Old 03-22-2002, 10:48 PM
snyx's Avatar
snyx snyx is offline
 
Join Date: Oct 2001
Location: Vancouver (whistler.2010)
Posts: 556
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by indiamike
MY GOD...you can have my first born child.

This is amazing!!!!!!

I have a feeling that this is going to explode.

Mike
:surprised: I gotta test this one out...
Reply With Quote
  #14  
Old 03-22-2002, 10:52 PM
ptbyjason's Avatar
ptbyjason ptbyjason is offline
 
Join Date: Dec 2001
Location: TX
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh WOW! I didn't think this was a big deal until I saw your reply to neo. Very nice. Great Job. I will try to install this soon. Now I am going to think about something to do with it as soon as I can.
Reply With Quote
  #15  
Old 03-22-2002, 11:47 PM
snyx's Avatar
snyx snyx is offline
 
Join Date: Oct 2001
Location: Vancouver (whistler.2010)
Posts: 556
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed it, its very cool, but a downside it creates FAR too many calls to show.php in my opinion. This hack is great for the site that is 100% its fourms, you can't really build an entire site around this hack, but easily create a bunch of great little pages. Good hack man! 5 Stars!
Reply With Quote
  #16  
Old 03-23-2002, 01:19 AM
Vivi Ornitier's Avatar
Vivi Ornitier Vivi Ornitier is offline
 
Join Date: Nov 2001
Location: Black Mage Village
Posts: 442
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok... WONDERFUL sounding... but what are the down falls... their is always down falls?
Reply With Quote
  #17  
Old 03-23-2002, 03:14 AM
LawnDawg LawnDawg is offline
 
Join Date: Oct 2001
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oooh man, did he beat Nakkid to the release? =| I recall nakkid working on somethin similiar to this, vBHome I believe.

But nice job nonetheless Whatever benefits the community.
Reply With Quote
  #18  
Old 03-23-2002, 07:28 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 snyx
I installed it, its very cool, but a downside it creates FAR too many calls to show.php in my opinion. This hack is great for the site that is 100% its fourms, you can't really build an entire site around this hack, but easily create a bunch of great little pages. Good hack man! 5 Stars!
Ok it seems that many people got the pros so lets discuss the cons, shall we?

When you create a page (ie webtemplate) with this hack, it will reside in your MYSQL database. This means that everytime this page is called by your users your site have to relate with MYSQL which will create a overhead (CPU usage) compared to static HTML pages.

If you want to have dynamic (ie changing for every user) pages then you have to bear this overhead because server has to interrelate with something to get and process data to create a dynamic page. This can be SQL DB, another file on the server etc. and in our hack that is mySQL.

If you have a informative static page, there is no need to convert it to a webtemplate. It will be safe and reduce the load in your server if you leave it as a HTML page. However if you need to create dynamic pages which derive their strength from your forum db, then this hack gives you the tools you need.

Well, lets see how much overhead it requires:

First go check your forum's main page's overhead:
call this link (YOUR FORUM URL)/index.php?explain=1

Go at the end of the page and see how many queries did your forum's main page requires while loading.In my forum it's 20 which is a quite reasonable number (at least for vb). (FYI for showthread.php this number is much higher)

Now do the same thing for my hack: (after installation of course!)
Call this link (YOUR FORUM URL)/show.php?pg=whoareyou&explain=1

You'll see that while loading the page, server will connect the database only for 10-14 times which is 1/2 of your forum's main page overhead. I think this is quite reasonable. Moreover if you disable page visit ($count variable), reduce the webqueries in your webtemplate you'll lower this number. So on the average a web template with one Webquery in it will only connect to your MYSQL 10-12 times and that is bearable considering the fact that you get a powerful and nice dynamic (fully integrated with your vb) page in return.

I hope this clarifys this hack's performance issues..

Regards,
Logician
Reply With Quote
  #19  
Old 03-23-2002, 07:43 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 snyx
I installed it, its very cool,
I know many people are interested in the hack itself and its features but honestly my primary concern at the moment is how it's working in different user's forums. Hack is BETA so I need any feedbacks about installation and working issues.

So guys if you install this hack, please report how it is doing in your server? Any installation problems? Does sample page (whoareyou) loads as it should be? Do access permissions working ok (eg. page should only allow admin and forum members to load it, guests for example should get "not allowed" remark). Do web queries in that page work? Do you get your last 10 threads and personal calender events?

I appreciate any feedback. Thank you..

Regards,
Logician
Reply With Quote
  #20  
Old 03-23-2002, 10:39 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey there,
Quote:
Originally posted by TWTCommish
I'm having a little trouble following it's use, but it looks interesting.
Well it's a bit confusing, I agree :knockedout:

Let me give an example of its usage from my own site:

I administer a non-commercial law site which is dedicated and addressed to professional law men. As you can guess our board (vb) has a crucial effect in my web site because it maintains a very efficient communication among law professionals.

In my forum we also have a "newbie legal questions" forum area which stands for non-lawmen visitors' legal questions. We also have a few informative web pages (outside the board) in our site for these non-lawmen visitors.

After installing my board, I decided to include dynamic content to these web pages which are outside the board. I wanted to compile last 10 answered threads from "newbie questions" area and list them in the web page. This would be nice because this web page would only be read by visitors who are not lawmen and they would be highly interested with the answered questions from this specific forum area and I would get them to this area and my board from this web page.

I first planned to create this page with PHP and but then I noticed that I want to have many dynamic pages like this and it would be arduous to code many PHP scripts individually for every page and more arduous to maintain them in the future.

So this hack was born. Instead of coding many PHP scripts all of which in common compile data from vb with SQL queries (=WebQueries), have the same visual design, headers/footers etc., I wrote this hack that gives me the ground to easily administer these pages. (=webtemplates).

Now whenever I need a web page that requires dynamic content and interaction with vbulletin data, I can create a webtemplate/webquery and although this page is a standart HTML page outside the board, I can have any kind of data from vbulletin in this page. Besides visual design of this page is easier any more, because it's automatically handled by the script according to my vbulletin's styles and colors. If I want I can permit/ban access to this page for certain users or usergroups either. I can even insert hidden personal notes for certain users or usergoups inside this page.

So dont think this hack something that extends vbulletin board features. It extends your non-vb web page features and integrates them with your vbulletin board.

I hope this practical usage of this hack can shed a light about its use and features.

Regards,
Logician
Reply With Quote
  #21  
Old 03-23-2002, 01:11 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very impressive, and a very good idea. It's a pity my sites will be too complex for this to be useful in my particular case, but I can see this becoming one very very popular hack in time, as the possibilities are seemingly endless, and the usefulness is very high! :up:
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 07:27 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.05471 seconds
  • Memory Usage 2,325KB
  • 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
  • (4)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
  • (3)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