Topic-icon Welcome message

Active Subscriptions:

None
12 years 10 months ago #10344 by fb_782343432
Welcome message was created by fb_782343432
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
The topic has been locked.
Support Specialist
12 years 10 months ago #10353 by alzander
Replied by alzander on topic 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
The topic has been locked.
Active Subscriptions:

None
12 years 10 months ago #10354 by fb_782343432
Replied by fb_782343432 on topic Welcome message
Opps, I just noticed my typo....I am using jomsocial....

You can see my site here.... dev.usenavvi.com/ and the link is in the upper left corner.
The topic has been locked.
Support Specialist
12 years 10 months ago #10360 by alzander
Replied by alzander on topic Welcome message
Neil,
No worries, just wanted to make sure I gave you the best instructions instead of confusing you :)

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:
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:
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!
The topic has been locked.
Active Subscriptions:

None
12 years 10 months ago #10368 by fb_782343432
Replied by fb_782343432 on topic Welcome message
How would I display this in the top of my template and remove "Member Login" once logged in?
The topic has been locked.
Support Specialist
12 years 10 months ago #10369 by alzander
Replied by alzander on topic 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!
The topic has been locked.
Active Subscriptions:

None
12 years 10 months ago #10372 by fb_782343432
Replied by fb_782343432 on topic 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.. :(
The topic has been locked.
Support Specialist
12 years 10 months ago #10386 by alzander
Replied by alzander on topic 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
The topic has been locked.
Active Subscriptions:

None
12 years 10 months ago #10403 by fb_782343432
Replied by fb_782343432 on topic 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.
The topic has been locked.
Support Specialist
12 years 10 months ago #10409 by alzander
Replied by alzander on topic 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 :)

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:
extensions.joomla.org/extensions/edition...ode-in-modules/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:
<?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!
The topic has been locked.