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

Newsletter subscription form not working

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-30-2006, 01:55 PM
 
fractalspin fractalspin is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 72
 

Default Newsletter subscription form not working

I have this code in the skin1/main/home.tpl file:

Code:
{if $usertype eq "C"} <INPUT type="text" name="newsemail" size="33" value="E-mail:" onFocus="javascript: if(document.subscribeform.newsemail.value=='E-mail:') {literal}{document.subscribeform.newsemail.value='';}{/literal}" class="InputEmail"> [{$lng.lbl_subscribe}] {else} {$lng.lbl_your_email} <INPUT type="text" name="newsemail" size="16"> {include file="buttons/subscribe_menu.tpl"} {/if}

But whenever anyone enters their email and hits "subscribe" it goes to an "access denied" error page.

here's the weirdness (middle of the page on the left column)
http://www.fractalspin.com/x/index.php

Any clue on how to set up a subscription field? There's only one newsletter called "fractalspin"

thanks!
-liz
__________________
http://www.fractalspin.com
nerdy jewelry, geekcessories, bags, tshirts and other neat stuff

Xcart Version: 4.0.17, PHP: 4.3.11, MySQL server: 4.1.13-standard-log
Reply With Quote
  #2  
Old 07-31-2006, 01:27 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default

Hi

Presuming that you have set the news as "subscibable" within news managment, the error is probably a fault in your database.

Check, using phpmyadmin, that the "is_news_subscribeable" flag is not empty.

Also, please update your signature - you say you are on 4.0.14 - but you actually are using v17. Each version is different, has different bugs and problems - thus different fixes and answers.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #3  
Old 07-31-2006, 08:17 AM
 
fractalspin fractalspin is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 72
 

Default

Thanks--I changed my sig.

In which table would I find this flag?

-liz
__________________
http://www.fractalspin.com
nerdy jewelry, geekcessories, bags, tshirts and other neat stuff

Xcart Version: 4.0.17, PHP: 4.3.11, MySQL server: 4.1.13-standard-log
Reply With Quote
  #4  
Old 07-31-2006, 10:09 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default

Check in your newslists table that for your message Subscribe is set to Y.

By the way, still saying 4.0.14!!
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #5  
Old 08-01-2006, 06:38 AM
 
fractalspin fractalspin is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 72
 

Default

Changed my sig--it needed a password before and I missed that.

Looks like it's subscribable within the DB:

listid name descr show_as_news avail subscribe
1 Fractalspin! News, updates, new products & special... N Y Y
__________________
http://www.fractalspin.com
nerdy jewelry, geekcessories, bags, tshirts and other neat stuff

Xcart Version: 4.0.17, PHP: 4.3.11, MySQL server: 4.1.13-standard-log
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 10:17 PM.

   

 
X-Cart forums © 2001-2020