Results 1 to 8 of 8

Thread: tag pages are not correct

  1. #1
    Join Date
    Sep 2010
    Posts
    20

    Default tag pages are not correct

    Hi !
    When you viewing a tag , there are 3 options to view them by date , rated or view count . But when you click on view count or rated , then click on page 3 ( 4,5 whatever ) , that link go to page 3 but in "by date option" <-- it should be in by view count or rated option !!

    BizHat.com - funny

  2. #2

    Default

    Hi,

    This will fix the bug.

    Open tag.php

    Replace
    Code:
    $page_links = paginate($total, $config['items_per_page'], '.', '', $page);
    With
    Code:
            require 'Pager/Pager.php';
            require 'Pager/Sliding.php';
            
            $params = array();
            $params['mode'] = 'Sliding';
            $params['perPage'] = $config['items_per_page'];
            $params['linkClass'] = 'pagination';
            $params['delta'] = 2;
            $params['totalItems'] = $total;
            $params['urlVar'] = 'page';
            $params['append'] = false;
            $params['path'] = VSHARE_URL;
            $params['fileName'] = 'tag/' . $search_string . '/%d?sort=' . $sort;
            
            $pager = new Pager_Sliding($params);
            $data = $pager->getPageData();
            $links = $pager->getLinks();
            $page_links = $links["all"];
    Open templates/tag.tpl

    Replace
    Code:
         <a href="{$base_url}/tag/{$smarty.get.search_string}/?page={$page}&sort=adddate">Date Added</a> -
         <a href="{$base_url}/tag/{$smarty.get.search_string}/?page={$page}&sort=viewnum">View Count</a> -
         <a href="{$base_url}/tag/{$smarty.get.search_string}/?page={$page}&sort=rate">Rating</a>
    With
    Code:
         <a href="{$base_url}/tag/{$smarty.get.search_string}/{$page}?sort=adddate">Date Added</a> -
         <a href="{$base_url}/tag/{$smarty.get.search_string}/{$page}?sort=viewnum">View Count</a> -
         <a href="{$base_url}/tag/{$smarty.get.search_string}/{$page}?sort=rate">Rating</a>
    Thanks,
    Buyscripts Team

  3. #3
    Join Date
    Sep 2010
    Posts
    20

    Default

    it does not work as I meant ( in paginate , 1,2,3.... ) . but I fixed it my self , but I have to change .htaccess file and all tag cloud to have them worked !!

    Thanks anyway

  4. #4
    Join Date
    Sep 2010
    Location
    Pokhara Nepal
    Posts
    49

    Default can i use your codes?

    Quote Originally Posted by tientuy View Post
    it does not work as I meant ( in paginate , 1,2,3.... ) . but I fixed it my self , but I have to change .htaccess file and all tag cloud to have them worked !!

    Thanks anyway
    Hello fren
    i got the same tags are in long url and video titles are not listing in search engines, can i use your codes to fix my tag problems? will you help? check my site for tags that embeded videos have and you will understand what i mean i think.
    Nepal's Largest video community portal. share wisely at WWW.CLONEVIDEOS.COM

  5. #5
    Join Date
    Sep 2010
    Posts
    20

    Default

    what you have change to your view video coding ?? tag link usually only 1 or 2 words , but seem you make all words in one url tag link . so that the search engine can not find any video for sure !!
    Let try to fix :
    open view_video.php , search : # Related Videos Start
    before that line : do you still have these codes :
    $tags = explode(' ', $video_info['video_keywords']);
    $view['tags'] = $tags;

    if yes -->>that will be ok . if No , you have to fix that codes above

    then in/templates/view_video.tlp

    find : <label>Tags:</label>
    you should have these codes :
    {section name=j loop=$view.tags}
    <a href="{$base_url}/tag/{$view.tags[j]}/">{$view.tags[j]}</a>&nbsp;
    {/section}

    I hope you can fix it by yourself , otherwise . attach 2 files above and I will look and try to fix as possible I can

  6. #6
    Join Date
    Sep 2010
    Location
    Pokhara Nepal
    Posts
    49

    Default it is same there.

    Quote Originally Posted by tientuy View Post
    what you have change to your view video coding ?? tag link usually only 1 or 2 words , but seem you make all words in one url tag link . so that the search engine can not find any video for sure !!
    Let try to fix :
    open view_video.php , search : # Related Videos Start
    before that line : do you still have these codes :
    $tags = explode(' ', $video_info['video_keywords']);
    $view['tags'] = $tags;

    if yes -->>that will be ok . if No , you have to fix that codes above

    then in/templates/view_video.tlp

    find : <label>Tags:</label>
    you should have these codes :
    {section name=j loop=$view.tags}
    <a href="{$base_url}/tag/{$view.tags[j]}/">{$view.tags[j]}</a>&nbsp;
    {/section}

    I hope you can fix it by yourself , otherwise . attach 2 files above and I will look and try to fix as possible I can
    This mentioned all codes are available in my system file in the server. there is something went wrong i think.
    Nepal's Largest video community portal. share wisely at WWW.CLONEVIDEOS.COM

  7. #7
    Join Date
    Sep 2010
    Location
    Pokhara Nepal
    Posts
    49

    Default Can i have the updates full code ?

    Quote Originally Posted by vshare2 View Post
    Hi,

    This will fix the bug.

    Open tag.php

    Replace
    Code:
    $page_links = paginate($total, $config['items_per_page'], '.', '', $page);
    With
    Code:
            require 'Pager/Pager.php';
            require 'Pager/Sliding.php';
     
            $params = array();
            $params['mode'] = 'Sliding';
            $params['perPage'] = $config['items_per_page'];
            $params['linkClass'] = 'pagination';
            $params['delta'] = 2;
            $params['totalItems'] = $total;
            $params['urlVar'] = 'page';
            $params['append'] = false;
            $params['path'] = VSHARE_URL;
            $params['fileName'] = 'tag/' . $search_string . '/%d?sort=' . $sort;
     
            $pager = new Pager_Sliding($params);
            $data = $pager->getPageData();
            $links = $pager->getLinks();
            $page_links = $links["all"];
    Open templates/tag.tpl

    Replace
    Code:
         <a href="{$base_url}/tag/{$smarty.get.search_string}/?page={$page}&sort=adddate">Date Added</a> -
         <a href="{$base_url}/tag/{$smarty.get.search_string}/?page={$page}&sort=viewnum">View Count</a> -
         <a href="{$base_url}/tag/{$smarty.get.search_string}/?page={$page}&sort=rate">Rating</a>
    With
    Code:
         <a href="{$base_url}/tag/{$smarty.get.search_string}/{$page}?sort=adddate">Date Added</a> -
         <a href="{$base_url}/tag/{$smarty.get.search_string}/{$page}?sort=viewnum">View Count</a> -
         <a href="{$base_url}/tag/{$smarty.get.search_string}/{$page}?sort=rate">Rating</a>
    Thanks,
    Buyscripts Team
    thank you for your response. can i have all edited working code please? it will be highly appriciated.
    Nepal's Largest video community portal. share wisely at WWW.CLONEVIDEOS.COM

  8. #8
    Join Date
    Sep 2010
    Posts
    20

    Default

    Can you attach these 2 files : view_video.php and view_video.tlp, I will check for you .

    Quote Originally Posted by clonevideos View Post
    This mentioned all codes are available in my system file in the server. there is something went wrong i think.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •