[DELETE-ME] Select Form On Posting Page

This forum is now closed as part of retiring phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Post Reply
AbelaJohnB
Former Team Member
Posts: 5674
Joined: Fri Jul 06, 2001 11:56 pm

[DELETE-ME] Select Form On Posting Page

Post 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:
Last edited by AbelaJohnB on Sun May 01, 2005 10:13 pm, edited 1 time in total.
AbelaJohnB
Former Team Member
Posts: 5674
Joined: Fri Jul 06, 2001 11:56 pm

Post by AbelaJohnB »

*bump*
AbelaJohnB
Former Team Member
Posts: 5674
Joined: Fri Jul 06, 2001 11:56 pm

Post by AbelaJohnB »

*bump*
:mrgreen:
AbelaJohnB
Former Team Member
Posts: 5674
Joined: Fri Jul 06, 2001 11:56 pm

Post by AbelaJohnB »

*bump*
User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post 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)
AbelaJohnB
Former Team Member
Posts: 5674
Joined: Fri Jul 06, 2001 11:56 pm

Post by AbelaJohnB »

So, anybody up for doing this for me?
User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post 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?
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
AbelaJohnB
Former Team Member
Posts: 5674
Joined: Fri Jul 06, 2001 11:56 pm

Post by AbelaJohnB »

Yep, that's a great example.
User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post 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.
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
AbelaJohnB
Former Team Member
Posts: 5674
Joined: Fri Jul 06, 2001 11:56 pm

Post 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.
User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post 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)
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
AbelaJohnB
Former Team Member
Posts: 5674
Joined: Fri Jul 06, 2001 11:56 pm

Post by AbelaJohnB »

Having problems with it I see.... I eventually gave up with trying to get it to work on my site. :?
User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post 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)
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
AbelaJohnB
Former Team Member
Posts: 5674
Joined: Fri Jul 06, 2001 11:56 pm

Post by AbelaJohnB »

This request has been filled, topic can be locked/deleted.
User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post 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.
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
Post Reply

Return to “[2.0.x] MOD Requests”