Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Templates, Stylesheets, Page Layout / Editing the "Customer Authorization" page

Editing the "Customer Authorization" page

Locked

Started by shalesey on 12 May 2010, 8:18 AM · Views: 2,374

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
12 May 2010, 8:18 AM
#1
shalesey avatar

shalesey

New Zenner

Join Date:
Feb 2010
Posts:
58
Plugin Contributions:
0

Editing the "Customer Authorization" page

Guys

I have managed to edit the customer_authorization.php file to change the text on the customer authorization page (see below).

However I would also like to remove the continue button (as this serves no purpose when the account needs to be authorized, other than reloading the page) and remove the picture.

Could someone please also confirm if the sideboxes should be visable on this page if a customer needs to be authorized to browse?

I would like all the side boxes removing on this page as customers who are not authorized should not be able to see our products.

Any help appreciated.

Thanks

12 May 2010, 9:24 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Editing the "Customer Authorization" page

shalesey...

Please DO NOT re-post the same requests twice.
http://www.zen-cart.com/forum/showthread.php?t=154834

As i pointed out in your other thread, your site is being reported as SUSPICIOUS.

Advice to others... DO NOT follow the link shown. Ths site is reported as DANGEROUS.

shalesey... Fix this issue first.

20 years a Zencart User

12 May 2010, 9:29 AM
#3
shalesey avatar

shalesey

New Zenner

Join Date:
Feb 2010
Posts:
58
Plugin Contributions:
0

Re: Editing the "Customer Authorization" page

schoolboy:

shalesey...

Please DO NOT re-post the same requests twice.
http://www.zen-cart.com/forum/showthread.php?t=154834

As i pointed out in your other thread, your site is being reported as SUSPICIOUS.

Advice to others... DO NOT follow the link shown. Ths site is reported as DANGEROUS.

shalesey... Fix this issue first.

This is not the same request, it is a different one. Also see response to your last post. This site is not malicious. If you use IE it works fine. The phshing report in "mozilla fireforx" and only mozilla firefox has determined my site is malicious because code kept changing as I was browsing.

The reason this happened is because I was the one changing the code then checking it in firefox.

AS ALREADY POSTED IN ANOTHER THREAD, I AM CURRENTLY LOOKING INTO THIS MOZILLA PROBLEM THAT IS WIDELY DISCUSSED AS AN ISSUE ON THE INTERNET.

So unless you have something productive to add to my threads, please stop replying.

http://forums.mozillazine.org/viewtopic.php?f=7&t=722545

12 May 2010, 9:34 AM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Editing the "Customer Authorization" page

shalesey:

So unless you have something productive to add to my threads, please stop replying.

I get the report from my ANTI VIRUS software (as well as FF)...

If you do not address the issue (which is of great concern to ALL internet users), I will consider reporting this URL to the search engines!

Fix the obvious malware.

20 years a Zencart User

12 May 2010, 9:57 AM
#6
shalesey avatar

shalesey

New Zenner

Join Date:
Feb 2010
Posts:
58
Plugin Contributions:
0

Re: Editing the "Customer Authorization" page

More evidence that my site is not malware. Schoolboy I have reported your posts to the modrators of this forum as your posts are beyond unhelpful.

I understand and appreciate you are trying to protect people. But to mislead them into thinking my site is malware after you mis read a warning about my site being a phishing site is not acceptable.

12 May 2010, 10:00 AM
#7
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Editing the "Customer Authorization" page

Let's step back from this and look again.

IE is the only browser that I can find that allows this site to be viewed.

Firefox reports it as "Web Forgery"; Google Chrome as a "Suspected Phishing site"; and Opera as a potential fraud.

Why?Well I suspect nothing more sinister than that you're using a development URL and redirecting visitors immediately to the create account page where they're asked to enter personal information.

This is a classic phishing tactic. So is your site unsafe? I don't believe so. There is no evidence of malware. But I do understand why it appears dangerous to all but the least secure browser and to other security software.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

12 May 2010, 10:05 AM
#8
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Editing the "Customer Authorization" page

Thanks Kuroi

That explanation is helpful.

shalesey... My apologies for what now appears to have been an over-reaction on my part.

As a recent victim of online fraud (quite a serious one), I am very jittery about this subject.

20 years a Zencart User

12 May 2010, 10:12 AM
#9
shalesey avatar

shalesey

New Zenner

Join Date:
Feb 2010
Posts:
58
Plugin Contributions:
0

Re: Editing the "Customer Authorization" page

kuroi:

Let's step back from this and look again.

IE is the only browser that I can find that allows this site to be viewed.

Firefox reports it as "Web Forgery"; Google Chrome as a "Suspected Phishing site"; and Opera as a potential fraud.

Why?Well I suspect nothing more sinister than that you're using a development URL and redirecting visitors immediately to the create account page where they're asked to enter personal information.

This is a classic phishing tactic. So is your site unsafe? I don't believe so. There is no evidence of malware. But I do understand why it appears dangerous to all but the least secure browser and to other security software.

I've sent the form to google twice now advising the site is not a phishing site but they aren't the quickest at removing them.

I would really like to get my threads back on track now please.

12 May 2010, 10:29 AM
#10
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Editing the "Customer Authorization" page

To remove the button you would edit the template for that page.

To remove the sidebars, take a look at the comments in the header of the common/tpl_main_page.php template. There's a detailed explanation and examples in there.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

12 May 2010, 10:59 AM
#11
shalesey avatar

shalesey

New Zenner

Join Date:
Feb 2010
Posts:
58
Plugin Contributions:
0

Re: Editing the "Customer Authorization" page

kuroi:

To remove the button you would edit the template for that page.

To remove the sidebars, take a look at the comments in the header of the common/tpl_main_page.php template. There's a detailed explanation and examples in there.

