Create Topic from Portal

Post Reply
User avatar

Topic author
DutchToxophilite
Active Member
Posts: 28
Joined: 30. January 2009 12:17
phpBB.com User: DutchToxophilite
Location: Venlo, The Netherlands
Contact:

Create Topic from Portal

Post by DutchToxophilite »

Your Portal Version: 1.0.3
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Advanced Knowledge
Boardlink: http://www.handboogforum.nl

What have you done before the problem was there?
-

What have you already tryed to solve the problem?
Thought about it.

Description and Message
Hi.

My question is something, one of my board members asked me.

He has trouble finding the correct button to start a new topic.

Would it be possible to "Create a new topic from the Portal?" without having to go through the board index?
I figure it should be possible to do that, but I also figure, that this has to be a separate MOD.
When the link for "A new Topic" has been selected, the user should get a single screen, where he can select the (categorie)forum the message should go.

Let me know if this is not possible, or maybe it is.

grtz,
Twan
The joy's of Archery can be found anywhere. Far places only offer exotic ways to suffer.
User avatar

Topic author
DutchToxophilite
Active Member
Posts: 28
Joined: 30. January 2009 12:17
phpBB.com User: DutchToxophilite
Location: Venlo, The Netherlands
Contact:

Re: Create Topic from Portal

Post by DutchToxophilite »

Nobody?

Please let me know something...... Even if it would not be possible without a separate MOD....

grtz,
Twan
The joy's of Archery can be found anywhere. Far places only offer exotic ways to suffer.
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: Create Topic from Portal

Post by Kevin »

It would be possible with an extra block i guess (well, I'm pretty sure).

The function make_jumpbox in the includes/functions_content.php core file might be interesting for you - regarding the SQL query and the dropdown menu for the forum list.
Basically you "just" have to rename and rebuild this function, to let the link point directly to the posting.php, using the desired forum ID I guess.

This is how the viewforum.php is building up the link to start a new topic, might be interesting as well:

Code: Select all

    'U_POST_NEW_TOPIC'    => ($auth->acl_get('f_post', $forum_id) || $user->data['user_id'] == ANONYMOUS) ? append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=post&f=' . $forum_id) : '', 
The function make_jumpbox is called this way:

Code: Select all

make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx")); 
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: Create Topic from Portal

Post by Kevin »

Just found out - pretty easy with the make_jumpbox function:

Open portal.php

find:

Code: Select all

make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx")); 
replace with:

Code: Select all

make_jumpbox(append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=post&f=' . $forum_id)); 
If a forum is now selected in the jumpbox, it leads directly to the posting.php with the correct forum ID. :)
Now 80% of the way is gone. ;)
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!
User avatar

Topic author
DutchToxophilite
Active Member
Posts: 28
Joined: 30. January 2009 12:17
phpBB.com User: DutchToxophilite
Location: Venlo, The Netherlands
Contact:

Re: Create Topic from Portal

Post by DutchToxophilite »

Hi Kevin.

That works.

But if it is possible it would be nice if there would be a separate "button" or link. And the user would be able to only select the forums where creating new topics is allowed.

If that is not possible, I think I will use this solution.

grtz,
Twan
The joy's of Archery can be found anywhere. Far places only offer exotic ways to suffer.
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: Create Topic from Portal

Post by Kevin »

Then i would suggest to copy, rename and modify this function.
I'm sorry, i do not have the time to do more investigation, very busy at the moment.

*moved to "modification requests"*
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!
Post Reply

Return to “Modification Requests”