+ Reply to Thread
Results 1 to 10 of 10

Thread: How do I change the order of the tabs for listings?

  1. #1
    Junior Member
    Join Date
    Aug 2012
    Posts
    12

    How do I change the order of the tabs for listings?

    I am trying to change the order of the tabs on the listing page. (Please see attached picture.) Currently, the tabs read "listing" > "profile" > "video" > "Tell a friend." I would like to change the order so that maybe "tell a friend" is first.

    How can I do that?

    Thanks!
    Attached Images Attached Images

  2. #2
    Gonna have a guess at editing the order of tabs in yourthemetemplate/tpl/controllers/listing_details.tpl

  3. #3
    Flynax developer
    Join Date
    Jun 2010
    Posts
    239
    Hello,

    You can try edit it the following way:

    - open file: includes/controllers/listing_details.php
    - find this code:

    PHP Code:
    Only registered members can view the code
    and change order of tabs in $tabs variable;
    for example:

    PHP Code:
    Only registered members can view the code

  4. #4
    Junior Member
    Join Date
    Aug 2012
    Posts
    12
    We tried this, and the order of the tabs changed. HOWEVER, when we refresh the listings details page, the page still loads with the 'listing' tab automatically displayed.

    For example, we want to display 'video' automatically when we load the Listing Details page (instead of 'listing'). How do we do this? Thanks.

  5. #5
    Go to Configurations - Video - Autostart yes/no and you'll be fine.

    //Morgan
    Free Advertising at Fyndklippet.se


  6. #6
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028
    Digging up the past here but this no longer works in 4.5.2

    you have this

    /* populate tabs */
    $tabs = array(
    'listing' => array(
    'key' => 'listing',
    'name' => $lang['listing']
    ),
    'tell_friend' => array(
    'key' => 'tell_friend',
    'name' => $lang['tell_friend']
    )
    );

    if ($page_info['Listing_details_inactive'] || !$config['tell_a_friend_tab']) {
    unset($tabs['tell_friend']);
    I can add in the video option between listing and tell a friend and it works, but it does not blank out if there is no video, I can see there is an if statement for tell a friend but there is no if statement for video ?

    how would one write and place that bit of code ? please

  7. #7
    Hello Pete,

    Since version 4.4 and later the Video tab doesn't exist. Now videos shows together with photos in gallery.
    Viktor,
    Flynax technical department,
    Best wishes.

  8. #8
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028
    Quote Originally Posted by Viktor View Post
    Hello Pete,

    Since version 4.4 and later the Video tab doesn't exist. Now videos shows together with photos in gallery.
    I am confused Viktor as the video tab does display and it is not joined with images, will do a quick screen cast to show you and am using 4.5.2



    edit, turn screen cast volume down as it has static sound / sorry

    it would be nice if it did show in the picture tab and if I could assign it as the the primary picture like in images but I do not think that will happen for a while yet
    Last edited by Pete Young; August 31, 2017 at 02:43 AM.

  9. #9
    Hello Pete,

    Oh yes for the template: general simple tab: video still exist. I have moved video tab to 2-nd position. Please check on your site.
    Viktor,
    Flynax technical department,
    Best wishes.

  10. #10
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028
    Thank You Viktor

+ Reply to Thread