Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 3 Next > End >>
Yanc subscribe
Date: 2005/11/17 09:31 By: lw_d Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 20
graphgraph
I love Yanc, so glad it is integrated with CB, I was wondering if it is possible to give the user the option of subscribing to a newsletter at the registration page?

This would be very cool and something that I have been looking for for a long time.

Click here to see the profile of this user The administrator has disabled public write access.

Re:Yanc subscribe
Date: 2005/11/17 17:14 By: beat Status: Admin  
Karma: 238  
Admin

Posts: 3990
graphgraph
Yes, in RC2 you can choose the newsletters for registration in the backend : plugins -> yanc -> parameters (multi-clickable list of all newsletters visible there)
Beat - Developer on Community Builder core Team
- If you like CB and this forum, you will love Nick's CB 1.1 reference manual ! : Click here to Get it now
- Would like to help us move faster ? Get it, and/or help us spend more time coding by helping others in this forum, many thanks
Click here to see the profile of this user The administrator has disabled public write access.

Re:Yanc subscribe
Date: 2005/11/18 01:08 By: crash777 Status: User  
Karma: 0  
Junior Joomlapolitan

Posts: 37
graphgraph
You can subscribe/unsubscribe in the profile page and when you first register, you can also subscribe!
Click here to see the profile of this user The administrator has disabled public write access.

Re:Yanc subscribe
Date: 2005/11/18 01:09 By: lw_d Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 20
graphgraph
This gets better.

Thanks, you made my day.
Click here to see the profile of this user The administrator has disabled public write access.

Re:Yanc subscribe
Date: 2005/11/19 04:55 By: Kevin Status: User  
Karma: 1  
Fresh Joomlapolitan

Posts: 10
graphgraph
The YaNC plug in is fantastic. Here is a note on it though some others may be interested in. This bug is logged over at the joomla dev:

http://developer.joomla.org/sf/go/artf2182?nav=1

Its small, but worth mentioning that you should hide the YaNC subscribe module to users who are logged into your site. Why? You can not subscribe using YANC subscribe module if logged in through CB2. Some may ask why would you want to anyway. Response, is that if it is a feature on your site, then it should work, so its better to just remove it when logged in. To clarify, I'm talking about the YaNC subscribe module that is unrelated the the CB2 tab for YaNC.

I hope this helps someone else. Everything else on YaNC and CB2 is killer.

- kevin
Click here to see the profile of this user The administrator has disabled public write access.

Re:Yanc subscribe
Date: 2005/11/24 14:33 By: joomladude Status: User  
Karma: -3  
Senior Joomlapolitan

Posts: 74
graphgraph
Hi Guys,
I've found the following code on a discussion forum and it hides the module when a person is logged in as a member and it really works:

You will need to create a module position that only displays if a user is not logged in. You can use the '$my->gid', variable to do it. In the backend, create a position that you want to use for this (I'll use 'notlogged' here).

Now insert the following code into your template where you want the Yanc module to be displayed.

Code:

 <?php if ( (mosCountModules'notlogged' ) > 0) and ($my->gid =='0') ) { ?>                <table > Any appropriate html here for your template                 <tr>                  <td>                      <?php mosLoadModules ( 'notlogged' ); ?>                  </td>                 </tr>                </table>                   <?php }; ?> 



Now go to backend and change the Yanc module's posigion to "notlogged". And that's all.

All the credit goes to "Gram" from Mambo Portal Team.

E.
Click here to see the profile of this user The administrator has disabled public write access.

<< Start < Prev 1 2 3 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login