Custom Action Page for 2.0 RC3

Started by Maserati, August 28, 2010, 06:00:44 PM

Previous topic - Next topic

Maserati

Hello,

I try to do with this http://www.simplemachines.org/community/index.php?topic=23864.0

But it not work... Recive just blank page...

I use pretty url mod also.. And want to have mydomain.com/action/

IceXaos

Rather than type everything out, I could help you out over TeamViewer if you'd like.  It took me a little work to figure it out, along with the help of Cicka. :)

http://www.teamviewer.com/index.aspx

Let me know.  This just makes it so you don't have to give me access to anything, and I can show you what needs to be done.

Maserati

Can you tell me what is problem? And how to fix it...

Not interest for teamviewer and something like that...

IceXaos

Quote from: Maserati on August 28, 2010, 06:16:34 PM
Can you tell me what is problem? And how to fix it...

Not interest for teamviewer and something like that...
I don't know what your particular problem is since I have no idea what you've done.  Edit the index.php Subs.php and your custom_page.php

Not gunna type out a huge tutorial here, so I guess you'll have to wait on someone else if you don't wanna TeamView quick.

Maserati

What in subs.php???

I think there is no what to add for action...

IceXaos

Find :
elseif ($context['current_action'] == 'groups' && $context['allow_moderation_center'])
$current_action = 'moderate';


Add After :
elseif ($context['current_action'] == 'ACTION')
$current_action = 'ACTION';

Maserati

Still same.. I got page... But it is blank... Like earlier...

IceXaos

Quote from: Maserati on August 28, 2010, 08:00:19 PM
Still same.. I got page... But it is blank... Like earlier...
Did you edit the index.php as well, and make the new page in Sources dir and use the correct naming of the function?

Maserati


IceXaos

Could you post the source of your custom page?  Please use code tags.

Advertisement: