View Single Post
  #3  
Old 12-16-2005, 02:18 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?

No.

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:
http://www.yoururl.com/forum/view.php?pg=your_template#anchor1


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: https://vborg.vbsupport.ru/showthrea...106#post853106

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 : https://vborg.vbsupport.ru/showpost....&postcount=163

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 : https://vborg.vbsupport.ru/showpost....&postcount=180


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 : https://vborg.vbsupport.ru/showpost....&postcount=743

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: https://vborg.vbsupport.ru/showpost....&postcount=855

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: https://vborg.vbsupport.ru/showthread.php?p=1576908#post1576908
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01435 seconds
  • Memory Usage 1,822KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete