News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Custom Action Mod

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

Previous topic - Next topic

winrules

clevername - Can you try unzipping it locally and see if you get any errors? It might just be a corrupt download.

nyxtyr - That's not valid PHP code. If you don't know PHP you will have to just use the HTML or BBC page types.


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


clevername

Okay, I tried that.  No errors.  I'm totally stumped. :/

winrules

Can you try redownloading th epackage?


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


clevername

Okay, I tried that, and it's still telling me it's corrupted or incompatible.

jalrock

I installed this mod. There were no errors. Now when I go to Featuers and Options I get this error
Fatal error: Cannot redeclare modifyactionsettings() (previously declared in forum/Sources/ModSettings.php:356) in
forum/Sources/ModSettings.php on line 362

I uninstalled the mod but still get the error.

Forum version: SMF 1.1.1

Mod Name Version 
1. SMF Arcade 1.3.0   [ Uninstall ] [ List Files ] [ Delete ] 
2. TinyPortal 0.97   [ List Files ] [ Delete ] 
3. SMF Links 1.6.3   [ Uninstall ] [ List Files ] [ Delete ] 
4. Googlebot & Spiders Mod 2.0.2   [ Uninstall ] [ List Files ] [ Delete ] 
5. SMF Achat ALPHA 0.2.0   [ Uninstall ] [ List Files ] [ Delete ] 
6. SMF 1.1.1 Update Package 1.1.1   [ Uninstall ] [ List Files ] [ Delete ] 
7. Users Online Today Mod 1.4.0   [ Uninstall ] [ List Files ] [ Delete ] 
8. SMF Gallery Lite 1.7.1   [ Uninstall ] [ List Files ] [ Delete ] 
9. SMF Archive 1.1   [ List Files ] [ Delete ] 
10. Custom Action Mod 2.04  [ Apply Mod ] [ List Files ] [ Delete ] 

Any help apreciated
Jack
www.friendlyjungle.com

jalrock

nevermind I fixed it. Script hung and repeated mod 6 times
Jack
www.friendlyjungle.com

codenaught

Quote from: clevername on January 14, 2007, 02:08:38 AM
Okay, I tried that, and it's still telling me it's corrupted or incompatible.
Odd, did you by any chance remove the version number from the Powered By line of your forum? Do you have problems with other packages?
Dev Consultant
Former SMF Doc Coordinator

jalrock

QuoteOdd, did you by any chance remove the version number from the Powered By line of your forum?

Nope its always been there. http://www.friendlyjungle.com/forum/ [nofollow]

QuoteDo you have problems with other packages?


Nope I have several others installed and they worked like a champ.

I wrote a custom mod for Member Pages but it does not touch any of the same files.

Thanks for answering but again I corrected the error and all is well now.

Jack
www.friendlyjungle.com

Rivers

#168
Works for me! Thanks very much, nice addition to the infrastructure. After some tweaking I was able to execute ad hoc inline sql queries and output the result sets within the smf framework. We're using joomla and orstio's bridge BTW

Simplemachines Cowboy

SMF 1.1.1
Mods:
1.     EmailFlash      2.0       [ Uninstall ]  [ List Files ]  [ Delete ]
2.    FlashChat Integration    0.1 Beta    [ Uninstall ] [ List Files ] [ Delete ]
3.    Custom Action Mod    2.04    [ Uninstall ] [ List Files ] [ Delete ]
4.    Spell Check Custom Words    1.0.1    [ Uninstall ] [ List Files ] [ Delete ]
5.    Googlebot & Spiders Mod    2.0.2    [ Uninstall ] [ List Files ] [ Delete ]
6.    Global Announcements    1.0    [ Uninstall ] [ List Files ] [ Delete ]
7.    FontandSizeDropdown1.1    1.1    [ Uninstall ] [ List Files ] [ Delete ]

Got a weird thing I just noticed.
No errors in any error log, forum or server.

