xoops forums

Forum Index


Board index » All Posts




princeemilec

Just popping in
Posted on: 2019/12/9 21:21
princeemilec
princeemilec (Show more)
Just popping in
Posts: 6
Since: 11/3 20:12
#31

Re: Xoops notification system

Thanks


Yurdal

Friend of XOOPS
Posted on: 2019/12/9 18:35
Yurdal
Yurdal (Show more)
Friend of XOOPS
Posts: 365
Since: 2005/3/27
#32

Re: oledrion: phpmailer postSend() not returning - stuck in try loop

@rossb
Really good work, someone has to give this modules a new live, as now most of the modules are not godd or not functioning any more
I'm afraid I cant help with code but if there any need to test environment I can help


rossb

Just popping in
Posted on: 2019/12/9 14:14
rossb
rossb (Show more)
Just popping in
Posts: 54
Since: 2006/8/28
#33

Really stupid php / sql problem

Xoops 2.5.9

attempting to fix oledrions bug: "Oledrion\Utility::getEmailsFromGroup" is returning empty

The emails are for the vendor to be notified of sale.

// grp_sold is config var == 1 (Administrator group)
$db XoopsDatabaseFactory::getDatabaseConnection();
$grp_sold_user_ids = []; // Array of user ID's to send emails to
$sql 'SELECT uid FROM ' $db->prefix('groups_users_link') . ' WHERE groupid=' . (int)$grp_sold;
$result_sql $db->query($sql);
if (
$result_sql) {
    while (
$myrow $db->fetchArray($result_sql)) {
        
$grp_sold_user_ids[] = $myrow['uid'];
    }
}
file_put_contents(OLEDRION_GATEWAY_LOG_PATH"implode: " implode(','$grp_sold_user_ids) . "n"FILE_APPEND LOCK_EX);
$sql 'SELECT email FROM ' $db->prefix('users') . ' WHERE uid IN (' implode(','$grp_sold_user_ids) . ')';
$admin_emails = []; 
$result_sql $db->query($sql);
if (
$result_sql) {
    while (
$myrow $db->fetchArray($result_sql)) {
        
$admin_emails[] = $myrow['email'];
    }
}


What I am seeing:
$grp_sold_user_ids tests as array, print_r($grp_sold_user_ids); evaluates to 1
implode(',', $grp_sold_user_ids); // returns null should be 1
implode(',', array(1,2,3); //returns 1,2,3 - OK
implode(',', array(1); //returns 1 - OK

Anyone?
Thanks, Bill


rossb

Just popping in
Posted on: 2019/12/9 13:32
rossb
rossb (Show more)
Just popping in
Posts: 54
Since: 2006/8/28
#34

Re: oledrion: phpmailer postSend() not returning - stuck in try loop

figured out you're really busy - not rocket science.

when you do get around to oledrion, hopefully only tasks remaining:
- code review my RC2 changes - will send U patches
- theming needs serious work

...B


Dhurgan

Just popping in
Posted on: 2019/12/9 6:50
Dhurgan
Dhurgan (Show more)
Just popping in
Posts: 68
Since: 2004/2/11
#35

Re: Upgrade problem going from 2.3.3 to 2.5.10

That was my plan if there wasn't any ready made difference scripts...
A fresh install it is then... it's always troublesome when there large jumps in versions, especially since everything jumped in the LAMP also :)


Mamba

Moderator
Posted on: 2019/12/9 0:20
Mamba
Mamba (Show more)
Moderator
Posts: 10818
Since: 2004/4/23
#36

Re: oledrion: phpmailer postSend() not returning - stuck in try loop

Please keep up posted on your progress.

I don't think, I'll have the time to dive into Oledrion before Christmas, but maybe somebody else could help....
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs


Mamba

Moderator
Posted on: 2019/12/9 0:11
Mamba
Mamba (Show more)
Moderator
Posts: 10818
Since: 2004/4/23
#37

Re: Warning with xoInboxCount

Great! Thanks for sharing!!!!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs


Mamba

Moderator
Posted on: 2019/12/9 0:09
Mamba
Mamba (Show more)
Moderator
Posts: 10818
Since: 2004/4/23
#38

Re: Upgrade problem going from 2.3.3 to 2.5.10

HI Dhurgan,

it's always great to see loyal users of XOOPS!

I don't know what to tell you, without looking at the installation.

What you could do is to create a fresh installation of XOOPS, and then compare the structure of the user table on both installations, and check if there are any differences, and then eventually make these changes manually.

Let us know what you find out, so we can see if we need to make some changes to the Upgrade script.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs


Mamba

Moderator
Posted on: 2019/12/9 0:05
Mamba
Mamba (Show more)
Moderator
Posts: 10818
Since: 2004/4/23
#39

Re: Urgent help!!! Creating new block leads to an error

Just make sure that all the modules that you have are tested and working on PHP 7.x
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs


Mamba

Moderator
Posted on: 2019/12/9 0:04
Mamba
Mamba (Show more)
Moderator
Posts: 10818
Since: 2004/4/23
#40

Re: Xoops notification system

Do you want to "upload" a video, or just add a link to the video that is already somewhere, e.g. on YouTube?

If you want to upload a video, then just use any FTP program to upload your video to a folder of your choice (e.g. to /uploads)

Then publish a link to the video. As an example, the link normally could look like this:

http://mysite.com/uploads/videos/video1.mp4
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



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