Welcome to Geeklog, Anonymous Wednesday, December 04 2024 @ 05:27 pm EST

Geeklog Forums

Get Published hack


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.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
 Quote

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?
 Quote

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
 Quote

Status: offline

Dirk

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

bye, Dirk
 Quote

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.
 Quote

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".

 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
 Quote

All times are EST. The time is now 05:27 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content