Any ideas which template it is? As discussed there are no references in the customer_authorization.php file.

In terms of the sidboxes, just to be clear, I only want them removing from this page. They are meant to be on all the other pages of my site. It seems a bit strange to me that they would be shown on this page when the customer should not be able to view the site.

Any help appreciated.

I also looked at the detailed explanation you referred to, it doesn't really make any sense to me. I have never coded php in my life, if you could just give me a little explanation of how to remove the sidboxes from specific pages that would be greatly appreciated.

13 May 2010, 7:48 AM
#12
shalesey avatar

shalesey

New Zenner

Join Date:
Feb 2010
Posts:
58
Plugin Contributions:
0

Re: Editing the "Customer Authorization" page

Anybody got any ideas?

13 May 2010, 8:38 AM
#13
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Editing the "Customer Authorization" page

The page is the account status page, so it's the template for that page.

In respect of suppressing the sideboxes for that page. I'm afraid I can't think of a way to make it any clearer than the explanation and examples that you have already read.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

13 May 2010, 9:02 AM
#14
shalesey avatar

shalesey

New Zenner

Join Date:
Feb 2010
Posts:
58
Plugin Contributions:
0

Re: Editing the "Customer Authorization" page

kuroi:

The page is the account status page, so it's the template for that page.

In respect of suppressing the sideboxes for that page. I'm afraid I can't think of a way to make it any clearer than the explanation and examples that you have already read.

If i'm honest you haven't really helped me at all other than you said I need to find the template file (not even pointed me in the right direction) and I need to follow some instructions (no explanation of what these mean, even after I advised i'd never coded in php).

I appreciate you are trying to help but it's not really helping.

I don't even know what commenting out means.

I have however managed to find the template file and change the code for the sideboxes to below, however this made no change.

//if (CUSTOMERS_AUTHORIZATION_COLUMN_RIGHT_OFF == 'true') $flag_disable_right = true;
//if (CUSTOMERS_AUTHORIZATION_COLUMN_LEFT_OFF == 'true') $flag_disable_left = true;
//if (CUSTOMERS_AUTHORIZATION_FOOTER_OFF == 'true') $flag_disable_footer = true;
//if (CUSTOMERS_AUTHORIZATION_HEADER_OFF == 'true') $flag_disable_header = true;

Origional code : -

if (CUSTOMERS_AUTHORIZATION_COLUMN_RIGHT_OFF == 'true') $flag_disable_right = true;
if (CUSTOMERS_AUTHORIZATION_COLUMN_LEFT_OFF == 'true') $flag_disable_left = true;
if (CUSTOMERS_AUTHORIZATION_FOOTER_OFF == 'true') $flag_disable_footer = true;
if (CUSTOMERS_AUTHORIZATION_HEADER_OFF == 'true') $flag_disable_header = true;
13 May 2010, 9:30 AM
#15
shalesey avatar

shalesey

New Zenner

Join Date:
Feb 2010
Posts:
58
Plugin Contributions:
0

Re: Editing the "Customer Authorization" page

I managed to eventually do this myself by reading several other posts and working it out myself.

For anyone else who is stuck trying to remove sideboxes and not recieving help that would be considered helpful here is what I did.

Look for the specific page file you need. Found in the below path.

/root(catalog)/includes/modules/pages/customers_authorization(page you need)/header_php.php

I edited the following code : -

if (CUSTOMERS_AUTHORIZATION_COLUMN_RIGHT_OFF == 'true') $flag_disable_right = true;
if (CUSTOMERS_AUTHORIZATION_COLUMN_LEFT_OFF == 'true') $flag_disable_left = true;
if (CUSTOMERS_AUTHORIZATION_FOOTER_OFF == 'true') $flag_disable_footer = true;
if (CUSTOMERS_AUTHORIZATION_HEADER_OFF == 'true') $flag_disable_header = true;

To the following : -

//if (CUSTOMERS_AUTHORIZATION_COLUMN_RIGHT_OFF == 'true') 
$flag_disable_right = true;
//if (CUSTOMERS_AUTHORIZATION_COLUMN_LEFT_OFF == 'true') 
$flag_disable_left = true;
if (CUSTOMERS_AUTHORIZATION_FOOTER_OFF == 'true') $flag_disable_footer = true;
if (CUSTOMERS_AUTHORIZATION_HEADER_OFF == 'true') $flag_disable_header = true;
13 May 2010, 9:51 AM
#16
shalesey avatar

shalesey

New Zenner

Join Date:
Feb 2010
Posts:
58
Plugin Contributions:
0

Re: Editing the "Customer Authorization" page

I have now also worked out how to remove the button and the image on this page.

The button and image are controlled by the following file : -

/root(catalog)/includes/templates/template_default/templates/tpl_customers_authorization_default.php

The line that controls the button is (just delete it to remove the button) : -

<div class="buttonRow forward"><?php echo '<a href="' . zen_href_link(CUSTOMERS_AUTHORIZATION_FILENAME) . '">' . zen_image_button(BUTTON_IMAGE_CONTINUE, BUTTON_CONTINUE_ALT) . '</a>'; ?></div>

The line that controls the picture (just delete to remove) : -

<div id="customerAuthDefaultImage"><?php echo zen_image(DIR_WS_TEMPLATE_IMAGES . OTHER_IMAGE_CUSTOMERS_AUTHORIZATION, OTHER_CUSTOMERS_AUTHORIZATION_ALT); ?></div>

If you wish to not alter the base code then you would need to copy the file "tpl_customers_authorization_default.php" to the below and edit it there as an overide file : -

/root(catalog)/includes/templates/<YOUR TEMPLATE>/templates/tpl_customers_authorization_default.php