News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Looking to upgrade my function.

Started by alexandervba, October 30, 2009, 07:46:32 PM

Previous topic - Next topic

alexandervba

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!

alexandervba


Arantor

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.
Holder of controversial views, all of which my own.



Advertisement: