Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
1 + 2 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: Friendfinder 3.1 problem
by sottwell on 2004/7/11 9:47:32

I even tried having some single quote characters in the name...works fine. For me, anyway. It should; any database insertion should only be done after "sanitizing" the POST input, which includes adding slashes to escape any troublesome characters for the sql.
Re: Friendfinder 3.1 problem
by sottwell on 2004/7/11 9:39:31

Installed it, ran it "out-of-the-box", (except for checking file ownership and permissions), and it worked fine up until I wanted to view a user's profile, and commenting out the block of code mentioned above fixed that. No help, I know, but at least you can know that it does work ... sometimes

That block of code doesn't work because the function moduleExists doesn't exist as part of the XoopsModule object in the version of XOOPS you're using.

It's not important, it's just a nice bit of cross-module scripting; if you have the directfriends module installed this will (a little further down in the view.php script) create a link to the addfriend page in the directfriends module, automatically inserting the user id in the form on that page. The module will live just fine without it.

You don't have to delete it, just surround the whole block with /* */ multiline comment tags. Maybe someday you'll want to fix it and use it.

There are a LOT of notices involving the various variables and constant definitions, I'll see if I can figure out what's causing them and clear them out.

Re: Friendfinder 3.1 problem
by jmedodd on 2004/7/11 3:17:34

I was having the same problem setaside and this is how I managed to fix it:

In file view.php around line 50:

Find:

le="color: #000000"><?php //Function to see if directfriends is installed //This function only works with xoops2 if(XOOPS_VERSION=="XOOPS 2.0"){ $module_handler =& xoops_gethandler('module'); if ($module_handler->getCount(new Criteria('dirname', 'directfriends'))) { $directfriends=1; } else{ $directfriends=0; } }else{ if (XoopsModule::moduleExists("directfriends")) { $directfriends=1; } else{ $directfriends=0; } } //end of direct friends


and delete the entire block of code.

Now, I am NOT a coder, and I have no idea if this is a needed block of code for something or not, but deleting this has made my module work just fine. So far, no other errors unless I turn PHPdebug on and then that's a whole 'nother issue.
Re: Friendfinder 3.1 problem
by setaside on 2003/5/22 6:46:35

i discovered that if you have any wierd characters in ANY of the fields (like ' or ") it won't add your profile although it says it does.

however, now that i have successfully added a profile, when i go to look at profiles after searching for them, the view.php page is blank.
Re: Friendfinder 3.1 problem
by Neon on 2003/2/24 22:22:05

Sounds like you have not chmod'ed 777 the cache directory and 666 the file within. This would cause the setting NOT to be saved.

Who's Online

220 user(s) are online (148 user(s) are browsing Support Forums)


Members: 0


Guests: 220


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits