Welcome to Geeklog, Anonymous Friday, December 13 2024 @ 02:11 pm EST
Geeklog Forums
submit.php hack
Status: offline
fakestar
Forum User
Chatty
Registered: 03/15/06
Posts: 37
Hello,
I need a hack to allow registered users upload images to their stories.
Maybe a modified admin/story.php?mode=edit to record in database always as a draft can do the service.
what you guys think?
So...to moderate, i read the article, if i want approve, i leave the checkbox "draft" blank...
So if you're experienced php coder and geeklog user, the help is welcome.
Thanks
I need a hack to allow registered users upload images to their stories.
Maybe a modified admin/story.php?mode=edit to record in database always as a draft can do the service.
what you guys think?
So...to moderate, i read the article, if i want approve, i leave the checkbox "draft" blank...
So if you're experienced php coder and geeklog user, the help is welcome.
Thanks
17
18
Quote
Status: offline
matthewcox
Forum User
Junior
Registered: 12/11/03
Posts: 31
Location:Asheville, North Carolina
If I understand you correctly, this is built into geeklog.
Images are already allowed to be uploaded either through the images tab or the latest fckeditor that comes with Geeklog.
Then it's just a matter of enabling story submission queues in config.php
$_CONF['storysubmission'] = 1;
This causes all story submissions to be approved by the admin first.
Images are already allowed to be uploaded either through the images tab or the latest fckeditor that comes with Geeklog.
Then it's just a matter of enabling story submission queues in config.php
Text Formatted Code
// enable (set to 1) or disable (set to 0) submission queues:$_CONF['storysubmission'] = 1;
This causes all story submissions to be approved by the admin first.
12
13
Quote
Status: offline
fakestar
Forum User
Chatty
Registered: 03/15/06
Posts: 37
Thanks for your reply.
What i want is allow to registered member (Not admins) upload images to their stories.
So i want to make a new php page with a form, title, topic, id...and let registered users upload images.
So in mysql query to insert values in database...the value to draft_flag will be '1'. (Drafted)...
But i need help on this
What i want is allow to registered member (Not admins) upload images to their stories.
So i want to make a new php page with a form, title, topic, id...and let registered users upload images.
So in mysql query to insert values in database...the value to draft_flag will be '1'. (Drafted)...
But i need help on this
19
12
Quote
Status: offline
jmucchiello
Forum User
Full Member
Registered: 08/29/05
Posts: 985
You can do it with mediagallery already. You just can't do it all on one submission. If a user remembers to upload the pictures first, they can use autolinks in their story to include the pics with the story. I believe the autolink is [ media:media_id_number ] without the spaces around the square brackets.
23
19
Quote
Status: offline
dewdoo
Forum User
Chatty
Registered: 01/03/04
Posts: 65
for my average users using auto tag feature, this not a problem. For the 90% of the members it goes right over thier head. Honestly, all I need is to make this work is to have fckeditor just load a basic tools and MG browser. So, most of my users can just point and click. Just my coding skills to get this too work is very limited. But I can see, how this can help an average site.
18
24
Quote
Status: offline
jmucchiello
Forum User
Full Member
Registered: 08/29/05
Posts: 985
With the advanced editor, you can use the MG Browser plugin (a plugin for FCKEditor itself, not a GL plugin) to maybe make this easier. It adds an upload button to the FCKEditor that interacts with MG. Look for the browser plugin on gllabs.org.
23
17
Quote
All times are EST. The time is now 02:11 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