Log in

View Full Version : adding new sections on UCP


White_Snake
03-08-2006, 12:16 AM
well, i been looking arround on the forums for a topic that explains how to add new sections on the UCP, and i been having bad luck :<

i been able to add a new section on USERCP_SHELL, with the link to profile.php?do="xxxx", but im not able to make something to show up when i click to it, i suppose i need a plugin AND a template, but really i dont know how to merge these things together

thanks in anticipation for your help

White_Snake
03-09-2006, 02:26 PM
hmmm, anybody?

becafuel
03-09-2006, 03:01 PM
Didn't try it, but what about modifying "profile.php" by adding a new test ?

if ($_REQUEST['do'] == 'youraction')
{
// Your code here
}


Of course, it requires you to modify the UCP related template(s) to add your link like : http://www.yoursite.com/profile.php?do=youraction

That's just a vB beginner idea ;)

White_Snake
03-10-2006, 02:30 PM
well, instead of editing the profile.php, i runned a plugin with that and is not working, so i solved the problem creating a new .php file with it, intregrated obviosly with vb, anyway, thanks for your help