Custom Action Mod

Started by Norv, May 09, 2006, 08:35:29 PM

Previous topic - Next topic

Garry

Hi
I installed version 2  after uninstalling version 1

I like the delete an action addition

Not quite sure I understand the logic of the sub action section

can you give me an idea of how that function is sypposed to be used  and when

thanks


winrules

each sub action can be accessed by going to index.php?action=actionname;sa=subactionname


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


bugsmi0

How to add a menu using the custom action ?

I tried to set it up like the rest of the menus but the new menu does not appear in the nav bar in the default themplate

winrules



winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Vinspire

winrules, i've installed this mod but i've no idea how to use it ... :(

first of all, how do i do this ?

A mod to ask the forummers how did they find out about the site when they are registering themself in the forum.

winrules

Version 2.01 has been released! This version adds 1.1 RC3 support.


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


JPDeni

I've been writing a bunch of php pages through TP and someone suggested that I could use this mod so that I could have a URL that said something like

index?action=gallery

instead of what I have now, which is

index?page=7

Would I need to copy everything from the php page into the textarea that says "code" in the custom actions mod in order to do this? Or is there some way I can tell the custom actions mod "go pick up the php from page 7"?

winrules

Quote from: JPDeni on August 24, 2006, 02:38:55 PM
I've been writing a bunch of php pages through TP and someone suggested that I could use this mod so that I could have a URL that said something like

index?action=gallery

instead of what I have now, which is

index?page=7

Would I need to copy everything from the php page into the textarea that says "code" in the custom actions mod in order to do this? Or is there some way I can tell the custom actions mod "go pick up the php from page 7"?
You will have to manually copy it. There is no converter script from TinyPortal articles.


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


JPDeni

Thank you. That helps a whole bunch.  :)

chinclub

I'm needing a little help with my code.  I am trying to pull some of the SSI forum codes using PHP but I keep getting errors.  I am not really good with PHP so I'm sure I am making a really stupid mistake.

The code I am trying to use is:

<?php require("/home/fsvzwtpl/public_html/chinclub/forum/SSI.php"); ?>
<?php ssi_recentTopics(); ?>


JPDeni

Don't put in the

<?php

or

?>

Just use

require("/home/fsvzwtpl/public_html/chinclub/forum/SSI.php");
ssi_recentTopics();

Give that a try.  :)

chinclub

That did it.  THANKS!!  :D

winrules

Version 2.02 has been released! This version fixes a security hole. All users are strongly encouraged to upgrade. Big Thanks to HarzeM for discovering the hole.


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


chinclub

How do you upgrade?  Must you uninstall the first one before instaling the second?

Also, what was the security problem?

winrules

Quote from: chinclub on August 27, 2006, 07:24:36 PM
How do you upgrade?  Must you uninstall the first one before instaling the second?

Also, what was the security problem?
Just upload the new version, and hit [Upgrade] should work :)

Sorry, but IMO I shouldn't post details about the problem yet.


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


chinclub

The only reason I ask is because somehow people have been able to register to my board without my permission.  I have it set that all accounts must be approved by admin.  I am getting 1-3 porn people a night gaining full access and posting trash on my forum.  I can't find out how they are getting in.  That is probably not the security hole from this script but I am desperate to find a way to stop it.

winrules

Quote from: chinclub on August 27, 2006, 08:58:36 PM
The only reason I ask is because somehow people have been able to register to my board without my permission.  I have it set that all accounts must be approved by admin.  I am getting 1-3 porn people a night gaining full access and posting trash on my forum.  I can't find out how they are getting in.  That is probably not the security hole from this script but I am desperate to find a way to stop it.
That shouldn't be caused by this mod...You should make a topic about it in General English Support if you think it's a SMF issue.

Edit: 1,111th post :)


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Kettu

If I use Type php and add

if ($context['user']['is_guest'])
echo 'You are not allowed to see this page. Please login.';

if ($context['user']['is_logged'])
echo 'This is a test page.';


the page works fine for guests and users as it should be. But, if I try to delete another action I get the error:

QuoteYou have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'user']['is_guest'])
echo 'You are not allowed to see this page
Datei: .../smf/Sources/CustomAction.php
Zeile: 269

What is the mistake? As I know I shouldn't use <php ?> around the php code.
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

winrules

Quote from: Kettu on August 29, 2006, 08:29:57 AM
If I use Type php and add

if ($context['user']['is_guest'])
echo 'You are not allowed to see this page. Please login.';

if ($context['user']['is_logged'])
echo 'This is a test page.';


the page works fine for guests and users as it should be. But, if I try to delete another action I get the error:

QuoteYou have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'user']['is_guest'])
echo 'You are not allowed to see this page
Datei: .../smf/Sources/CustomAction.php
Zeile: 269

What is the mistake? As I know I shouldn't use <php ?> around the php code.
Umm can you try reuploading CustomAction.php?


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Kettu

Quote from: winrules on August 29, 2006, 09:56:17 AM
Umm can you try reuploading CustomAction.php?
Still the same error.
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

Advertisement: