Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Tell a friend product/article name not showing


Guest

Recommended Posts

Posted

I'm having a little trouble with the tell a friend feature. I have Ultimate SEO URLs and Article Manager and I'm not sure which, if either, is causing the problem.

 

The problem being that if I'm logged in as a customer and I click tell a friend (either for a product or an article), it shows the products/article name at the top like:

 

Tell A Friend About 'This Products Name' or Tell A Friend About 'This Articles Name'.

 

But If I'm not logged in and click on tell a friend, it forces me to log in using SSL. After that I am redirected to the tell a friend page, but there is no product/atricle name. It shows up like:

 

Tell A Friend About ''

 

With no name what so ever. The only difference is that when I'm already logged in, the tell a friend page isn't SSL enrcypted. But if I just logged in and got redirected to the tell a friend page, it's still SSL encrypted. And the only other main difference which is causing the problem is that the "&" signs in the url appears as the "& amp;" HTML character.

 

// This one shows the name properly

http /catalog/tell_a_friend.php?to_email_address=bkilpatrick%40gmail.com&x=7&y=7&products_id=1353

 

// This one displays no name at all

https /catalog/[email protected]& amp;products_id=1353& amp;osCsid=##################

 

If I change the "& amp;" to "&" in the address bar for the https URL like:

 

https /catalog/[email protected]&products_id=1353&osCsid=##################

 

It will show the name properly. For some reason something is formatting the & to show at an HTML character instead. I search high and low for "& amp;" to see what could be causing this and found nothing.

 

If someone knows and could point out where this formating takes place I would greatly appreciate it. I had to but a space in the "& amp;" because the bb was formatting it as "&". Now if only I can get osc to do that ;P

 

TIA

Posted

In the admin configuration click on allow guest to tell a friend.

 

See if you allow anyone to do that spambots will abuse your formail and send email from your site and you can be held responsible for the spam because it is orginating from your server or hosting.

 

So I recommend keeping like it is but you can turn it on for anyone to tell a friend in the admin.

 

I'm having a little trouble with the tell a friend feature. I have Ultimate SEO URLs and Article Manager and I'm not sure which, if either, is causing the problem.

 

The problem being that if I'm logged in as a customer and I click tell a friend (either for a product or an article), it shows the products/article name at the top like:

 

Tell A Friend About 'This Products Name' or Tell A Friend About 'This Articles Name'.

 

But If I'm not logged in and click on tell a friend, it forces me to log in using SSL. After that I am redirected to the tell a friend page, but there is no product/atricle name. It shows up like:

 

Tell A Friend About ''

 

With no name what so ever. The only difference is that when I'm already logged in, the tell a friend page isn't SSL enrcypted. But if I just logged in and got redirected to the tell a friend page, it's still SSL encrypted. And the only other main difference which is causing the problem is that the "&" signs in the url appears as the "& amp;" HTML character.

 

// This one shows the name properly

http /catalog/tell_a_friend.php?to_email_address=bkilpatrick%40gmail.com&x=7&y=7&products_id=1353

 

// This one displays no name at all

https /catalog/[email protected]& amp;products_id=1353& amp;osCsid=##################

 

If I change the "& amp;" to "&" in the address bar for the https URL like:

 

https /catalog/[email protected]&products_id=1353&osCsid=##################

 

It will show the name properly. For some reason something is formatting the & to show at an HTML character instead. I search high and low for "& amp;" to see what could be causing this and found nothing.

 

If someone knows and could point out where this formating takes place I would greatly appreciate it. I had to but a space in the "& amp;" because the bb was formatting it as "&". Now if only I can get osc to do that ;P

 

TIA

Posted

I tried your suggestion and it works, thanks. It must something to do with the way the page is being directing using SSL. The only problem is like you said, now it can be used to spam without me knowing, that doesn't float well with me.

 

Maybe someone else knows what's causing this to happen only on SSL pages? So that I can limit it to registered users only.

 

Thanks for the tips!

Posted

Ok, I found it! Whoohoo!

 

In login.php, directly above the line "tep_redirect($origin_href);" I added:

 

$origin_href = str_replace('& amp;', '&', $origin_href);

 

But with no space in the "& amp;". This seems to have fixed it without any side effects. Now product/article names show up every time, SSL or no SSL.

 

PS: Does anyone know the reason for the "& amp;" in the login redirect url in the first place?

 

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...