<<< Coding for the future >>>
| Hwdvideoshare Permalink Structure |
|
|
|
| Written by Administrator |
| Saturday, 22 May 2010 19:02 |
|
Small issue with a recent upgrade of Hwdvideoshare - the URL for the video is updated with a snazzy SEO name tagged onto the end in the following format: http://www.yoursite.com/media/videos/viewvideo/XXX/title-of-video In the above line, 'XXX' is the video ID and 'title-of-video' is a search engine optimised version of the title of your video. However on the view video page the perma link still appears as the old version something like this:
http://www.yoursite.com/media/index.php?option=com_hwdvideoshare&task=viewvideo&Itemid=XX&video_id=XXX Itemid and video_id both vary according to the video and category. Both work perfectly but for the sake of banklinks and PR ranking, I like having all links using the same URL so as not to confuse search engines.
To rework the permalink URL in hwdvideoshare into the first example above, open up: components/com_hwdvideoshare/hwdvideoshare.class.php
This forms the Permalink for the video page. The function is around line 839. Change the following line: $code.= JURI::root()."index.php?option=com_hwdvideoshare&task=viewvideo&Itemid=".$Itemid."&video_id=".$row->id; to $code.=JURI::root(). JRoute::_("index.php?option=com_hwdvideoshare&task=viewvideo&Itemid=".$Itemid."&video_id=".$row->id); If this does not give you a proper url (check for double slashes (//) in the URL) then you may need to hardwire it using something like this: $code1= JRoute::_("index.php?option=com_hwdvideoshare&task=viewvideo&Itemid=".$Itemid."&video_id=".$row->id);
|
| Last Updated on Saturday, 22 May 2010 19:21 |