vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Using vBulletin Cookies Outside the Fourms (https://vborg.vbsupport.ru/showthread.php?t=40871)

Logician 07-10-2002 09:13 PM

If it is plain HTML, it is VERY EASY to convert it to a webtemplate as I mentioned above. Just copy/paste its source code to a new webtemplate in your Admin CP and add the [cantsee] tag I mentioned above, you are done.

Now call it as http://www.yoursite.com/yourboard/sh...f_yourtemplate and here it is: If the visitor is a guest/unlogged member he will get please login/register to view this page message and if he is a logged-in user he will display your page. Very simple..

thorin 07-10-2002 09:46 PM

so in the "mysite.com/index.php" file it would simply have the include like this? "show.php?pagename"

This is going to make nested php files? I am using windows2k and IIS, so I am stuck in CGI-ville...what's that gonna do to my perfomance?

thorin 07-10-2002 09:48 PM

I would also REALLY like to see this working somewhere...I want to get a feel for it.

Logician 07-10-2002 10:05 PM

Quote:

so in the "mysite.com/index.php" file it would simply have the include like this? "show.php?pagename"
You dont need to include it, just link it from other pages, that's all.

To load it, call it from your browser address bar as "url/board/show.php?pg=templatename"

Quote:

I would also REALLY like to see this working somewhere...I want to get a feel for it.
Here is a test template for you:

http://www.turkhukuksitesi.com/hukuk...g=testtemplate

However you cant feel it, because it's meaningless if you are a guest. You would feel it if you visited that template with different vb usernames to see dynamic content. Screenshots in the hack thread demonstrate it better. But you insisted so here you are..

And here is another template which is open to only Site Admin usergroup. Test it to see how hack forbids you from displaying the page if you dont have the permission:
http://www.turkhukuksitesi.com/hukuk...p?pg=whoareyou

My 2 cents: Hack is not a pain to install. It will take you less than 15 minutes to install so give it a try and if it doesnt work, uninstall and forget it. You'll have the best feeling by trying it..

As for performance issues, hack thread has lots of information..

thorin 07-10-2002 11:27 PM

just a quick question, this may sound dumb, but I wanna have my bases covered...in your instructions, you seperate things with "CUT" does this just signify the end of the instruction and the start of the code or does it mean to find that and cut it out of the file and then replace w/ your code? there needs to be some claification there for sure...

thorin 07-11-2002 12:41 AM

ok, I think I got everything in right, I left the code that you said to find, in....but when I got to run the "webtemplates_install.php" nothing happens...it just goes to this URL w/ the same page conents as the first page....

/forums/webtemplates_install.php?p=1

I click the link and it loads the same page w/ the same URL...I looked in code and I know its not supposed to look like that, obviously :)

thorin 07-11-2002 01:20 AM

here is what I have in the webtemplates_install.php

$servername='localhost';

## Username and password to log onto your MYSQL database server
## Remember: this username and password will be used when connecting to MYSQL database.
$dbusername='root'; //MYSQL username
$dbpassword=''; //MYSQL password

## Name of the MYSQL database where your vbdata is.
$dbname='vbulletin';

Logician 07-11-2002 06:01 AM

thorin you need to edit this info to point your server/MYSQL username/password/databasename before running the script

and the CUT only points the begining and ending points, you dont need to delete the part unless it's obviously asked like "REPLACE it"

thorin 07-11-2002 11:11 PM

Those are my correct settings, notice that the 'pass' is gone from the pasword string value?

Logician 07-12-2002 05:17 AM

can you give me the URL to webtemplates_install.php (you can pm), let me see it..


All times are GMT. The time now is 03:23 AM.

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.02100 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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