51
alain01
Overload the images on the search.php page
  • 2021/10/15 15:41

  • alain01

  • Just can't stay away

  • Posts: 544

  • Since: 2003/6/20


Hi,
I need to change the icons on the /search.php page.

Resized Image


Basic methode :
I change on each module the file /modules/module_name/assets/images/image_search.png
BUT it's a bad method cause when i will update the module, i will erase my customize pictures

Overload method :
I add an new overloaded image in this directory:
/themes/my_theme/modules/module-1/assets/images/image_search.png
But it doesn't work

URL concerned :
1 - /search.php
2 - /modules/profile/userinfo.php?uid=x

Concrete example :
Search page: https://www.monxoops.fr/search.php?query=xswatch4&action=results
Profile page : https://www.monxoops.fr/modules/profile/userinfo.php?uid=3

I want to change this image : [img ]https://www.monxoops.fr/modules/xmnews/assets/images/xmnews_search.png[/img]
to
[img ]https://www.monxoops.fr//themes/mx-theme/modules/xmnews/assets/images/xmnews_search.png[/img] (just an example to view the change)

Any good solution ?



52
alain01
Re: My Latest Xoops Project
  • 2021/10/8 16:39

  • alain01

  • Just can't stay away

  • Posts: 544

  • Since: 2003/6/20


Yes, goob job and nice design.

I 've just noticed a strange thing :

On the https://www.invitahome.com/modules/publisher/item.php?itemid=27 link,
You can view xoops images then , it would be override by the good images.

It is alternative image I think
https://www.invitahome.com/modules/publisher/assets/images/default_image.jpg

<a data-lightbox="image-1" data-title="Gallery" href="https://www.invitahome.com/uploads/images/img615fd7bfe4885.jpg">
                                <
img class="img-responsive" alt="" src="https://www.invitahome.com/modules/publisher/assets/images/default_image.jpg" data-echo="https://www.invitahome.com/uploads/images/img615fd7bfe4885.jpg" />
                            </
a>



53
alain01
Re: Most current Xoops 2.5.11
  • 2021/10/4 22:27

  • alain01

  • Just can't stay away

  • Posts: 544

  • Since: 2003/6/20


Hi,
Nice news !
you can show your own repository first. (Github URl).

I have my own repository but I need to continue my efforts.
We've just merged some new features in the core here.

Maybe Mamba could propose another solution, let's see what he says!



54
alain01
Re: Most current Xoops 2.5.11
  • 2021/10/1 14:47

  • alain01

  • Just can't stay away

  • Posts: 544

  • Since: 2003/6/20


ok,
Glad you're using and developing your own modules.

For the submitted content, the group management allows you to easily adapt the module to your needs.
You just have to let only the webmaster group manage the edition / modification / deletion of the content.
And in the general preferences of the module, if it is well done, you can deactivate comments and votes for the whole module.
The xmnews module manages it perfectly, for example.

Concerning your own modules, do you propose them to share ?



55
alain01
Re: Most current Xoops 2.5.11
  • 2021/10/1 10:21

  • alain01

  • Just can't stay away

  • Posts: 544

  • Since: 2003/6/20


Hi,
for a basic webmaster,
the answser is always the same :
The stable version is the 2.5.10 version.

But for advanced webmaster, sure,
xoops 2.5.11 comes with lot of improvement.

For modules, could list your modules ?
I think the best choice is to choose maintained modules,
I mean, with full fonctionalities on XOOPS 2.5.11.

There are several modules like that, for exemple, the xmodules.
So may be it's better for the future that your check your modules and watch ig you keep them or update to new modules...

For xoops, Know that monxoops.fr use a 2.5.11 beta 2 version.



56
alain01
Re: Need help to add a dark/light button in a theme
  • 2021/9/25 23:46

  • alain01

  • Just can't stay away

  • Posts: 544

  • Since: 2003/6/20


Yes, I saw that when I was confronted with the problem I am indicating here.
So I looked it up but didn't understand the code for switching colours.
We use the style variable (values : orange / silver / dark) but how does it work ???

In fact I found Richard's code very simple for the toggling of Display / Hide toolbar and the display of the associated icon in the xswatch4 theme



57
alain01
Need help to add a dark/light button in a theme
  • 2021/9/24 13:20

  • alain01

  • Just can't stay away

  • Posts: 544

  • Since: 2003/6/20


Hi,
Firstly,
I am completely new to this.

I had an idea:
Offer a button on the theme to switch from light to dark mode.
I was inspired by what Richard did with the xSwatch4 theme and the toggle to show or hide the toolbar

I started the code based on his work but I have no javascript skills.

Here is what I did:
In the nav-menu.tpl file
I added line 6:
<a class="btn btn-secondary" href="javascript:xswatchLightingToggle();" role="button"><span id="xswatch-lighting-ind"></span></a>

then at the end of the same file, I added a script:

<script type="text/javascript">
    
// Alain
    
    
function xswatchLightingIndLight() {
        $(
'#xswatch-lighting-ind').attr('class', 'fa fa-sun-o fa-fw');
    
//    $('#xswatch-lighting').show();
        
$('#$xswatchCss == 'css-cerulean');
    }
    function xswatchLightingIndDark() {
        $('
#xswatch-lighting-ind').attr('class', 'fa fa-moon-o fa-fw');
    //  $('#xswatch-lighting').hide();
        
$('#xswatchDarkCss == 'css-slate');
    }
    function xswatchLightingToggle() {
        var lighting_cookie = Cookies.get('
xswatch-lighting');
        if (lighting_cookie == '
off') {
            lighting_cookie = '
on';
            xswatchLightingIndLight();
        } else {
            lighting_cookie = '
off';
            xswatchLightingIndDark();
        }
        Cookies.set('
xswatch-lighting', lighting_cookie, { expires: 365, sameSite: 'strict' });
    }
    // set initial conditions based on cookie
    var lighting_cookie = Cookies.get('
xswatch-lighting');
    if (lighting_cookie == '
off') {
        xswatchLightingIndDark();
    } else {
        xswatchLightingIndLight();
    }
</script>

I know that the code
$('#xswatchDarkCss == 'css-slate');

is not correct, but i dont know How to do that...

So I need some help !

Thank you



58
alain01
Tutorial "Using WAMP Neard with XOOPS"
  • 2021/9/23 14:26

  • alain01

  • Just can't stay away

  • Posts: 544

  • Since: 2003/6/20


Now, you can read in english language this tutorial :

Using WAMP Neard with XOOPS

Enjoy it !



59
alain01
Re: Using Font Awesome icons in a XOOPS theme
  • 2021/9/22 10:15

  • alain01

  • Just can't stay away

  • Posts: 544

  • Since: 2003/6/20


1 from Italia, 1 from Austria !
Nice

Hey Goffy, did you read it in french or in english language ?



60
alain01
Using Font Awesome icons in a XOOPS theme
  • 2021/9/19 18:44

  • alain01

  • Just can't stay away

  • Posts: 544

  • Since: 2003/6/20


Hi,

on monxoop.fr, you can read a tutorial on
"Using Font Awesome icons in a XOOPS theme" (english).

French tutorial : "Utiliser les icônes Font Awesome dans un thème XOOPS"

Read, learn, test, apply, and enjoy!

Alain




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