Random "Buy Tickets" links are being ignored.

  • Problem
  • Updated 5 years ago
  • Solved
Not sure if this is a bug, but it seems that sometime the "Buy Tickets" links are simply being ignored. I've now tried endless combinations, link types, dates and date combinations. But certain links just won't show...

I had the suspicion that it is related to the fact that some of the shows are in the past. But as I am using the "Buy Tickets" link in an edited form for "More Info", the chronological position is not supposed to have an effect... But maybe it is something completely different.

Really need help as I'm getting slightly frustrated. Thanks.
Photo of nadworks

nadworks

  • 32 Posts
  • 0 Likes
  • frustrated

Posted 5 years ago

  • 1
Photo of nadworks

nadworks

  • 32 Posts
  • 0 Likes
It seems the problem is indeed the fact that ticket links are removed/hidden once the show is in the past. Now, that's something I would love to de-activate, because the links are (in my case) "More info" links, which should stay where they are, regardless of the date.

I found the expression in "gigpress.php" (approx. line 127), which I suspect is responsible for this behaviour. But I'm not confident enough to fiddle with it...

Any options?
Photo of Derek

Derek, Developer

  • 1986 Posts
  • 102 Likes
You can remove the following from line 231 of gigpress.php:

&& $show->show_expire >= GIGPRESS_NOW

Keep in mind that this change will get wiped out whenever GigPress is updated though.
Photo of Derek

Derek, Developer

  • 1986 Posts
  • 102 Likes
Going to mark this as not a problem, as it's intentional behaviour.
Photo of nadworks

nadworks

  • 32 Posts
  • 0 Likes
Thanks, Derek. That's great help! I'll remember to re-edit after the next upgrade.

GigPress is a fantastic tool, btw. You're a star!
Photo of Derek

Derek, Developer

  • 1986 Posts
  • 101 Likes
Thanks!
Photo of nadworks

nadworks

  • 32 Posts
  • 0 Likes
Still some strange behaviour (but not related to the expiration issue):

Whenever I edit an existing entry (i.e. I add something to the gig info or, say, move the date by just one day), the "ticket" link disappears in the final listing, even though it wasn't touched during the changes and remained visible in the form field.

I found that the only way to get it back was to simply create a brand new entry under the same date with the same information and then delete the old one afterwards. Weird, hu?

Any idea?
Photo of Derek

Derek, Developer

  • 1986 Posts
  • 102 Likes
That is very odd. When you load up the gig after editing it, is the data for the ticket link still there?
Photo of nadworks

nadworks

  • 32 Posts
  • 0 Likes
The URL is always showing in the field where it was originally entered. That's why I'm so puzzled about its disappearance after saving the edits...

It's not on the "gig" list within the plugin's own listing, and it's not appearing on the actual web page which features the styled gig list.

Just in case you want to have a look: www.joelocke.com/appear.php
Photo of Derek

Derek, Developer

  • 1986 Posts
  • 102 Likes
Very very strange. Is this consistently reproducible? i.e. if you make a small edit to one of the new shows you create, does the same thing happen?
Photo of nadworks

nadworks

  • 32 Posts
  • 0 Likes
So far, yes.
I've just done a couple of random edits to some of the info content. Each time I do this, the "Buy Tickets" link (which is "more info" in my case) disappears.
Photo of Derek

Derek, Developer

  • 1986 Posts
  • 102 Likes
I can't replicate this. It looks like you've customized your shows-list.php template. Can you email it to me so I can test with that? derek@gigpress.com
Photo of Derek

Derek, Developer

  • 1986 Posts
  • 102 Likes
This was related to hacks that Nadja made to GigPress which broke the logic that populates the ticket link variable. Closing this one out.