PDA

View Full Version : Difficulty in External Page


dragonexpert
04-02-2014, 07:48 PM
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
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.