Go Back   Pligg Forum > Pligg Development > Bug Report
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-26-2006, 11:52 PM
webfanatic webfanatic is offline
Send a message via Yahoo to webfanatic
New Pligger
 
Join Date: Mar 2006
Location: MA
Posts: 27
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Links broken from AddFriend landing page

Steps to reproduce:

From any post, click on the username of the person that posted the link. The options will show up. Click on the "add to my friends" link.

This will successfully add this person as a friend and put you on the page:
<site>/<subdir>/user.php?login=god&view=addfriend.

Note that the links in the middle content section ("send god a message", "view all my friends", etc.) do not incorporate the <subdir>. All of the other links in the sidebars are working fine.

This problem holds true for <site>/<subdir>/user.php?login=god&view=removefriend
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-30-2006, 12:36 AM
AshDigg's Avatar
AshDigg AshDigg is offline
Mayor of PliggVille
 
Join Date: Dec 2005
Location: Pliggville
Posts: 1,646
Downloads: 34
Uploads: 10
Thanks: 237
Thanked 346 Times in 207 Posts
/user.php

Change line 139 to

echo '<hr><a href = "'.my_pligg_base.'/user.php?login='.$user->username.'&view=addfriend">add '.$user->username.' to my friends</a>
<a href = "'.my_pligg_base.'/user.php?login='.$user->username.'&view=sendmessage">send '.$user->username.' a message</a>
<a href = "'.my_pligg_base.'/user.php?view=viewfriends">view all my friends</a>
<a href = "javascript:history.back();">return to where I was</a>';


and 147 to

echo '<hr><a href = "'.my_pligg_base.'/user.php?login='.$user->username.'&view=removefriend">remove '.$user->username.' from my friends</a>
<a href = "'.my_pligg_base.'/user.php?login='.$user->username.'&view=sendmessage">send '.$user->username.' a message</a>
<a href = "'.my_pligg_base.'/user.php?view=viewfriends">view all my friends</a>
<a href = "javascript:history.back();">return to where I was</a>';



thanks!
__________________
- Ash
Reply With Quote
  #3 (permalink)  
Old 03-30-2006, 07:17 AM
webfanatic webfanatic is offline
Send a message via Yahoo to webfanatic
New Pligger
 
Join Date: Mar 2006
Location: MA
Posts: 27
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks. Slight change.

Thanks for the quick fix.

I added <BR/> to the end. Not sure if this was supposed to be handled by a style or something.

At Line 139:
PHP Code:
echo '<hr><a href = "'.my_pligg_base.'/user.php?login='.$user->username.'&view=addfriend">add '.$user->username.' to my friends</a><BR />
<a href = "'
.my_pligg_base.'/user.php?login='.$user->username.'&view=sendmessage">send '.$user->username.' a message</a><BR />
<a href = "'
.my_pligg_base.'/user.php?view=viewfriends">view all my friends</a><BR />
<a href = "javascript:history.back();">return to where I was</a>'

At Line 147:
PHP Code:
    echo '<hr><a href = "'.my_pligg_base.'/user.php?login='.$user->username.'&view=removefriend">remove '.$user->username.' from my friends</a><BR />
<a href = "'
.my_pligg_base.'/user.php?login='.$user->username.'&view=sendmessage">send '.$user->username.' a message</a><BR />
<a href = "'
.my_pligg_base.'/user.php?view=viewfriends">view all my friends</a><BR />
<a href = "javascript:history.back();">return to where I was</a>'

Reply With Quote
  #4 (permalink)  
Old 03-31-2006, 12:22 AM
mskonfa mskonfa is offline
New Pligger
 
Join Date: Mar 2006
Posts: 23
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Cool; works well.

I added "<BR />" after each "</a>"
Looks better.

Kerwin.
www.cruisinaltitude.com/news
Reply With Quote
  #5 (permalink)  
Old 03-31-2006, 12:38 AM
AshDigg's Avatar
AshDigg AshDigg is offline
Mayor of PliggVille
 
Join Date: Dec 2005
Location: Pliggville
Posts: 1,646
Downloads: 34
Uploads: 10
Thanks: 237
Thanked 346 Times in 207 Posts
Sorry, the <BR>'s were there, but I didn't use <code> so it parsed them instead of showing them.
__________________
- Ash
Reply With Quote
Reply



Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks Enabled by vBSEO 3.0.0