1591
Lupin
Re: A big surprise for 2020
  • 2020/2/1 13:37

  • Lupin

  • Just popping in

  • Posts: 92

  • Since: 2007/6/1 2


Mhhhh , there is life in this planet ...



1592
alain01
Re: A big surprise for 2020
  • 2020/2/1 11:30

  • alain01

  • Just can't stay away

  • Posts: 530

  • Since: 2003/6/20


Come on, last teasing before next week and before the site opens in 1 month max !!!

Try this link with any screen size you want: https://codepen.io/alain01/full/eYmaQrJ

Not even afraid !
Full responsive!



1593
mjoel
Re: a simple method to return the groups names of a user
  • 2020/2/1 5:28

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


Quote:

mjoel wrote:
i tried it like this

global $xoopsUser;
//get current user id 
//$uid = is_object($xoopsUser) ? $xoopsUser->getVar('uid') : t; 
$uid=$row['uid'];
//get groups from this user, if any 
$member_handler =& xoops_gethandler('member'); 
$groups =& $member_handler->getGroupsByUser($uidtrue); 

//the above method will give as an array of objects, lets get the name of each group  
$usergroups = array(); 
foreach (
$groups as $group) { 
    
$usergroups[] = $group->getVar('name'); 
}
$usergroupsArray implode(', '$usergroups);
echo 
$usergroupsArray;


i have more than 400 users ..only the group for 31 users is displayed before i get this error

Fatal errorCall to a member function getVar() on a non-object in custom.php on line 354


line 354 in my file custom.php refers to
$usergroups[] = $group->getVar('name');


is the code above working for XOOPS 2.5.10..help

XOOPS Version XOOPS 2.5.10
PHP Version 5.4.27
mySQL Version 5.5.36


i figured this out

in my database groups_users_link table there is user with groupid=0 .. im not sure how that happen

but i deleted all the user with groupid=0 ..and now all is well..the code above is working fine



1594
Mamba
Re: About adslight 2.3 RC3
  • 2020/2/1 5:04

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Feedback and bug reporting is always useful!

I'll take a look at that, hopefully soon...
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



1595
mjoel
Re: a simple method to return the groups names of a user
  • 2020/2/1 3:56

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


i tried it like this

global $xoopsUser;
//get current user id 
//$uid = is_object($xoopsUser) ? $xoopsUser->getVar('uid') : t; 
$uid=$row['uid'];
//get groups from this user, if any 
$member_handler =& xoops_gethandler('member'); 
$groups =& $member_handler->getGroupsByUser($uidtrue); 

//the above method will give as an array of objects, lets get the name of each group  
$usergroups = array(); 
foreach (
$groups as $group) { 
    
$usergroups[] = $group->getVar('name'); 
}
$usergroupsArray implode(', '$usergroups);
echo 
$usergroupsArray;


i have more than 400 users ..only the group for 31 users is displayed before i get this error

Fatal errorCall to a member function getVar() on a non-object in custom.php on line 354


line 354 in my file custom.php refers to
$usergroups[] = $group->getVar('name');


is the code above working for XOOPS 2.5.10..help

XOOPS Version XOOPS 2.5.10
PHP Version 5.4.27
mySQL Version 5.5.36



1596
Lupin
About adslight 2.3 RC3
  • 2020/1/31 21:37

  • Lupin

  • Just popping in

  • Posts: 92

  • Since: 2007/6/1 2


I'm working about this module and this tools:

xoops 2.5.10
PHP 7.2
MySql 5.6.44

1) I am not able to set different permission for anonymus other than blank ; when I try , I am directed to homepage.
2) strange situations also to edit ads ... the first concerns the fact that once an ad has been positively loaded, using the DHTML editor I cannot edit the additional text; by the way, if I add an image with the image manager ( during the first load ) , when I open the editor I don't see the DHTML code, but an html code.

the second concerns the fact that I can ONLY post by clicking on the "click here" button on the index page (where the add.php file works); if I try to post an ad through the subcategories (where the addlisting.php file works), I am redirected to the Home page.

I hope this can be useful.

Ah, I use xswatch theme, editing the "dark" version.

Pino



1597
aerograf
Re: A big surprise for 2020
  • 2020/1/31 8:34

  • aerograf

  • Quite a regular

  • Posts: 214

  • Since: 2017/1/7 1


Quite interesting. Scales well.



1598
Lupin
Re: Cannot enter in PUBLISHER module administration ... but "sometimes" ...
  • 2020/1/30 19:41

  • Lupin

  • Just popping in

  • Posts: 92

  • Since: 2007/6/1 2


Of course , no more service interruptions !

TY

Pino



1599
Mamba
Re: help with mysql xoops query and msaccess database
  • 2020/1/30 3:00

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Thanks for reporting back, and for showing the working code
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



1600
zyspec
Re: help with mysql xoops query and msaccess database
  • 2020/1/29 15:59

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Great! Glad you got it working....




TopTop
« 1 ... 157 158 159 (160) 161 162 163 ... 29425 »



Login

Who's Online

588 user(s) are online (342 user(s) are browsing Support Forums)


Members: 0


Guests: 588


more...

Donat-O-Meter

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

Latest GitHub Commits