close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

image re-ordering

Thread began 2/19/2019 6:33 am by Jamie | Last modified 2/20/2019 12:38 pm by Ray Borduin | 1109 views | 8 replies |

Jamie

image re-ordering

Hey Ray

On a gallery results page (attached) have got the sort order but if I want to re-order the images it doesnt put them in the right order.

So, for example in this http://prntscr.com/mn7jfr if I re-order the 3 images to 1, 2 and 3 respectively then click update, the order then looks like this http://prntscr.com/mn7k4n

Not sure what is going on?

Also, on the insert page (also attached), how would I get the inserted image to go to the top of the results list automatically?

Thanks

Jamie

Sign in to reply to this post

Ray BorduinWebAssist

I'm going to have to debug this live. Can I get a url and FTP access? I'm not spotting the problem and I need to actively debug it if I'm going to figure out where the logic breaks down.

Sign in to reply to this post
Did this help? Tips are appreciated...

Jamie

Sure see PM

Sign in to reply to this post

Ray BorduinWebAssist

Your cmp() function appeared over-complicated. I've updated it and I think it works properly now.

Sign in to reply to this post
Did this help? Tips are appreciated...

Jamie

Thanks Ray but if you set an image to be put in position 1, it gets added to position 2. I get that you probably have to use 0 to achieve that but is there a more user friendly way for a client just to use 1 for position 1?

Sign in to reply to this post

Ray BorduinWebAssist

I've implemented drag-drop for re-ordering on that page instead of entering order numbers. Numbers are confusing because if two images have the same order specified it won't know which is first.

Sign in to reply to this post
Did this help? Tips are appreciated...

Jamie

cheers Ray

Have tried implementing this on an older site and have got all the actions working up to the point where when moved it sshould automatically update the db - this last bit isnt working. Have attached the page

cheers

Sign in to reply to this post

Ray BorduinWebAssist

This looks correct to me. I'd have to debug it live to see where it is going wrong... actually I think I spotted it... your page doesn't have the queryobj.php include file on it.

Sign in to reply to this post
Did this help? Tips are appreciated...

Jamie

got it...thanks again :)

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...