• Welcome to Simple Machines Community Forum. Please login or sign up.
January 16, 2022, 04:59:01 AM

News:

SMF 2.0.19 has been released! Please update. Read more.


Custom Action Mod

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

Previous topic - Next topic

poda19

July 10, 2012, 06:45:02 AM #580 Last Edit: July 10, 2012, 07:17:45 AM by poda19
hi
i get this error when i submit my custom action
Quotedatabase error:
Unknown column 'permissions_mode' in 'field list'
file: C:\AbyssRoot\htdocs\Forum\Sources\ManageSettings.php
line: 2396
can anyone help?
**EDIT:fixed it. smf_customaction table didn't have the permissions_mode column and i added it manually
I think people are stupid enough to lie

DietmarH

Quote from: Andrew94© on December 28, 2010, 11:51:39 AM
I figured it out, it's ;sa=subaction

Example:
http://youwebsite/index.php?action=firstaction;sa=subaction
I found this, too. But why doesn't appear it as a sublist like under "admin", members" etc.?

iain sherriff

September 22, 2012, 06:36:58 AM #582 Last Edit: September 22, 2012, 07:10:40 AM by iain sherriff
hello.
Ive tried a search but can get my answer.
I have installed the mod with no errors and it works, Thank yuo for it.

Can I use it with existing actions? (as an Easy way of adding button to the menu)

thanks
SMF 2.0.12

tMicky

Hello,

Is there a way to know the number of views a page with Custom Action Mod has?

thanks

NanoSector

You'll have to code a custom ticker for that, I'm afraid.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

tMicky

Quote from: Yoshi2889 on October 13, 2012, 06:08:16 AM
You'll have to code a custom ticker for that, I'm afraid.

thanks for replying. Sadly, I know nothing about coding.

NanoSector

I'm sure someone is able to assist you with this, try posting in the Help Wanted board.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

bigjoe11a

This may be a bum question. When I make a new PHP action. Do I have to add the PHP tags for both the source and the template.

Thanks
SMF Forums http://www.df-barracks.com Where gamers go.

bigjoe11a

Quote from: tMicky on October 12, 2012, 02:40:16 PM
Hello,

Is there a way to know the number of views a page with Custom Action Mod has?

thanks

Micky, If this is what you want to do. I would just go all the way, Using PHP code. in your source. You could keep track of every one that runs the action.

So create a new table. and add these fields

id => (int)(11)  //Record id
u_id => (int)(11) //Users ID
u_name => (string)(50) //Users Name
u_views => (int)(11) // Count the number of time this user ran this action
u_date  => (int)(25) // Update the date and time the user ran the action

Then every time the user ran this action. Update the record. If no record is fount. Then create a new record.

Then create a new sub action, and call it sa=actionAdmin and this is where you could see the results of who entered the action and now many times the users ran the action.

SMF Forums http://www.df-barracks.com Where gamers go.

andershz

Quote from: bigjoe11a on October 31, 2012, 04:04:52 AM
This may be a bum question. When I make a new PHP action. Do I have to add the PHP tags for both the source and the template.

Thanks

No php tags in either source or template.

bigjoe11a

SMF Forums http://www.df-barracks.com Where gamers go.

tMicky

Quote from: bigjoe11a on October 31, 2012, 04:11:34 AM
Quote from: tMicky on October 12, 2012, 02:40:16 PM
Hello,

Is there a way to know the number of views a page with Custom Action Mod has?

thanks

Micky, If this is what you want to do. I would just go all the way, Using PHP code. in your source. You could keep track of every one that runs the action.

So create a new table. and add these fields

id => (int)(11)  //Record id
u_id => (int)(11) //Users ID
u_name => (string)(50) //Users Name
u_views => (int)(11) // Count the number of time this user ran this action
u_date  => (int)(25) // Update the date and time the user ran the action

Then every time the user ran this action. Update the record. If no record is fount. Then create a new record.

Then create a new sub action, and call it sa=actionAdmin and this is where you could see the results of who entered the action and now many times the users ran the action.

thanks for replying, but where and how do I do this?

majk-aus

Hello i installed the plugin and it works great but my question is , HOW CAN I PUT NOW THE BBCode so when i write [warning]{TEXT}[/warning] It gonna come with the design in topic

Soo now this is the new Options that is displayed to me Admin Panel.



And i want to add this code BBC:

In usage add:

[warning]{TEXT}[/warning]

In HTML add:
<table width="90%" style="border-top: 1px dotted #a3a3a3; border-bottom: 1px dotted #a3a3a3; border-right: 1px dotted #a3a3a3; border-left: 3px dotted #b9b9b9; font-family: arial, sans-serif; font-size: 12px;">
   <tr style="background: #bd0100;">
       <th align="left" style="border-bottom: 1px dotted #a3a3a3; background: #bd0100; color: #FFF; padding-left: 2px;"><em>KUJDES</em></th>
    </tr>
    <tr>
       <td style="background: #fef2f4; padding-left: 20px;">{TEXT}</td>
    </tr>
</table>

Shambles

I've read, and digested, 580 posts in 30 pages for this splendid mod.

And yet, just to prove that I'm the world's worst "user", I cannot get it out of my head that there's something simple I'm missing with it.

I thought that creating a custom action with an enabled button, would put that button on the menu. Yep, it sure does :)

I also thought that creating sub-actions subservient to that custom action would give that button a menu of its own when clicked.  Nope, it doesn't :(

And that's where I seem to be missing the point, or have I mis-installed this on my 2.0.2 installation?

Are these sub-actions really only accessible via URL (action=xx;sa=yy) or should they indeed appear within the new menu button?

I'm off for a tab...

Shambles

A tedious bump, now I've finished my tab...


Quote from: Shambles on December 12, 2012, 03:36:29 PM
Are these sub-actions really only accessible via URL (action=xx;sa=yy) or should they indeed appear within the new menu button?

I'm off for a tab...

andershz

If you have made any mistake with the installation then I have made the same one.
But I don't think a button menu for sub-actions is implemented.

Shambles

Quote
If you have made any mistake with the installation then I have made the same one.
I've made no mistakes with the installation.

Quote
But I don't think a button menu for sub-actions is implemented.
That's the question I've been asking. Unless I've missed something, I can't see how a subaction would be useful, other than via a URL accessible via some method other than a button 'dropdown'.

Shame, as the mod author is active on sm.org but chooses not to get involved here  :-\

johnpaul2k2

thanks but how will i know what to add??
please give me examples of things to add on either bbc or html?

does this work like css

thanks

Dhayzon

April 15, 2013, 05:32:13 PM #598 Last Edit: April 16, 2013, 11:10:41 AM by dhayzon
fail...............................help please



problem solved
http://www.simplemachines.org/community/index.php?topic=86793.msg3230017#msg3230017

LilRyan

Anyone know if it's possible to use this mod to make a button (similar to reply/quick reply etc...), to accept/decline applications (a clans forums) and move the member to a user group?

Advertisement: