PDA

View Full Version : some user interface questions



krankdroid
03-04-2011, 11:05 AM
Hello hotaru ppl..

I finally solved my major problems that came from not knowing what i am doing.
And i am thrilled by the results. Hotaru is by far the best thing i have come across. Fairly easy, even for a complete coder designer noob like myself. And with all the plugins you can want..

I was hoping someone could help me with a few minor problems. Well not really problems. But rather just small changes.

When a user receives a new message. At the very top a notification appears. How hard would it be for me to change this notification to a small image of a envelope?

Also.. adding a line to the script that constanly says "you are logged in as: username" and "you are not logged in" .. sounds like a plugin to me.. is it hard to add that function to the script?



Thanks

maartin
__________________________________________________ ________
Hotaru 1.4.2
Yonda theme

mabujo
03-07-2011, 08:48 AM
Both of these things can be implemented quite simply with template modifications...

For the first, find the notification in the template or language file and add your envelope image.

The second, you can use the hotaru function that checks if the user is logged in in an if statement and display the appropriate message.

krankdroid
03-07-2011, 01:00 PM
thanks mabujo..

i will try that out. though i have no idea as how to empliment that.. but i will try to find a way


i am using your yonda theme.. i really love it.. thank you so much for making it.. it was just what i needed.. now i just need to read up on my coding skills so i actually know what i am doing.
( cant get comment voting to work right for example )

but thankyou for your help and your great theme

krankdroid
03-08-2011, 05:44 PM
how on earth do add such a function as ' you are logged in as "username" '



<?php if ($h->currentUser->loggedIn) { ?>
<li><a href="<?php echo $h->url(array('page'=>'profile', 'user'=>$h->currentUser->name)); ?>" title="Profile">profil</a></li>
<?php } ?>

seekyt
03-08-2011, 08:28 PM
You could try something like this:


<?php if ($h->currentUser->loggedIn) { ?>
<ul><li>You are Logged In As <a href="<?php echo $h->url(array('page'=>'profile', 'user'=>$h->currentUser->name)); ?>" title="Profile"><?php echo $h->currentUser->name ?></a></li></ul>
<?php } ?>

It seemed to work for me just fine. Just paste that in your index.php file or wherever you want it to show up.

If you're not adding that to an existing list, don't forget the < ul > tags.

krankdroid
03-09-2011, 09:50 AM
that worked out just fine..

thank you so much for posting the code for a noob like me