71
geekwright
Re: xoops.org via android smart phone

Bleekk,

There is a new truncateHtml Smarty modifier available on the current master of XoopsCore25. There basic documentation in the PR.

Everything is contained in just one file, so it should be possible to copy that one file to a 2.5.9 system if that would make for easier testing.

Let me know if it helps, or anything needs more attention.

Thanks!



72
geekwright
Re: custom login system with XOOPS ?

Look in the htdocs/class/auth directory for examples of alternate authentication mechanisms. There are existing implementations for Active Directory and LDAP.

Essentially, these alternates provision a XOOPS account to correspond to the existing user in the other directory service. The authorization (login) is performed using that other service, while the permissions in XOOPS are granted to the associated provisioned account for the user.

You can extend the existing mechanism by adding a new class extending the XoopsAuth class for your needs, and adding a configoption entry for it, following the examples set by the existing classes.



73
geekwright
Re: XoopsPreload

Does the file /home2/tshsp/public_html/include/common.php exist?



74
geekwright
Re: XoopsPreload

Are you sure the PATH settings in mainfile.php are correct? This could be a symptom of the XOOPS_ROOT_PATH being invalid.



75
geekwright
Re: xoops.org via android smart phone

Quote:

Bleekk wrote:
...
It would be nice if someone could take care of the publisher bug and the cut off tags which I mentioned couple of months ago :)


Mamba and I talked about the cut off tags back then, and he found a neat class that I am playing with right now. The basic idea will be a new Smarty modifier, similar to truncate, but capable of splitting html gracefully. I'll let you know as soon as it is ready to test.

Thanks!!!



76
geekwright
Re: xoops.org via android smart phone

You can see the news, but can you follow the link in the displayed news?

The problem I see is that once the responsive code collapses down to one column, the links stop working. It looks like there is a huge (invisible) layer over top of content area blocking access to everything under it.

This is NOT an android thing. Chrome and Firefox both show this behavior on the desktop when you shrink the window size until the code switches the display to one column.



77
geekwright
Re: Usage of fineupload

Someone was going to write up a howto, but I never saw it.

Here are examples of all of the pieces:

Initialize fineuploader
- htdocs/modules/system/admin/avatars/main.php
- htdocs/modules/system/templates/admin/system_avatars.tpl

Handling the Upload
- htdocs/ajaxfineupload.php
- htdocs/modules/system/class/fineuploadhandler.php
- htdocs/modules/system/class/fineavataruploadhandler.php

In the initialize phase, your code sets up the javascript front end the user interacts with.
The existing uses in XOOPS assign variables used a Smarty template to build the JS code.
One of your code's major responsibilities is to build the JSON Web Token that is used in
authorization for any uploading and controls the handling of the uploaded file(s).

The payload for the JWT needs to have these claims.

'aud' => 'ajaxfineupload.php',          // program to process the token (audience)
'uid' => $user,                         // what user can use this token
'handler' => 'fineavataruploadhandler'// handler class that will store the file
'moddir' => 'system',                   // module handler belongs to

Any other information you might need to pass to your handler can be added to the token.

On the upload, the ajaxfineupload.php is a generic endpoint that handles the upload process,
including security, i.e. verifing the claims. It then loads the specified handler class, giving
it access to the claim data and the file to be stored. The handler should take care of any
additional needs like database entries to identify the upload.

I hope this helps.



78
geekwright
Re: Template System for Xoops 2.6.x

The next generation XOOPS will be Smarty 3 based.

In addition to moving to Smarty v3, we are moving away from the double delimiters for tags, instead using the default { and }. This means that Smarty examples will work without translation, and most modern editors will recognize the template tags for what they are without needing any additional configuration.



79
geekwright
Re: Xoops Database Class

Unfortunately, I am not aware of any stand alone documentation of the XoopsDatabase classes.

Good news, the classes do have some useful internal documentation:
http://api.xoops.org/2.5.9/class-XoopsMySQLDatabase.html

In general, the methods correlate closely to the mysqli functions of PHP, so the documentation there is useful:http://php.net/manual/en/book.mysqli.php



80
geekwright
Re: protector.php not found

Sorry to hear you had so many issues. We did test against 2.3 but since 2.3 won't install on anything that can run 2.5.9, just getting the core running so it could be upgraded was not simple. It would have been nice to have a VM with a real working 2.3 system to test against, but we didn't have that.

From what you described, the manual mainfile.php changes needed in 2.3 to enable protector, caused some new protector code to be loaded before the autoloader for Xmf was started. I'll add a note to the manual to remove that code before starting the upgrade.

Quote:

Moonrakre wrote:
... because the upgrade instructions didn't says to copy xoops_data folder to the installed _data folder (similar to _lib).

Ooops! Thanks for pointing that out. I'll put in a correction for that, too.

Just for reference, the xoops_data instructions are only missing from the quick overview. It does mention that in the detailed instructions:

Copy New Files to the Site
... You should copy the xoops_data and xoops_lib directories to wherever these were relocated during the install. ...

Glad you got it up and running, and thanks for the reports.




TopTop
« 1 ... 5 6 7 (8) 9 10 11 ... 22 »



Login

Who's Online

228 user(s) are online (156 user(s) are browsing Support Forums)


Members: 0


Guests: 228


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