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

How to show correct modules on ccNewsletter thank you pages

GJC Web Design UK 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
 

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:
  The word for verification.
Lowercase letters only with no spaces.

The word for verification.<br/>Lowercase letters only with no spaces.
Word verification:

Subject:
Comment:
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

Our Recommended Reading

For those interested in extending their 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.


Joomla! Social Networking with JomSocial
Joomla! Social Networking
with JomSocial

by Kwasi Boateng & Beatrice A. Boateng.
Joomla! 1.5 Multimedia
Joomla! 1.5 Multimedia
by Allan Walker.


Building job sites with Joomla!
Building job sites with Joomla!
by Santonu Kumar Dhar.

Joomla! Template Design: Create your own professional-quality templates with this fast, friendly guide
Joomla! Template Design: 2nd Edition
Create your own professional-quality
templates with this fast, friendly guide
by Tessa Blakeley Silver.
Magento: Beginner's Guide
Magento: Beginner's Guide by William Rice
is a must for anyone trying the
open-source e-Commerce solution.

Read the review

object-oriented-javascript-applications-libraries
Object-Oriented JavaScript by
Stoyan Stefanov gives you a very
comprehensive grounding in
the latest Javascript techniques.

Read the review
Joomla! Web Security
Joomla! Web Security
by Tom Canavan.

Joomla 1.5 Top Extensions Cookbook
Joomla 1.5 Top Extensions Cookbook by
Suhreed Sarkar is an ideal and concise round up of the extensions available for the Joomla! system.

Read the review

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.

Mastering Joomla! 1.5 Extension and Framework Development
Mastering Joomla! 1.5 Extension and
Framework Development : 2nd Edition

by James Kennard.
Read the review

Building job sites with Joomla!
Building job sites with Joomla!
by Santonu Kumar Dhar.
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! 1.5 Site Blueprints Joomla! 1.5 Site Blueprints
by Timi Ogunjobi.

Joomla! 1.5 JavaScript jQuery Joomla! 1.5 JavaScript jQuery
by Jose Argudo Blanco.
Read the review
Joomla! Social Networking with JomSocial Joomla! Social Networking with JomSocial
by Kwasi Boateng & Beatrice A. Boateng.

Joomla! 1.5 Multimedia Joomla! 1.5 Multimedia
by Allan Walker.

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 : 2nd Edition
by James Kennard.

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

Magento: Beginner's Guide
Magento: Beginner's Guide by William Rice
is a must for anyone trying the
open-source e-Commerce solution.

Read the review

GJC Web Design UK 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