Status: offline

ronack

Forum User
Full Member
Registered: 05/27/03
Posts: 612
We all know of the default topic option. Does anyone have a hack to specify different topics for submission. For instance if I am in the Topic "Documentation" and I click Get Published it would automatically put Documentation in the Topic field. I don't know how many times I end up with a post in the wrong topic, usually the default.

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
No need for a hack - Geeklog already does that.

If your theme uses the {menu_elements} variable, it should already work. If it doesn't use that variable, you will need to make sure the link to the submission form reads
Text Formatted Code
<a href="{site_url}/submit.php?type=story{current_topic}">


bye, Dirk

Status: offline

ronack

Forum User
Full Member
Registered: 05/27/03
Posts: 612
I use {menu_elements} on all my sites with GL1.3.8 sr2. And none of them do that. Is it part of the theme or part of the core?

Status: offline

geKow

Forum User
Full Member
Registered: 01/12/03
Posts: 445
That "hack" doesn't work for me (I don't use {menu_elements}) all I get is the submit page "header" with the list "you must fill out all fields" and so on but nothing more

geKow

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Hmm, works for me. Tested with Clean (uses menu_elements) and XSilver (no menu_elements) ...

bye, Dirk

Status: offline

ronack

Forum User
Full Member
Registered: 05/27/03
Posts: 612
Mine always come up with the default topic no matter where I am at when I click on Get Published.

Status: offline

ronack

Forum User
Full Member
Registered: 05/27/03
Posts: 612
In doing a little analysis I find this. My link for Get Published looks like this.

http://mysite....com/submit.php?type=story&topic=suggest

Suggest being the topic that I am in. When I click on it it goes to that link then a second later goes to this.

http://mysite....com/1admin/story.php?mode=edit

The topic field shows the default topic "Community News" instead of the topic "Suggest".


Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
It should work for normal users, though. Can't remember if it ever worked for (Story) Admins or was even intended to work for them ...

bye, Dirk