Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Can you not put <script> in category descriptions???

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-29-2010, 05:20 PM
 
FMF FMF is offline
 

Advanced Member
  
Join Date: Apr 2010
Posts: 77
 

Default Can you not put <script> in category descriptions???

I am trying to put my Adsense for Search code in one of my category descriptions
looks like this:
HTML Code:
<form action="http://farmmanualsfast.com/Search1" id="cse-search-box"> <div> <input type="hidden" name="cx" value="partner-pub-7968851057197054:xks3sm-p654" /> <input type="hidden" name="cof" value="FORID:11" /> <input type="hidden" name="ie" value="ISO-8859-1" /> <input type="text" name="q" size="31" /> <input type="submit" name="sa" value="Search" /> </div> </form> <script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&amp;lang=en"></script>

For some reason it's not working every time I try to save it the page reload and deletes the whole description. The code works for static pages, so I'm not sure why it wouldn't work for category's, it uses the same HTML editor. I have tried Chrome and Firefox, and tried the other HTML editors nothing works.

Any advice?

Thanks,
Tyler
__________________
X-Cart GoldPlus: 4.6.4
reBOOT Template
CDSEO Pro 2.0
Total Server Solutions Hosting
Reply With Quote
  #2  
Old 06-30-2010, 06:14 AM
 
geckoday geckoday is offline
 

X-Wizard
  
Join Date: Aug 2005
Posts: 1,073
 

Default Re: Can you not put <script> in category descriptions???

No, the X-Cart code doesn't allow <script> tags in category descriptions. You can change that by adding:

define('USE_TRUSTED_SCRIPT_VARS',1);

at the beginning of admin/category_modify.php
__________________
Manuka Bay Company
X-Cart Version 4.0.19 [Linux]

UGG Boots and other fine sheepskin products
http://www.snowriver.com
Reply With Quote
  #3  
Old 06-30-2010, 07:02 AM
 
FMF FMF is offline
 

Advanced Member
  
Join Date: Apr 2010
Posts: 77
 

Default Re: Can you not put <script> in category descriptions???

Thank you geckoday, exactly what I was looking for.
__________________
X-Cart GoldPlus: 4.6.4
reBOOT Template
CDSEO Pro 2.0
Total Server Solutions Hosting
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:44 AM.

   

 
X-Cart forums © 2001-2020