1
sarahmx
Xoops 2.3 User Profile & Yogurt 3.3
  • 2008/9/1 15:42

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


Does anyone know how to combine this both..

i tried the method explain here

https://xoops.org/modules/newbb/viewtopic.php?post_id=292893#forumpost292893

i have change the smartprofile to profile
but it didn't work

help...

2
sarahmx
Re: Xoops 2.3 User Profile & Yogurt 3.3
  • 2008/9/2 12:25

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


I solved this myself...

1. Open yogurt/index.php

find this at the end on the file

le="color: #000000"><?php /** * Closing the page */ include("../../footer.php"); ?>


Before that line Add the following code

le="color: #000000"><?php $gperm_handler = & xoops_gethandler( 'groupperm' ); $groups = is_object($xoopsUser) ? $thisUser->getGroups() : array(XOOPS_GROUP_ANONYMOUS); // Dynamic User Profiles $thisUsergroups =& $thisUser->getGroups(); $fieldids = xoops_getmodulehandler('visibility','profile')->getVisibleFields($groups, $thisUsergroups); $profile_handler =& xoops_getmodulehandler('profile','profile'); $fields =& $profile_handler->loadFields(); $profile = $profile_handler->get($thisUser->getVar('uid')); // Add dynamic fields foreach (array_keys($fields) as $i) { //If field should be shown if (in_array($fields[$i]->getVar('field_id'), $fieldids)) { //echo "VAL0:".$value."<P>"; $value = $fields[$i]->getOutputValue($thisUser, $profile); if (is_array($value)) { $value = implode('<br />', array_values($value)); } if($value){ $fieldattr=array('title' => $fields[$i]->getVar('field_title'), 'value' => $value); $fieldname=$fields[$i]->getVar('field_name'); $xoopsTpl->assign($fieldname, $fieldattr); } } }



2. open modules/profile/class/field.php and replace this
le="color: #000000"><?php function getUserVars() { return xoops_getmodulehandler('profile')->getUserVars(); } }

with this one
le="color: #000000"><?php function getUserVars() { return xoops_getmodulehandler('profile','profile')->getUserVars(); } }


3. Now you can refer to XOOPS user profile 2.3rc2 variables in your yogurt social networking 3.3 index template:

(modules/yogurt/templates/yogurt_index.html)

example if you created a field named age

put this in the yogurt index template

Age: <{$age.value}>

* make sure to set the permission for the field you created in profile module
* clear xoops_data cache


credit to shiva and demian

3
sarahmx
Re: Xoops 2.3 User Profile & Yogurt 3.3
  • 2008/9/2 12:27

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


the trick is to change all the word smartprofile to profile and fieldid to field_id

in the original smartprofile and yogurt guide thread..

4
sarahmx
Re: Xoops 2.3 User Profile & Yogurt 3.3
  • 2008/9/2 12:34

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


Quote:

While our community focus will include strong "social network" aspect, we'll also work with developers of Yogurt and other solutions to make it easier for our users to have a "social network in a box" when they install XOOPS. We'll be also exploring the Google OpenSocial (http://code.google.com/apis/opensocial/) to see if we could incorporate it into XOOPS.

https://xoops.org/modules/news/article.php?storyid=4090


what is the future of this two module

will this two module be merge in the future ?

5
urbanspacema
Re: Xoops 2.3 User Profile & Yogurt 3.3

interesting thread sarahmx,
we hope that implement the functions of yogurt in the core (friendships, messages, video, audio ...)

6
phppp
Re: Xoops 2.3 User Profile & Yogurt 3.3
  • 2008/9/2 14:26

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


profile in XOOPS 3 has been re-designed from scratch as completely open and extensible

suico also talks with me about re-write yogurt

Let's see how XOOPS 3 works.

7
urbanspacema
Re: Xoops 2.3 User Profile & Yogurt 3.3

tnx phppp,
you have a date in mind for the release of XOOPS 2.3 and XOOPS 3?

8
sarahmx
Re: Xoops 2.3 User Profile & Yogurt 3.3
  • 2008/9/2 14:44

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


Quote:
profile in XOOPS 3 has been re-designed from scratch as completely open and extensible

suico also talks with me about re-write yogurt

Let's see how XOOPS 3 works.


interesting....i hope there will be an profile 2.3 to profile 3.0 upgrade package like usual..

any hints of the features ? i guess a powerful social network tool ?

9
phppp
Re: Xoops 2.3 User Profile & Yogurt 3.3
  • 2008/9/2 14:46

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


2.3 final, likely in two weeks.
3, I can not say an ETA. For some concerns, at this moment, I can not give an estimation, even can not release everything that I have already developed.

10
demian
Re: Xoops 2.3 User Profile & Yogurt 3.3
  • 2008/9/4 10:30

  • demian

  • Quite a regular

  • Posts: 225

  • Since: 2008/4/29


i just downloaded XOOPS 2.3 and testing it in my server

thanks for the tips sarah

Who's Online

72 user(s) are online (51 user(s) are browsing Support Forums)


Members: 0


Guests: 72


more...

Donat-O-Meter

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

Latest GitHub Commits