Post by rph » Fri Mar 30, 2012 6:17 am

There's also Banners Plus which adds sort order to banners so you don't have to rename your images every time you want to change their order. It also has other features like making banners language specific and individual banner image disabling.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by tophat » Thu Apr 05, 2012 10:21 pm

amazing! Thanks for the vqmod fix for ordering by title. Why this isn't as default in opencart is strange.

Webmaster for: http://www.getlaidbeds.co.uk + www.mattressmoose.co.uk + www.pixellounge.co.uk


User avatar
Active Member

Posts

Joined
Fri Nov 25, 2011 8:31 am


Post by Meshach » Sat May 26, 2012 4:14 am

dpfavand wrote: in

/catalog/model/design/banner.php

Code: Select all

<?php
class ModelDesignBanner extends Model {	
	public function getBanner($banner_id) {
		$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "banner_image bi LEFT JOIN " . DB_PREFIX . "banner_image_description bid ON (bi.banner_image_id  = bid.banner_image_id) WHERE bi.banner_id = '" . (int)$banner_id . "' AND bid.language_id = '" . (int)$this->config->get('config_language_id') . "' ORDER BY image ASC");
		
		return $query->rows;
	}
}
?>
I added the ORDER BY image ASC at the end of the long line.
Thanks!

User avatar
Newbie

Posts

Joined
Thu May 24, 2012 5:20 am


Post by glennjamo » Wed Jul 04, 2012 3:58 pm

Worked like a charm!

Thanks a lot

Newbie

Posts

Joined
Fri Apr 13, 2012 7:40 pm

Post by fpdesign » Thu Aug 23, 2012 1:18 am

There's also an extension that provides drag and drop ordering of banner images. It also adds in a new image upload manager. You can get it here: http://www.opencart.com/index.php?route ... on_id=6229.

DakotaQ Internet Services
"We Build Websites that Do Something!"
OpenCart Extensions, Installation Support, and Customization
Multi Image Management for 1.5.2+ and 1.5.3.1
Multi Image Management for 1.5.0+


New member

Posts

Joined
Thu May 10, 2012 8:36 pm


Post by slingeraap » Wed Oct 10, 2012 7:07 am

Web Studio West wrote:To sort by banner title, I modified the code above posted by swazemarket by changing "ORDER BY image ASC" to "ORDER BY title ASC". I also noticed if banner titles are only numeric they don't sort properly. I solved this by naming banner titles: AD1, AD2, AD3, etc. and it works like a charm. Titles that were just numbers (like: 10, 20, 30) didn't work.
That's normal with numbers. 11 comes before 2, alphabetically. So AD11 will also come before AD2. :)

Just use 001name, 002name, 003name...

New member

Posts

Joined
Sun Dec 05, 2010 7:02 pm

Post by eleven28 » Mon Dec 10, 2012 8:11 am

Woot! Thanks for the vqmod - made things so much easier. No more random slideshow orders for me!
v 1.5.3.1

User avatar
Newbie

Posts

Joined
Fri Jan 27, 2012 6:41 am
Location - Australia

Post by tgulley » Mon Feb 25, 2013 9:58 am

tobychin wrote:Changed "image" to "title" and now I don't have to rename images, just edit the title for re-arranging.
Thank you, much appreciated!

Newbie

Posts

Joined
Tue Sep 25, 2012 2:56 am

Post by hebiki » Sat Mar 02, 2013 5:00 am

VQmod worked great.

just a question.. we can order it by title.....where is the "title" actually displayed when viewed on a website? contemplating prefixing all banners with letters to make it easier to arrange/rearrange.

ex:

A - Banner 1
B - Banner 2
C - Banner 3

then later on:

A - Banner 2
B - Banner 3
C - Banner 1

thoughts? suggestions?

New member

Posts

Joined
Sun Oct 10, 2010 4:00 pm

Post by jsw » Wed Jun 12, 2013 11:53 pm

Thanks for the question and answers everyone!

New to OC and just ran into the "banner slideshow image order issue". Found this thread and the vQmod solution (using title) works well for me. Thought to register right away to post this THANK YOU!!

jsw
Newbie

Posts

Joined
Wed Jun 12, 2013 11:42 pm
Location - Canada

Post by emilmoldovan » Wed Jul 10, 2013 2:29 am

This worked for me too, thank you all the guys that solved it!

New member

Posts

Joined
Mon Oct 29, 2012 2:31 am

Post by sari622 » Sun Aug 25, 2013 11:52 pm

Worked like a charm @Web Studio West! The sort by title change did the trick.

Newbie

Posts

Joined
Wed Aug 14, 2013 8:42 am

Post by cosmosolano » Tue Dec 17, 2013 12:59 am

I had all but given up on using the slideshow module, you saved the day!
this worked perfectly for me and makes a HUGE difference in what we want to do with the site.
thanks thanks thanks!
Cosmo

Newbie

Posts

Joined
Tue Jul 30, 2013 8:28 am

Post by nuski » Sun Mar 23, 2014 2:14 pm

mwd wrote:This worked for me to.
Thanks for the code dpfavand!

I made it into a vqmod so that you don't have to change the code again after an upgrade.


Hi, thanks for the mod, it works fine with my v.1.5.6.1 :)

Newbie

Posts

Joined
Tue Mar 11, 2014 12:37 pm

Post by jamiefoxx » Tue Sep 16, 2014 4:02 pm

Your post looks like wonderful. While develop website we maybe face this kind of major banner slide issues. You effective information is enough to solve this problem. Thanks for giving us.

banner design services | responsive web design services


Newbie

Posts

Joined
Tue Sep 16, 2014 3:42 pm

Post by Agathon » Fri Nov 07, 2014 10:57 pm

nuski wrote:
mwd wrote:This worked for me to.
Thanks for the code dpfavand!

I made it into a vqmod so that you don't have to change the code again after an upgrade.


Hi, thanks for the mod, it works fine with my v.1.5.6.1 :)

I confirm, it works also for 1.5.6 Opencart version.Thanks a lot.

User avatar
New member

Posts

Joined
Thu Jan 23, 2014 6:45 pm
Who is online

Users browsing this forum: No registered users and 1 guest