Webmastersite.net
Register Log In

Link sponsorship not working
Unless the link has a URL

Comments on Link sponsorship not working

mrowton
Forum Regular

Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan

Total Topics: 57
Total Comments: 185
mrowton
Posted Feb 21, 2005 - 11:02 PM:

I'm doing a classified template set. (Which I'll make available to the community after Paul reviews)

1. A user submits a link with no URL
2. User sees option to sponsor/move to top
3. User clicks the sponor link (link.php?action=sponsor&id=x) and is taken to link details page
4. If you edit the link to provide a URL, then the everything works groovey

There are ugly workarounds non-php people like me can do to get around this, (input hidden URL field with www.example.com) And this of course won't be an issue for 99.99999999% of people.

But it will make the classifieds templates a little nicer if the URL isn't needed for sponsorship.

Thank ya

Mitchell
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 22, 2005 - 1:06 AM:

  if ($thelink->url == '') $action = 'detail'; 
needs to change to
  if ($thelink->url == '' && $action != 'sponsor') $action = 'detail'; 
in link.php. Will upload the change sometime in the next few days.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.