Advertisement:

Author Topic: Custom Action Mod  (Read 290649 times)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,982
    • StoryBB/StoryBB on GitHub
Re: Custom Action Mod
« Reply #620 on: January 13, 2017, 05:28:50 AM »
Um, why? And what does that have to do with this mod?
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline skb

  • Jr. Member
  • **
  • Posts: 374
    • Metabolically Challenged
Re: Custom Action Mod
« Reply #621 on: January 13, 2017, 05:32:59 AM »
What I'm trying to do is execute this action with a button click, rather than going into phpMyAdmin and doing it manually every time.
Learning, every day.
Forum - The Diabetic Pub
Because every diabetic needs help
SMF 2.1 RC2 (default theme) / TP 1.6.2

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,982
    • StoryBB/StoryBB on GitHub
Re: Custom Action Mod
« Reply #622 on: January 13, 2017, 05:36:21 AM »
For something that SMF will rewrite anyway for users (almost) every time they hit a page?
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline thepitster

  • Semi-Newbie
  • *
  • Posts: 28
  • Gender: Male
    • ALLRiPPED
Re: Custom Action Mod
« Reply #623 on: August 02, 2017, 04:12:55 PM »
when attempting to install this I got, basically AFTER I clicked install this poped up:
Code: (Error) [Select]
BLOB, TEXT, GEOMETRY or JSON column 'name' can't have a default value
File: /Packages/temp/install.php
Line: 123

and this is the line that is causing the problem

Code: (install.php Line 123) [Select]
$smcFunc['db_create_table']('{db_prefix}custom_actions', $columns, $indexes, array(), 'update_remove');

Offline StarredSkies

  • Semi-Newbie
  • *
  • Posts: 72
    • Beasts of Beyond
Re: Custom Action Mod
« Reply #624 on: June 09, 2019, 05:06:01 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...

Going to re-ask this question. My subaccounts do not appear as a drop-down menu like my admin/moderator/member buttons.

Offline Pyrhel

  • Semi-Newbie
  • *
  • Posts: 92
    • FordBG.com
Re: Custom Action Mod
« Reply #625 on: October 18, 2019, 10:25:32 AM »
Hello,
Is there a way to include theme's default bars and colors to the "page" under the action if BBC is selected?
For example to look as "index.php?action=help".

Offline Diego Andrés

  • Customizer
  • SMF Hero
  • *
  • Posts: 3,362
  • Gender: Male
    • DiegoSetroc on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: Custom Action Mod
« Reply #626 on: October 18, 2019, 02:43:55 PM »
Hello,
Is there a way to include theme's default bars and colors to the "page" under the action if BBC is selected?
For example to look as "index.php?action=help".

Not sure I follow, can you attach a picture of this "issue"?

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline Pyrhel

  • Semi-Newbie
  • *
  • Posts: 92
    • FordBG.com
Re: Custom Action Mod
« Reply #627 on: October 19, 2019, 01:39:16 AM »
If the help action is opened, it looks like this:


But if the custom action is opened, it doesn't have the theme's look and is displayed like this:


Is it possible themes' style to be included in the custom page to keep the look and feel of the theme. I saw similar thing in one of the portals (I think it was "tiny portal") in which the style can be selected - to use theme's colors, borders, etc or not to.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,982
    • StoryBB/StoryBB on GitHub
Re: Custom Action Mod
« Reply #628 on: October 19, 2019, 02:35:08 AM »
It doesn’t do anything because it’s designed as a base for you to have complete control over what that custom action does, up to and including putting literally whatever content you want there - adding what you’re asking for actually runs counter to what it was designed for.

Going with something like TP might be a simpler and better option.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.