Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: alexandervba on October 30, 2009, 07:46:32 PM

Title: Looking to upgrade my function.
Post by: alexandervba on October 30, 2009, 07:46:32 PM
Here was my original request, which was handled fine by u guys!! and it all works :D

What the script currently does:

Theres a button created called 'approve' and its a new mod option available in 2 specified forums. I can click it when I open up any topic in those forums. So when i click it, it will change the rank of the topic STARTER to another membergroup, and it will leave a standard reply: "Thank you for applying, ect...".

link to the request:

http://www.simplemachines.org/community/index.php?topic=314758.msg2089097#msg2089097

now Id like to upgrade it!

When I click the approve button. I now also wanted a NEW topic to be created in another board WITH A POLL!

So when I click approve, it will post a message, it will change the rank of topic starter, it will leave a standard reply with a "thx for applying" and now it should also do this:

Create a NEW POLL in another board where:
Topic Title= the name of the member that started the original topic;
Poll question= "Vote on this member!";
Poll choices= "Yes" and "No". (only 1 option may be chosen);
Topic body= 'link to the original topic'.

Can anyone tell me the function to use for this? I had a look at createtopic function, but this is actually making a completely new topic in ANOTHER board and ADDING A POLL. So I couldnt figure it out, u guys helped me with all I needed last time, can you help me once more?

THANKS!
Title: Re: Looking to upgrade my function.
Post by: alexandervba on November 01, 2009, 11:12:39 AM
possible/not possible?
Title: Re: Looking to upgrade my function.
Post by: Arantor on November 01, 2009, 03:12:55 PM
I have no idea which version you're using, nor the code you currently have for 'approving' though I'd be guessing SMF 1.1 is involved.
Title: Re: Looking to upgrade my function.
Post by: alexandervba on November 01, 2009, 03:35:17 PM
oh dam, forgot to include that link.

Its smf 1.1.10

link:

http://www.simplemachines.org/community/index.php?topic=314758.msg2089097#msg2089097