Forums / Templates, Stylesheets, Page Layout / New template and Banners wont render...

New template and Banners wont render...

Locked

Views: 1,009

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
21 Oct 2010, 1:18 AM
#1
flex67 avatar

flex67

New Zenner

Join Date:
Sep 2010
Location:
Central FL
Posts:
26
Plugin Contributions:
0

New template and Banners wont render...

Hello Everyone,

I started a new site with this the avigon template,
and when I enter a new banner I get the html code showing up
instead of the banner image??

So if you happen to use this template can you aslo point me in the right direction, I would like to edit the sidebox header text can't seem to find the right file yet....:blink:

http://www.flex1productions.org/artstore/

Thanks,

Hector Felix Jr.

21 Oct 2010, 2:38 AM
#3
flex67 avatar

flex67

New Zenner

Join Date:
Sep 2010
Location:
Central FL
Posts:
26
Plugin Contributions:
0

Re: New template and Banners wont render...

okay I went ahead and created the file;

/admin/includes/extra_configures/extra_white_list.php

and added this code to it;

<?php $global_xss_whitelist = isset($global_xss_whitelist) ? $global_xss_whitelist : array(); $my_whitelist = array('file_contents', 'banners_html_text', 'pages_title', 'message_html', 'manufacturers_name', 'symbol_left', 'symbol_right', 'query_string'); $global_xss_whitelist = array_merge($my_whitelist, $global_xss_whitelist); no change still getting html code displayed on front page <http://flex1productions.org/artstore/>

Hector Felix Jr.

21 Oct 2010, 3:00 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: New template and Banners wont render...

Could you now edit your Banners and save them and see if the changes happen? :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

21 Oct 2010, 3:13 AM
#5
flex67 avatar

flex67

New Zenner

Join Date:
Sep 2010
Location:
Central FL
Posts:
26
Plugin Contributions:
0

Re: New template and Banners wont render...

Hey Ajeh

just went ahead and added a completly new banner still no dice?..

Hector Felix Jr.

21 Oct 2010, 3:18 AM
#6
flex67 avatar

flex67

New Zenner

Join Date:
Sep 2010
Location:
Central FL
Posts:
26
Plugin Contributions:
0

Re: New template and Banners wont render...

should i be adding this code or file to these pages as well??

Define Page , Banner HTML, EZPage Title and Send Email

Hector Felix Jr.

21 Oct 2010, 2:36 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: New template and Banners wont render...

You should have made the extra_white_list.php file and loaded it to the server ...

Go to the Tools ... Developers Tool Kit ...

and do a search for:
$my_whitelist

and see if you have the file:
/admin/includes/extra_configures/extra_white_list.php

on the list that shows up ...

showing:

$my_whitelist = array('file_contents', 'banners_html_text', 'pages_title', 'message_html', 'manufacturers_name', 'symbol_left', 'symbol_right', 'query_string');

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

21 Oct 2010, 6:55 PM
#8
flex67 avatar

flex67

New Zenner

Join Date:
Sep 2010
Location:
Central FL
Posts:
26
Plugin Contributions:
0

Re: New template and Banners wont render...

Okay i did a search for ($my_whitelist) and this is what i found,

/home/flexpro1/public_html/flex1productions.org/store/zc_admin/includes/init_includes/init_sanitize.php

Line #25 : * $my_whitelist = array('some_field_name');

so let me get this straight, create the file: extra_white_list.php file and add this code to it. Should I create a folder for it or add to an existing folder on the server??

<?php $global_xss_whitelist = isset($global_xss_whitelist) ? $global_xss_whitelist : array(); $my_whitelist = array('file_contents', 'banners_html_text', 'pages_title', 'message_html', 'manufacturers_name', 'symbol_left', 'symbol_right', 'query_string'); $global_xss_whitelist = array_merge($my_whitelist, $global_xss_whitelist); Buy the way thanks for your help, I also went with another template dont want to begin editing until I can get the banners up and running........ <http://flex1productions.org/store>

Hector Felix Jr.

21 Oct 2010, 7:18 PM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: New template and Banners wont render...

You make the file:
extra_white_list.php

and follow the instructions in post #52 for what the file should contain and load it, via FTP, to:
/admin/includes/extra_configures/extra_white_list.php

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

21 Oct 2010, 7:35 PM
#10
flex67 avatar

flex67

New Zenner

Join Date:
Sep 2010
Location:
Central FL
Posts:
26
Plugin Contributions:
0

Re: New template and Banners wont render...

i have followed the instructions and creteded the file with the code in /admin/includes/extra_configures still having the same problem html code showing instead of banner....

Hector Felix Jr.

21 Oct 2010, 10:37 PM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: New template and Banners wont render...

after you loaded the file:
/admin/includes/extra_configures/extra_white_list.php

to your server ... did you then edit the banner in the Banner Manager and save it?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

21 Oct 2010, 10:41 PM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: New template and Banners wont render...

NOTE: I take your broken code for the banner and add it to my site with the whitelist file missing ... it is broke ...

I add the whitelist file, and edit the banner and save it ... and it is fixed ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

22 Oct 2010, 7:10 PM
#13
flex67 avatar

flex67

New Zenner

Join Date:
Sep 2010
Location:
Central FL
Posts:
26
Plugin Contributions:
0

Re: New template and Banners wont render...

Hello Every still Need Help With Patch

I went ahead and reloaded the same template with this code already in extra_configures/extra_white_list.php

<?php $global_xss_whitelist = isset($global_xss_whitelist) ? $global_xss_whitelist : array(); $my_whitelist = array('file_contents', 'banners_html_text', 'pages_title', 'message_html', 'manufacturers_name', 'symbol_left', 'symbol_right', 'query_string'); $global_xss_whitelist = array_merge($my_whitelist, $global_xss_whitelist); still getting html code on site.:frusty: <http://flex1productions.org/store>

Hector Felix Jr.

22 Oct 2010, 10:41 PM
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: New template and Banners wont render...

You made a brand new file:
/admin/includes/extra_configures/extra_white_list.php

You edited it and put inside it the code:

<?php
$global_xss_whitelist = isset($global_xss_whitelist) ? $global_xss_whitelist : array();
$my_whitelist  = array('file_contents', 'banners_html_text', 'pages_title', 'message_html', 'manufacturers_name', 'symbol_left', 'symbol_right', 'query_string');
$global_xss_whitelist = array_merge($my_whitelist, $global_xss_whitelist);

You then loaded this file:
extra_white_list.php

to your server with FTP and you see the file on the server in the directory:
/admin/includes/extra_configures

and now, if you go to the Tools ... Developers Tool Kit ... and do a search in the bottom input box for:
$my_whitelist

you see a file come up that is in:
/admin/includes/extra_configures/extra_white_list.php

and you go to your Banner Manager in the Tools ... Banner Manager ... and edit each Banner and click the Update button ...

Did you follow each of these steps? :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

22 Oct 2010, 11:02 PM
#15
flex67 avatar

flex67

New Zenner

Join Date:
Sep 2010
Location:
Central FL
Posts:
26
Plugin Contributions:
0

Re: New template and Banners wont render...

Hey Ajeh
went back and re-did everything and "wa la magic" thanks for your patience, flex67:flex:

Hector Felix Jr.

22 Oct 2010, 11:45 PM
#16
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: New template and Banners wont render...

Thanks for the update that adding the whitelist correctly worked correctly for you ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!