Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12369
Latest: r0sem4rie
New This Month: 5
New This Week: 0
New Today: 0
Stats
Total Posts: 39810
Total Topics: 7016
Most Online Today: 139
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 27
Total: 27

Author Topic: Correct behaviour for Previous- and Next -links  (Read 5312 times)

0 Members and 1 Guest are viewing this topic.

Offline Scy

  • Newbie
  • *
  • Posts: 17
    • View Profile
Correct behaviour for Previous- and Next -links
« on: September 06, 2007, 03:29:54 am »
I guess this could be as well on the Feature Requests, but I consider this more like bug that should be fixed, so I'll posted it here.

When user is browsing images in certain categories and he/she reaches the last picture in this category, there will be still "Next" -link available, allthough there isn't any next picture.

By clickin this link user gets back to same last picture. I've noticed this causes some confusion and some user's even seem to think that there's some kind of error in the gallery.

So do you have any fix for this that if the picture is the last one in it's category there would be no Next-link (and vice versa no Previous -link in the very first picture)?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14919
    • View Profile
Re: Correct behaviour for Previous- and Next -links
« Reply #1 on: September 06, 2007, 07:14:16 am »
Could be done just would require more sql queries.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Scy

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Correct behaviour for Previous- and Next -links
« Reply #2 on: September 07, 2007, 12:26:37 am »
Quote
Could be done just would require more sql queries.

Would you be so kind to give an example what kind of queries or modification this would require?

The thing is annoying because it also manipulates the view statistis to be incorrect: When user reaches the last picture in the folder and happens to click next several times, every page load is counted as a new view.

I think this also should be prevented by setting a cookie per picture - so that statistics wouldn't be manipulated so easily. Is it possible to use similar cookie with this just like when user gives a star rating to pic - and how?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14919
    • View Profile
Re: Correct behaviour for Previous- and Next -links
« Reply #3 on: September 07, 2007, 07:14:40 am »
It would probably add two queires one to check if the picture is the very first in the category and another to check if the picture is the very last. If it meets either case then it would the previous/next link.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Scy

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Correct behaviour for Previous- and Next -links
« Reply #4 on: September 24, 2007, 01:31:08 am »
Would you please consider sharing an living example of what lines to add and where to achieve this kind of feature?  ::)

To be honest, this is very defunctional clich and should be corrected also in the future versions.

Considering this, it also seems that picture views count doesn't use cookies like star rating, and user can manipulate the views by reloading page. This also causes that pictures in gallery section that are the last will get always double or even triple view amounts because of incorrect behaviour of next-link. Could this also be implemented, so that user would be able to add only a one view to picture (like setting cookie that would last, to say, 15 minutes..)
« Last Edit: September 24, 2007, 01:34:35 am by Scy »

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
3202 Views
Last post July 23, 2007, 02:33:02 am
by ziissi
5 Replies
4296 Views
Last post July 31, 2009, 08:03:01 am
by Rafferty
5 Replies
6089 Views
Last post April 02, 2011, 12:34:51 pm
by neforum
2 Replies
2063 Views
Last post September 17, 2011, 06:05:10 pm
by VividViews
9 Replies
1683 Views
Last post February 21, 2017, 12:37:13 am
by SMFHacks

+- Recent Topics

How to AVOID SEO Hit when Implementing PrettyURLs by SMFHacks
September 12, 2019, 08:50:42 pm

theme by SMFHacks
September 12, 2019, 07:10:51 am

Picture Edit by SMFHacks
August 27, 2019, 11:52:06 am

Getting an error while installing SMF Gallery Pro by SMFHacks
August 18, 2019, 06:54:37 pm

Hashtag Mod Install Error by SMFHacks
August 15, 2019, 08:17:45 am

Rotating Image URLs by SMFHacks
August 05, 2019, 04:26:57 pm

[Mod]Block Proxy VPN On Registration by SMFHacks
August 01, 2019, 10:42:37 pm

[Mod]Nofollow Signature Links by SMFHacks
July 30, 2019, 11:52:28 am

Thinking of getting Ad Seller Pro as well by ajac63
July 28, 2019, 04:46:34 am

Just some questions about Ad Management mod by ajac63
July 26, 2019, 12:12:26 pm

Powered by EzPortal