The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
WebTemplates v.0.1 (Old Version) Details »» | |||||||||||||||||||||||||
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 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
|
Comments |
#62
|
|||||
|
|||||
hi logician, thanks for your reply...
Quote:
i can access the webquery, i can edit webquery, but i just can't preview, that's all. Quote:
it is wierd, didn't see anyone else in here having the same problem. Quote:
Quote:
Quote:
the webtemplate is at www.poolfanatic.com/forum/show.php?pg=whoareyou |
#63
|
||||
|
||||
Quote:
Quote:
https://vborg.vbsupport.ru/showthrea...547#post255547 Quote:
a) You can set your .htaccess file and point index.html as /url/board/show.php?pg=yourwebtemplate and so your main page will be this webtemplate b) You can set your main page as index.php instead of index.html and in your index.php, you can include any webtemplate you want (see here for more info) Quote:
|
#64
|
|||
|
|||
Nice one Logician - I'm just installing this hack on a test server and I am pretty impressed so far!
One question: How do I include a template in another template? I thought you could just create a template and then use $templatename like we do with $header and $footer but it's coming up blank instead of including the template. |
#65
|
|||
|
|||
Man, I had just sat down to try and write something like this. Looks awesome!
I am going to install this on one of my test sites and see how it goes. |
#66
|
||||
|
||||
Quote:
However I'm can not follow the reason of including webtemplates into other templates. Can you please clarify why you need this feature? I mean you can simply insert the HTML code of the other template inside the other one and what will be the point of including the code as a seperate template? Please also clarify if you want a feature to parse webqueries in the included webtemplate or not? I mean if the included template does not have webqueries in it, it can be simplier to add such a feature but if you have webqueries then the script need to parse them too which requires more work. @futureal & grb123: Since you are testing the hack out, maybe you would be interested to test the new version (which has not been released yet). It's fully competable with the existing one so you can use your existing webtemplates and webqueries and it has powerful new features. If you want to help me test it out to catch bugs, add new features etc., please provide me with your email address so that I can send you the file. Thx. |
#67
|
|||
|
|||
Hi Logician
Thanks for the reply. The reason why I want to include templates is to make it easier for our site editor to update the sections he needs to update without getting lost in all the code in the rest of the page. For example: We have an Events page. This consists of three sections: the standard $header, a side bar which is specific to all the pages in the events section, and the list of events. At the moment the side bar and the events list are text files which are included in the page using SSI. The editor only has access to the events list which he updates as events are sent to us. This makes it easy to update as he only sees the bit that he updates. I wanted to therefore create 3 WebTemplates: Events (main page), Events_Side (side bar) and Events_List (the list of events.) I could then tell the editor to just to to Events_List whenever he needed to update an event. If all of these are in one page, it is a lot of code in a small template box and for a non-IT person this can get very confusing. The included template may have webqueries in it though it's not essential. Our side bars currently contain the last 10 posts from each forum depending on which page is being loaded, but I can also just not have an included side bar template if that makes it easier and instead just have two templates, Events and Events_List. Hope that makes it clearer! I would be more than happy to test the new version though I've only just installed this and haven't even tried the queries yet. |
#68
|
|||
|
|||
Another useful feature would be a backup for WebTemplates only, as per the vBulletin styles. I've done it using mysqldump and just dumping the webtemplates and webtemplatequery tables, but if we had it in the control panel that would be nice. OK, I could add it myself, but you may want to include it in a future version.
I've also noticed that if you include links in the footer, you need to hardcode them ie show.php?pg=pagename rather than {template=pagename]. Is there anyway that the vbulletin search can also include searching the WebTemplates pages? |
#69
|
||||
|
||||
Quote:
However I also added a new feature to the new version: You can export your webtemplates/webqueries as a text file. I integrated this feature so that hack users can easily share their useful webtemplates/webqueries, but it's also useful for archiving purposes (I'll send you the new version ASAP, you can test the feature) Quote:
Quote:
An easier method would be to create a webquery that makes searches in your webtemplates. In the new version webqueries work with ourside variables so you can design such a powerful webquery which accepts user data and searches webtemplates according to this keyword. However please notice that some of your templates may have conditionals (eg. hidden text for certain users) or may be private (open to some users only) and if you search keywords in your entire webtemplate db, these info may be exposed.. |
#70
|
|||
|
|||
Quote:
Quote:
Quote:
|
#71
|
||||
|
||||
Quote:
You first need to create an HTML form (in a static HTML page or in a webtemplate, your call) and put a input text box there to let your users enter the keyword to search. Then create another webtemplate and make sure the form POSTs the form data to that second webtemplate. To that second webtemplate, attach a webquery which takes the user keyword and by using it searches the relevant field of "webtemplates" table and sorts the found results. Then by clicking the sorted results user can visit the webtemplates which has these keywords. I again want remind you that if you have "private webtemplates" or "private sections in public webtemplates" these can be exposed unless you exclude these webtemplates in your webquery. If you are not familiar with the tecnical concepts I mentioned here or cant manage to do your searching feature yourself, remind me your request after I released the new version and I can give you the webtemplate/webquery that does it. @To other users of webtemplates hack: The feature (ie "outside variables") I quote in this message, is not included in the webtemplates version (beta) you are using at the moment. This feature is included in the new version of webtemplates and although it's not yet released, grb123 is beta testing it. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|