Page 1 of 1

[DELETE-ME] Select Form On Posting Page

Posted: Mon Apr 18, 2005 10:47 pm
by AbelaJohnB
Hello.

I'm after a quick MOD to allow the person submitting a new post to be able to have a <select> box with all the forums (permission based, of course) within the "Post a new topic" page.

I had thought of hacking up the make_jumpbox() function, but it turned into more work than I could handle at the time.

I was hoping someone might already have this, or be willing to MOD it up for me!

Thanks. :mrgreen:

Posted: Wed Apr 20, 2005 5:25 pm
by AbelaJohnB
*bump*

Posted: Sat Apr 23, 2005 12:56 am
by AbelaJohnB
*bump*
:mrgreen:

Posted: Sun Apr 24, 2005 8:19 am
by AbelaJohnB
*bump*

Posted: Sun Apr 24, 2005 8:36 am
by Ptirhiik
By my side I would prefer using the select forums list used in admin (functions_admin.php), which is closer to what you need : creating for your own function should do the trick.

Point to see :
- doable only in new topic context,
- tpl modifications must include a switch for this field (posting_body.tpl used for privmsg too),
- no major difficulties to overwrite the $forum_id field, if sat enough high in the source. Priorize the $_POST onto the $_GET (should be already the case). The auth checks should remain the phpBB existing ones.

Sumup: the modification shouldn't be to harsh :
- creating a similar function than the one in functions_admin for the forums list,
- adding this function at bottom of the posting.php (at least, after the session init to be able to read the auth)

Posted: Sat Apr 30, 2005 9:23 pm
by AbelaJohnB
So, anybody up for doing this for me?

Posted: Sat Apr 30, 2005 10:35 pm
by drathbun
AbelaJohnB wrote: So, anybody up for doing this for me?

I'm confused :? ... what would be the purpose? Do you want them to be able to change the forum they're posting to during the posting process? So it goes like this...

I click New Topic
I type in all my text
Oops, I see I'm in Forum A and thought I was in B
I select Forum B from the drop-down list and presto, my new topic goes into Forum B instead.

Do I have the right idea?

Posted: Sat Apr 30, 2005 11:21 pm
by AbelaJohnB
Yep, that's a great example.

Posted: Sun May 01, 2005 1:03 am
by drathbun
AbelaJohnB wrote: Yep, that's a great example.

John:

Go to the forum where you got my last MOD and check out the new topic posting routine. ;-) The cool thing is that the "click to return to forum" gets the right forum too. If you start in forum A and "move" the topic to forum B, when you're done, you get the option to redirect to your post or to forum B, not A.

Posted: Sun May 01, 2005 1:17 am
by AbelaJohnB
What about user permissions? Does it show (or not show) based upon what permissions the user has?

That's 100% vital to what I need.

Posted: Sun May 01, 2005 1:23 am
by drathbun
AbelaJohnB wrote: What about user permissions? Does it show (or not show) based upon what permissions the user has?

That's 100% vital to what I need.

Almost. :-) I was testing as Admin, so of course it worked. I'm fixing the user permissions thing now. 8)

Posted: Sun May 01, 2005 2:02 am
by AbelaJohnB
Having problems with it I see.... I eventually gave up with trying to get it to work on my site. :?

Posted: Sun May 01, 2005 2:03 am
by drathbun
AbelaJohnB wrote: Having problems with it I see.... I eventually gave up with trying to get it to work on my site. :?

Oh, I won't give up. :lol:

Check back tomorrow. 8)

Posted: Sun May 01, 2005 10:11 pm
by AbelaJohnB
This request has been filled, topic can be locked/deleted.

Posted: Mon May 02, 2005 12:38 am
by drathbun
AbelaJohnB wrote: This request has been filled, topic can be locked/deleted.

I'll be posting a link for others to look at soon. It actually came out cool. 8) I like it.