Yes, this is possible but how would you like to use the title?Hi,
Is there a way to auto generate tags from title.
Hi,Yes, this is possible but how would you like to use the title?
A way could be to split the title at spaces and use these words than as keyword.
What method are you trying to do?
Hi Michael,Yes, this is possible but how would you like to use the title?
A way could be to split the title at spaces and use these words than as keyword.
What method are you trying to do?
Yes, sure.Hi Michael,
Can you please help me with this.
Hi Michael,Yes, sure.
When do you like to apply the tags? If you submit upload?![]()
Yes, I'll help you but I require a few days since I'm currently on vacation. Stay tunedHi Michael,
Yes, i'm planning to generate auto tags from title when i submit upload. Can you please tell how to do this.
Thank you.
Hi Michael,Yes, I'll help you but I require a few days since I'm currently on vacation. Stay tuned![]()
Go toHi Michael,
Could you please help me now?
app/Http/Controllers/ImagesController.php
$sql = new Images;
$modify_tags = preg_replace('#\s+#',',',trim(trim($request->title))).','.$request->tags;
$request->title
with $modify_tags
.This is caused by the coma which separates the title generated tags with the real tags. I'll fix it as soon as possible.Hi Michael,
Thank you for replying. Sorry for bothering you again. While generating auto tags from title, it is generating an empty tag at the end. Please refer the image.
View attachment 156
ReplaceHi Michael,
Have you found any solution ?
Thank you.
$modify_tags = preg_replace('#\s+#',',',trim(trim($request->title))).','.$request->tags;
if($request->tags != '')
$modify_tags = preg_replace('#\s+#',',',trim(trim($request->title))).','.$request->tags;
else
$modify_tags = preg_replace('#\s+#',',',trim(trim($request->title)));
$modify_tags = implode(',', array_keys(array_flip(explode(',', strtolower($modify_tags)))));
You're very much welcome. Take care.Thank you very much.