21
Mamba
Re: Criteria v2.0 released – standalone XOOPS-style DB helper working with where queries parts

The XOOPS 2.7.0 includes already support for Smarty 5, so sharing your experiences with us will be very much appreciated!

Support for Doctrine and LDAP-related methods, I know that we had Doctrine already included in XOOPS 2.6.0, so we'll try to downport it to XOOPS 2.7.0 or to XOOPS 4.0. I'm not sure if LDAP was also included in XOOPS 2.6.0, but it would be definitely nice to add it.

But it will be the decision of Nicolas as the Core Team Leader.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs



22
MekDrop
Re: Criteria v2.0 released – standalone XOOPS-style DB helper working with where queries parts
  • 6/6 23:35

  • MekDrop

  • Just popping in

  • Posts: 7

  • Since: 2005/8/14


Thanks for the warm response!

Honestly, I didn’t think it would even be possible to integrate this into Xoops, especially since it’s missing support for Doctrine and LDAP-related methods.

If anything were to be included, I think the best candidates would be the Smarty v5 - related extensions I’m currently working on. They’re designed to make upgrading Smarty easier and could potentially replace most of the current Xoops Smarty v3 plugins. That said, they probably won’t be ready for at least another month.



23
MekDrop
Re: Small suggestion for latest news images
  • 6/6 23:24

  • MekDrop

  • Just popping in

  • Posts: 7

  • Since: 2005/8/14


Thanks for the response, but the problem I see is:
https://xoops.org/modules/publisher/thumb.php?src=https://xoops.org/uploads/images/img680f07df742b6.jpg&w=500&h=500

From my understanding, there is no option for scaling using the 'contains' method (which means the image should fit within the required dimensions). As a result, images in these blocks sometimes appear very stretched.



24
heyula
Re: Small suggestion for latest news images
  • 6/6 8:59

  • heyula

  • Theme Designer

  • Posts: 599

  • Since: 2008/4/24


You can add the code you mentioned for this, but the correct approach is to handle it via thumb.php. While designing the theme, I had many different ideas about the Publisher module, but due to lack of time, I couldn't implement most of them. I hope to start working on something for Xoops again soon.

The current dimensions generated by thumb.php:

https://xoops.org/modules/publisher/thumb.php?src=https://xoops.org/uploads/images/img680f03c0692e8.jpg&w=385

You can set your desired dimensions as shown in this example:

https://xoops.org/modules/publisher/thumb.php?src=https://xoops.org/uploads/images/img680f07df742b6.jpg&w=2000&h=500



25
Mamba
Re: Criteria v2.0 released – standalone XOOPS-style DB helper working with where queries parts

Thanks for the post and the link. It will be definitely interesting to check it out!

While it might not be feasible to include it in the upcoming version of XOOPS 2.5.12, it's worth to investigate it for future versions.

Right now we're finalizing XOOPS 2.5.12, and at the same time work started on XOOPS 2.7.0, which will be mainly a cleanup of old code.

After that, we were talking with Nicolas, the current Core Team Leader, about moving to XOOPS 4.0

It was nice to hear from you, and hopefully we'll be able to do some stuff together!
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs



26
Mamba
Re: Accidentally Came Across a Forum Post Preview Bug

Thank you, I'll look into it.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs



27
MekDrop
Small suggestion for latest news images
  • 6/5 20:57

  • MekDrop

  • Just popping in

  • Posts: 7

  • Since: 2005/8/14


Currently this block looks like:

Resized Image


But if you add for each image
object-fitcontain;


I think, everything becomes better:
Resized Image



28
MekDrop
Accidentally Came Across a Forum Post Preview Bug
  • 6/5 20:40

  • MekDrop

  • Just popping in

  • Posts: 7

  • Since: 2005/8/14


While writing my previous post, I discovered that if you wrap the message_hidden_data class in the preview, everything displays correctly ;)

Resized Image


I’m not sure if there’s more to it, but if not, it should be an easy fix.

P.S.: this bug happens when pressing first Preview button after the editor (when post has long lines).



29
MekDrop
Criteria v2.0 released – standalone XOOPS-style DB helper working with where queries parts
  • 6/5 20:22

  • MekDrop

  • Just popping in

  • Posts: 7

  • Since: 2005/8/14


idk if this is best practice, but there was a time when I dreamed of splitting some XOOPS functionalities into mini libraries that could be reused with more permissive licenses. One of such cases was this library – Criteria.

If I remember right, this helper was originally spun off sometime around the XOOPS 2.4 era. It was already standalone in v1.0, and the idea was to preserve the XOOPS-style query-building logic in a form that could be used outside the CMS.

Now, with v2.0, it’s been updated to run smoothly on modern PHP (8.3). This isn’t a full rewrite - just a cleanup and upgrade, using some newer language features and best practices. The public API is still the same, so if you’ve used the original, it should feel familiar.

A lot has changed in the XOOPS world since then (and honestly, still not sure why the current version isn’t called 3.0 or 4.0 - it’s clearly evolved a lot), but maybe this little library could be still useful.

Criteria v2.0 on GitHub

MIT licensed, Composer-ready, and designed to work even in non-XOOPS projects that want something XOOPS-like.

P.S.: long time not posting here; I hope everyone here is still fine ;)



30
Dante7237
Re: How Important is Cybersecurity for XOOPS-Based Sites?

Proper setup with attention to PHP settings will prevent most of it. (ie: set fopen to off etc)
Depending on your host you may have to modify your .htaccess file.
There are many online resources to guide you through that.
And this place used to be pretty quick on the draw to answer questions I'm sure it still is.




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



Login

Who's Online

164 user(s) are online (122 user(s) are browsing Support Forums)


Members: 0


Guests: 164


more...

Donat-O-Meter

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

Latest GitHub Commits