Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 07-10-2002, 09:13 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #12  
Old 07-10-2002, 09:46 PM
thorin thorin is offline
 
Join Date: Jun 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #13  
Old 07-10-2002, 09:48 PM
thorin thorin is offline
 
Join Date: Jun 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would also REALLY like to see this working somewhere...I want to get a feel for it.
Reply With Quote
  #14  
Old 07-10-2002, 10:05 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #15  
Old 07-10-2002, 11:27 PM
thorin thorin is offline
 
Join Date: Jun 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #16  
Old 07-11-2002, 12:41 AM
thorin thorin is offline
 
Join Date: Jun 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #17  
Old 07-11-2002, 01:20 AM
thorin thorin is offline
 
Join Date: Jun 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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';
Reply With Quote
  #18  
Old 07-11-2002, 06:01 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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"
Reply With Quote
  #19  
Old 07-11-2002, 11:11 PM
thorin thorin is offline
 
Join Date: Jun 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Those are my correct settings, notice that the 'pass' is gone from the pasword string value?
Reply With Quote
  #20  
Old 07-12-2002, 05:17 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can you give me the URL to webtemplates_install.php (you can pm), let me see it..
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:01 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.07789 seconds
  • Memory Usage 2,254KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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