51
deka87
Re: Paid access to some parts of the website
  • 2009/1/19 14:20

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


oh ok, but if I simply insert this in profile/search.php I won't place the 'mygroup' members in top of search results..
Mind anchors

52
Mazarin
Re: Paid access to some parts of the website
  • 2009/1/19 16:57

  • Mazarin

  • Just can't stay away

  • Posts: 533

  • Since: 2008/12/10


globla $xoopsUser; did the trick! It works perfectly. Thanks you sooooooo much for your help trabis. Had I known you when I was in Portugal last September, I would have bought you a beer (or ten).

Once again, thank you!

53
deka87
Re: Paid access to some parts of the website
  • 2009/1/20 19:27

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


im afraid my post is forgotten now. just want to update and ask again. how using this code:
$verGrupos $thisUser->getGroups();
if (
in_array("6"$verGrupos) ) {
and adding this in the modules/search.php get the 'mygroup = 6' members top placed in the search results?..
Mind anchors

54
trabis
Re: Paid access to some parts of the website
  • 2009/1/20 20:58

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I´m sorry Deka but I don´t have the time nor the will to help you on this. Your question is getting into much detail and I doubt this will help anybody else then you. You may find useful information in http://www.php.net/

55
ghia
Re: Paid access to some parts of the website
  • 2009/1/20 23:18

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


I think you will have to rewrite the search from bottom up. It now searches via the profile handler in the user and profile table, which don't know about groups.
So, you can't add simply a sort order to the query.
The result sets are also only partial which prevents post sorting.
You need a replacement for the profile handler in this search function. (Or is it possible to combine an SQL statement with a criteria?)

56
deka87
Re: Paid access to some parts of the website
  • 2009/1/21 7:02

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


hmm okay thanks guys, guess i will have to give it up for a while. the top placement was supposed to be one of the paid options... maybe I'll stick with bolding their names in the search results which is a good idea to.
Mind anchors

57
hrac
Re: Paid access to some parts of the website
  • 2009/1/29 6:18

  • hrac

  • Quite a regular

  • Posts: 305

  • Since: 2002/7/15


Hello,
I installed subscription module and paypal payment gateway. But I want to customize and do something else (instead of default behaviour, I only need to update several database tables) after a succesfull payment from paypal. How to do this? Which file or files should I need to alter?
Thanks

Login

Who's Online

377 user(s) are online (267 user(s) are browsing Support Forums)


Members: 0


Guests: 377


more...

Donat-O-Meter

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

Latest GitHub Commits