vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Difficulty in External Page (https://vborg.vbsupport.ru/showthread.php?t=310145)

dragonexpert 04-02-2014 07:48 PM

Difficulty in External Page
 
I developed a game and I'm having it use the user table from VBulletin. I'm already including the backend of it. The problem lies when I have action as a parameter. Certain values do not seem to work. I've noticed the following do not work for me:
usercp
member
faq

The urls look like www.mysite.com/mydirectory/x.php?action=y

While yes I could technically rename the parameter action in my files, that would end up going through several hundred KB of files. Is there any alternative perhaps?

Lynne 04-02-2014 09:37 PM

Exactly what is happening when you use one of them? Is the variable getting passed? What sort of troubshooting have you done?

dragonexpert 04-02-2014 10:01 PM

1 Attachment(s)
My external page has its own way of outputing the content. What ends up happening is it outputs the forum header below my header I have for the external file. I'll just attach a screenshot of what happens.

I also just tried changing the parameter name, but that doesn't work either. I believe somewhere in the VBulletin end it does a strpos() or similar on the url and searches for certain words. I'm hypothesizing that because values that have nothing to do with VBulletin work ok.

Lynne 04-03-2014 03:48 AM

That looks like an html/CSS issue. It's really hard to tell what is going on without actually seeing the page and seeing the page code.

That being said, I do seem to recall coming across some code at one point that set some 'universal' variable names. I honestly can't tell you what file that was in though. But, global.php, and also /includes/init.php, are called in just about every page. So, you might want to take a look at those.

dragonexpert 04-03-2014 08:25 AM

I have solved the issue. In order to help others who might have the same or similar issue the solution is simple. You can't have a file that has the same name as a VBulletin file. I had renamed member.php in my game to members.php and adjusted my file that loads it to use members.php. It then works as intended.


All times are GMT. The time now is 08:02 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.00989 seconds
  • Memory Usage 1,713KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete