31
trabis
Re: Yogurt.. let's start hacking
  • 2009/4/21 21:46

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

Shiva wrote:
I am interested in creating something like a book mark feature for yogurt. So members would be able to link to pictures, News items, posts etc and then be able to associate with their profile (showing a little preview, thumbnails etc).

Dont want to re-invent the wheel tho. Has anyone else done this?


Instant-Zero have a bookmarks module but it bookmarks pages, not modules and items. To achieve such a goal you will need to work with plugins, new module.

What are your plans?

32
Shiva
Re: Yogurt.. let's start hacking
  • 2009/4/21 22:12

  • Shiva

  • Quite a regular

  • Posts: 280

  • Since: 2006/7/9 1


Yes, I would like to be able to add links to in other modules such as extgallery. The link would point to a this new ("bookmark") module and then it would associate the item against a user id.

But then I would require a hack to the social network module to be able to display thumbnails (or headlines etc depending on what has been bookmarked).

33
blackrx
Re: Yogurt.. let's start hacking
  • 2009/4/21 23:12

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1




Based on this thread

https://xoops.org/modules/newbb/vi ... hp?topic_id=68315&forum=7

is it possible to create a block

eg

22 friend (1 waiting for approval)
23 scraps
you joined 2 groups
1 new pm
bla bla

that will be cool

34
pablo103
Re: Yogurt.. let's start hacking
  • 2009/6/1 20:18

  • pablo103

  • Not too shy to talk

  • Posts: 181

  • Since: 2008/2/3 1


Nice idea, anyone can help?

35
Angela78
Re: Yogurt.. let's start hacking
  • 2009/6/7 18:05

  • Angela78

  • Just popping in

  • Posts: 27

  • Since: 2009/5/9 1


Quote:

bprado wrote:
Hi, i have XOOPS 2.3.3 i put this hack, and is not working!!!

Hack to make the yogurt userpage as the main userpage of your site:

Open userinfo.php in the root of your site, search at the very beggining of the file for

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

Add after this the following lines:

header("Location:".XOOPS_URL."/modules/yogurt/index.php?uid=".$uid);
exit();

Can someone help me??? I need to put the yogurt instand of the normal profile of Xoops!


Here is what I did not sure if it will work for you?

I have Yogurt 3.3 On XOOPS 2.3.3

I copied the profile/userinfo.php into the root of the yogurt mod.

In the Main XOOPS root you'll find a file call userinfo.php

you'll need to change the header location here This is right at the start of that file

//$xoopsOption['pagetype'] = 'user';  include 'mainfile.php';  $module_handler = xoops_gethandler('module');  $profile_module = $module_handler->getByDirname('profile');  if ($profile_module && $profile_module->getVar('isactive')) {      header("Location:".XOOPS_URL."/modules/yogurt/index.php?uid=".$uid); exit(); }


if you just change the xoops/userinfo.php with out copying the profile/userinfo.php to yogurt root it will give an error like the page doesn't exist

36
bprado
Re: Yogurt.. let's start hacking
  • 2009/6/7 19:20

  • bprado

  • Not too shy to talk

  • Posts: 103

  • Since: 2008/9/9 1


Thk, i fixed, just uninstall the user profile module that come with XOOPS 2.3.3

37
Kiwi_Chris
Re: Yogurt.. let's start hacking
  • 2009/6/7 22:14

  • Kiwi_Chris

  • Just popping in

  • Posts: 79

  • Since: 2009/1/3 2


all i did was change in modules/profiles/userinfo.php

and all my users are directed to yogurt, i did not need to add any files to yogurt.

after this

$uid = intval($_GET['uid']);
if ($uid <= 0) {
if (is_object($xoopsUser)) {
$uid = $xoopsUser->getVar('uid');
} else {
header('location: ' . XOOPS_URL);
exit();
}
}

Add:

header("Location:".XOOPS_URL."/modules/yogurt/index.php?uid=".$uid);
exit();

that is all I needed to do.

38
Angela78
Re: Yogurt.. let's start hacking
  • 2009/6/10 13:05

  • Angela78

  • Just popping in

  • Posts: 27

  • Since: 2009/5/9 1


The code listed below works best like this

header("location: ./modules/yogurt/index.php" . (empty($_SERVER['QUERY_STRING']) ? "" "?" $_SERVER['QUERY_STRING']) );      exit();


Sorry for quoting myself I seen no way to edit my own post lol

Quote:

Angela78 wrote:
Quote:

bprado wrote:
Hi, i have XOOPS 2.3.3 i put this hack, and is not working!!!

Hack to make the yogurt userpage as the main userpage of your site:

Open userinfo.php in the root of your site, search at the very beggining of the file for

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

Add after this the following lines:

header("Location:".XOOPS_URL."/modules/yogurt/index.php?uid=".$uid);
exit();

Can someone help me??? I need to put the yogurt instand of the normal profile of Xoops!


Here is what I did not sure if it will work for you?

I have Yogurt 3.3 On XOOPS 2.3.3

I copied the profile/userinfo.php into the root of the yogurt mod.

In the Main XOOPS root you'll find a file call userinfo.php

you'll need to change the header location here This is right at the start of that file

//$xoopsOption['pagetype'] = 'user';  include 'mainfile.php';  $module_handler = xoops_gethandler('module');  $profile_module = $module_handler->getByDirname('profile');  if ($profile_module && $profile_module->getVar('isactive')) {      header("Location:".XOOPS_URL."/modules/yogurt/index.php?uid=".$uid); exit(); }


if you just change the xoops/userinfo.php with out copying the profile/userinfo.php to yogurt root it will give an error like the page doesn't exist

39
Kiwi_Chris
Re: Yogurt.. let's start hacking
  • 2009/6/11 2:19

  • Kiwi_Chris

  • Just popping in

  • Posts: 79

  • Since: 2009/1/3 2


Your way works also.

why is it better?

40
Angela78
Re: Yogurt.. let's start hacking
  • 2009/6/11 16:28

  • Angela78

  • Just popping in

  • Posts: 27

  • Since: 2009/5/9 1


on some modules I have a few... newwbb a wordpress blog & a few more it may open yogurt with out the uid so it would redirect a members like the members was a guest & go to the admin yogurt profile

Login

Who's Online

33 user(s) are online (9 user(s) are browsing Support Forums)


Members: 0


Guests: 33


more...

Donat-O-Meter

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

Latest GitHub Commits