Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
Some problem in Friends MOD
Post new topic   Reply to topic View previous topic :: View next topic
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
Some problem in Friends MOD
PostPosted: 08/18/2007 7:48 AM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 2:40 AM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Hello Nightrider,

I am facing this problem past 10 months but always forgot to tell you! Very Happy
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.

dontknow
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: Some problem in Friends MOD
PostPosted: 08/19/2007 3:09 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 6:40 PM
Location: St Pete, FL
peace.gif
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:



munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Some problem in Friends MOD
PostPosted: 08/19/2007 3:53 AM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 2:40 AM
Location: UNITED ARAB EMIRATES
unitedACa.gif
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.

dontknow
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: Some problem in Friends MOD
PostPosted: 08/19/2007 5:14 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 6:40 PM
Location: St Pete, FL
peace.gif
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'];

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Some problem in Friends MOD
PostPosted: 08/19/2007 6:41 AM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 2:40 AM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Ahan, so he limited to 20. I see that you removed the limitation code. Cool blob8

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  dontknow
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: Some problem in Friends MOD
PostPosted: 08/19/2007 6:52 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 6:40 PM
Location: St Pete, FL
peace.gif
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...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Some problem in Friends MOD
PostPosted: 08/19/2007 7:23 AM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 2:40 AM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Ah, yeah. Sorry, i didn't understand this much!  Brick wall

Thanks a lot brother.  Applause  Applause
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: Some problem in Friends MOD
PostPosted: 08/19/2007 7:28 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 6:40 PM
Location: St Pete, FL
peace.gif
Don't forget to upload the missing file to the other templates.  You may decide to use them some day...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Some problem in Friends MOD
PostPosted: 08/19/2007 7:31 AM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 2:40 AM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Alright. Sure.  I will make it today Smile
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: Some problem in Friends MOD
PostPosted: 08/19/2007 7:54 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 6:40 PM
Location: St Pete, FL
peace.gif
Kewl...

banana  banana  banana  banana  banana
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours

Page 1 of 1


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0704s (PHP: 74% - SQL: 26%) - SQL queries: 58 - GZIP disabled - Debug on