xoops forums

hiflyer

Not too shy to talk
Posted on: 2008/1/20 16:02
hiflyer
hiflyer (Show more)
Not too shy to talk
Posts: 107
Since: 2006/3/7 3
#11

Re: Yogurt Social Network 2.9 BETA

djsets - thanks for the file change list!

...oops, I don't seem to have those files...?

Ah, in:
modules/system/templates/blocks/

That calls the Yogurt tabs when finding a user but clicking on the user still loads the default user info page...

mjz55

Quite a regular
Posted on: 2008/1/21 16:16
mjz55
mjz55 (Show more)
Quite a regular
Posts: 298
Since: 2007/1/18
#12

Re: Yogurt Social Network 2.9 BETA

Does anyone know how to get rid of the "No main video yet" and "User Contributions"?

thanks

hiflyer

Not too shy to talk
Posted on: 2008/1/21 17:12
hiflyer
hiflyer (Show more)
Not too shy to talk
Posts: 107
Since: 2006/3/7 3
#13

Re: Yogurt Social Network 2.9 BETA

Ok, I'm dumb, apparently it's in the install instructions and I didn't see it. Learned under this thread:
https://xoops.org/modules/newbb/viewto ... SC&type=&mode=0&start=130

Change your userinfo.php file in the root of your site like suggested in install.txt


$uid = intval($_GET['uid']);
if ($uid <= 0) {
redirect_header('index.php', 3, _US_SELECTNG);
exit();
}

Add after this the following line:
header("Location:".XOOPS_URL."/modules/yogurt/index.php?uid=".$uid);

amudee

Just popping in
Posted on: 2008/1/21 17:48
amudee
amudee (Show more)
Just popping in
Posts: 42
Since: 2007/8/8 1
#14

Re: Yogurt Social Network 2.9 BETA

I was just passing by and saw this thread and
thought to share something which may be useful
to XOOPS friends here.

I found a small bug in yogurt 2.9 "My Friends"
block where by default following functionalities are present.

1) Friends Avatar (6 by default)
2) Usename (link to profile)
3) Private message (pm.gif)

the bug is in private message, if you try
to pm to a considered friend it will take
Guest userid instead of the friend to whom you
want to send message and when you try to send
a message to guest it gives following error.

"The selected user doesn't exist in the database.
Please check the name and try again."

I just found a small bug in
yogurt > templates > blocks > yogurt_block_friends.html following is the default code

<{section name=i loop=$block.friends}>
    <
div style="width:80%; text-align: center; page-break-after: always; margin: auto; page-break-before: always;">
    <
a href="<{$xoops_url}>/modules/yogurt/index.php?uid=<{$block.friends[i].uid}>"  title=" Qtty<{$block.friends[i].uname}>"><img src=<{$xoops_upload_url}>/<{$block.friends[i].user_avatar}>><br /><{$block.friends[i].uname}> </a>
    <
br /><a href='javascript:openWithSelfMain("<{$xoops_url}>/pmlite.php?send2=1&to_userid=<{$block.friends[i].uid_voted}>","pmlite",500,450);'><img src="<{$xoops_url}>/images/icons/pm.gif" /></a>
    </
div><br />
<{/
section}>
<
a href="<{$xoops_url}>/modules/yogurt/friends.php"><{$block.lang_allfriends}></a>



This block is supposed to be displayed on home page
or user page. It takes a large screen space by
displaying 6 friends avatars in 6 rows.
Well i didn't wanted to display large avatars on
my homepage also i wanted to display friends in one
or 2 rows only, taking less space on the screen,
also i wanted to have private message functionality
right on the homepage itself. So i removed the avatars
and displayed usernames with links in a row along
with small icon of private message.

So I did the following modifications in this block

<{section name=i loop=$block.friends}>
    <
a href="<{$xoops_url}>/modules/yogurt/index.php?uid=<{$block.friends[i].uid}>" 
title=" <{$block.friends[i].uname}>"><{$block.friends[i].uname}></a
<
a href='javascript:openWithSelfMain("<{$xoops_url}>/pmlite.php?send2=1&to_userid=<{$block.friends[i].uid}>","pmlite",500,450);'>
<
img alt="Private message" src="<{$xoops_url}>/images/icons/pm_small.gif" /></a>&nbsp;-&nbsp;    
<{/
section}>
</
BR></BR>
<
a href="<{$xoops_url}>/modules/yogurt/friends.php">
<{
$block.lang_allfriends}></a>


I just did minor changes and now it looks fine for my college site :)

See you guys around,
Amol

btesec

Friend of XOOPS
Posted on: 2008/1/21 17:52
btesec
btesec (Show more)
Friend of XOOPS
Posts: 623
Since: 2007/2/20
#15

Re: Yogurt Social Network 2.9 BETA

Hello,

Is it possible to integrate the userpage module with yogurt, maybe for the next release. What do you all think.

amudee

Just popping in
Posted on: 2008/1/21 18:21
amudee
amudee (Show more)
Just popping in
Posts: 42
Since: 2007/8/8 1
#16

Re: Yogurt Social Network 2.9 BETA

I think its a good idea to link a customizable user page but a user can already provide enough information on his profile and probably a hyperlink to his user page.

I think may be you can go for another hard coded tab under yogurt main page which takes a user to "User Page" module and display yogurt blocks on user page along with a link back to yogurt main page. I think this is very easy to do.

that way you can make it look like both modules are integrated closely.

How about it ?

Regards, Amol

lintu

Not too shy to talk
Posted on: 2008/1/21 21:26
lintu
lintu (Show more)
Not too shy to talk
Posts: 103
Since: 2005/9/18
#17

Re: Yogurt Social Network 2.9 BETA

I am using the Yogurt Social Network 2.9 BETA on my production site and did add the user page on one of the tabs. You will have to add the following code on yogurt_navbar.html in the template folder:

<{if $isOwner}>
<li> <a href="/modules/userpage/"><span><img class="yogurt-nav-bar-icon" src="images/scrapbook.gif" />My Page</span></a></li>
<{/if}>

You can view it on http://JigJak.com (after login)

I am having an issue with adding Videos from YouTube, does anyone have that working?

Thanks.
Abu
JigJak.com - A social Bookmarking & Blogging site.

ProjectMgr.net - Online Project Management Software

amudee

Just popping in
Posted on: 2008/1/22 4:45
amudee
amudee (Show more)
Just popping in
Posts: 42
Since: 2007/8/8 1
#18

Re: Yogurt Social Network 2.9 BETA

Yes its working for me, what issues are you facing exactly ? I can add youtube videos easily on my website and am also using version 2.9

lintu

Not too shy to talk
Posted on: 2008/1/22 15:46
lintu
lintu (Show more)
Not too shy to talk
Posts: 103
Since: 2005/9/18
#19

Re: Yogurt Social Network 2.9 BETA

Hi amudee,

First, I had to increase the YouTube URL text box length as the YouTube video URL was too long. Then I added the video URL, on my site, but don't see the video loaded.

Thx.
Abu
JigJak.com - A social Bookmarking & Blogging site.

ProjectMgr.net - Online Project Management Software

Ft24v2

Just popping in
Posted on: 2008/1/22 17:03
Ft24v2
Ft24v2 (Show more)
Just popping in
Posts: 86
Since: 2007/1/30
#20

Re: Yogurt Social Network 2.9 BETA

How would i be able to show how many userpoints the member has on there Social Network page from the userpoints module.