21
yingzhao
Get a list of users by the group name
  • 2009/3/9 16:24

  • yingzhao

  • Just popping in

  • Posts: 45

  • Since: 2008/5/12


Hi all,

I have a code snippet, which returns a list of users belongs to a given group, works perfectly fine in XOOPS 2.0.18.1. However, after I installed XOOPS 2.3.2b and installed my application on this new XOOPS as a module, my application does not return me the list of users anymore. I have not changed my source code, and I have the mainfile.php, header.php and footer.php included in my php. I also checked the source code in the System module, system/admin/groups/main.php, and could not figure out why similar function works in the system module but not in my module. If someone could shed some lights, I would deeply appreciate it.
Here is my source code.

<?php
include_once("../../mainfile.php");
include_once(XOOPS_ROOT_PATH."/header.php");
?>

<?php
function review_getUsersByGroup($grpname){
$mem_hld = &xoops_gethandler('member');
$grps = $mem_hld->getGroupList();
$keys=array_keys($grps);
foreach($keys as $k){
echo 'groups:'.$k.'<br>'; //no result, suspect that array $keys is null
if($grps[$k]==$grpname) $grpid = $k;
}
$users = $mem_hld->getUsersByGroup($grpid,TRUE);
foreach($users as $user){
$vals[$user->uid()]=$user->uname();
}
return $vals;
}
?>

<?php
include_once(XOOPS_ROOT_PATH."/footer.php");
?>



22
yingzhao
Install multiple instance of the same module
  • 2008/12/12 20:19

  • yingzhao

  • Just popping in

  • Posts: 45

  • Since: 2008/5/12


Hello,

I am wondering which would be the most efficient way to tweak this to work.

I wrote a module with many functions in it. I would like to install multiple instance of this module on one site. Supposingly, I successfully complete the first installation (module1). I changed the module name (to module2) and its directory in the xoops_version.php. During the second instance installation, I got error:"fatal error: Cannot redeclare function() (previously declared in module1) in module2". My question is that rather than changing the name of the function() to something else in module2. Is there any other quick/dirty way to accomplish this? Many thanks.



23
yingzhao
Re: free hosting rack111.com
  • 2008/9/12 21:22

  • yingzhao

  • Just popping in

  • Posts: 45

  • Since: 2008/5/12


Have you asked rack111 support? They were talking about setting up send mail for the free accounts...



24
yingzhao
Re: free hosting rack111.com
  • 2008/9/4 15:10

  • yingzhao

  • Just popping in

  • Posts: 45

  • Since: 2008/5/12


I am still using rack111.com. And I still consider it as a good quality web host, given the features they offer and the support they provide. For example, they have mbstring support, and my Chinese version XOOPS runs beautifully on this host. I am a lot happier with rack111 than my previous paid host, which does not know anything that is multi-byte. The uptime of this host is also improved greatly. Since their last update on 8/1, I did not notice that the host has ever gone down. The customer support is also prompt and helpful.

It is true that they added one line of google ad at the bottom of my page, though that does not bother me. If you truely do not like that google ad, you can pay them $10 to have it removed. Putting myself in their shoes, I think it is fair, since they too also need to make a living.



25
yingzhao
The tabs used on the XOOPS homepage
  • 2008/7/30 14:53

  • yingzhao

  • Just popping in

  • Posts: 45

  • Since: 2008/5/12


Can anyone tell me how the tabs used to display the news & forum content on the homepage are implemented? This is a very unique thing to do. thx.



26
yingzhao
user rank vs. level
  • 2008/7/21 17:00

  • yingzhao

  • Just popping in

  • Posts: 45

  • Since: 2008/5/12


Can anyone help me to understand what the differences are between the rank and level in the _users table?

It seems to me that the level of the user created through XOOPS admin/registration is always "1", even if I assigned the user a part of the webmasters group and the his rank is also webmasters. Is there any user action that will place the user to a different level? And if the user is on a different level, can he do anything that users at level "1" can not perform? Such as being able to choose from a new set of avatars?

Thanks.



27
yingzhao
large xoops site
  • 2008/6/28 16:59

  • yingzhao

  • Just popping in

  • Posts: 45

  • Since: 2008/5/12


After research XOOPS for a couple of months, I would say that I love xoops. It is really easy to write custom extension to its core, from a developer's stand point. My question now is how big the site that a XOOPS site can support? The site I am developing will have two custom applications on top of XOOPS 2.0.18.1, but my applications do not share the same database with xoops. The applications only need to get the uid from xoops, when they write to their databases. At XOOPS side, I may only have the basic XOOPS install with extended profile management module, and perhaps an article management module.

I am relatively new to web site administration, with the site configuration mentioned above, can anyone here give a ballpark number how big the site can grow (in turns of registered user, site traffic, and else?)?

I read a similar post here about large sites,https://xoops.org/modules/newbb/viewtopic.php?topic_id=64070&forum=7&post_id=289055#forumpost289055
How big these sites are?

Appreciate your response.



28
yingzhao
free hosting rack111.com
  • 2008/6/26 22:44

  • yingzhao

  • Just popping in

  • Posts: 45

  • Since: 2008/5/12


I have recently moved to a free web host, rack111.com. The experience turned out to be very nice. My custom application built on XOOPS 2.0.18.1 runs nicely on their servers. The host has just upgraded their system and had a major account clean up, so web page load is fast. Furthermore, the host does not require adding their ads in my pages. For anyone who is out there looking for a XOOPS host, I highly recommend this one as a start.



29
yingzhao
Re: blueday: forms.css does not work in IE6
  • 2008/6/10 2:45

  • yingzhao

  • Just popping in

  • Posts: 45

  • Since: 2008/5/12


For someone who may be interested. I think I somewhat nailed the problem. It looks like that IE6 does not support [type] syntax for the <input> element. So I got rid of the [type], and IE6 is able to pick up the style now.



30
yingzhao
Re: blueday: forms.css does not work in IE6
  • 2008/6/8 5:29

  • yingzhao

  • Just popping in

  • Posts: 45

  • Since: 2008/5/12


Here is how the input fields look like in the source view.

<!-- User Login&nbsp;
<input name="uname" type="text" title=" Write your login" />&nbsp;&nbsp;<input name="pass" type="password" title=" Write your password"/>-->
<input name="uname" type="text" value=" Login" onfocus="this.value=(this.value==' Login')? '' : this.value ;" title=" Write your login"/>&nbsp;&nbsp;
<input name="pass" type="password" value=" Password" onfocus="this.value=(this.value==' Password')? '' : this.value ;" title=" Write your password"/>&nbsp;




TopTop
« 1 2 (3) 4 »



Login

Who's Online

100 user(s) are online (75 user(s) are browsing Support Forums)


Members: 0


Guests: 100


more...

Donat-O-Meter

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

Latest GitHub Commits