web design, England, Britain, UK, belgium
 
Ulti Clocks content

How to show correct modules on ccNewsletter thank you pages

GJC Web Design Joomla & VirtueMart how to, tips, tricks, coding examples, html, php, tutorial, 101, useful hints, help

A collection of help articles and coding examples for Joomla & Virtuemart

Belgium, VirtueMart & Joomla Web Design England UK Britain & Germany

Joomla, VirtueMart, how to, tips, tricks, coding examples, html, php, tutorial, 101, useful hints, help sand How to show correct modules on ccNewsletter thank you pages. If you have different module layouts on different pages the thank you and other acknowledgement messages (subscribe, un-subscribe etc ) from ccNewsletter component won't return the correct module layout.
ccnewsletter, itemid, subscribe, module, acknowledgement, layout, urls, return, unsubscribestring, lines, unsubscribelink, subscription, handled, component, different, layouts, confirm, adding, change, parameters, open, line, components, add, joomla, function, php, action, models, file, menu, deal, thank, sign, messages, lacking, correct, won, pages, browse

Home Joomla - VirtueMart Joomla & VM How To's How to show correct modules on ccNewsletter thank you pages

Wed

04

Nov

How to show correct modules on ccNewsletter thank you pages

  • Joomla 1.5
  • ccNewsletter

If you have different module layouts on different pages the thank you and other acknowledgement messages (subscribe, un-subscribe etc ) from ccNewsletter component won't return the correct module layout.
This is because the return urls are lacking an Itemid.



Joomla ccnewsletter wrong module layout We deal first with the subscription sign-up acknowledgement which is handled by the ccNewsletter Module.


First browse to a page that has the module layout that you want and note the Itemid either form the url "&Itemid=107" or from the backend Menu Manager.




Open in a text editor the file modules/mod_ccnewsletter/tmpl/default.php.
There are 3 lines to change, one for each case, Mootools, HiSlide or normal.
The line numbers are 123, 210 and 276, they are all form --> action parameters Change line 123 as below, adding the &Itemid=107:
 
<form action="<?php echo JURI::root();?>index.php?option=com_ccnewsletter&amp;view=ccnewsletter" method="post" name="subscribeFormModule" id="subscribeFormModule">
 
to
 
<form action="<?php echo JURI::root();?>index.php?option=com_ccnewsletter&amp;view=ccnewsletter&amp;Itemid=107" method="post" name="subscribeFormModule" id="subscribeFormModule">
 

And the same for the other 2 lines

Then for the subscription confirm and un-subscribe acknowledgement which is handled by the ccNewsletter Component we open file components/com_ccnewsletter/models/ccnewsletter.php and on lines 592 & 634 ( the 2 subscribe & un-subscribe function ) again add the "&Itemid=107" to the urls.
 
$unsubscribeString='<a href="'.JURI::root().'index.php?option=com_ccnewsletter&task=removeSubscriber&id='.md5($subscriberID).'">['.$unsubscribelink.']</a>';
 
to
 
$unsubscribeString='<a href="'.JURI::root().'index.php?option=com_ccnewsletter&Itemid=107&task=removeSubscriber&id='.md5($subscriberID).'">['.$unsubscribelink.']</a>';
 

All done....
Joomla ccnewsletter right module layout


Add this page to your favorite Social Bookmarking websites
Digg! Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! Slashdot! Technorati! StumbleUpon! Spurl! Newsvine! Furl! Fark! Yahoo! Netvouz! Mister-Wong! RawSugar! Ma.gnolia! Squidoo! DZone! Swik!
Last Updated on Wednesday, 04 November 2009 12:23 Read : 1471 times
 
Comments (1)
Sem noticias / No news
1 Wednesday, 06 January 2010 17:13
nandocodu@gmail.com
Configurei meu modulo e não estou recebendo

I set my module and I am not getting

Add your comment

BoldItalicUnderlineStrikethroughSubscriptSuperscriptEmailImageHyperlinkOrdered listUnordered listQuoteCodeHyperlink to the Article by its id
Very HappySmileWinkSadSurprisedShockedConfusedCoolLaughingMadRazzEmbarrassedCrying or Very SadEvil or Very MadTwisted EvilRolling EyesExclamationQuestionIdeaArrowNeutralMr. GreenGeekUber Geek
Your name:
Subject:
Comment:

Latest Articles

Paypal Donation

If you use this module on your site please donate a small amount.
Any donation amount appreciated.

VM Live Product Search

Recommended Reading

For those interested in extending there knowledge of Joomla! & VirtueMart Packt Publishing has an excellent range of help & how to books.
Listed below are some I can recommend.
Simply click on the images to be taken directly to their web shop.

Learning Joomla! 1.5 Extension Development Learning Joomla! 1.5 Extension Development
by Joseph L. LeBlanc.
Read the review
Joomla! E-Commerce with VirtueMart Joomla! E-Commerce with VirtueMart
by Suhreed Sarkar.
Read the review
Joomla! Web Security Joomla! Web Security
by Tom Canavan.

Mastering Joomla! 1.5 Extension and Framework Development Mastering Joomla! 1.5 Extension and Framework Development
by James Kennard.

Joomla! Template Design: Create your own professional-quality templates with this fast, friendly guide Joomla! Template Design: Create your own professional-quality templates with this fast, friendly guide
by Tessa Blakeley Silver.

GJC Web Design Joomla & VirtueMart how to, tips, tricks, coding examples, html, php, tutorial, 101, useful hints, help

A collection of help articles and coding examples for Joomla & Virtuemart

Belgium, VirtueMart & Joomla Web Design England UK Britain & Germany

Joomla, VirtueMart, how to, tips, tricks, coding examples, html, php, tutorial, 101, useful hints, help



How to show correct modules on ccNewsletter thank you pages



How to show correct modules on ccNewsletter thank you pages. If you have different module layouts on different pages the thank you and other acknowledgement messages (subscribe, un-subscribe etc ) from ccNewsletter component won't return the correct module layout.


ccnewsletter, itemid, subscribe, module, acknowledgement, layout, urls, return, unsubscribestring, lines, unsubscribelink, subscription, handled, component, different, layouts, confirm, adding, change, parameters, open, line, components, add, joomla, function, php, action, models, file, menu, deal, thank, sign, messages, lacking, correct, won, pages, browse