Add Friends turn to nothing?

1 view
Skip to first unread message

urdabum

unread,
Apr 19, 2009, 11:37:01 PM4/19/09
to luvfoo
Hi people,

So when i just to add, or click on add friends. It didnt do anything .
any idea?

urdabum

unread,
Apr 27, 2009, 11:41:52 PM4/27/09
to luvfoo
Hi group,
Does anyone have this same problem? and how do i fix it?

urdabum

unread,
May 3, 2009, 6:11:29 PM5/3/09
to luvfoo
hi Group,
Any updates? in Global I change it to true and still nothing comes up
when im clicking on friend.

little help?

urdabum

unread,
May 7, 2009, 7:50:49 PM5/7/09
to luvfoo
Any suggestions?

urdabum

unread,
Jun 11, 2009, 2:42:07 AM6/11/09
to luvfoo
Was wondering, how did you guys set your global_config for the friend?
mine is set to allow_following :false , but still it doesnt do
anything in my recent post. can i get some help
and when i do something, my notification doesnt show up anything.


here is the code for it:

<div id="decline_request_to_join" class="hidden">
<%= render :partial => 'messages/decline', :locals => {:hide_header
=> true} %>
</div>
<% if !(@user.followers.empty? && @user.unread_messages.empty? &&
@user.pledge_requests.empty?) %>

<dl>
<div class="dashround_top"><div></div></div>

<dt><%= _('Notifications') %></dt>
<dd>
<ul>
<% if !GlobalConfig.allow_following -%>
<% @user.followers.each do |follower| %>
<li>
<%= _("%{profile} requests to be your Friend %{accept} %{ignore}")
% {:profile => link_to(h(follower.full_name), profile_path
(follower)),
:accept => accept_follower_link(current_user, follower),
:ignore => ignore_friend_request_link(current_user, follower) } -
%></li>
<% end %>
<% end %>
<% @user.pledge_requests.each do |pledge| %>
<li><%= _("%{profile} requests to join %{group_link} group %
{admin_links}") % {
:profile => link_to(h(pledge.full_name), profile_path(pledge)),
:group_link => link_to(h(pledge.group_name), group_path
(pledge.url_key)),
:admin_links => pledge_admin_links(pledge) } -%>
</li>
<% end %>
<!--
<li>Site: maintenance messages</li>
<li>Groups: upcoming events, requests for participations in
projects</li>
<li>People: friend requests, new messages</li>
-->
</ul>
</dd>
<div class="dashround_bottom"><div></div></div>
</dl>
<% end %>

<script type="text/javascript" language="JavaScript">
jQuery(document).ready(function(){
jQuery(".notification-link").click(function(){
jQuery(this).parent().parent().fadeOut();
});
});
</script>

----------- Do i change the allow_following to allow_friend ?

Justin Ball

unread,
Jun 11, 2009, 12:43:27 PM6/11/09
to luv...@googlegroups.com
Try this:

GlobalConfig.allow_following: true

Justin

urdabum

unread,
Jun 11, 2009, 8:48:06 PM6/11/09
to luvfoo
Hi Justin,
Where do you put that at? in the global_config.yml or the
notification.html.erb? Well i try to put true in there still same
result.

i have this nil, wonder if this is a problem.

has_many :friendships_initiated_by_me, :class_name =>
"Friend", :foreign_key => "inviter_id", :conditions => ['inviter_id
= ?', self.id]
has_many :friendships_not_initiated_by_me, :class_name =>
"Friend", :foreign_key => "user_id", :conditions => ['invited_id = ?',
self.id]

i even tried to put GlobalConfig.allow_following: true in the
global_config.yml still same result = nothing.


On Jun 11, 9:43 am, Justin Ball <justinb...@gmail.com> wrote:
> Try this:
>
> GlobalConfig.allow_following: true
>
> Justin
>

Justin Ball

unread,
Jun 12, 2009, 2:17:54 AM6/12/09
to luv...@googlegroups.com
Don't put "GlobalConfig.allow_following: true" into the
global_config.yml. Instead just make this entry:

allow_following: true

Justin

urdabum

unread,
Jun 14, 2009, 6:50:04 AM6/14/09
to luvfoo
same issue, nothing happen when i did that. I dont get it, adding
group member works but not user to user friend?? whats going on.... is
there another controller of friend i can work at?




On Jun 11, 11:17 pm, Justin Ball <justinb...@gmail.com> wrote:
> Don't put "GlobalConfig.allow_following: true" into the
> global_config.yml.  Instead just make this entry:
>
> allow_following: true
>
> Justin
>
Reply all
Reply to author
Forward
0 new messages