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

  • liomj

  • Just popping in

  • Posts: 77

  • Since: 2012/4/10


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



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

  • liomj

  • Just popping in

  • Posts: 77

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



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

  • liomj

  • Just popping in

  • Posts: 77

  • Since: 2012/4/10


Thank you Mamba



34
liomj
Re: xoops preferences "site close" override
  • 2020/10/9 12:10

  • liomj

  • Just popping in

  • Posts: 77

  • Since: 2012/4/10


Thank you Mamba, its not working, ill try and look again

i uploaded it here on what im trying to do..so far what i did
https://github.com/liomj/mobile/

it is working fine if the site is opened but not if it is close



35
liomj
Re: xoops preferences "site close" override
  • 2020/10/9 1:49

  • liomj

  • Just popping in

  • Posts: 77

  • Since: 2012/4/10


Hi

i made a proof of concept mobile page with login but when the site is close it is redirect to
xoopssite.com/index.php instead of xoopsite.com/mobileapp/index.php

how do i override when a xoops site is closed it will redirect to a custom login page and
not the default login in index.php ?



36
liomj
Re: Publisher Images on Facebook
  • 2020/6/13 12:45

  • liomj

  • Just popping in

  • Posts: 77

  • Since: 2012/4/10


Hi
you can try inserting this code in root/themes/themename/theme.html before </head> if that helps

<{if $xoops_dirname == "publisher"}>  
        <
meta property="og:type" content="website" />
        <
meta property="og:title" content="<{$item.title}>" />
        <
meta property="og:description" content="<{$item.summary}>" />
        <
link rel="image_src" href="<{$item.image_path}>" />  
        <
meta property="og:image" content="<{$item.image_path}>"/> 
        <
meta property="og:image:type" content="image/jpeg" />
        <
meta property="og:image:width" content="1200" />
        <
meta property="og:image:height" content="628" />
        <
meta property="og:url" content="<{$item.itemurl}>"/>  
        <
meta itemprop="image" content="<{$item.image_path}>"/>  
        <
link rel="canonical" href="<{$item.itemurl}>"/>   
    <{/if}>



37
liomj
Re: Suico module add video
  • 2020/5/13 1:46

  • liomj

  • Just popping in

  • Posts: 77

  • Since: 2012/4/10


Hi miktre

i have added option to use full youtube url to suico

can you redownload and test
https://github.com/XoopsModules25x/suico/

now you can usehttps://youtu.be/5JomGl_RPwQ or just 5JomGl_RPwQ



38
liomj
Re: countdown module for XOOPS 2.5.9 ?
  • 2020/5/11 3:00

  • liomj

  • Just popping in

  • Posts: 77

  • Since: 2012/4/10


Quote:

Mamba wrote:
You can try and test these two versions:

Version 1: the original version, updated for XOOPS 2.5.9 and PHP 7.2, but the the calendar button doesn't work, i.e. you have to enter the date manually

Version 2: Quick & dirty rewrite of the Version 1, incl. a Vue countdown component.

Please note: I don't have time to do anything more with these modules, but it will be a good start for you to improve it further. Or somebody else could help you. Just fork it on GitHub



Hi I have forked mamba countdown2 module

my progress so far..im not very good at programming but i followed by examples
heres what i made so far

Event List
Resized Image
Event View
Resized Image
Block
Resized Image

currently some problem and error im stucked with that i would need help on

automatic uploads/countdown folder creation
Event Category - Fetching Category Name in block, event list and event view
Comment for event view is not working
can anyone out there help ?

you can download and test here
https://github.com/liomj/countdown2



39
liomj
Re: Text at internet explorer address bar
  • 2019/3/6 9:07

  • liomj

  • Just popping in

  • Posts: 77

  • Since: 2012/4/10


some slashes are stripped automatically by xoops editor in my htaccess example above

the second and third line in the example should be correct

change the first line to the correct format by referring files in the modules\publisher\extra\seo\

after you did all the steps..
you should be able to access

http://fla-ts.com/publisher.item.24/DRAAITIJD.html
or
http://fla-ts.com/DRAAITIJD/

make sure Apache mod_rewrite module is also enable in your server



40
liomj
Re: Text at internet explorer address bar
  • 2019/3/6 4:44

  • liomj

  • Just popping in

  • Posts: 77

  • Since: 2012/4/10


Hi flats

try this

1. Please refer to modules/publisher/extra for seo option
2. enable htaccess option in publisher preferences url rewrite method
3. enable the short url field in form permission (Fields available in articles submission forms) (modules/publisher/admin/permissions.php)

4. edit your article id:24 to have short url example DRAAITIJD.html

5. add this in your .htaccess in file root..

example
RewriteRule ^publisher.([a-z]+).([0-9.]+)/  modules/publisher/index.php?seoOp=$1&seoArg=$2
RewriteRule 
^publisher/?$ /modules/publisher/index.php
RewriteRule 
^DRAAITIJD/?$ /publisher.item.24/DRAAITIJD.html


6. tryhttp://fla-ts.com/DRAAITIJD/ if it is accessible




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



Login

Who's Online

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


Members: 0


Guests: 229


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