• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] invalid characters for Titles

Started by teckvo,

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

teckvoTopic starter

Hi

I found there are invalid characters for video titles on the right side of the video player. the rest of the video titles are displayed correctly. Please see attached image for more details.

  •  

PHPVibe A.

If you need a quick fix, wrap them in _html(). Already committed to 3.5.

tpl/main/layouts/user_videos.php replace stripslahes with _html
This should do it.

teckvoTopic starter

  •  

teckvoTopic starter

Issue in user player is fixed, but invalid characters are still displayed in the browser tab and inside Pop Up title when we hover mouse over video title.

Please see attached photo for more detail.
  •  

PHPVibe A.

Open com/com_video.php and change every instace of striplashes with _html under

// SEO Filters
This should do it.

Ex:

return strip_tags(stripslashes($video->title));


should become:
return strip_tags(_html($video->title));

teckvoTopic starter

Thanks. Which file should I changed if my URL is not displayed seo friendly?

  •  

PHPVibe A.


teckvoTopic starter

I did implement according to the info; but I still have the same problem. However if I go to Video Manage and update the proper language into the title then, then url then displayed correctly. But then I have to do it one by one for all the videos on the site.
  •  

PHPVibe A.

I'm not sure I follow, can you give an example?

teckvoTopic starter

URL of example: http://www.phatgiaotv.com/video/1365/tu-th-amp-iacute-ch-tr-amp-iacute-hue/

URL after I clicked "Edit" inside the Video Manager and then click "Update", which displayed the URL perfectly fine: http://www.phatgiaotv.com/video/1371/tam-tu-tap-trong-kinh-tang-chi-bo-thich-tri-hue/

Is it because not seo friendly the url before importing into the database?

  •  

PHPVibe A.

No, the url is not imported/stored, it's created every time via php from the title via "nice_url" function in lib/functions.php
Probably the issues is in the title encoding on import, I'll look into it.

PHPVibe A.

Is this url good? http://www.videoinedit.com/video/5127/shey-boogie-at-viettel-92-nguy-n-hu-hu-/

Re-download PHPVibe, replace lib/class.youtube.php and let me know if the urls are alright for your language after.

teckvoTopic starter

Quote from: Alexander on
Is this url good? http://www.videoinedit.com/video/5127/shey-boogie-at-viettel-92-nguy-n-hu-hu-/

No it should be like this "http://www.videoinedit.com/video/5127/shey-boogie-at-viettel-92-nguyen-hue-hue/
after replaced lib/class.youtube.php, the url is displayed correctly for new imports. Any videos added before that still displayed incorrectly. Thank you the fix. I just need to re-update all the old videos.

  •  

PHPVibe A.

Good we figured it out. Give them a fast edit.
Thanks for reporting this, it's pretty hard for us to be aware of different encodings behaviors.

ademozipek

@Alexander Thanks for solution, it's worked for me.
  •  

Similar topics (7)