xoops forums

Forum Index


Board index » All Posts (geekwright)




geekwright

Quite a regular
Posted on: 3/13 18:34
geekwright
geekwright (Show more)
Quite a regular
Posts: 298
Since: 2010/10/15
#1

Re: Cannot connect BDD Mysql

Where are you running the install code? On your local computer or on webcindario.com?

In the fourms at https://soporte.miarroba.com/ there are a number of problems reported because
mysql.webcindario.com does not accept external connections. The PHP code must be running on a webcindario.com server.


geekwright

Quite a regular
Posted on: 3/7 5:55
geekwright
geekwright (Show more)
Quite a regular
Posts: 298
Since: 2010/10/15
#2

Re: Github and language repository

Think about that in the other direction.

You have a your git clone of XOOPS-monxoops-Traduction-FR.
You also have your wamp accessible XoopsCore25.

Make a script (*.bat file) that will copy the htdoc directory from XOOPS-monxoops-Traduction-FR to the htdoc directory in XoopsCore25 (i.e. using robocopy). Add another line in the script to copy the upgrade directory, too. (You want to make sure you don't copy the ".git" folder as that would be bad.)

Now, adjust your workflow to edit your translation in your XOOPS-monxoops-Traduction-FR repository, then run the copy script to test everything in wamp.

If you automate this with a script, and always edit in the XOOPS-monxoops-Traduction-FR repository clone, you always have all the updates that need commited in the right place.

A couple of apologies:

Sorry that the language folders are so awkward to work with. Making the translations much easier to work with and install is a high priority in the next generation XoopsCore.

Also sorry to be vauge about the Windows commands -- last time I rebooted into Windows, I had to wait more that two hours for updates and I don't have that much time right now.


geekwright

Quite a regular
Posted on: 2/13 23:54
geekwright
geekwright (Show more)
Quite a regular
Posts: 298
Since: 2010/10/15
#3

Re: use line-break in tpl files

Quote:
goffy wrote: ... if I use
$xoopsMailer->assign('RESULT''Newsletter 1<br>Newsletter 2<br>Newsletter 3);
I get in the mails also Quote:
Newsletter 1
Newsletter 2
Newsletter 3
the same with \r\n, \r or \n how can I get a line break?
The string is defined in single quotes, so the \n and \r each are treated as 2 characters, not the control character you expect. https://www.php.net/manual/en/language ... ypes.string.syntax.single


geekwright

Quite a regular
Posted on: 1/17 21:49
geekwright
geekwright (Show more)
Quite a regular
Posts: 298
Since: 2010/10/15
#4

Re: Cannot enter in PUBLISHER module administration ... but "sometimes" ...

I had not realized the new module code was doing this. Cool feature.

I've got a few thoughts.

Looks like we should be checking the CURLINFO_RESPONSE_CODE with curl_getinfo() to make sure the return is a 200. A lot of other codes can be returned with a valid json body that are totally different than the releases body. An example is the 403 response code for a rate limit exceded error - https://developer.github.com/v3/#rate-limiting

We might also consider a more precise end point, like this:
https://api.github.com/repos/XoopsModu ... publisher/releases/latest

To be good github citizens, we should cache the results for some period of time so we don't generate hundreds of checks while doing publisher setup activities. The period could easily be an hour or more. Xmf\Module\Helper\Cache::cacheRead() could make that easy.

One last observation not directly related to this issue, since publisher can be cloned, it looks like this check will not get any data, or wrong data from another module.


geekwright

Quite a regular
Posted on: 1/14 5:49
geekwright
geekwright (Show more)
Quite a regular
Posts: 298
Since: 2010/10/15
#5

Re: Customize blocs with no title in the managment page

Went with the minimal change approach with comment style slash-slash-space starting the title. Simple, but effective.

https://github.com/XOOPS/XoopsCore25/pull/762


geekwright

Quite a regular
Posted on: 1/13 17:50
geekwright
geekwright (Show more)
Quite a regular
Posts: 298
Since: 2010/10/15
#6

Re: Customize blocs with no title in the managment page

This is a common problem, I know I have this issue. Perhaps, it would be best if it is handled outside of the theme in core?

I would suggest we treat a block title starting with "// " (slash, slash, space) as a comment, and suppress the title when the block is rendered.

This would allow switching themes without resulting in a bunch of "@ - " block titles

The "//" is a comment indicator in many languages (such as PHP, C, JAVA, JavaScript to name a few) so it could be semantically familiar for some.

What do you think?


geekwright

Quite a regular
Posted on: 1/12 3:39
geekwright
geekwright (Show more)
Quite a regular
Posts: 298
Since: 2010/10/15
#7

Re: Getting a "403 Access denied" error when trying to access the Private Messages module

A 403 status is not something XOOPS itself would generate directly.

Some thoughts:
- check for a .htaccess file in the modules/pm/ directory
- make sure permissions for the modules/pm/ directory are set to allow access by the web server
- if using a SELINUX enable server double check the security context for the directory


geekwright

Quite a regular
Posted on: 1/12 3:26
geekwright
geekwright (Show more)
Quite a regular
Posts: 298
Since: 2010/10/15
#8

Re: Customize Blocks and smarty variable

There is no variable processing inside custom HTML blocks. Smarty, and all of its functions, is not available.

There is one replacement that can help in any custom blocks. The code:
{X_SITEURL}
will be replaced with the XOOPS_URL with a trailing slash. You can use that to build URLs for pages or sites.

I have used that to more easily move things from a development system to a production environment, without making changes.

Long term, the next generation XOOPS has shortcodes which will be available in almost any context. That will provide a more complete and extensible solution.


geekwright

Quite a regular
Posted on: 1/9 22:01
geekwright
geekwright (Show more)
Quite a regular
Posts: 298
Since: 2010/10/15
#9

Re: JQuery problems for MAC OS ?

I've not heard anything about Mac specific jQuery issues, but I have a possible explanation for odd jQuery behavior when jgrowl is involved.

This patch was made quite recently: https://github.com/XOOPS/XoopsCore25/pull/759

All the Bootstrap based themes need to load jQuery before the Bootstrap code. Most older themes didn't need jQuery, so when there was a message to display with jgrowl (that depends on jquery,) the load of the jquery.js file was added. That resulted in two copies of jQuery being loaded. Anything that had already referenced the first copy could experience unexpected behavior. Lot of things would happily latch on to the second copy, so lots of things would work, but not everything.

The hack patch mentioned above does the load from javascript in the browser after checking if jQuery has already been loaded. That makes everything use the same copy, solving some odd issues.

The browser console log might offer more precise clues as to what is failing in your case, but the first suggestion is to update to the current master of XOOPS 2.5.11.

While there could be differences based on the OS, the Safari browser could also be a factor if it is involved. I don't currently have direct access to a Mac for testing, so I depend on report like yours. Thanks!


geekwright

Quite a regular
Posted on: 12/28 21:28
geekwright
geekwright (Show more)
Quite a regular
Posts: 298
Since: 2010/10/15
#10

Re: NewBB 5.0 Final and 4.34 Final are released

That warning only indicates that no default permission template has been saved. If you set that in the permission tab, the message will disappear. While it does log a warning, it will not cause anything to fail. The only result is you will have to set permissions for new forums manually.

What problems are you encountering?



TopTop
(1) 2 3 4 ... 21 »