1061
Mage
xmdoc 1.1 Final Released
  • 2020/12/29 14:40

  • Mage

  • Core Developer

  • Posts: 206

  • Since: 2009/8/2 1


xmdoc module for XOOPS CMS 2.5.10+ is now available in version 1.1 final!

This module is initially complementary to the modules of the xm-modules series. In fact, associated with these, it will allow you to add documents to your articles (xmnews module) and to your static pages (xmcontent module). It is possible to integrate into any module! To do this, just follow the tutorial on https://www.monxoops.fr.

Changes in this version:

Bug fixes:
- Access from the index to a non-existent category generated an error message.
- The search did not take account of access rights.
- An error appeared if the document id was wrong (edition from the user part).
- An error appeared when deleting a document.

Improvements:
- Added the suppression of votes when deleting a document (xmsocial).
- If the modal option is not used, the link points to the description of the document (otherwise direct download).
- Added compatibility with XOOPS 2.5.10 (previously only compatible with XOOPS 2.5.11).
- Update of boostrap 4 templates.
- Fixed define (language).
- Compatibility with PHP 8.

xmdoc on github: https://github.com/GregMage/xmdoc

xmdoc description: https://www.monxoops.fr/modules/xmdoc/document.php?doc_id=8



1062
luciorota
Re: All about M.A.S.K. runs XOOPS 2.5.11.
  • 2020/12/29 10:23

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


Awesome job



1063
aerograf
Re: All about M.A.S.K. runs XOOPS 2.5.11.
  • 2020/12/28 10:35

  • aerograf

  • Quite a regular

  • Posts: 214

  • Since: 2017/1/7 1


Great!!! Great job!!!



1064
goffy
Re: All about M.A.S.K. runs XOOPS 2.5.11.
  • 2020/12/28 8:59

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


yes, congratultaions, looks great



1065
heyula
Re: All about M.A.S.K. runs XOOPS 2.5.11.
  • 2020/12/27 20:30

  • heyula

  • Theme Designer

  • Posts: 594

  • Since: 2008/4/24


congratulations, a nice xoops example



1066
AxelF
All about M.A.S.K. runs XOOPS 2.5.11.
  • 2020/12/27 17:41

  • AxelF

  • Theme Designer

  • Posts: 238

  • Since: 2004/7/12


Hi XOOPSers,

today I want to show you my websitre All about M.A.S.K. . But before I do so, I need to thank goffy for his support at myxoops.org. Without him, the site wasn´t possible.

What I use atAll about M.A.S.K. :

XOOPS: XOOPS 2.5.11 Beta 1
Theme: Goffys wgskiclub theme and modifyed it for my site
Modules: - Most parts of the site is using the myalbum-p module, back from the early days of xoops. With help of goffy the module is now running under the lastest XOOPS version. It is used in 6 installations, all with unique names.
- adslight
- contact-
- mylinks
- publisher
- waiting content
- wflinks
- wggallery
- xlanguage
- xoopstube (modified)
- xsitemap

I also included a lot of features, not included in XOOPS, to the site.

Like Flipbooks or 360° views

Resized Image


Resized Image


Enjoy the site, any feedback is welcome

XOOPS IS STILL ALIVE



1067
AxelF
Re: xoRewriteModule - Simplified, Short URLs?
  • 2020/12/27 9:04

  • AxelF

  • Theme Designer

  • Posts: 238

  • Since: 2004/7/12


Does a coder has the chance to have a look to the xlanguage module? I really need that fearure.

Thank you!



1068
Mamba
Re: Combine AND/OR in a CriteriaCompo
  • 2020/12/25 20:09

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Thank you for sharing!!!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



1069
goffy
Combine AND/OR in a CriteriaCompo
  • 2020/12/25 15:01

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


Sometime maybe you have the problem to combine AND and OR in a CriteriaCompo, but for this you should know how to to this.

Explanation of problem:
I want to filter my data from table 'Repositories' by following params:

'repo_user' is equal to my variable $dirName
'repo_status' should be 2 or should be 3
'repo_prerelease' should be 1 or 'repo_release' should be 1


From perspective of the query it must be solve like this:
('repo_user' $dirName) AND ('repo_status' OR 'repo_status' 3) AND ('repo_prerelease' OR 'repo_release' 1)


If you are using CriteriaCompo and combine all criterias in this way:

$crRepositories = new CriteriaCompo();
$crRepositories->add(new Criteria('repo_user'$dirName));
$crRepositories->add(new Criteria('repo_status'2));
$crRepositories->add(new Criteria('repo_status'3), 'OR');
$crRepositories->add(new Criteria('repo_prerelease'1) );
$crRepositories->add(new Criteria('repo_release'1), 'OR');
$repositoriesAll $repositoriesHandler->getAll($crRepositories);


then XOOPS creates following query:
SELECT FROM `wggithub_repositoriesWHERE (`repo_user` = 'XoopsModulesArchive' AND `repo_status` = '2' OR `repo_status` = '3' AND `repo_prerelease` = '1' OR `repo_release` = '1')


but as the parentheses are missing this query will not give the result you want.

Therefore the question is, how can we force XOOPS to add the necessary parentheses?

The solution is to create a separate CriteriaCompo for each block and combine them in a new CriteriaCompo
//first block/parentheses
$crRepo1 = new CriteriaCompo();
$crRepo1->add(new Criteria('repo_user'$dirName));

//second
$crRepo2 = new CriteriaCompo();
$crRepo2->add(new Criteria('repo_status'Constants::STATUS_UPDATED));
$crRepo2->add(new Criteria('repo_status'Constants::STATUS_UPTODATE), 'OR');

//third
$crRepo3 = new CriteriaCompo();
$crRepo3->add(new Criteria('repo_prerelease'1) );
$crRepo3->add(new Criteria('repo_release'1), 'OR');

//final combination
$crRepoFinal = new CriteriaCompo();
$crRepoFinal->add($crRepo1);
$crRepoFinal->add($crRepo2);
$crRepoFinal->add($crRepo3);

//get data
$repositoriesAll $repositoriesHandler->getAll($crRepoFinal);
unset(
$crRepo1$crRepo2$crRepo3$crRepoFinal);


Now XOOPS creates following query:
SELECT CFROM `wggithub_repositoriesWHERE ((`repo_user` = 'XoopsModules25x') AND (`repo_status` = '2' OR `repo_status` = '3') AND (`repo_prerelease` = '1' OR `repo_release` = '1'))


and now we get expected results :)

If someone have another solution you are welcome to share :)



1070
Mamba
Re: Merry Christmas
  • 2020/12/24 11:55

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Same to you and to the whole XOOPS Community!!!

And Happy New Year to everybody!!!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs




TopTop
« 1 ... 104 105 106 (107) 108 109 110 ... 29425 »



Login

Who's Online

507 user(s) are online (434 user(s) are browsing Support Forums)


Members: 0


Guests: 507


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