31
mjoel
Re: Yogurt, social networking module ready for testing and some spicing up :)
  • 2020/3/30 1:28

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


testing this module in localhost

XOOPS Version XOOPS 2.5.11-Beta1
PHP Version 7.3.12
mySQL Version 5.7.28

1. in notes
Error : Error: Class 'XoopsModules\Yogurt\MyTextSanitizer' not found

2. In photos
i tried to upload several photos..i received the message upload successfully but none are inserted to the database

3. in audios...audio can't be uploaded

4. in audios empty page

5. in tribes empty page

6. in friends
no add friend button..cant add friend

7. when trying to view other profile by using this url
http://localhost/11/modules/yogurt/index.php?uid=2

Error : Error: Class 'XoopsModules\Yogurt\Yogurt\Visitors' not found



32
mjoel
Re: Upgrading from 2.56 to 2.5.10
  • 2020/3/10 1:38

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


nevermind..i cleared all cache ..now is working fine..

Thank you



33
mjoel
Upgrading from 2.56 to 2.5.10
  • 2020/3/10 1:14

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


Hi im trying to upgrade xoops 2.5.6 to 2.5.10

Im using
PHP Version 7.2.28
mySQL Version 5.7.29

Im stuck at Applied patch upd-2.5.7-to-2.5.8..

with
0.000152 - SHOW KEYS FROM `online`
Error number: 1146
Error message: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

in the main page i received this error

i can access the admin page..im trying to update the system module but i received 500 error

how do i solve this..thank you



34
mjoel
Re: countdown module for XOOPS 2.5.9 ?
  • 2020/2/22 3:12

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


Quote:

Mamba wrote:
You can try and test these two versions:

Version 1: the original version, updated for XOOPS 2.5.9 and PHP 7.2, but the the calendar button doesn't work, i.e. you have to enter the date manually

Version 2: Quick & dirty rewrite of the Version 1, incl. a Vue countdown component.

Please note: I don't have time to do anything more with these modules, but it will be a good start for you to improve it further. Or somebody else could help you. Just fork it on GitHub


version 1 can be install

can't install version2 blank page no debug error

XOOPS Version XOOPS 2.5.10
PHP Version 5.6.25
mySQL Version 5.7.14

can anybody suggest a fix



35
mjoel
Re: Adding Main Image in Publisher - Item by same author page
  • 2020/2/17 4:11

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


Thank you mamba..code is working fine



36
mjoel
Re: Adding Main Image in Publisher - Item by same author page
  • 2020/2/16 10:31

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


i'm trying to add main image of the article at the top of every article title in the author page
example of author items page here in xoops.org
Resized Image


not sure what the problem is i tried to paste my image codethat i used in publisher_author_items.tpl but its not appearing correcly in my last post and in this post this is the screenshot of the code
Resized Image

?>



37
mjoel
Adding Main Image in Publisher - Item by same author page
  • 2020/2/15 15:57

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


Hi i would like to add main image of article in Publisher item by same author page

here's what i did so far following from some example ... but its not working..i got 500 error page

in publisher/author_items.php...my image code is after the line rating
..i added the bold part
$categories[$catId]['count_items']++;
        
$categories[$catId]['count_hits'] += $item->counter();
        
$categories[$catId]['items'][]    = [
            
'title'     => $item->getTitle(),
            
'hits'      => $item->counter(),
            
'link'      => $item->getItemLink(),
            
'published' => $item->getDatesub(_SHORTDATESTRING),
            
//'rating'    => $xoopsLocal->number_format((float)$item->rating())
            
'rating'    => $item->rating(),
          
'image'     => $item->getMainImage(),
        ];
        
$mainImage       $item->getMainImage();
        
// check to see if GD function exist
        
if (!function_exists('imagecreatetruecolor')) {
            
$item['image'] = $mainImage['image_path'];
        } else {
            
$item['image'] = PUBLISHER_URL '/thumb.php?src=' $mainImage['image_path'] . '&w=' $imgWidth// No $imgHeight for autoheight option
           
}
    }
    
}


in template publisher_author_items.tpl i used

$item.item_image

please help thank you



38
mjoel
Re: wgGallery 1.10 ready for testing
  • 2020/2/11 0:33

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


ok thanks noted goffy



39
mjoel
Re: wgGallery 1.10 ready for testing
  • 2020/2/10 3:55

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


Hi i downloaded the latest version in github wggallery 1.14 RC1 for testing

when installing i received this error

Failed to execute xoops_module_pre_install_wggallery

XOOPS Version XOOPS 2.5.10
PHP Version 5.6.40
mySQL Version 5.7.29



40
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




TopTop
« 1 2 3 (4) 5 6 7 ... 28 »



Login

Who's Online

254 user(s) are online (168 user(s) are browsing Support Forums)


Members: 0


Guests: 254


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