 | Some problem in Friends MOD |  |
Posted: 08/18/2007 7:48 AM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 2:40 AM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
Hello Nightrider,
I am facing this problem past 10 months but always forgot to tell you!
There are 2 problems which everyone is facing.
1 - Well, in friends MOD we cannot remove any friend after we have add any.
2 - Currently I have over 30-40 friends in my list but I cannot see all in my profile neither there is any link to go to PAGE 2 of my friends. So how can I see my other friends to whom I have added. This problem is with those who have added many friends.
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Some problem in Friends MOD |  |
Posted: 08/19/2007 3:09 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:40 PM
Location: St Pete, FL
|

|
|
|
|
 |
Have you tried clicking on the Friends menu option? You should be able to delete friends from that page and hopefully it will list all of your friends there...
You should be able to delete Comments there too:
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Some problem in Friends MOD |  |
Posted: 08/19/2007 3:53 AM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 2:40 AM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
Yes, from that place only I tried to delete one of my friend and on next page it says
| Code:
|
Warning: main(./includes/snw_delete.php) [function.main]: failed to open stream: No such file or directory in /home2/traders/public_html/funwadi/forum/friends.php on line 196
Warning: main(./includes/snw_delete.php) [function.main]: failed to open stream: No such file or directory in /home2/traders/public_html/funwadi/forum/friends.php on line 196
Warning: main() [function.include]: Failed opening './includes/snw_delete.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/traders/public_html/funwadi/forum/friends.php on line 196
|
and even all friend's list is not mentioned
Comments got deleted. But the problem is we cannot see if we have huge number of friends. Currently it is showing only 20 friends in my profile but actually I am having more than 40 which I cannot see all.
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Some problem in Friends MOD |  |
Posted: 08/19/2007 5:14 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:40 PM
Location: St Pete, FL
|

|
|
|
|
 |
The first problem was that the includes/snw_delete.php file was missing as stated in the error message. I uploaded the file to your includes folder, so that problem should have gone away now...
The second problem was that the MOD author limited the total friend and comment count to 20. I removed that restriction in the friends.php file, so that problem should now be gone. This is what I did:
OPEN
friends.php
FIND
| Code:
|
$sql = "SELECT *
FROM ( " . FRIENDS_COMMENTS_TABLE . " c
LEFT JOIN " . USERS_TABLE . " u ON c.from_id = u.user_id )
WHERE c.to_id = " . $profiledata['user_id'] . "
ORDER BY c.id
LIMIT 20";
|
REPLACE WITH
| Code:
|
$sql = "SELECT *
FROM ( " . FRIENDS_COMMENTS_TABLE . " c
LEFT JOIN " . USERS_TABLE . " u ON c.from_id = u.user_id )
WHERE c.to_id = " . $profiledata['user_id'] . "
ORDER BY c.id";
|
FIND
| Code:
|
$sql = "SELECT *
FROM ( " . FRIENDS_TABLE . " f
LEFT JOIN " . USERS_TABLE . " u ON f.user_a = u.user_id )
WHERE f.user_b = " . $profiledata['user_id'] . "
LIMIT 20";
|
REPLACE WITH
| Code:
|
$sql = "SELECT *
FROM ( " . FRIENDS_TABLE . " f
LEFT JOIN " . USERS_TABLE . " u ON f.user_a = u.user_id )
WHERE f.user_b = " . $profiledata['user_id'];
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Some problem in Friends MOD |  |
Posted: 08/19/2007 6:41 AM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 2:40 AM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
Ahan, so he limited to 20. I see that you removed the limitation code. Cool
I tried to delete one friend from my list so on next page it says
| Code:
|
|
Template->make_filename(): Error - template file not found: snw_delete_body.tpl
|
Still the snw_delete_body.tpl file missing This time template file is missing  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Some problem in Friends MOD |  |
Posted: 08/19/2007 6:52 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:40 PM
Location: St Pete, FL
|

|
|
|
|
 |
By now, you should have been able to look at that error and have a good idea of what to check. This is telling you that the snw_delete_body.tpl is missing from the template folder that you are currently using. So by uploading snw_delete_body.tpl to your applied_x template folder, it would get you past this error for that template. I uploaded it for you, so it should now work in applied_x. It won't work in any of the other templates though until the file is uploaded to them as well...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Some problem in Friends MOD |  |
Posted: 08/19/2007 7:23 AM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 2:40 AM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
Ah, yeah. Sorry, i didn't understand this much!
Thanks a lot brother.  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Some problem in Friends MOD |  |
Posted: 08/19/2007 7:28 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:40 PM
Location: St Pete, FL
|

|
|
|
|
 |
Don't forget to upload the missing file to the other templates. You may decide to use them some day...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Some problem in Friends MOD |  |
Posted: 08/19/2007 7:31 AM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 2:40 AM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
Alright. Sure. I will make it today  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Some problem in Friends MOD |  |
Posted: 08/19/2007 7:54 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:40 PM
Location: St Pete, FL
|

|
|
|
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|