Custom Action Mod

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

Previous topic - Next topic

Mick.

Where do i add the install.php to run it from my browser?

root folder or sources folder?

Chamaeleon

Quote from: BlueDevil on November 15, 2009, 10:06:37 AM
Where do i add the install.php to run it from my browser?

root folder or sources folder?

root folder

-------------------------------------
SMF 2.0 RC2

bevor open "install.php"

find
$smcFunc['db_create_table']('custom_actions', $columns, $indexes, array(), 'update_remove');

Replace with
$smcFunc['db_create_table']('{db_prefix}custom_actions', $columns, $indexes, array(), 'update_remove');

Mick.

Quote from: Chamaeleon on November 15, 2009, 10:22:59 AM
Quote from: BlueDevil on November 15, 2009, 10:06:37 AM
Where do i add the install.php to run it from my browser?

root folder or sources folder?

root folder

-------------------------------------
SMF 2.0 RC2

bevor open "install.php"

find
$smcFunc['db_create_table']('custom_actions', $columns, $indexes, array(), 'update_remove');

Replace with
$smcFunc['db_create_table']('{db_prefix}custom_actions', $columns, $indexes, array(), 'update_remove');

I get this error:

Fatal error: Call to undefined function updatesettings() in /home/********/public_html/install.php on line 9

Mick.

Reason i need to use the install.php simply because im trying to add this mod manually for RC2 but i found this in admin,

Table '********_smf1.smf_custom_actions' doesn't exist
File: /home/********/public_html/Sources/ManageSettings.php
Line: 2361

Chamaeleon

#464
Install the Mod. with Packet Manager
   
then manually edit Admin.php and Subs.php

go into the database, search for "custom_actions" Table and add the prefix

edit:
Quote from: BlueDevil on November 15, 2009, 10:36:33 AM
Fatal error: Call to undefined function updatesettings() in /home/********/public_html/install.php on line 9

root of your Forum...same Folder of index.php, SSI.php........

TurtleKicker

If all these edits can make this mod work in RC2, it'd be really nice if someone packaged them all up into a new version of the mod which can be installed cleanly. :)

Do2

I think you should ask the author if you're allowed to edit and release the mod. ;)

jpb

Quote from: sremick on November 20, 2009, 02:55:45 PM
If all these edits can make this mod work in RC2, it'd be really nice if someone packaged them all up into a new version of the mod which can be installed cleanly. :)

I agree!

jpb

_sebas_

Quote from: sebtor on October 04, 2009, 09:37:00 PM

in HTML parse

external links made like this code :   

http://www.astronomo.org/foro/"http://www.wikipedia.com/wiki/Procyon_estrella"

Can it be solved?

anyone idea ?

:'(

jclawson27

hi everyone, not sure if someone has already posted with this issue my eyes started going numb after scanning 10 pages of posts. lol

So I love this mod and it has been working great w/my html code, but once I add some php to my html and switched the code type to PHP I get the error below. Any help would be great

Parse error: syntax error, unexpected '<' in /home/content/j/c/l/jclawson01/html/forum/Sources/Load.php(1733) : eval()'d code(9) : eval()'d code on line 1

I am using version 1.1.11

And yes I get the same error when just attempting basic php code

Josh79

I can get the custom action tab to show up, but when I click it i get this error?  I change the coding in admin.php and subs.php. 

Database Error

Table 'kalyra_smf.smf_custom_actions' doesn't exist
File: /home/kalyra/public_html/forum/Sources/ManageSettings.php
Line: 2221

Josh79

When I go to features and options, then to custom actions, I get this error:

Table 'kalyra_smf.smf_custom_actions' doesn't exist
File: /home/kalyra/public_html/forum/Sources/ManageSettings.php
Line: 2221


What does this mean?

I am using curve, RC2 2.0

Sea Mac

Thank you for this Custom Action Mod!

It is very necessary!

Largo_npc

Quote from: Josh79 on February 04, 2010, 09:42:55 AM
When I go to features and options, then to custom actions, I get this error:

Table 'kalyra_smf.smf_custom_actions' doesn't exist
File: /home/kalyra/public_html/forum/Sources/ManageSettings.php
Line: 2221


What does this mean?

I am using curve, RC2 2.0

Read a few posts above!

Or, run this inside your myphpadmin or whatever you use:

ALTER TABLE custom_actions RENAME TO smf_custom_actions;

L'AltroWeb

#474
Hi :)
I've maked more pages thanks to this mod but now i've a small(?) problem with one of this: http://darkwolf.altervista.org/videovalidator/
I want test to translate in english and to see in Ita or Eng thanks to language drop down.
I've maked a php custom action and i've test to use some string from "index.english.php" but not work.
Is there any way to fix this problem?
-
Edit: ok, i've changed, in CustomAction.template.php
// Show a custom action.
function template_main()
{
global $context;

to:
// Show a custom action.
function template_main()
{
global $context, $txt;

and now i can use $txt['string_from_indext_emplate'] ;)
-
Edit: a new problem found today :/
I've an html page than contain link like this:
<a href="http://darkwolf.altervista.org/_altervista_ht/hwu/hwu_menu_forum.xpi">it work fine but after first "save" (the page still continue to work with full link) the editor trunk link like this:
<a href="http://darkwolf.altervista.org/_altervista_ht/hwu/hwu_menu_.xpi">and after a new "save" (eg: for a new custom action) it will corrupt
(i think it don't glad many "underscore" _ in url) :/

luismanson

Anyone tested this on RC3 ????

Reko420

anyone have a updated package to work with rc3 or do i have to manual edit files?

Norv

#477
The mod is not tested for RC3 currently. I will update it as soon as possible.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

KensonPlays

Can't wait to try it! I found a tinyportal (linked to a page their in a google search) script that will embed wikipedia into your site! http://www.tinyportal.net/index.php?topic=4713

KensonPlays

It installed successfully on RC3, but had to emulate last version this was made for. I went to mod page and found where mod page in admin was, and no admin menu item was added!!

Advertisement: