xoops forums

Forum Index


Board index » All Posts (fabou78)




fabou78

Friend of XOOPS
Posted on: 9/7 18:24
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#11

Fine tuning template won't show on browser

I was trying to update the navbar and was under the assumtion that themes/xbootstrap/tpl/nav-menu.tpl was the correct file when using them xboostrap.

When I refresh my browser my changes are not coming up, restarting my webserver won't work either.

cleaning the data/caches/ folder won't work either

In an attempt to disable caching I have attempted

$tpl->caching = 0; in backend.php file with no success either.

Anyone know how I can work on the template and have my changes reflected straight after browser refresh ? If caching is the issue here how to disable it?


fabou78

Friend of XOOPS
Posted on: 9/5 15:20
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#12

Re: 2.5.10 - User profile won

Thanks Mamba for your help got it sorted now.

I can update mysql on my server but my hosting provider won't so need to stick to the version I have.


fabou78

Friend of XOOPS
Posted on: 9/3 14:01
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#13

Re: 2.5.10 - User profile won't install when using utf8mb4

Doing the change as requested moved the problem to table "profile_regstep" (line 43 in same file you mentioned)

So I have then changed
`step_name`       varchar(255)
to
`step_name`       varchar(200)
(line 45) and it installed the module fine.

Do you have an idea on what is going on?


fabou78

Friend of XOOPS
Posted on: 9/3 10:39
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#14

2.5.10 - User profile won't install when using utf8mb4

Setup of the server:
XOOPS Version XOOPS 2.5.10
PHP Version 7.2.22
mySQL Version 5.7.27-0ubuntu0.16.04.1 - (Ubuntu)
OS Linux Ubuntu Server

Creating database at install won't work with my current provider so I need to create database beforehand. The default charset for my provider is utf8mb4_unicode_ci.

When using this, I can't install the user profile module and it is showing the following MySQL related error.
0.000255 CREATE TABLE profile_field ( `field_idint(12unsigned NOT NULL auto_increment, `cat_idsmallint(5unsigned NOT NULL default '0', `field_typevarchar(30NOT NULL default '', `field_valuetypetinyint(2unsigned NOT NULL default '0', `field_namevarchar(255NOT NULL default '', `field_titlevarchar(255NOT NULL default '', `field_descriptiontext, `field_requiredtinyint(1unsigned NOT NULL default '0', `field_maxlengthsmallint(6unsigned NOT NULL default '0', `field_weightsmallint(6unsigned NOT NULL default '0', `field_defaulttext, `field_notnulltinyint(1unsigned NOT NULL default '0', `field_edittinyint(1unsigned NOT NULL default '0', `field_showtinyint(1unsigned NOT NULL default '0', `field_configtinyint(1unsigned NOT NULL default '0', `field_optionstext, `step_idsmallint(3unsigned NOT NULL default '0'PRIMARY KEY (`field_id`), UNIQUE KEY `field_name` (`field_name`), KEY `step` (`step_id`, `field_weight`) ) ENGINE=MyISAM
Error number
1071
Error message
Specified key was too longmax key length is 1000 bytes



If I force the database into utf8_general_ci the installation would work fine.

I have read somewhere that since MySQL 5.5.3 is advised.

Is there no support yet for XOOPS runing on utf8mb4_unicode_ci?

I have little understanding of the issue nor the effect of changing character set on database but I ham fully admin on my server so can run any commands for debug if required.

My aim is to reproduce an environment as close as possible to our hosting service for future website migration.


fabou78

Friend of XOOPS
Posted on: 2018/3/26 12:56
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#15

Re: NewBB 5.0 is in development

Thanks Mamba,

I will start testing with 4.33 on 2.5.9 for now and report any issue found. Also please note that changelog.txt still do not mention about 2.5.9 (only 2.5.8 is shown).

If I get it correctly there is no functionality differences or major structural changes between 4.33 and 5 but only bug fixes and port to PHP 7?

I am asking because I am working on moving our old forum from 2.5.0 which is running a quite old version of NewBB to either 4.33 or 5 depending on if there is no drastic change in the way it works.


fabou78

Friend of XOOPS
Posted on: 2018/3/24 18:22
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#16

Re: NewBB 5.0 is in development

Hi guys,

Can you please confirm that there is no NewBB module available at the moment for XOOPS 2.5.9 aside 5.0 which is still in Dev?

Also as far as I can see the latest NewBB is 4.33 RC 13 which would work for 2.5.8 and not tested/approved for 2.5.9?

Can you please confirm if my above assumptions are correct?


fabou78

Friend of XOOPS
Posted on: 2016/1/28 13:53
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#17

Re: What is the best method to handle patching

didn't know that, will give it a try. thanks


fabou78

Friend of XOOPS
Posted on: 2016/1/26 20:18
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#18

Re: What is the best method to handle patching

Thanks,

I get the idea, and didn't think of it. Can't use winmerge 2 as I am working under Linux but could use diff or rsync on command line or some other flavor if those in GUI.


fabou78

Friend of XOOPS
Posted on: 2016/1/26 16:06
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#19

What is the best method to handle patching

Hi guys,

Not really a XOOPS specific question but most likely looking for advises in patching.

At the moment I am fine-tuning my web site and I end up modifying loads of file offline mainly from xbootstrap theme and newbb module. So what I do is that I run a find command on my Linux test server looking for all files modified recently and assemble all those file into a gz archive. Then I just upload the patch file to the public server.

I there any other way of doing this? What method are you using for controlling patching? I had a look into git but find it a bit scary.


fabou78

Friend of XOOPS
Posted on: 2015/12/21 17:17
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#20

Re: Hilight current module in main page nav-bar

Following Bleekk lead and some search on internet I came to use php fuction strripos as follow

{if (!strripos($xoops_requesturi, '/modules/newbb') === false)}>active<{/if}

Seem to be doing the job fine...



TopTop
« 1 (2) 3 4 »