| Author |
Message |
erhanharputlu
Corporal


Joined: Mar 20, 2004
Posts: 62
|
Posted:
Tue Jul 11, 2006 7:38 pm |
  |
As you know when anonymous user post a message there will be no Msn icon, no number of messages post, no icq icon , no reg. date, no age etc etc for him/her... every one of them hides itself under anonymous user..
i've added some mod's for phpnuke like album icon under user and number of images that he/she posted to album.. everything was fine but i discovered that these new mod's icons and texts remain on anonymous posters... they must be hidden under anonymous user...
what is the way to make them disappear on anonymous user? |
|
|
   |
 |
perfect-games
Site Admin


Joined: Jun 18, 2004
Posts: 208
|
Posted:
Wed Jul 12, 2006 4:11 am |
  |
first of goto you admin panel > edit user and type anonymous and edit the values and permissions
also goto forums -> users > management.
and make sure everything is correct.
thanks
Steve |
|
|
    |
 |
erhanharputlu
Corporal


Joined: Mar 20, 2004
Posts: 62
|
Posted:
Wed Jul 12, 2006 9:46 am |
  |
hmm i think you missunderstand me.. for example there is a button called 'album' near profile button.. it is always there if he post an image to album or not.. so it is automaticly added to anonymous.. is it possible to remove that from anonymous? |
|
|
   |
 |
perfect-games
Site Admin


Joined: Jun 18, 2004
Posts: 208
|
Posted:
Wed Jul 12, 2006 10:51 am |
  |
is this a phpbb mod, like smarters Album mod ?
thanks
Steve |
|
|
    |
 |
erhanharputlu
Corporal


Joined: Mar 20, 2004
Posts: 62
|
Posted:
Wed Jul 12, 2006 3:33 pm |
  |
yes the album is smarters... i use another module to add a button to near profile button to go to user's personal album.. and a text under user's message post number that shows how many images he/she posted to album... these 2 mods are shown on anonymous user.. i must somehow disable them on anonymous... |
|
|
   |
 |
erhanharputlu
Corporal


Joined: Mar 20, 2004
Posts: 62
|
Posted:
Sat Jul 15, 2006 10:41 am |
  |
|
   |
 |
perfect-games
Site Admin


Joined: Jun 18, 2004
Posts: 208
|
Posted:
Sat Jul 15, 2006 11:00 am |
  |
for each file to do with the mod like album.php
find:
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
or similar to this
AFTER ADD:
if( !$userdata['session_logged_in'] )
{
$header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';
header($header_location . "modules.php?name=Your_Account");
exit;
}
which will redirect guest to account module to login or reg before going further
hope that helps
Steve |
|
|
    |
 |
|
|