1
Bowromir
Re: Session Table
  • 2005/8/30 11:16

  • Bowromir

  • Just popping in

  • Posts: 19

  • Since: 2004/9/8 2


Thank you very much. It works now :) .



2
Bowromir
Session Table
  • 2005/8/30 11:02

  • Bowromir

  • Just popping in

  • Posts: 19

  • Since: 2004/9/8 2


Hello,

I've got this table named xoops_sessions:

sess_id
0b862c97b21d0a8e725eb253e0d31407

sess_updated
1124888419

sess_ip
127.0.0.1

sess_data:
xoopsUserId|s:1:"1";xoopsUserGroups|a:2:{i:0;s:1:"1";i:1;s:1:"2";}xoopsU

I'm trying to get an userID from the sess_data column by using the unserialize() function but this doesn't work. Does anyone know how I can get an ID from this column? Wich PHP function do I have to use? I am using XOOPS 2.0.13.1

Thanks,

Bowromir



3
Bowromir
Re: member Avatar display in custom block ?
  • 2005/8/11 15:22

  • Bowromir

  • Just popping in

  • Posts: 19

  • Since: 2004/9/8 2


I still haven't figured out how to do this :S could someone please explain it to me one more time ? Thanks alot ;)



4
Bowromir
Using existing News template for custom pages ?
  • 2005/7/20 11:46

  • Bowromir

  • Just popping in

  • Posts: 19

  • Since: 2004/9/8 2


Hi Xoopsers,

I am developing a website and I need to add some custom made php pages to the website.. Well this is'nt a problem, but I was wondering if it's possible to use the template of the News 1.3 Module in an easy way so I don't have to make a new layout with images etc.

Anyone knows how to do this ?



5
Bowromir
Re: member Avatar display in custom block ?
  • 2005/7/14 15:54

  • Bowromir

  • Just popping in

  • Posts: 19

  • Since: 2004/9/8 2


I've put the following code into blocks/system_blocks.php but it

global $xoopsUser;
if (is_object($xoopsUser)) {
$block['uavatar'] = $xoopsUser->getVar('user_avatar');
if (file_exists(XOOPS_ROOT_PATH.'/uploads/'.$block['uavatar'])) {
$block['uavatar'] = '<img src="'.XOOPS_URL.'/uploads/'.$block['uavatar'].'" alt="avatar" />';
}else{
$block['uavatar'] = '';
}

And I've put the smarty tag <{$block.uavatar}> in the html template.. updated the system etc.. but it doesn't work. Could you please send me both files (if you have them) 2 my email (bowromir@gmail.com) or display them here entirely ? Your help is much apreciated



6
Bowromir
Re: member Avatar display in custom block ?
  • 2005/7/13 18:47

  • Bowromir

  • Just popping in

  • Posts: 19

  • Since: 2004/9/8 2


Yeps.. I tried all kinds of things but im not really a php/smary expert



7
Bowromir
Re: member Avatar display in custom block ?
  • 2005/7/13 12:39

  • Bowromir

  • Just popping in

  • Posts: 19

  • Since: 2004/9/8 2


Anyone ? common this can't be so hard ? :S



8
Bowromir
Re: member Avatar display in custom block ?
  • 2005/7/11 23:33

  • Bowromir

  • Just popping in

  • Posts: 19

  • Since: 2004/9/8 2


can you be a bit more specific.. :S



9
Bowromir
member Avatar display in custom block ?
  • 2005/7/11 16:15

  • Bowromir

  • Just popping in

  • Posts: 19

  • Since: 2004/9/8 2


Hi Xoopsers,

I can't seem to figure out how to display a user's personal avatar in a custom made block. Like for example the right block in this site.. you can see the avatar's of the Top Posters. I want people to see there own avatar when they login on my site. And put it in a custom made block. Example:

(Avatar)
Edit Profile
My Inbox
Logout

Does anyone know the right code for this ? all help is much apreciated !

Greetz,

Bowromir



10
Bowromir
Re: news 1.3 defi. and invalid session and timeout problem...
  • 2005/4/15 13:02

  • Bowromir

  • Just popping in

  • Posts: 19

  • Since: 2004/9/8 2


Any news ? I'm having the problem aswell




TopTop
(1) 2 »



Login

Who's Online

167 user(s) are online (97 user(s) are browsing Support Forums)


Members: 0


Guests: 167


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits