Login     Sign up
URL Problem
Gilbert Michel (@gilmichelz)
Join date: Oct 6th 2010
Community posts: 56
View Profile
Send Message

Hi,

Following URL are not working well:
See allFriends
[url]http://community.jcow.net/u//following[/url]
See all
[url]http://community.jcow.net/u//friends[/url]

The same problem occure at my jcow website.

Gilbert

174 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

in u.php function show_sidebar

[code]
ass(array('title'=>t('Following'), 'content' => '<div class="toolbar">'.url('u/'.$url.'/following',t('See all')).'</div>'.$output));
[/code]

[code]
ass(array('title'=>t('Friends'), 'content' => '<div class="toolbar">'.url('u/'.$url.'/friends',t('See all')).'</div>'.$output));

[/code]

the variable $url doesn't have a value.

should be $owner['username'] or $owner['id'] i think.

I'm not sure, i didn't make an update yet.

174 months ago
Gilbert Michel (@gilmichelz)
Join date: Oct 6th 2010
Community posts: 56
View Profile
Send Message

Hi Falcone,

It is working all rigth with the following update:

[code]$url= $owner['username'];
ass(array('title'=>t('Following'), 'content' => '<div class="toolbar">'.url('u/'.$url.'/following',t('See all')).'</div>'.$output));[/code]

[code] $url = $owner['username'];
ass(array('title'=>t('Friends'), 'content' => '<div class="toolbar">'.url('u/'.$url.'/friends',t('See all')).'</div>'.$output));[/code]

Thank you for your quick answer,
Gilbert

174 months ago
Vincent T (@vincent)
Join date: Jun 18th 2010
Community posts: 298
View Profile
Send Message

This bug has been fixed. Package updated.
Thank you both.

174 months ago