Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how to disable tell_a_friend.php ?


pete2007

Recommended Posts

Which version of osC do you use Peter?

Also you can that to only accept mail from registeed customers and not just anyone, do this via admin >> my store >>

Nic

 

I think its osc 2.2 but not sure.

 

I am unable to access my admin as my host has temperately suspended my account.

 

Can I do anything from my host account files?

Link to comment
Share on other sites

If you're using version 2.2

 

Go to admin >> configure "Allow Guest to tell a friend" to false

 

Check your catalog >> includes >> column_right.php

 

For

 

include(DIR_WS_BOXES . 'tell_a_friend.php');

 

Change to

/* include(DIR_WS_BOXES . 'tell_a_friend.php'); */

 

I would also rename catalog/tell_a_friend.php to something like tell_a_friend.phpXX .

Link to comment
Share on other sites

its a personal choice as to totally remove the tell a friend box or not, it depends on how often it is used, but i would say that Don's second suggestion would be the first course of action after you set the Allow guest to tell a friend to false in admin, you can do both via your CPanel, the file change can be done via your cpanel file manager, the change form true to false you can do via your phpmy admin. run this in the SQL window

update `configuration` set `ALLOW_GUEST_TO_TELL_A_FRIEND`='False'

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Link to comment
Share on other sites

I'm not sure what you mean remove the buttons.

 

There should be no buttons being disabled if it is commented out of the column_right.php.

 

Check your catalog >> includes >> column_right.php

 

For

 

include(DIR_WS_BOXES . 'tell_a_friend.php');

 

Change to

/* include(DIR_WS_BOXES . 'tell_a_friend.php'); */

Link to comment
Share on other sites

I'm not sure what you mean remove the buttons.

 

There should be no buttons being disabled if it is commented out of the column_right.php.

 

There is a tell a friend button displayed underneith every product in my shop

Link to comment
Share on other sites

Can you post your code for

 

catalog/includes/column_right.php ?

 

<?php
/*
 $Id: column_right.php,v 1.17 2003/06/09 22:06:41 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/
?>
<table border="0"cellspacing="0" cellpadding="0" class="box_width_right">
<tr><td><?php /*  echo tep_draw_separator('spacer.gif', '9', '1');  */ ?></td>
	<td width="100%">
		<table border="0" cellspacing="0" cellpadding="0">
			<tr><td></td></tr>
<?php

?>
		</table>
	</td>
</tr>
</table>

Link to comment
Share on other sites

In such case it will be difficult to help you, if you want to post a link to your site or pm a link I'll take a look. In most cases though troubleshooting a template is a crap shoot.

Link to comment
Share on other sites

  • 3 months later...

I am also having trouble with the tell-a-friend feature. I have it set that guests are not allowed to us this feature but now I have spammers signing up and registering accounts as customers and sending spam through the tell-a-friend feature.

 

Problem is, I cannot change my file directories, I do not have access to them nor do I understand this server stuff. The last person I used for IT is no longer around and things are not quite right.

 

This is what it says when I try to change the file:

error.gif Error: I can not write to this file. Please set the right user permissions on: /home/kbox/public_html/catalog/includes/languages/english/tell_a_friend.php

 

I get teh same thing on files in both the File Manager and Define Languages.

Link to comment
Share on other sites

Set up FTP access or use the text editor in your cPanel.

 

And posting an image in a password protected folder does no one any good at all as the only person who can see it is you...

huh.png

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...