Click here to Renew or Upgrade Shows On Some Ads And Not On Others

Discussion in 'Technical Support' started by quickregister, Jun 16, 2011.

  1. quickregister New Member

    I have the latest version and I am using the default template.

    The link "Click here to Renew or Upgrade"
    or just "Upgrade"
    shows up on some ads in some accounts and
    not in other accounts when I click on browse listings.

    I have customers who want to upgrade and get featured
    but have no link to do so.

    When I look in my admin account on my test ads the links are there.

    When I create a new account with new test ads there are no links
    to upgrade when I log into my account and click browse listings.

    So customers cannot upgrade their free listings.

    I have looked on the forum and I have not found any answers to this. Please advise.

    Thank you,

    Matt



    What version of 68 Classifieds are you running?
    Example: V4.1.6 Designer

    What template are you using?


    Please describe in detail the issue you are having:
  2. quickregister New Member

    Shows only in admin account

    The click here to renew link only shows in admin account. I cannot figure out how to get it to show to registered users.
  3. Mike-N-Tosh Developer & Moderator

    Do you actually allow upgrades for the ads packages that are not showing "upgrade"?

    Each Ad Listing Package that you create has the option of whether you "Allow ..." Featured, Highlighted and Bold. If these are not checked for the ad package then of course it wouldn't be offered.

    When you are in the admin, you can do anything with a listing, because you ARE the admin, so OF COURSE these options show.
  4. Mike-N-Tosh Developer & Moderator

    Again, do you "Allow" ad renewals?Administration/Settings/Checkout settings.
  5. quickregister New Member

    Ad Renewal Set To Yes

    Ad renewals are set to Yes in the above setting and always have been.

    I even took another one of my accounts and upgraded in to administrator, gave it all the same priviledges and the ads there do NOT show the renewal links under expiration. The only one that shows the click to renew link are the ads in the original admin account.

    And yes the package allows upgrades, highlight and bold. If they just set up a new ad they can order all these options. They simply have no way to renew their ads. The only way to renew is to set up a completely new ad. I have it set to send an email 7 days before to ask them to renew. I am not sure if that affects the click here to renew link under expiration or not.

    I am really stumped here.

    Any other ideas?

    Thanks

    Matt
  6. John Snyder Staff

    Submit a support ticket with the following information:

    FTP login
    68 Classifieds Installation Admin username/password

    And I'll take a look and see what's going on.
  7. John Snyder Staff

    For anyone else this is the solution for this problem and will be included in the next release:

    includes/classes/kernel/Listings.php line:688

    find:
    PHP:
    if (isset($_SESSION['uid']) and $_SESSION['uid'] != and $_SESSION['uid'] == $userid)
    {
        if (
    $_SESSION['userlevel'] != $row['pGroup'])
        {
            
    $row['renew_allowed'] = 'N';
        }
    }
    replace with:
    PHP:
    if (isset($_SESSION['uid']) AND $_SESSION['uid'] == $userid)
    {
        if (
    $_SESSION['userlevel'] != $row['pGroup'] AND $row['pGroup'] != 0)
        {
            
    $row['renew_allowed'] = 'N';
        }
    }
    If all usergroups are allowed, $row['pGroup'] = 0, if allowed for a specific usergroup was chosen it would have worked correctly as it would equal the individual usergroup id. Now it will skip the check if its allowed for all usergroups.

Share This Page