ghanja.be
NederlandsEnglish
Contact Us

Ghanja
Welkom, Gast
Alstublieft Inloggen of Registreren.    Wachtwoord verloren?
Make the component visible to ONLY Visitors (1 bezoeker) (1) Gast
Ga naar onderkant Reageer Favoriet: 0
TOPIC: Make the component visible to ONLY Visitors
#271
eggymusic (Gebruiker)
Fresh Boarder
Berichten: 5
graphgraph
Gebruiker offline Klik hier om het gebruikersprofiel van deze gebruiker te zien
Make the component visible to ONLY Visitors 8 maanden geleden Karma: 0  
I do not see any point in showing the component/module to logged in users. How can i make it to visible to ONLY visitors / non-logged in users. It is taking up lot of real estate with out any real benefits after logging in to the site.

* I want to make this look as compact as possible and remove all those empty spaces. check the attached image. How can remove or make it smaller "Fast registraion text" which is showing for logged in users
 
 
Laatste Wijziging: 23/09/2011 21:27 Door eggymusic.
  Het onderwerp is afgesloten.
#275
Webmaster (Admin)
Administrator
Berichten: 194
graph
Gebruiker offline Klik hier om het gebruikersprofiel van deze gebruiker te zien
Re:Make the component visible to ONLY Visitors 7 maanden, 3 weken geleden Karma: 1  
Open this file in your editor:
components/com_oneclickregistration/tmpl/default.php

Now do a search for:
if(empty($tempdatacookie)) {

You will see a code similar to this:


Code:

if(empty($tempdatacookie)) { echo '<p>'.JText::_("DEAR").'<b> ' . $user->name . '</b></p><p>'.JText::_("ALREADYREGISTERED").'</p>'; echo '<p><br /><b>'.JText::_("USERNAME").':</b> ' . $user->username . '</p>'; echo '<p>'.JText::_("POSSRESETPASS"); echo ' '.JText::_("GOTORESET").' <a href="index.php?option=com_users&view=profile&layout=edit">'.JText::_("LOSTPASS").'</a> '.JText::_("PAGE").'.</a></p>'; } else {
Everything in between the if and the else is what is showed when members are logged in. If you delete all code in between the if and the else you will see nothing at all when logged in. Offcourse you can change the code so it displays whatever you want it to display.
 
 
Laatste Wijziging: 30/09/2011 20:14 Door Webmaster.
  Het onderwerp is afgesloten.
Ga naar bovenkant Reageer
Powered by FireBoardbezorg de laatste berichten direct op de desktop
Ghanja Alternatief - Community voor een open wereld!
   
Copyright © 2005 - 2012 Ghanja.be - Sitemap