41
jordi_rc
Re: Adding users vote + user visit counter in your members profils
  • 2006/10/22 8:37

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Hello again m0nty.

Thanks. I will test if I placed that well.
I think the problem goes on where add this part:

Quote:



Add this both line after this line :$xoopsTpl->assign('lang_avatar', _US_AVATAR);

$xoopsTpl->assign('lang_ratethisuser', _US_RATETHISUSER);
$xoopsTpl->assign('lang_votes', _US_VOTES);
$xoopsTpl->assign('user_votes', $thisUser->getVar('votes'));
$xoopsTpl->assign('lang_hits', _US_HITSC);
$xoopsTpl->assign('user_hits', $thisUser->getVar('hits'));
$rating = $thisUser->getVar("rating");
if (!empty($rating)) {
$xoopsTpl->assign('user_rating', number_format($rating, 2));
}
$xoopsTpl->assign('lang_ratingc', _US_RATINGC);






there are many lines that repeat the line
Quote:

$xoopsTpl->assign('lang_avatar', _US_AVATAR);



So where do you add those lines?

The problem is there, because I added them in the if that sees if one is XOOPS user and admin. But the place to add it for any XOOPS user is not clear for me, as the userinfo.php file is a bit complex.

Where should I add those lines to get the hack working?

Thanks again.

Jordi
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



42
jordi_rc
Re: Adding users vote + user visit counter in your members profils
  • 2006/10/21 19:55

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Hello again

Thanks m0nty for the advice, but again, that way code is more perfect but it happens the same.
Now I know it is my fault, because of this:

I think the problem is in userinfo.php file. There are many places where to add the lines this hacks says, so I had added the lines in the "if" when one is admin and user. I don't know where is the exact place to add those lines. They have to be placed after defining $thisuser string, so I don't know where.

Can someone that has implemented this hack in his/her XOOPS site with success PLEASE email me the file userinfo.php ? Or maybe can the hack developer explain exactly where to put those lines in that file, or better, post the file as it is after the hack ?

m0nty have you some idea where must I place the lines in userinfo?

Jordi-
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



43
jordi_rc
Re: Adding users vote + user visit counter in your members profils
  • 2006/10/20 21:01

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


OK and thanks very much for spending your time with me on this, m0nty.

If I could help you on something, just ask, I will try.

I also post here the line that throws the problem:

Quote:

$xoopsDB->query("INSERT INTO ".$xoopsDB->prefix("users_votedata")." (ratingid, uid, ratinguser, rating, ratinghostname, ratingtimestamp) VALUES ($newid, $uid, $ratinguser, $rating, '$ip', $datetime)") or $eh("0013");



Jordi.
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



44
jordi_rc
Re: Adding users vote + user visit counter in your members profils
  • 2006/10/20 19:51

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Thanks m0nty for the advice but it doesn't solves the problem.

The error is:

function name must be a string in user_rate.php line 75


I think it has to deal with syntax or maybe something that happens with admin user (1) and not with the others.

Do you have any ideas?

Jordi
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



45
jordi_rc
Help me with hack user ratings please!!
  • 2006/10/20 18:50

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Hello XOOPS friends.

I have implemented the hack for user ratings:

https://xoops.org/modules/newbb/reply.php?forum=14&topic_id=52249&viewmode=flat&start=0&post_id=235711

But I have a problem. Me, as administrator, can vote and all is ok.

If any other member tries to rate an user, I get a fatal error in line 75 of user_rate.php.

Please help me to fix this!

Jordi
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



46
jordi_rc
Re: Adding users vote + user visit counter in your member's profils
  • 2006/10/20 18:49

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Hello XOOPS friends.

I have implemented the hack for user ratings, seems great.

But I have a problem. Me, as administrator, can vote and all is ok.

If any other member tries to rate an user, I get a fatal error in line 75 of user_rate.php.

Please help me to fix this!

Jordi
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



47
jordi_rc
Re: Buddyfriends module vs directfriends
  • 2006/10/19 10:57

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


OK

I changed Buddyfriends, now it seems to work ok.

I modified part of the code to make it work, added an online caption in friends table, removed many bugs, added list of new messages ( before only 1 was showed)...

I need to know, as Buddyfriends is GPL, if I can host it or send it somewhere, to someone, to be shared with all XOOPS community, as I want this module to be developed more in the future by others.
I just added that bugfix and improvements were made by me under the names of the people that developed it before me.

Maybe many things may be fixed in the code, as I didn't removed all old variables, left those wich work.
But now, at least it works.

I need it to be tested by others, developed by us all, and please share improvements with all as I want to do.

Just please tell me where or to whom send it, or should I host it somewhere in my websites and give a link?

Jordi
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



48
jordi_rc
Re: Buddyfriends module vs directfriends
  • 2006/10/14 9:28

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Hi again

I am trying to remobe bugs to buddyfriends module.

There are minor bugs that I am solving.

There is one that is fatal error, that is thrown when someone post a private message to a user that has him in his friendlist and tries to reply from this module.

I think the call to the function of private message reply may not be right.

The error is:
Quote:

Fatal Error: Call to a member function getVar() on a non-object in /opt/lampp/htdocs/website/pmlite.php line 84


If I go to that file pmlite.php line 84:
Quote:

if ($reply == 1) {
$pm_handler =& xoops_gethandler('privmessage');
$pm =& $pm_handler->get($msg_id);
if ($pm->getVar("to_userid") == $xoopsUser->getVar('uid')) {
$pm_uname = XoopsUser::getUnameFromId($pm->getVar("from_userid"));
$message = "Quote:
\n";
$message .= sprintf(_PM_USERWROTE,$pm_uname);
$message .= "\n".$pm->getVar("msg_text", "E")."\n
";
} else {
unset($pm);
$reply = $send2 = 0;
}
}




The function in modules/buddy.php that seems to call this is like this:
Quote:


function buddycompose($to, $subject, $prev_msg) {
echo "<SCRIPT LANGUAGE=\"JavaScript\">
document.location.href=\"".XOOPS_URL."/pmlite.php?reply=1&msg_id=".$prev_msg."\"
</SCRIPT>";
exit;
}


In the end of the file we found this:

Quote:

switch($task) {
case "buddel":
buddel($prev_msg);
break;
case "buddyread":
buddyread($msg_id, $msg_time);
break;
case "buddycompose":
buddycompose($to, $subject, $prev_msg);
break;
case "buddyfriend":
displayFriendsList($beg);
break;
case "mod":
displayUsersList($beg, $letter);
break;
case "ajouter":
addFriend($uid);
break;
case "retirer":
deleteFriend($uid);
break;
default:
buddylist();
break;
}




I think that someone that knows how pmlite works can solve this easily. Please help me and help all the people here, that may want a version of Buddyfriends working all right.

When we fix it all, I will email the module to the developer so he can place this here in XOOPS site to be downloaded by all people.

Jordi.
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



49
jordi_rc
Re: Where should I post the bugs solved for a module ?
  • 2006/10/14 9:23

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Thanks m0nty.

I will email the bugs to each developer. In some modules they are so many so I think I better email the full module and let him/her find it, so I don't remmember all that I fixed.

I am also trying to remove bugs from the superb module Buddyfriends, wich works on XOOPS 2.0.15 but has many bugs not hard to fix.
I have a problem with it, seems the instruction to send a reply to a private message is not right. Maybe someone can help to fix this. I will try but I am only a beginner. I will post this in another post.

Thanks again m0nty.


Jordi
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



50
jordi_rc
Re: undefined index errors in header.php
  • 2006/10/14 9:22

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Thanks phppp!

I am runing my XOOPS site in debug mode to find the bugs.

Do you mean that I would simply ignore these messages? They are not important?

I also read in the faqs that messages like "blabla by reference...should be returned by reference" are just to be ignored.

Jordi
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR




TopTop
« 1 2 3 4 (5) 6 7 8 ... 10 »



Login

Who's Online

264 user(s) are online (182 user(s) are browsing Support Forums)


Members: 0


Guests: 264


more...

Donat-O-Meter

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

Latest GitHub Commits