11
liomj
Re: Xlanguage Module - Default Language Issue
  • 2021/8/19 8:00

  • liomj

  • Just popping in

  • Posts: 67

  • Since: 2012/4/10


Quote:

alain01 wrote:
Strange,
did you create Config file ?

Tab Manage Languages, bottom ! (create config file).

In my config file :
<?php
    $cachedConfig
['xlanguage_base'] = array(
        
"english"=>array(
            
"lang_id"=>1,
            
"weight"=>20,
            
"lang_name"=>"english",
            
"lang_desc"=>"English version",
            
"lang_code"=>"xen",
            
"lang_charset"=>"UTF-8",
            
"lang_image"=>"english.gif"
        
),
        
"french"=>array(
            
"lang_id"=>2,
            
"weight"=>10,
            
"lang_name"=>"french",
            
"lang_desc"=>"Version française",
            
"lang_code"=>"xfr",
            
"lang_charset"=>"UTF-8",
            
"lang_image"=>"french.gif"
        
),
    );
?>


Hi alain,

I dont use any ext language and config file is created but i still have the problem



12
liomj
Re: Xlanguage Issue
  • 2021/8/18 1:54

  • liomj

  • Just popping in

  • Posts: 67

  • Since: 2012/4/10


i made some self troubleshooting testing with xoops 2.5.11 beta and xlanguage 3.1.2 with different browsers

a. Firefox - remove english as language settings in browser
- clear cache now my translation is working as default without clicking the flag image

b. chrome - remove english language from setting
- clear cache - translation not working

im not sure if this got to do with browser language setting but if i used the old xlanguage, i dont have this problem



13
liomj
Re: Xlanguage Issue
  • 2021/8/18 1:40

  • liomj

  • Just popping in

  • Posts: 67

  • Since: 2012/4/10


i solved it temporarily by using old version of xlanguge 3.0 from an older installation...



14
liomj
Xlanguage Module - Default Language Issue
  • 2021/8/18 1:38

  • liomj

  • Just popping in

  • Posts: 67

  • Since: 2012/4/10


Hi, How do i set my language as Default ?

What did i miss, i setup it like this

a. add my language folder in root/language/ and also in root/modules/xxx/language also others place where language folder exists
b. change the Preferences - General Settings - Default Language
c. Install xlanguage module
d. Add base language, my local language and English language
f. Activate block language
g. try to change language using block - success

but my site default language is still English .. i need to click the flag image in the language block to change to my local language,

i've cleared my cache, use incognito and private browser mode and also use another pc..same problem

if i deactive uninstall the xlanguage module, i will see my translation

Im using
XOOPS Version XOOPS 2.5.11-Beta2
PHP Version 7.4.21
MySQL Version 5.5.5-10.4.20-MariaDB
xlanguage 3.1.2

https://github.com/XoopsModules25x/xlanguage



15
liomj
Re: user and group maintenance help
  • 2021/4/23 3:18

  • liomj

  • Just popping in

  • Posts: 67

  • Since: 2012/4/10


Quote:

goffy wrote:
hi

i would suggest:
first determine all relevant uids/links from group 5 and store them in a temporary table
Quote:
CREATE TABLE temp as SELECT linkid, groupid FROM xe07_groups_users_link as query1 INNER JOIN (SELECTxe07_groups_users_link.uid FROM xe07_groups_users_link WHERE (((xe07_groups_users_link.groupid)=5))) AS query2 ON query1.uid = query2.uid;


then delete all items from table groups_users_link from this uids where group_id <> 5
Quote:
DELETE xe07_groups_users_link,temp FROM xe07_groups_users_link INNER JOIN temp ON temp.linkid = xe07_groups_users_link.linkid WHERE xe07_groups_users_link.groupid <> 5


please make data backup before


thank you all

im using geekwright method for now

i need to use php to deal with array
DELETE FROM `xxxx_groups_users_linkWHERE `uidin (SELECT `uidfrom `xxxx_userswhere uid in (396,12))
DELETE FROM `xxxx_groups_users_linkWHERE `uidin (SELECT `uidfrom `xxxx_userswhere uid='396')
INSERT INTO `xxxx_groups_users_link`(groupiduidVALUES (5,396)



16
liomj
Re: wgGallery 1.15 RC2 ready for testing
  • 2021/4/22 9:05

  • liomj

  • Just popping in

  • Posts: 67

  • Since: 2012/4/10


nice solved..thank you very much goffy



17
liomj
Re: Default templates vs Bootstrap 3, 4 and 5 Templates during module installation
  • 2021/4/22 8:36

  • liomj

  • Just popping in

  • Posts: 67

  • Since: 2012/4/10


good idea alain,

will be great if this can be implemented since the bootstrap will be continue to be updated from time to time



18
liomj
user and group maintenance help
  • 2021/4/22 8:29

  • liomj

  • Just popping in

  • Posts: 67

  • Since: 2012/4/10


Hi i need help to do maintenance on my xoops user through mysql query

let say I have an office intranet xoops site user database > 1000

if the user resign user will be set to inactive and put into a special group inactive user (let say groupid 5)

i have more than 10 groups,
how can i set mysql query to delete all the groups_users_link for the inactive user and set them to belong to only group id number 5 (inactive user)



19
liomj
Re: wgGallery 1.15 RC2 ready for testing
  • 2021/4/22 6:46

  • liomj

  • Just popping in

  • Posts: 67

  • Since: 2012/4/10


Quote:

goffy wrote:
do you have enabled the 'exif' extension in your php? If not please enabled it or deactivate the 'Save meta data (exif)' in module preferences.


problem solved

Quote:

goffy wrote:
are you using an adapted template set in your theme for wggallery? maybe you have to replace the admin templates there


im using the xswatch 4 theme, not using any admin template for wggallery

cache cleared



20
liomj
Re: wgGallery 1.15 RC2 ready for testing
  • 2021/4/22 2:31

  • liomj

  • Just popping in

  • Posts: 67

  • Since: 2012/4/10


Quote:

goffy wrote:
Hi

wgGallery 1.15 RC2 is ready for testing: https://github.com/XoopsModules25x/wggallery

I have added some new features to wgGallery:
- single image upload (especially for liomj :) )
- added batch upload (via ftp) in admin area


Thank you goffy for this new feature

i tried to upload the single image and batch upload

Error : Error: Call to undefined function XoopsModules\Wggallery\exif_read_data()
Error: Error: Call to undefined function XoopsModules/Wggallery/exif_read_data() in file /modules/wggallery/class/ImagesHandler.php line 270

XOOPS Version XOOPS 2.5.11-Beta1
PHP Version 7.4.16
mySQL Version 5.7.34


for the cloning feature..cloning the module is successful after click the submit button but there is no successful cloning message

Resized Image




TopTop
« 1 (2) 3 4 5 6 »



Login

Username:
Password:

Lost Password? Register now!

Who's Online

64 user(s) are online (40 user(s) are browsing Support Forums)


Members: 0


Guests: 64


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits