• Welcome to Simple Machines Community Forum. Please login or sign up.

Custom Action Mod

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

Previous topic - Next topic

deadeye536

April 24, 2010, 10:22:07 PM #480 Last Edit: April 24, 2010, 11:24:36 PM by deadeye536
Quote from: Kcmartz on April 22, 2010, 09:10:15 PM
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!!

I found the admin menu option, it's under "Features and Options." Move your mouse a bit to the right of "Profile Fields", and you'll see the hover effect, with no text within it. The entire admin page is one giant malfunction.

Edit
Hmm, the problem really seems to be with the language files. For instance, my forum is installed with English-UTF8, while the mod only installs to English. I just made the same changes to English-UTF8 as were made to English (keeping a careful eye on converting to UTF-8 without BOM).

Rafferty

This really needs to be updated for RC3. Very useful, I used this before RC3 on 1.1.11 and have now lost all my custom actions.
Don't Follow me I got No Idea what I'm Doing

Scratching my Head

Quote from: Norv on April 11, 2010, 07:00:22 PM
The mod is not tested for RC3 currently. I will update it as soon as possible.


I'll do your laundry if you do...

Please?

KensonPlays

Norv, I wonder, how do you add a sub-action, can't figure it out....

Raw-Raven.co.nz

May 30, 2010, 03:06:43 PM #484 Last Edit: May 30, 2010, 03:28:52 PM by Raw-Raven.co.nz
Hey all,

My first post, but i managed to get this mod going on
smf 2.0-rc3.

All that is need to do is two things,
First add the button under admin.php and the fix up that database table.


Changes in Admin.php

Find this line:
'profile' => array($txt['custom_profile_shorttitle'], 'enabled' => in_array('cp', $context['admin_features'])),

Add under line:
'action' => array($txt['custom_action_shorttitle'], 'admin_forum'),



Changes in Database:

Done with phpMyAdmin (don't ask how to use it please)
You will find in that database that it is listed as
"custom_actions"
You need to open the table then select the "Operations"
tab to edit the table name.
"smf_custom_actions"


This is all i have done to get this mod working.
Yet to make an action tab i must say,
so will post back if it 'fails'

#| EDIT.

Ok just worked out how to use it and it is working fine,
not what I'm looking for tho  ::)

Only problem i know of and that is it will not auto add a tab to your
tabs up top as it doesn't put a line in your Subs.php

So all you can just manually add in the tab into your Sub.php file,
as you will get the address code form the page when making it.

I'm not interested in finding out how to get it working in auto.
I would be adding it in like i said above.

Hope this will help you.

Scratching my Head

Quote from: Raw-Raven.co.nz on May 30, 2010, 03:06:43 PM
Hey all,

My first post, but i managed to get this mod going on
smf 2.0-rc3.

All that is need to do is two things,
First add the button under admin.php and the fix up that database table.


Changes in Admin.php

Find this line:
'profile' => array($txt['custom_profile_shorttitle'], 'enabled' => in_array('cp', $context['admin_features'])),

Add under line:
'action' => array($txt['custom_action_shorttitle'], 'admin_forum'),



Changes in Database:

Done with phpMyAdmin (don't ask how to use it please)
You will find in that database that it is listed as
"custom_actions"
You need to open the table then select the "Operations"
tab to edit the table name.
"smf_custom_actions"


This is all i have done to get this mod working.
Yet to make an action tab i must say,
so will post back if it 'fails'

#| EDIT.

Ok just worked out how to use it and it is working fine,
not what I'm looking for tho  ::)

Only problem i know of and that is it will not auto add a tab to your
tabs up top as it doesn't put a line in your Subs.php

So all you can just manually add in the tab into your Sub.php file,
as you will get the address code form the page when making it.

I'm not interested in finding out how to get it working in auto.
I would be adding it in like i said above.

Hope this will help you.


I tried tinkering with this for a couple of days.
No luck.

Has anyone else had any successs?


I offer a 10 dollar ransom for this hostaged mod to be updated for SMF 2.0 RC3.

Anyone else?

Raw-Raven.co.nz

Hello all,

I will put up a link to show you the custom action i have
made with the mod.

hxxp:www.renegadesatwar.net/home/index.php?action=custom_action_test [nonactive]

Check the database to see if i has made the Table,
as after i made the link it said it was having problems
with Tables not existing, and that's when i found the
Table had been entered wrong.

It is a very good mod, but it is not what i wanted as
all of your page Code is kept in the Database Table.


Hope you get it working as well.
Thanks, Raven.

Scratching my Head

Okay. I see it works on your forum.



I couldn't get it to work, and I didn't have a table called smf_custom_actions
May I ask you to please run through exactly what you did, step by step?


Mave

Need RC3 PM me and send your email.

Scratching my Head


Raw-Raven.co.nz

Hey all,

Probably going to get my profile banned
for this, but anyways here is what you guys have
been wanting.

I will be keeping this link active for a week or
less if requested by SMF/or Mod persons.

hxxp:www.raw-raven.co.nz/downloads/Custom_Action_Mod/customaction_2.0RC3.zip [nonactive]

This is only for RC3 and has only been tested on RC3.
I hope you enjoy.

Norv

Thank you Raw-Raven, and Mave. Your help is appreciated, and by no means will get anyone banned. :)
I meant to update the mod on the site and change license to it, so that you don't need anything to take it over if you wish (including anyone's approval), or update it or share it when you want. I will try to do so as soon as possible, unless the sky falls tomorrow or the day after. :)
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

Scratching my Head

Quote from: Raw-Raven.co.nz on June 02, 2010, 07:10:01 PM
Hey all,

Probably going to get my profile banned
for this, but anyways here is what you guys have
been wanting.

I will be keeping this link active for a week or
less if requested by SMF/or Mod persons.

Custom Action Mod For 2.0RC3

This is only for RC3 and has only been tested on RC3.
I hope you enjoy.

Works (touching tips of fingers to mouth and kissing) purrfect!


Raw-Raven.co.nz

Glade it works for you.
*Scratching my Head*

With the mod all I've done with it was change the
way some things where coded and didn't bother
to credit myself, and don't want any.

Only did it for the peoples that where having trouble with it
and it is a nice mod.

I believe that i will use it and just use all includes on the
pages to reduce the size of my database.
Its a shame it don't make new pages  ;D

Raw-Raven.co.nz

Quote from: Kcmartz on May 29, 2010, 10:52:24 PM
Norv, I wonder, how do you add a sub-action, can't figure it out....

OMG that one took me ages!!!!  :P

Under the "Sub-Actions" column, find the action you want to
make sub actions for and select that number "0"
It will then open up to the Adding sub-actions page!

Its a hard one!!!

n3ith

This is by far my favorite mod. Thank you. Very easy to use. Appreciate all the hard work on this.

qubbah


KensonPlays

Quote from: Raw-Raven.co.nz on June 03, 2010, 07:16:19 PM
Quote from: Kcmartz on May 29, 2010, 10:52:24 PM
Norv, I wonder, how do you add a sub-action, can't figure it out....

OMG that one took me ages!!!!  :P

Under the "Sub-Actions" column, find the action you want to
make sub actions for and select that number "0"
It will then open up to the Adding sub-actions page!

Its a hard one!!!
It would be easier if it was a "+" or someting like that with the number of subactions as well!

KensonPlays

July 30, 2010, 11:40:01 PM #498 Last Edit: July 30, 2010, 11:46:50 PM by Kcmartz
Hey i tried the:
http:www.raw-raven.co.nz/downloads/Custom_Action_Mod/customaction_2.0RC3.zip
zip file. I still get the damn error. the button to add a action: [] is what it shows. dammit!

EDIT:
How do I remove the database tables without going into PHPmyadmin? what are the table names?

EDIT 2:
What is the SQL query for custom_actions? I deleted DB table and then deleted mod, then reinstalled mod. NO ERRORS for install, and looked and no DB table was made.

KensonPlays

Sorry to bump so soon. This mod is a must for my website! I don't want to do a fresh install for the 20th time unless I have to...

Advertisement: