News:

Wondering if this will always be free?  See why free is better.

Main Menu

List of action query ?

Started by Zatalyz, October 13, 2022, 01:29:50 PM

Previous topic - Next topic

Zatalyz

Hello,

The links in a forum are formatted like this  "myforum/index.php?action=word". The "word" is, here, that I search : Is there a list of all the keywords we can call?

For the moment I search if a page with recent subject updated exist (when people are not log and want see subject, no only recent message ; recent pages are called with "?action=recent"). But a list with all "action" possible will be useful to see the possibilities.

Diego Andrés

In index.php you'll find the array of actions.
Though if you use mods that added more actions, those might be on their own files if the mod is using hooks (no file edits).

SMF Tricks - Free & Premium Responsive Themes for SMF.

Zatalyz

I found a way, who list me some argument too. I using command line on linux. If it can help somebody :

grep -ri '?action=' ./Sources/* | sed -nre 's#^.*\?action=([^[:space:]]+)[[:space:]].*$#\1#p' > action.txt
Grep search all lines with this term, sed clean the line and keep only the argument.

Then I finally find the things on index.php :
$actionArray = array(
'agreement' => array('Agreement.php', 'Agreement'),
'acceptagreement' => array('Agreement.php', 'AcceptAgreement'),
'activate' => array('Register.php', 'Activate'),
'admin' => array('Admin.php', 'AdminMain'),
'announce' => array('Post.php', 'AnnounceTopic'),
'attachapprove' => array('ManageAttachments.php', 'ApproveAttach'),
'buddy' => array('Subs-Members.php', 'BuddyListToggle'),
'calendar' => array('Calendar.php', 'CalendarMain'),
'clock' => array('Calendar.php', 'clock'),
'coppa' => array('Register.php', 'CoppaForm'),
'credits' => array('Who.php', 'Credits'),
'deletemsg' => array('RemoveTopic.php', 'DeleteMessage'),
'dlattach' => array('ShowAttachments.php', 'showAttachment'),
'editpoll' => array('Poll.php', 'EditPoll'),
'editpoll2' => array('Poll.php', 'EditPoll2'),
'findmember' => array('Subs-Auth.php', 'JSMembers'),
'groups' => array('Groups.php', 'Groups'),
'help' => array('Help.php', 'ShowHelp'),
'helpadmin' => array('Help.php', 'ShowAdminHelp'),
'jsmodify' => array('Post.php', 'JavaScriptModify'),
'jsoption' => array('Themes.php', 'SetJavaScript'),
'likes' => array('Likes.php', 'Likes::call#'),
'lock' => array('Topic.php', 'LockTopic'),
'lockvoting' => array('Poll.php', 'LockVoting'),
'login' => array('LogInOut.php', 'Login'),
'login2' => array('LogInOut.php', 'Login2'),
'logintfa' => array('LogInOut.php', 'LoginTFA'),
'logout' => array('LogInOut.php', 'Logout'),
'markasread' => array('Subs-Boards.php', 'MarkRead'),
'mergetopics' => array('SplitTopics.php', 'MergeTopics'),
'mlist' => array('Memberlist.php', 'Memberlist'),
'moderate' => array('ModerationCenter.php', 'ModerationMain'),
'modifycat' => array('ManageBoards.php', 'ModifyCat'),
'movetopic' => array('MoveTopic.php', 'MoveTopic'),
'movetopic2' => array('MoveTopic.php', 'MoveTopic2'),
'notifyannouncements' => array('Notify.php', 'AnnouncementsNotify'),
'notifyboard' => array('Notify.php', 'BoardNotify'),
'notifytopic' => array('Notify.php', 'TopicNotify'),
'pm' => array('PersonalMessage.php', 'MessageMain'),
'post' => array('Post.php', 'Post'),
'post2' => array('Post.php', 'Post2'),
'printpage' => array('Printpage.php', 'PrintTopic'),
'profile' => array('Profile.php', 'ModifyProfile'),
'quotefast' => array('Post.php', 'QuoteFast'),
'quickmod' => array('MessageIndex.php', 'QuickModeration'),
'quickmod2' => array('Display.php', 'QuickInTopicModeration'),
'recent' => array('Recent.php', 'RecentPosts'),
'reminder' => array('Reminder.php', 'RemindMe'),
'removepoll' => array('Poll.php', 'RemovePoll'),
'removetopic2' => array('RemoveTopic.php', 'RemoveTopic2'),
'reporttm' => array('ReportToMod.php', 'ReportToModerator'),
'requestmembers' => array('Subs-Auth.php', 'RequestMembers'),
'restoretopic' => array('RemoveTopic.php', 'RestoreTopic'),
'search' => array('Search.php', 'PlushSearch1'),
'search2' => array('Search.php', 'PlushSearch2'),
'sendactivation' => array('Register.php', 'SendActivation'),
'signup' => array('Register.php', 'Register'),
'signup2' => array('Register.php', 'Register2'),
'smstats' => array('Stats.php', 'SMStats'),
'suggest' => array('Subs-Editor.php', 'AutoSuggestHandler'),
'splittopics' => array('SplitTopics.php', 'SplitTopics'),
'stats' => array('Stats.php', 'DisplayStats'),
'sticky' => array('Topic.php', 'Sticky'),
'theme' => array('Themes.php', 'ThemesMain'),
'trackip' => array('Profile-View.php', 'trackIP'),
'about:unknown' => array('Likes.php', 'BookOfUnknown'),
'unread' => array('Recent.php', 'UnreadTopics'),
'unreadreplies' => array('Recent.php', 'UnreadTopics'),
'uploadAttach' => array('Attachments.php', 'Attachments::call#'),
'verificationcode' => array('Register.php', 'VerificationCode'),
'viewprofile' => array('Profile.php', 'ModifyProfile'),
'vote' => array('Poll.php', 'Vote'),
'viewquery' => array('ViewQuery.php', 'ViewQuery'),
'viewsmfile' => array('Admin.php', 'DisplayAdminFile'),
'who' => array('Who.php', 'Who'),
'.xml' => array('News.php', 'ShowXmlFeed'),
'xmlhttp' => array('Xml.php', 'XMLhttpMain'),
);

Seem to have no way to display the last topic updated. But thank for your help !

Advertisement: