Author Topic: Need help doing two things  (Read 2875 times)

0 Members and 1 Guest are viewing this topic.

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Need help doing two things
« on: March 29, 2006, 02:54:30 AM »
Hi

I want to do two things if possible.

1) Can I rename “thumbnails” directory to something like “small”??

2) I want to place a welcome note for registered users.
 Like Welcome XXX  (do this ….etc )
 So how can I get the name of user in home.html?   

I want to put this not above "Categories"
I m not a  Programmer.
          But
I m a Good Learner.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Need help doing two things
« Reply #1 on: March 29, 2006, 03:24:31 AM »
1) just update THUMB_DIR in includes/constants.php
2) you can try add in home.html template something like this:
Code: [Select]
<?php
global $user_info;
if (
$user_info['user_level'] > GUEST)
{
  echo $user_info['user_name'];
}
?>
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: Need help doing two things
« Reply #2 on: March 29, 2006, 05:26:26 PM »
2) you can try add in home.html template something like this:
Code: [Select]
<?php
global $user_info;
if (
$user_info['user_level'] > GUEST)
{
  echo 
$user_info['user_name'];
}
?>

Thanks V@no
You are always so helpfull.

It works just fine. I got an other idea after seeing you post.  :D

I duplicated "{lang_loggedin_msg}" in page_heder.php to "{lang_loggedin_welmsg}" and now in home.html I can use it as
Code: [Select]
{if user_loggedin}
{lang_loggedin_welmsg}
{endif user_loggedin}

This one also works for me.
I hope I m not doing anything wrong.
I m not a  Programmer.
          But
I m a Good Learner.