PDA

View Full Version : Using usercp.php on a external file


Triky
07-29-2008, 07:19 PM
Hey, I want to use my usercp.php in a external page.
For example, I want to have:

example.com
example.com/options <- Here I want to use the UserCP
example.com/forum <- My forum
example.com/forum/usercp.php <- Redirect to example.com/options

What could I do? Wich things should I consider?

Dismounted
07-30-2008, 06:51 AM
Be wary of links going to that file and file includes.

Triky
07-30-2008, 07:51 AM
Can you please explain it more, Dismounted?

Triky
07-31-2008, 03:12 PM
I have try changing all the links on the required vBulletin files.. and I can reproduce this on my example.com/options page:

http://img403.imageshack.us/img403/1619/immaginepj0.jpg

..but when I go to my forum now I get some errors created my the includes files where I have edited the required locations..

RLShare
07-31-2008, 04:42 PM
Are you doing this with a .htacces redirect? Or are you actually creating new files and trying to include the old one?

Triky
07-31-2008, 04:50 PM
What should be done, in order to get the most efficent work?

MoT3rror
07-31-2008, 07:08 PM
RewriteEngine On
RewriteRule ^options$ /forum/usercp.php [L]


This will make /options point to your usercp but won't redirect you from /forum/usercp.php to /options.

Triky
07-31-2008, 09:54 PM
Yup, I know that.. but I don't want to do this. I'm searching for some solution that allow me to port the UserCP to this file instead: example.com/options/index.php.

Triky
08-11-2008, 10:10 AM
Can somebody help me or give me some advice?

Triky
08-20-2008, 02:57 PM
I'm currently using this code at the top of every file I've reproduced on my site directory:

chdir('forum');


Now I have:


MySite.com
usercp.php
profile.php
album.php
subscription.php
private.php
/images/ <- copied the forum one
/clientscript/ <- copied the forum one
/forum/ <- my forum folder that contains all my vbulletin files

Doing like this, now at mysite.com/usercp.php I can edit all my forum informations. Then, I have reproduced successfully. :)
I can't lie, I have encoutered some bug that I will try to fix.. for example I don't know how, but I cannot switch to WYSWIG mode to normal mode in my forms like the one to edit my signature, etc.. even if I have reproduced the /clientscript/ folder in my site directory. Also, when I upload a new avatar, in my usercp it is not displayed as image, so I see just the title attribute. Now I will try to edit it more in order to create specifics templates to be called in.