Related Topics


[Video CMS v4]How to Convert Title as Tags?  (Read 1262 times) Print

1 B


megaman79  July 04, 2014, 02:26:37 AM

Hello PHPVibe,

How to make the Video Title as Tags for the Videos?

For example: John Michael New Song = Tags: John, Michael, New, Song

Hope this is possible.

Logged
"Very Happy with PHPVibe"


Alexander  July 04, 2014, 03:04:32 PM

Depends where you want to make the change?
In video page or in submit?

If in video page:

Code
$tag = explode(' ', $video->title);
$tags = implode( ',', $tag);
echo $tags; //lists them

Logged

megaman79  July 04, 2014, 09:18:22 PM

Depends where you want to make the change?
In video page or in submit?

If in video page:

Code
$tag = explode(' ', $video->title);
$tags = implode( ',', $tag);
echo $tags; //lists them

In the video page. I just have to paste this code inside video.php any where?
Give me the correct location where I need put it.

Logged
"Very Happy with PHPVibe"


megaman79  July 04, 2014, 09:33:28 PM

In the video page. I just have to paste this code inside video.php any where?
Give me the correct location where I need put it.

I think I'm wrong. I want the Title of the Video to be imported as Tags for the Video when I upload video at Front end of Site, also when I use the Cron Job. I want the Title to import as Tags for the video also.

Thanks for the help Alexander.

Logged
"Very Happy with PHPVibe"


Alexander  July 05, 2014, 04:17:17 PM

Why fill the database for nothing? Tags are only used on the video page, you can just output them there.

Logged

megaman79  July 05, 2014, 08:01:11 PM

Why fill the database for nothing? Tags are only used on the video page, you can just output them there.

I think this will help me for SEO (search).

Logged
"Very Happy with PHPVibe"


Alexander  July 07, 2014, 06:21:51 PM

I don't see in any way how...they will help you the same if you build them on the fly and not add them to the database.

Logged