Advertisement:

Author Topic: Custom Action Mod  (Read 295887 times)

Offline winrules

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,085
  • Gender: Male
Re: Custom Action Mod
« Reply #160 on: January 12, 2007, 04:07:08 PM »
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.


Offline clevername

  • Newbie
  • *
  • Posts: 6
Re: Custom Action Mod
« Reply #161 on: January 13, 2007, 05:51:57 PM »
Okay, I tried that.  No errors.  I'm totally stumped. :/

Offline winrules

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,085
  • Gender: Male
Re: Custom Action Mod
« Reply #162 on: January 13, 2007, 07:47:13 PM »
Can you try redownloading th epackage?
winrules
SMF Developer
               My Mods
Please do not PM me for support.


Offline clevername

  • Newbie
  • *
  • Posts: 6
Re: Custom Action Mod
« Reply #163 on: January 14, 2007, 02:08:38 AM »
Okay, I tried that, and it's still telling me it's corrupted or incompatible.

Offline jalrock

  • Semi-Newbie
  • *
  • Posts: 17
    • The Friendly Jungle
Re: Custom Action Mod
« Reply #164 on: January 24, 2007, 05:25:38 PM »
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 [nofollow]

Offline jalrock

  • Semi-Newbie
  • *
  • Posts: 17
    • The Friendly Jungle
Re: Custom Action Mod
« Reply #165 on: January 24, 2007, 06:07:33 PM »
nevermind I fixed it. Script hung and repeated mod 6 times
Jack
www.friendlyjungle.com [nofollow]

Offline codenaught

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 14,653
  • Gender: Male
  • Formerly Known As akabugeyes
Re: Custom Action Mod
« Reply #166 on: January 24, 2007, 06:43:26 PM »
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

Offline jalrock

  • Semi-Newbie
  • *
  • Posts: 17
    • The Friendly Jungle
Re: Custom Action Mod
« Reply #167 on: January 24, 2007, 08:27:54 PM »
Quote
Odd, 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]

Quote
Do 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 [nofollow]

Offline Rivers

  • Newbie
  • *
  • Posts: 6
Re: Custom Action Mod
« Reply #168 on: January 25, 2007, 12:58:39 AM »
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
« Last Edit: January 25, 2007, 01:03:24 AM by Rivers »

Offline Simplemachines Cowboy

  • Jr. Member
  • **
  • Posts: 354
  • KA-CLICK
    • The Open Range
Re: Custom Action Mod
« Reply #169 on: February 02, 2007, 11:21:18 PM »
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

Offline Simplemachines Cowboy

  • Jr. Member
  • **
  • Posts: 354
  • KA-CLICK
    • The Open Range
Re: Custom Action Mod
« Reply #170 on: February 06, 2007, 01:31:45 PM »
Ideas on my previous post?

Anybody?

Bueller?  :P
My SMF forum: The Open Range

Offline mohoganybrwn

  • Jr. Member
  • **
  • Posts: 171
Re: Custom Action Mod
« Reply #171 on: February 07, 2007, 12:24:17 PM »
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

  • Guest
Re: Custom Action Mod
« Reply #172 on: February 11, 2007, 10:32:13 AM »
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...

Offline drossman

  • Semi-Newbie
  • *
  • Posts: 27
Re: Custom Action Mod
« Reply #173 on: February 17, 2007, 08:32:05 PM »
Can anyone give me an example of how to access a custom profile field from inside a custom action ??  8)

Offline drossman

  • Semi-Newbie
  • *
  • Posts: 27
Re: Custom Action Mod
« Reply #174 on: February 17, 2007, 09:39:47 PM »
I figured it out...

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

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

loadThemeOptions($p_id);

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

Offline khoking

  • Jr. Member
  • **
  • Posts: 323
  • Gender: Male
    • ShaShinKi.com
Re: Custom Action Mod
« Reply #175 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?

Offline Kettu

  • Sr. Member
  • ****
  • Posts: 711
  • Gender: Female
Re: Custom Action Mod
« Reply #176 on: February 28, 2007, 05:17:30 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

Offline khoking

  • Jr. Member
  • **
  • Posts: 323
  • Gender: Male
    • ShaShinKi.com
Re: Custom Action Mod
« Reply #177 on: February 28, 2007, 08:30:52 AM »
Thanks! Corrected :)

Offline choloman05

  • Full Member
  • ***
  • Posts: 620
  • Gender: Male
    • Competition Web Marketing
Re: Custom Action Mod
« Reply #178 on: March 06, 2007, 11:27:11 PM »
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:

Offline slugg

  • Newbie
  • *
  • Posts: 1
Re: Custom Action Mod
« Reply #179 on: March 13, 2007, 04:40:47 AM »
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
Quote
The 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
« Last Edit: March 13, 2007, 04:55:55 AM by slugg »