vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Custom pages based on your vBulletin forum ! (https://vborg.vbsupport.ru/showthread.php?t=232324)

BlueChipEarth 06-07-2010 05:32 PM

Lines 9 and 10 of pages.php have references to deprecated code ($HTTP_GET_VARS):

PHP Code:

$page= ("page_" $HTTP_GET_VARS[p]);
if(
$HTTP_GET_VARS[p] == ''

This will not work for newer PHP, so you have to change those lines to:

PHP Code:

$page= ("page_" $_GET[p]);
if(
$_GET[p] == ''

Thanks for this great mod!

Marked as installed!

alexkohler 03-06-2011 01:54 PM

@BlueChipEarth:

Thank you for this small bugfix.

Works perfect now. :) (4.1.1)

Great mod.

zeroality 08-13-2011 09:49 PM

That was my problem as well!

Moved hosts and this mod stopped working. That PHP fix solved it, thanks.

Rafa-el 09-10-2011 02:19 PM

It's possible to tweak the URL with a vBSEO url structure?
Have tried the vBSEO custom rewrite rules but I wonder if there's a way to do this without manually edits, at least not one by one.

tomshawk 10-09-2011 05:10 AM

Is it possible to have this page outside of the forum directory.

I tried modifying the page.php file line 30

PHP Code:

require_once('./global.php'); 

but I can not get it working.

Any assistance would be great

HMBeaty 10-09-2011 05:26 AM

Quote:

Originally Posted by tomshawk (Post 2254992)
Is it possible to have this page outside of the forum directory.

I tried modifying the page.php file line 30

PHP Code:

require_once('./global.php'); 

but I can not get it working.

Any assistance would be great

Try adding this:
PHP Code:

chdir ('/path/to/your/forums'); 

Above:
PHP Code:

require_once('./global.php'); 

(I don't use this mod, so not quite sure if that will work or not)

tomshawk 10-09-2011 05:39 AM

Thank you HMBeaty, that worked like a charm. ;)

tomshawk 04-05-2012 06:23 PM

OK, For anyone

I'm thinking I can use this add on but don't know for sure and would love some help.

I have a separate database outside of the vbulletin database.

I have a non-vbulletin programmer creating the database for me, he's a member of my site and doing it for free.

I'd like the results of the queries to show up on this page I create.

I assume there is something or many things special that will need to be done.

Can it be done with this add on or will I need to have a vbulletin programmer make the page or a seperate add on for this?


All times are GMT. The time now is 11:08 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.01115 seconds
  • Memory Usage 1,737KB
  • 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
  • (6)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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