1
123456
Re: get the user's group/level
  • 2005/11/9 17:06

  • 123456

  • Just popping in

  • Posts: 21

  • Since: 2005/9/23


dead?



2
123456
Re: get the user's group/level
  • 2005/11/6 18:02

  • 123456

  • Just popping in

  • Posts: 21

  • Since: 2005/9/23


i want to get the user's group, so if the user group is () do something else nothing. for example if the user's group is "TEST" i'll do "echo test" else if the group is "Registered Users" i'll do "echo registered user"
this code below is my "test.php":
<?
include 
"mainfile.php";
$member_handler =& xoops_gethandler('member');
$group_ids =& is_object($xoopsUser) ? $member_handler->getGroupsByUser($xoopsUser->getVar('uid')) : array();
echo 
"$group_ids" ";
$in_group in_array(1$group_ids);
if (
$in_group) {
   echo 
"User is in the groupn";
} else {
   echo 
"User is not in the groupn";
}
?>

Return is:
"1 User is not in the group."

it always return 1, User is not in the group. i'm quite sure i'm doing something wrong, but what exactly?



3
123456
Re: get the user's group/level
  • 2005/11/6 4:18

  • 123456

  • Just popping in

  • Posts: 21

  • Since: 2005/9/23


thanks for all examples but i'm still confused, can you give me some examples using "If - else"? and.. how do i know the group's id?



4
123456
get user's group/level
  • 2005/11/6 3:12

  • 123456

  • Just popping in

  • Posts: 21

  • Since: 2005/9/23


hello mates,
how do i get the user's group/level? ie, as far as i know, to check if an user is admin, i'd use "$xoops_isadmin" right? how can i do the same with a custom group? :) help



5
123456
customize usernames output
  • 2005/10/17 22:29

  • 123456

  • Just popping in

  • Posts: 21

  • Since: 2005/9/23


hey guys, i'd like to add an html code, after and before the username by user level, but i can't found the code where to put it on..

for example if the userlever is "webmaster" i'd like to change the color in red:

< font color="#FF0000" > username < /font >

Any help would be much appreciated!



6
123456
Re: Answer?
  • 2005/10/17 21:53

  • 123456

  • Just popping in

  • Posts: 21

  • Since: 2005/9/23


in my opinion this is pure spam



7
123456
Re: Big Time Hackers
  • 2005/10/14 23:22

  • 123456

  • Just popping in

  • Posts: 21

  • Since: 2005/9/23


hackers? lmmfao "Big Time Lamers"



8
123456
Re: Xoops Doesn't Refresh Template files
  • 2005/9/28 6:03

  • 123456

  • Just popping in

  • Posts: 21

  • Since: 2005/9/23


thank you alex, it's working
great help.

peace!



9
123456
Re: "Why am I being redirected here?"
  • 2005/9/28 5:54

  • 123456

  • Just popping in

  • Posts: 21

  • Since: 2005/9/23


hi rowdie, thanks for your time,

yeah, but i already installed php 4.3
and now i get this message when i try
to change configuration by admin panel
or i try to login..

here's the message:
"Why am I being redirected here?"
is there any way to fix it ?


Let me know, thank you.



10
123456
Re: Xoops Doesn't Refresh Template files
  • 2005/9/28 5:34

  • 123456

  • Just popping in

  • Posts: 21

  • Since: 2005/9/23


hi there, thanks for your reply,

okay, you don't have understood/read my question,

Quote:

You only modified the theme?


nope, i modified the "modules/*/templates" but XOOPS keeps the same files.
even if i delete all files from "template_c" dir, they will be recreated.


let me know, thanks.




TopTop
(1) 2 3 »



Login

Who's Online

130 user(s) are online (90 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