Welcome message

Welcome message

I got my login popup to work on the site. One change I would like to make is to have "Member Login" Link to change to Welcome John Doe and link to their provide.

Any suggestions on how to do that? I'm using J1.6

fb_782343432
Neil
useravatar
Offline
13 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Welcome message

I think we can probably help you do what you're looking for, but I'm a little confused to exactly what you're looking for.

Basically, it sounds like you want the "Welcome John Doe" text to link to their profile on your site. What profile, specifically were you looking to use? Are you integrated with CB, JomSocial, or something else.. or just the standard Joomla details?

Let me know if that's right, and we can help you out. If not, just let us know in a little more detail what you're looking for.

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23835 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Welcome message

Opps, I just noticed my typo....I am using jomsocial....

You can see my site here.... http://dev.usenavvi.com/ and the link is in the upper left corner.

fb_782343432
Neil
useravatar
Offline
13 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Welcome message

Neil,
No worries, just wanted to make sure I gave you the best instructions instead of confusing you current/smile

To do what you're asking is pretty easy. Simply modify the language file for the JFBCLogin module, and add the link there. The file is /languages/en-gb/en-gb.mod_jfbclogin.ini and the top string is the one you want. When modified, with the link, it should look like:

Code:

MOD_JFBCLOGIN_WELCOME="<a href='index.php?option=com_community&view=profile'>Welcome %s</a>,"

Please note that the link itself is inside of single quotes (don't use double quotes in there). Also, the link may not be right, please use whatever goes to the user's profile on your site. I don't have JomSocial in front of me right now. Also note that you could change the link to be on it's own line like:

Code:

MOD_JFBCLOGIN_WELCOME="Welcome %s,<br/><a href='index.php?option=com_community&view=profile'>View Profile</a>"

Hope this helps, but if not, or you need anything else, just let us know!

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23835 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Welcome message

How would I display this in the top of my template and remove "Member Login" once logged in?

fb_782343432
Neil
useravatar
Offline
13 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Welcome message

Neil,
Just looked at your page again, and mis-understood the Member Login text that you're looking to replace.

I'm not sure exactly how your doing that Member Login text, in all honesty, but what I'd probably recommend is below. This is assuming that it's a module that's setting the "Member Login" text/pop-up there:
1) Install Advanced Module Manager from NoNumber
2) Once installed, you can set the Member Login module to only show to guests (will be hidden to logged in Users).
3) Then configure the JFBCLogin module to show in that same position to Registered Users.

That way, the Member Login will display to non-logged in users, and the JFBCLogin "Welcome John Doe" text will appear to logged in users.

Hope this helps, but as always, just keep us posted!

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23835 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Welcome message

I've looked into Advanced Module Manager but I'm using J1.6 so that is not an option hence me ask for help.. current/sad

fb_782343432
Neil
useravatar
Offline
13 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Welcome message

Ahh.. Sorry, didn't realize it wasn't available for J1.6 yet. WIth that then, we'll need to understand how the Member Login button is being inserted there. Is that a module, template feature, or something else? It doesn't seem like a module in all honesty, but just unsure.

I'm sure we can give you some ideas once we have some more info. The main issue is really hiding the Member Login feature when a user is logged in, because it's easy to show the JFBCLogin module (with the Welcome XX text) when they are logged in. Once we find that text, we either hide it (with a little PHP code) or if it's a module, find a better way to do it.

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23835 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Welcome message

right now "Member Login" is just text in a module using rokbox for the popup login. I'm fine with editing the template or setting up a new module.

Thanks for all your help.

fb_782343432
Neil
useravatar
Offline
13 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Welcome message

Neil,
No worries about the help, it's what we do. I'll propose a solution here, and hopefully it will get you setup, if not.. we'll keep plugging away current/smile

What I'd recommend you do is install a module that allows you to insert custom PHP code into a module. We normally have good recommendations for this for Joomla 1.5, but for 1.6, the one below is what we found. It's free, has great reviews, and these types of modules really aren't overly complex, so it should do exactly what we're looking for. So.. get it, and install it:
http://extensions.joomla.org/extensions … ules/15251

Then, create a new instance of the module and put it in the position of the current Member Login module. In the custom code area, do the following:

Code:

<?php

$user = JFactory::getUser();
if ($user->guest)
{ ?>
Member Login
<?php
} ?>

