Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

How to Change Order of Affiliate Links and Banners?

by

Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate General Questions › How to Change Order of Affiliate Links and Banners?

Tagged: Change Order of Ad Banners, Manage Ads

  • This topic has 5 replies, 3 voices, and was last updated 13 years, 9 months ago by btm.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • March 18, 2011 at 5:17 pm #2986
    markluchauer
    Member

    Is there any way to organize the ad banners/links so that they appear in a specific order for the user?

    As of now, when I create a new ad banner/link it shows up at the top of the list when the user looks at the Ads page.

    Even though I am creating new ad banners, I would like my most popular ad banners to remain at the top of the list when the user views the ad banners rather than the most recent ad banners that were created.

    Thank you for your help with this.

    March 18, 2011 at 6:22 pm #30382
    markluchauer
    Member

    I just realized that it sorts the banners alphabetically. I am still wondering if there is a way to sort these by “most used” or “most popular” or sort by ID #.

    I guess I could just put the number 1, 2, 3 etc. in the title of the banner. :)

    March 19, 2011 at 1:01 am #30383
    amin007
    Participant

    Numbering the banners is an easy way to control the sort order. You can also change the code to sort it by ID.

    August 3, 2011 at 6:10 pm #30384
    btm
    Member

    I am trying to do the same thing with creatives. Can someone tell me how to either renumber the creatives or change the code to sort by ID number? Right now they are showing with the highest number first. I would like to reverse this.

    Thank you.

    August 4, 2011 at 1:05 am #30385
    amin007
    Participant

    Open the “banners_menu.php” file from the affiliate plugin and search for the following line of code:

    $wp_banners_db = $wpdb->get_results("SELECT * FROM $banners_table_name ORDER BY number DESC", OBJECT);

    Once you find it change it with the following and that should do it:

    $wp_banners_db = $wpdb->get_results("SELECT * FROM $banners_table_name ORDER BY number ASC", OBJECT);

    There will be two occurrences of that.

    August 4, 2011 at 1:32 am #30386
    btm
    Member

    Thank you. Since I posted that I ended up adding some creatives which are now out of order.

    Is there a way to dictate the specific order that they appear or to change the number assigned to a creative?

    Thanks

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