What function to move/lock/delete etc.?

Discussion forum for MOD Writers regarding MOD Development.
Locked
-ToM-
Registered User
Posts: 11
Joined: Fri Feb 08, 2008 4:12 pm

What function to move/lock/delete etc.?

Post by -ToM- » Sun Mar 09, 2008 11:38 am

Hello there,

At the moment, I am working on a substitute for the Quick-Mod tools box, by using images instead of a drop down box.

What function would I put as the url that is clicked when trying to move a topic?

Also, if anyone knows the functions for all the others aswell, it would be helpful.

Thank you, Tom.

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51870
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: What function to move/lock/delete etc.?

Post by Brf » Sun Mar 09, 2008 11:57 am

Checking the form action I see:

Code: Select all

./mcp.php?f=xx&t=xx&quickmod=1&redirect=.%2Fviewtopic.php%3Ff%3D35%26t%3D69%26start%3D0%26st%3D0%26sk%3Dt%26sd%3Da&sid=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

-ToM-
Registered User
Posts: 11
Joined: Fri Feb 08, 2008 4:12 pm

Re: What function to move/lock/delete etc.?

Post by -ToM- » Sun Mar 09, 2008 12:02 pm

So, what would I use to replace all them things with variables?

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51870
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: What function to move/lock/delete etc.?

Post by Brf » Sun Mar 09, 2008 12:05 pm

What?

-ToM-
Registered User
Posts: 11
Joined: Fri Feb 08, 2008 4:12 pm

Re: What function to move/lock/delete etc.?

Post by -ToM- » Sun Mar 09, 2008 12:11 pm

Well, what would I put as the link to lock a topic or what ever mod action?

Like, the url but with variables that pick up the topic ids and stuff. Sorry, not very good with this stuff.. :?

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51870
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: What function to move/lock/delete etc.?

Post by Brf » Sun Mar 09, 2008 12:14 pm

That url contains the topic_id, forum_id, and the return address for the current page. The action is in post data....


You could probably use something like:

Code: Select all

mcp.php?f=xx&t=xx&quickmod=1&action=lock&redirect=whereever
to lock a topic

Locked

Return to “[3.0.x] MOD Writers Discussion”