293691
harkov
xoops vs phpnuke/postnuke/etc
  • 2002/10/29 15:01

  • harkov

  • Just popping in

  • Posts: 29

  • Since: 2002/10/7


I've been using/messing with/making some modules for XOOPS for a few weeks now, and love it. I had messed around with phpnuke/postnuke some, and truely feel XOOPS is a much nicer solution.

It seems that a decent amount of people agree with me on this, but why are there SO many more phpnuke users? There really doesn't seem to be any 'killer apps' or more themes..or more modules for phpnuke...

But I look at xoops.org, and see maybe 15-30 guests or members online. you look at phpnuke.org and there are hundreds if not thousands?

what can we do to convince more people that XOOPS is the way to go? or does anyone have any theory as to why so many people use phpnuke over xoops? is it just a legacy type thing?

- Harkov
www.bcollar.org



293692
Jan304
Re: Attention Xoops RC3.0.4/3.0.5 Users
  • 2002/10/29 11:28

  • Jan304

  • Official Support Member

  • Posts: 520

  • Since: 2002/3/31


Idd good idea. But, in normal cases you don't have to chance users details . I personal surf with Mozilla and IE because some sites really look UGLY in Mozilla, then I need IE. But, I've put that function on off, because it's almost every time suggesting the wrong things. But ok , just me thinking...



293693
lubdub
Re: Attention Xoops RC3.0.4/3.0.5 Users
  • 2002/10/29 8:21

  • lubdub

  • Just popping in

  • Posts: 64

  • Since: 2002/2/28


This was probably hanging around for a long time, it's not completely a XOOPS bug, but some "joint problem":
I use Mozilla 1.1a, which has a password manager, to keep track of usernames and passwords, somehow like IE does. Now, I made it remember my name for my XOOPS site.
The problem is: if I don't watch enough, when I'm changing the details of some user, it replaces the username in the fields with MY name, and saves it without a complaint from xoops. Thus, I have 2 users with my name and can't login anymore (luckily, I have some direct db access on my provider's host). As far as I can tell, XOOPS checks, when a new user registers, that the login isn't already used. I think it should be the case also when modifying a user.

Regards,



293694
w4z004
Re: On Win2k: "Module does not exist" + Admin Login problem
  • 2002/10/22 0:36

  • w4z004

  • XOOPS Advisor

  • Posts: 340

  • Since: 2001/12/13


go to the windows directory and search for the file php.ini
edit this and search global

you go to see GLOBAL = OFF change to GLOBAL = on
save the file. stop the apache, start and TRY is you problem are solved.


What version of php- apache- MySQL are you running ?



293695
netrunner
Re: On Win2k: "Module does not exist" + Admin Login problem
  • 2002/10/22 0:25

  • netrunner

  • Just popping in

  • Posts: 1

  • Since: 2002/10/22


how did you fix your problem?

I am new to php and xoops.

Where is the global file??

thanks
netrunner



293696
lubdub
Re: I'd like smarter polls
  • 2002/10/16 23:59

  • lubdub

  • Just popping in

  • Posts: 64

  • Since: 2002/2/28


Err... mmm... ok, let's forget what I said, then.. I'm still with RC 3.0.4 (I thought the 3.0.5 only included the security fix, which I didn't need, and I was too lazy to upgrade... )

My mistake... (but ... ok, whatever )



293697
onokazu
Re: I'd like smarter polls
  • 2002/10/16 22:03

  • onokazu

  • XOOPS Founder

  • Posts: 617

  • Since: 2001/12/13


Which version of XOOPS are you using? I see the following codes in xoopspolllog.php of RC3.0.5.

function hasVoted($poll_id$ip$user_id=NULL){
  
$db =& Database::getInstance();
  
$sql "SELECT COUNT(*) FROM ".$db->prefix("xoopspoll_log").
WHERE poll_id="
.intval($poll_id)." AND";
  if ( !empty(
$user_id) ) {
    
$sql .= " user_id=".intval($user_id);
  } else {
    
$sql .= " ip='".$ip."'";
  }
  list(
$count) = $db->fetchRow($db->query($sql));
  if ( 
$count ) {
    return 
true;
  }
  return 
false;
}



293698
lubdub
Re: I'd like smarter polls
  • 2002/10/15 18:15

  • lubdub

  • Just popping in

  • Posts: 64

  • Since: 2002/2/28


Quote:

I think the polls are based on username, if the voter is logged in. For anonymous users, we use IP.

IMHO, nope... I think there is some logic to correct, here:
here is the code from XoopsPollLog:
$sql "SELECT COUNT(*) FROM ".$db->prefix("xoopspoll_log")." WHERE poll_id=".$poll_id." AND (ip='".$ip."'";
        if ( !empty(
$user_id) ) {
            
$sql .= " OR user_id=".$user_id."";
        }
        
$sql .= ")";
        list(
$count) = $db->fetchRow($db->query($sql));
        if ( 
$count ) {
            return 
true;

The request is thus, for a logged user:
AND ( IP = ... OR UID = ... ) ==> has voted
in other words, when I have 2 users behind the same firewall, the first is able to vote, but for the second, the IP is the same, the OR condition is true and thus he can't vote.

The correct logic should be:
UID not null ==> use it whatever the ip is.
UID null ==> use the ip whichever it is (this will prevent two anonymous from behind the same firewall, but prevents also a logged user from logging out and voting again)

The corrected code should looks like:
$sql "SELECT COUNT(*) FROM ".$db->prefix("xoopspoll_log")." WHERE poll_id=".$poll_id." AND ";
        if ( !empty(
$user_id) ) {
            
$sql .= " user_id=".$user_id;
        } else {
            
$sql .= "ip='".$ip."'";
        }


Quote:

Yes, sounds like some nice ideas.

thanks



293699
onokazu
Re: I'd like smarter polls
  • 2002/10/15 17:34

  • onokazu

  • XOOPS Founder

  • Posts: 617

  • Since: 2001/12/13


Quote:

lubdub wrote:
Missing features I'd really would appreciate (of course, I could code them myself... but... not time for now )
- choose the way to record votes (for now, I think it's based on ip, but I have several users behind the same firewall, so it should be allowed to be based on username)


I think the polls are based on username, if the voter is logged in. For anonymous users, we use IP.

Quote:

- allow/prevent anonymous users to vote
- show the list of voting users with their vote (at least for admin, but some polls could be completely public)


Yes, sounds like some nice ideas.



293700
lubdub
I'd like smarter polls
  • 2002/10/15 11:16

  • lubdub

  • Just popping in

  • Posts: 64

  • Since: 2002/2/28


Missing features I'd really would appreciate (of course, I could code them myself... but... not time for now )
- choose the way to record votes (for now, I think it's based on ip, but I have several users behind the same firewall, so it should be allowed to be based on username)
- allow/prevent anonymous users to vote
- show the list of voting users with their vote (at least for admin, but some polls could be completely public)







Login

Who's Online

130 user(s) are online (101 user(s) are browsing Support Forums)


Members: 0


Guests: 130


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