vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   WebTemplates v.0.1 (Old Version) (https://vborg.vbsupport.ru/showthread.php?t=36419)

grb123 07-18-2002 01:58 PM

Thanks Logician. I may have to get the search query from you as I don't trust myself! I've upgraded to the new Beta and it's all ok so far. I'll PM you some suggestions when I've played with it for a couple of days.

inetd 07-20-2002 07:31 PM

Logician, please reply me :)
I can create main homepage with news (from first forum), poll (from second forum), login panel, information about PM and small help for newbie - By means of it hack?

grb123 07-21-2002 09:24 AM

Quote:

Originally posted by inetd
Logician, please reply me :)
I can create main homepage with news (from first forum), poll (from second forum), login panel, information about PM and small help for newbie - By means of it hack?

Yes, you could but you would probably be better off using vBHome or vBPortal which would be easier for your purposes. Do a search here to find those two hacks.

inetd 07-21-2002 10:20 AM

How to make, that at enter on MY_FORUM_URL user saw one of web templates? And how in web template to insert contents of another web template?

inetd 07-21-2002 10:49 AM

don't work Advanced Page Design
[[ ($user_usergroupid==6) ]] (without spaces)
I see
[[ (6==6) ]] (without spaces)
Help me, please

Logician 07-22-2002 07:49 AM

inetd,
Quote:

I can create main homepage with news (from first forum), poll (from second forum), login panel, information about PM and small help for newbie - By means of it hack?
As grb123 suggested, I think you should use other hacks if you intend to apply it to your main page. Well some of your your requests can be done via Webtemplates too, but if you are designing a "dynamic home page", you can do it more easily with other hacks.

However you can use webtemplates to design other pages (non main page) of your site with efficiency. So for example if you have a page which you want to display to only usergroup X, registered members, user with more than Y posts or user older than X days you can use webtemplates..

Quote:

Originally posted by inetd
don't work Advanced Page Design
[[ ($user_usergroupid==6) ]] (without spaces)
I see
[[ (6==6) ]] (without spaces)
Help me, please

Your syntax is wrong.. You should use this format:
PHP Code:

[[($user_usergroupid==6)]] 
I see 
[[/($user_usergroupid==6)]] 

This conditional will show the text "I see" only if the page visitor is from Site Admins group. I guess this is what you wanted to achieve..

Quote:

And how in web template to insert contents of another web template?
Please read a few messages above for more info about this subject..

inetd 07-23-2002 01:52 AM

Logician, i see vBindex, vbHome(Lite) and vbPortal. But i don't want make many changes in my vB :)
Quote:

Please read a few messages above for more info about this subject..
You can quote these messages? Please :)
And say please, how to make, that at enter on MY_FORUM_URL user saw one of web templates?

Logician 07-23-2002 07:15 AM

Quote:

Originally posted by inetd
Logician, i see vBindex, vbHome(Lite) and vbPortal. But i don't want make many changes in my vB :)
You can quote these messages? Please :)

here you go: https://vborg.vbsupport.ru/showthrea...481#post273481

Quote:

And say please, how to make, that at enter on MY_FORUM_URL user saw one of web templates?
You have 2 options to make a webtemplate your main page:

1- You can edit your .htaccess file and make a redirection so that whenever your main page (=index.htm or index.html) is called, server opens your webtemplate. A sample redirection line is that:

Redirect /index.html http://www.yoururl.com/forum/show.php?pg=your_template

Please search keywords ".htaccess+redirect" for more info about .htaccess redirection

2- You can assign your homepage as "index.php" instead of index.html (this can require .htaccess editing either), then inside this file you can "include" your webtemplate. So whenever index.php is called, your webtemplate will be displayed.

To include your webtemplate inside your index.php you need to use this line in the begining of index.php:

<?php include ("http://www.yourdomain.com/forum/show.php?pg=your_template"); ?>

Choose either way and you can make your webtemplate your site's main page..


However I want to mention again that, this hack is not meant to be "site main page" alternative..

freeshares1 07-23-2002 11:45 AM

Logician,

Thanks for this great hack. It has given me so many idea's.

It is working on www.gamblingforums.net (except i cannot get my referrals working)

inetd 07-23-2002 03:49 PM

Logician, you the best vBhacker! Sorry for my bad English also there can be a dullness, I am simple very badly I understand in mySQL and PHP. Thank you huge!


All times are GMT. The time now is 03:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01339 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete