Jump to content

Hey Everyone, Need a Little Help.


Goins

Recommended Posts

I am having trouble adding keywords to an image uploader.

 

It is a multiuploader so it has alot more than one upload box. If it was just one upload box i could do it but since it is more than one i am having problems.

 

In the upload part this

$extension=$mmhclass->funcs->file_extension($mmhclass->input->file_vars['userfile']['name'][$i]);
				$filename  = ($mmhclass->funcs->random_string(20).".{$extension}");
$thumbnail = $mmhclass->funcs->thumbnail_name($filename);
				$filetitle = strip_tags((strlen($mmhclass->input->file_vars['userfile']['name'][$i]) > 20) ? (substr($mmhclass->input->file_vars['userfile']['name'][$i], 0, 20)."...") : $mmhclass->input->file_vars['userfile']['name'][$i]);

 

I did have a make an input box like this name="keyword" type="text" size="50"

 

And put that up their.

        $keyword =  ($mmhclass->funcs->random_string(20).".{$extension}");

But it just store random strings witch it suppose to.

 

I put the keyword part in here.

$mmhclass->db->query("INSERT INTO `mmh_file_storage` (`filename`, `is_private`, `gallery_id`,`keyword`,  `file_title`) VALUES ('{$filename}', '{$mmhclass->input->post_vars['private_upload']}', '{$mmhclass->info->user_data['user_id']}','{$keyword}', '{$filetitle}'); "); 

 

Any Help Please!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.