Replace the Member Login line in that code with the full line you're using to load the RokBox. Basically, what that code will do is check if the user currently looking at the page is logged in or not. If not logged in, then show the Member Login link.

Then, create the JFBCLogin module, as described above, to show in the same module position and only show to registered users.

Hopefully this will work for you, but there could be a few tweaks required to get it going right if it's a little funky looking.

Good luck, and keep us posted. We'll get you there!

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23835 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Welcome message

Works great! I actually made a few tweaks...I just used the module once set show to all and used an if else statement. current/smile Only issue the %s doesn't work??

<?php
$user = JFactory::getUser();
if ($user->guest)
{ ?>
<div style="float: right;">{rokbox module=|login| text=|Member Login| size=|300 200|}{/rokbox}</div>
<?php }else;
{ ?>
<div style="float:right;">Welcome %s,<a href='index.php?option=com_community&view=profile'>View Profile</a></div>
<?php
} ?>

fb_782343432
Neil
useravatar
Offline
13 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Welcome message

The %s is a replacement that we do using the language string. Good idea as to what you're trying though...

Instead of %s, try:

Code:

Welcome <?php echo $user->get('name'); ?>, ....

Let us know how it goes.. I can feel it this time!

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23835 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Welcome message

that was it! Thanks for your help!

Now if I can only add a Logout link.... current/smile

fb_782343432
Neil
useravatar
Offline
13 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Welcome message

Just put {JFBCLogin logout=true} before the closing div. JFBConnect will replace that correctly for you. That normally would show the login button if the user isn't logged in and the logout if they are.. but since that will only be shown when logged in, you'll just get the logout button!

I hope that sets you up on everything, but as always, if not, just let us know!

Also, please consider leaving a rating and review on the Joomla Extension Directory for JFBConnect. They use JFBConnect for registrations now, so it's easy to create an account!
http://extensions.joomla.org/extensions … ation/7215

Thanks, and good luck!
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23835 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Welcome message

ok I've actually have a small problem....

When I am logged in the welcome message is perfect.. But if I am logged out its like the php if else doesn't work and I see the following and the rokbox does actually process and I see the code.....


{rokbox module=|login| text=|Member Login| size=|300 200|}{/rokbox}
Welcome , View Profile| Logout

This is my final code.....
<?php
$user = JFactory::getUser();
if ($user->guest)
{ ?>
<div style="float: right;">{rokbox module=|login| text=|Member Login| size=|300 200|}{/rokbox}</div>
<?php }else;
{ ?>
<div style="float:right;">Welcome <?php echo $user->get('name'); ?>, <a href='index.php?option=com_community&view=profile'>View Profile</a>| <a href="javascript:void(0)" onclick="javascript:jfbc.login.logout_button_click()"><?php echo JText::_('Logout') ?></a></div>
<?php
} ?>

fb_782343432
Neil
useravatar
Offline
13 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Welcome message

Not you again! current/smile

The ; after the else is the problem. Remove that and you should be good to go. Definitely let us know when you get it up and running perfectly! Always like to hear when things are going smoothly.

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23835 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Welcome message

Finally got it working and fully tested... current/smile
That module does not process plugins so I had to use a href="" rel="rokbox[300 200][module=login] for the popup.

For anyone who wants to do something similar here is my code....

Code:

<?php

$user = JFactory::getUser();
if ($user->guest)
{ ?>
<div style="float: right;">
  <a href="" rel="rokbox[300 200][module=login]" title="">Member Login</a>
</div>
<?php }else
{ ?>
<div style="float:right;">Welcome <?php echo $user->get('name'); ?>, <a href='index.php?option=com_community&view=profile'>View Profile</a>| <a href="javascript:void(0)" onclick="javascript:jfbc.login.logout_button_click()"><?php echo JText::_('Logout') ?></a></div>
<?php
} ?>

fb_782343432
Neil
useravatar
Offline
13 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Welcome message

Neil,
Great to hear you got it going, and thanks for posting your results!

Should you need anything else, as always, you know where to find us. We hope you continue enjoying JFBConnect!

Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23835 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11508
Total Polls:
0
Total Posts:
48441
Posts today:
12
User Info
 
Total Users:
47480
Newest User:
scottrobins
Members Online:
1
Guests Online:
1133

Online: 
alzander
Social Stream
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program