41
LiliVG
Re: MyLatinSoulmate - Site updates
  • 2006/11/15 4:25

  • LiliVG

  • Just popping in

  • Posts: 65

  • Since: 2005/12/25


Could you send it to me please?
send to: lilivg at gmail dot com

Thanks! :)



42
LiliVG
Re: Get user avatar from Userid function?
  • 2006/11/14 5:18

  • LiliVG

  • Just popping in

  • Posts: 65

  • Since: 2005/12/25


That was the very first thing I tried. It seems very logical, that's how it's called in the forum thread template, but the coresponding php code isn't in the blocks php file, so it doesn't work. And I don't know php, so I don't know how to find the corresponding code. :(



43
LiliVG
Re: Get user avatar from Userid function?
  • 2006/11/14 3:59

  • LiliVG

  • Just popping in

  • Posts: 65

  • Since: 2005/12/25


What I'm looking for is a way to have each posters avatar show up in the CBB Recent Topics/Posts Block next to their username. I'd also like to know there would be a way to put users avatars next to their names on other blocks as well (in the same way the different users avatars can show up in the system blocks - top posters, newest members, etc,) but the forum block is my main concern right now.

So will that code show the avatars of the many different posters, or will it show the avatar of the account you are logged in as?



44
LiliVG
Hack to show users avatars in CBB blocks?
  • 2006/11/13 4:55

  • LiliVG

  • Just popping in

  • Posts: 65

  • Since: 2005/12/25


Can someone please show me how to do this? It would be very much appreciated! Thank you!



45
LiliVG
Re: Access Avatar Database
  • 2006/11/13 4:38

  • LiliVG

  • Just popping in

  • Posts: 65

  • Since: 2005/12/25


Would this work for blocks on the front page, like CBB last poster in recent topics, etc.?



46
LiliVG
Re: MyLatinSoulmate - Site updates
  • 2006/11/12 21:54

  • LiliVG

  • Just popping in

  • Posts: 65

  • Since: 2005/12/25


I'm running 2.0.15. Would this module work on this version of xoops? I would love it if it could. Thanks!



47
LiliVG
Re: [Want to buy]Someone to make a oekaki or paintbbs module
  • 2006/11/10 23:46

  • LiliVG

  • Just popping in

  • Posts: 65

  • Since: 2005/12/25


This site:http://petitoops.com/modules/oekaki/ seems to have oekaki as a module, though I can't seem to find the download for it anywhere on the site (they do have a few XOOPS module downloads available). Not surprising it's hard to find though, the whole site is it Japanese, and so appears to me as a neverending series of ???????????????
I hope this information can help you in some way. Good luck! And if you find it, can you please let me know? Thanks! :)



48
LiliVG
Re: Get user avatar from Userid function?
  • 2006/11/6 6:53

  • LiliVG

  • Just popping in

  • Posts: 65

  • Since: 2005/12/25


Ok, I have edited the original function to create this:

(as a note, I didn't replace the original function, it is still there, I copied it, and then edited the copy in order to create a new function)

function xoops_getLinkedUserAvatarFromId($userid)
{
    
$userid intval($userid);
    if (
$userid 0) {
        
$member_handler =& xoops_gethandler('member');
        
$user =& $member_handler->getUser($userid);
        if (
is_object($user)) {
            
$linkedavatar '<a href="'.XOOPS_URL.'/userinfo.php?uid='.$userid.'">'.'<img src="'.XOOPS_URL.'/uploads/'.$user->getVar('user_avatar').'">'.'</a>';
            return 
$linkedavatar;
        }
    }
    return 
$GLOBALS['xoopsConfig']['anonymous'];
}


That's where I'm at right now. I don't know where to go from there. Can anyone help me with this?

My goal is then to be able to put
<{linkedavatar}>
in whatever template you want the users avatars to appear in.



49
LiliVG
Get user avatar from Userid function?
  • 2006/11/6 2:28

  • LiliVG

  • Just popping in

  • Posts: 65

  • Since: 2005/12/25


Is this possible? In functions.php there is a function that will get create a linked username when given the userid. Would it be possible to modify this function to get the users avatar? That way, site owners could include the user's avatars for any module or block, system-wide. I have seen a lot of posts requesting hacks to include users avatars in various modules and blocks. This function would accomplish that wouldn't it? Just add the new function to the functions.php file, and call the function where ever you want the users avatars to show up?

Here's the function in functions.php:

function xoops_getLinkedUnameFromId($userid)
{
    
$userid intval($userid);
    if (
$userid 0) {
        
$member_handler =& xoops_gethandler('member');
        
$user =& $member_handler->getUser($userid);
        if (
is_object($user)) {
            
$linkeduser '<a href="'.XOOPS_URL.'/userinfo.php?uid='.$userid.'">'$user->getVar('uname').'</a>';
            return 
$linkeduser;
        }
    }
    return 
$GLOBALS['xoopsConfig']['anonymous'];
}


Would this work, and can it be done?



50
LiliVG
Re: XOOPS as Intranet-Portal-Solution: Feature-Questions
  • 2006/10/31 5:19

  • LiliVG

  • Just popping in

  • Posts: 65

  • Since: 2005/12/25


weBLog 1.4x is better imo.




TopTop
« 1 2 3 4 (5) 6 »



Login

Who's Online

153 user(s) are online (103 user(s) are browsing Support Forums)


Members: 0


Guests: 153


more...

Donat-O-Meter

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

Latest GitHub Commits