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

  • liomj

  • Just popping in

  • Posts: 96

  • 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



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

  • liomj

  • Just popping in

  • Posts: 96

  • 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)



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

  • liomj

  • Just popping in

  • Posts: 96

  • Since: 2012/4/10


nice solved..thank you very much goffy



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

  • liomj

  • Just popping in

  • Posts: 96

  • 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



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

  • liomj

  • Just popping in

  • Posts: 96

  • 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)



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

  • liomj

  • Just popping in

  • Posts: 96

  • 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



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

  • liomj

  • Just popping in

  • Posts: 96

  • 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



48
liomj
Re: Multitheme XOOPS without defacer module ?
  • 2020/10/15 12:58

  • liomj

  • Just popping in

  • Posts: 96

  • Since: 2012/4/10


i think i got this.. i changed all xoImgUrl to $xoops_imageurl in my themes and now its working



49
liomj
Multitheme XOOPS without defacer module ?
  • 2020/10/15 12:15

  • liomj

  • Just popping in

  • Posts: 96

  • Since: 2012/4/10


Hi does anyone know how to set xoops to have a different theme for different module without using Defacer module in XOOPS 2.5.10 ?

I saw this old post from the defunct xoops-tip website but its not working...the theme file is loading but the theme directory name themename is not changing
Quote:

create a new theme.html file with the following
<{php}>
      
$mod $GLOBALS['xoopsModule'];
    
$dirname = (isset($mod) ? $mod->getVar('dirname') :'system');
if (
$dirname == 'newbb') {
   
$theme='dream_on';
  } elseif (
$dirname == 'news') {
   
$theme='sunshine';
  }elseif (
$dirname == 'mylinks') {
   
$theme='imago06';
  } else {
   
$theme='7dana-rose';
}

$this->assign('themename'$theme.'/theme.html');
$this->assign('xoops_theme'$theme);
$this->assign('xoops_themecss'XOOPS_URL.'/themes/'.$theme.'/style.css');
$this->assign('xoops_imageurl'XOOPS_URL.'/themes/'.$theme.'/');
<{/
php}>
<{include 
file="$themename"}>


Create a New Theme

We created a new theme call Multi (you can name it to whatever you wish) under the theme directory - use either a FTP client or mkdir shell command.

We uploaded the newly created theme.html file into Multi theme directory. Also we uploaded the style.css file from ThemeA to the Multi directory.

Please note that style.css is not required to make your multiple themes work. Without it, all the java popup windows will not look very nice, as they can’t find a suitable style.css file under Multi theme. Javascript popup windows will only look for the style.css file under the default theme (Multi), and not under individual themes.


Enable Multiple Themes

We then went to Preferences and General Settings: selected Yes for updating theme files and selected Multi as the default theme.

Viola, we have a multi-theme site. If you have followed the steps and have not made typos and other mistakes, now you should have a multi-themed Xoops Site.



50
liomj
Re: xoops preferences "site close" override
  • 2020/10/12 21:37

  • liomj

  • Just popping in

  • Posts: 96

  • Since: 2012/4/10


Thank you Mamba




TopTop
« 1 2 3 4 (5) 6 7 8 9 »



Login

Who's Online

140 user(s) are online (115 user(s) are browsing Support Forums)


Members: 0


Guests: 140


more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Jul 31
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Latest GitHub Commits