vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [HOW TO - vB4] Create a own vBulletin page (without plugin and php file) (https://vborg.vbsupport.ru/showthread.php?t=229194)

niake 12-03-2009 08:20 PM

:up: Thanks

betty02 12-09-2009 11:43 AM

I created a new nav link to my custom page, how do i make that link selected/highlighted as if its on that page? Currently keeps my Forum tab highlighted/selected?

Dave-ahfb 12-09-2009 12:45 PM

I was thinking this might make an easier way to integrate my current php scripts, using this article to create header and footer templates. I should have known somehow some way things would screw up, it just seemed to easy.
PHP Code:

<?php
include_once('/home/ahfb/public_html/ahfb2000.com/public/4test/misc.php?do=page&template=css2header');
?>


Gives me the error
Quote:

Warning: include_once(/home/ahfb/public_html/ahfb2000.com/public/4test/misc.php?do=page&template=css2header) [function.include-once]: failed to open stream: No such file or directory in /home/ahfb/public_html/ahfb2000.com/public/4test/cssgenerator2.php on line 2

Warning: include_once() [function.include]: Failed opening '/home/ahfb/public_html/ahfb2000.com/public/4test/misc.php?do=page&template=css2header' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/ahfb/public_html/ahfb2000.com/public/4test/cssgenerator2.php on line 2
Not being a programmer, my guess is that .......I am clueless ;)


UPDATE

I found that due to the variables
(/home/ahfb/public_html/ahfb2000.com/public/4test/misc.php?do=page&template=css2header will not work, it must be done with the url
Code:

include('http://www.ahfb2000.com/4test/misc.php?do=page&template=css2header');
which leads to error "URL file-access is disabled in the server configuration " in addition to the previous errors. To solve this you are supposed to change php.ini to read

allow_url_fopen = On
and
Allow_url_include = On

Still have all 3 errors ...hmmm


oops, forgot to reload apache, now my errors are
Quote:

Warning: include(http://www.ahfb2000.com/4test/misc.p...ate=css2header) [function.include]: failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required in [path]/cssgenerator2.php on line 3

Warning: include() [function.include]: Failed opening 'http://www.ahfb2000.com/4test/misc.php?do=page&template=css2header' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in [path]/cssgenerator2.php on line 3

Lynne 12-09-2009 01:33 PM

Quote:

Originally Posted by betty02 (Post 1927751)
I created a new nav link to my custom page, how do i make that link selected/highlighted as if its on that page? Currently keeps my Forum tab highlighted/selected?

For the condition used for the tab, did you try this?
PHP Code:

if (THIS_SCRIPT == 'misc'

or, you may have to do:
PHP Code:

if (THIS_SCRIPT == 'misc' AND $_REQUEST['template'] == 'whatever'

Something like that should work. Play with it.

Quote:

Originally Posted by Dave-ahfb (Post 1927769)
I was thinking this might make an easier way to integrate my current php scripts, using this article to create header and footer templates. I should have known somehow some way things would screw up, it just seemed to easy.
.....

Not being a programmer, my guess is that .......I am clueless ;)

Exactly what are you trying to do? You don't want to include the whole misc.php page in another script. Where are you adding the php code to include the misc.php page? If you have other php pages already, you probably would do better following this - [HOW TO - vB4] Create a own vBulletin page

Dave-ahfb 12-09-2009 01:35 PM

update..again
removing the htaccess, now it works perfect!!

Problem is how can I have a secret hidden test folder to get everything setup :(

--------------- Added [DATE]1260373985[/DATE] at [TIME]1260373985[/TIME] ---------------

Lynne,

I used your tutorial on my static pages, it is very well writtin and was easy to follow, worked a charm :). On my scripts, well that is a different issue. I read 3 or 4 different tutorials and just could not get my pea-brain wrapped around the concept. Once this one was published I knew that though it may not be the optimal method to use, I could probably make it suit my needs.

Yes, it does have downfalls, I must either go live and do the work on the live pages without htaccess or find a way for the include to send the htpasswd (thinking it can be done but have not investigated yet). The biggest possible downfall is potential security issues having Allow_url_fopen and Allow_url_include = On. I have read there could be issues but have not read what these issues could be. Is it possible you could enlighten me to these issues and any others I may not be aware of?

thanks

Lynne 12-09-2009 02:22 PM

Quote:

Originally Posted by Dave-ahfb (Post 1927788)
Yes, it does have downfalls, I must either go live and do the work on the live pages without htaccess or find a way for the include to send the htpasswd (thinking it can be done but have not investigated yet). The biggest possible downfall is potential security issues having Allow_url_fopen and Allow_url_include = On. I have read there could be issues but have not read what these issues could be. Is it possible you could enlighten me to these issues and any others I may not be aware of?

thanks

You should probably post that sort of question out in the general forums. I'm really not a security expert (I know just enough for my little site!), but there are some server guys around who could probably answer your question.

Dave-ahfb 12-09-2009 03:25 PM

I am about to give up, using my method the login does not work. Lynne, this particular script I am working on is a very simple proprietary tool. I hate to post this here for help as there are many attempts on the net to copy it. Do you mind if I pm you?

Adem GEN? 12-13-2009 08:47 PM

For Privacy Policy the very good :up:
Thank you very much

Ted Clore 12-14-2009 07:45 PM

I've read and reread this article and completely do not understand it. Could someone give a step by step and explain things for a neophyte like myself. I am trying to wrap my site pages with vB headers, footers and widgets, and I think this is what this is supposed to do.

Any help is appreciated. Thank you.

nubian 12-15-2009 04:02 AM

Any way to make these URL friendly?
Like mydomain.com/aboutus ?


All times are GMT. The time now is 10:36 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.01041 seconds
  • Memory Usage 1,759KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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