I created a custom action, using the mod, to a plain jane html page full of links, and I created a new tab for the default theme, called "Links", which works like it's suppose to.
Everything works fine, except, when I click on the "Profile" tab (none of the others do this), the text in the "Links" tab changes to say "Reset Form".  ???
The tab stays clickable, and takes you to the proper page.

Any ideas whare that comes from?
My SMF forum: The Open Range

Simplemachines Cowboy

Ideas on my previous post?

Anybody?

Bueller?  :P
My SMF forum: The Open Range

mohoganybrwn

Hello! Great mod.  But I have a problem.
I was recommended to use this mod to show all my members awards on one page.
I'm confused on how I would do this... could anyone help me?

I want to show "Awards" in the main menu...and I would like that "awards" page to show all the members that recieved awards for the month... could anyone help me out? I'm so lost.

Thank u.

kat

OK. I've obviously made a complete hash of this.

I wanted to make a single button to access the theme-changer page.

I created an action and called it "ThemeChanger". Original, huh?

I made the "Type" php.

I made the page title "ThemeChanger". I'm high on originality, as you can tell.

In the "Code" box, I added:

http://www.tlakoc.org.uk/index.php?action=ThemeChanger

Thing is, I'm getting "Parse error: syntax error, unexpected ':' in /home/tlakoco/public_html/Sources/Load.php(1724) : eval()'d code(9) : eval()'d code on line 1"

I'm confused, as you might imagine...

drossman

Can anyone give me an example of how to access a custom profile field from inside a custom action ??  8)

drossman

I figured it out...

global $sourcedir;
$p_id=$_GET['u'];

require($sourcedir . '/Profile.php');

loadThemeOptions($p_id);

echo "CP1 = " . $context['member']['options']['CP1'];

khoking

I just installed this mod on SMF 1.1.2 but it shows the error below when I click on Features and Options in admin.

Fatal error: Cannot redeclare modifyactionsettings() (previously declared in /home/leica/public_html/Sources/ModSettings.php:345) in /home/leica/public_html/Sources/ModSettings.php on line 351

Any idea why?
Kho King
www.ShaShinKi.com
www.PentaxWorld.com

Kettu

Quote from: khoking on February 28, 2007, 02:13:01 AM
I just installed this mod on SMF 1.1.2 but it shows the error below when I click on Features and Options in admin.

Fatal error: Cannot redeclare modifyactionsettings() (previously declared in /home/leica/public_html/Sources/ModSettings.php:345) in /home/leica/public_html/Sources/ModSettings.php on line 351

Any idea why?
Cannot redeclare often means that a code is doubled. Check the files if there is some of the code double added.
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

khoking

Kho King
www.ShaShinKi.com
www.PentaxWorld.com

choloman05

I just wanted to say that this is a GREAt mod winrules. Thanks so much for doing this for us! This really adds a lot more flexibility to the forum and I really appreciate it.  :thumbsup:

slugg

#179
Quote from: winrules on May 20, 2006, 05:49:18 PM
Quote from: uberjon on May 20, 2006, 04:59:16 PM
seems i found a small bug in the action mod :;(

when i try to copy alot of html into the box it does it just fine but when i save it it deletes the last part to make it all fit or somethig :S
just ignore the content in this just to show u how long it is :P

er... nvm wont let me post
QuoteThe following error or errors occurred while posting this message:
The message exceeds the maximum allowed length (65530 characters).

it works well in a program i am using to help me with the html.. but it deletes part of it when i try to use it :'(

can u fix this?
It's not a bug, it's that the database column is a TEXT column, which limits the data to 65535 characters. If you want to use this mod with a something longer than that, you will have to set the "value" column in the settings table to MEDIUMTEXT or LONGTEXT.

Hello and thank you for your great work with this mod.

I'm fairly new to all this so I don't understand how to implement your above suggestion.  I am also running into the text limit issue.  Could you please explain to me what exactly I need to do to apply your quote above and what files and code to look for that need to be changed? 

Thanks

Advertisement: