xoops forums

Forum Index


Board index » All Posts (alain01)




alain01

Quite a regular
Posted on: 12/12 14:20
alain01
alain01 (Show more)
Quite a regular
Posts: 324
Since: 2003/6/20
#21

Re: Which editor do you use ?

Ok, so
i test both edidors this weekend.
Is there any snippets, extension for XOOPS, for
PhPstorm and Visual Studio Code ? (didnt find)

(XMF words, xoops smarty) ?

I think it's easy to create that from a duplicated template from other CMS and changing words keys...
Right ?


alain01

Quite a regular
Posted on: 12/12 2:02
alain01
alain01 (Show more)
Quite a regular
Posts: 324
Since: 2003/6/20
#22

Which editor do you use ?

hi,
i usually use notepad++]Resized Image
to edit all xoops files (tpl, php, css).
I just try the atom editor https://atom.io/Resized Image
.
I know sublime text but it's not free.
Please, let me know wich editor do you use, and why (list advantages and inconvenients).
Is there any editor with XOOPS plugin language (smarty and others xoops words) ?


alain01

Quite a regular
Posted on: 12/8 0:51
alain01
alain01 (Show more)
Quite a regular
Posts: 324
Since: 2003/6/20
#23

Re: Warning with xoInboxCount

Yesssssss, found !

Quote:
Math and embedding tags:

{$x+$y} // will output the sum of x and y.
{assign var=foo value=$x+$y} // in attributes
{$foo[$x+3]} // as array index
{$foo={counter}+3} // tags within tags
{$foo="this is message {counter}"} // tags within double quoted strings


so i can use : <{$inbox_total-$unread_count}>

Resized Image


Now code is :
<{xoInboxCount assign="unread_count" total='inbox_total'}>
        <
li class="nav-item">
            <
class="nav-link" href="<{$xoops_url}>/viewpmsg.php">
            <{if 
$unread_count}> 
                <
span style="font-size: 20px;" class="mx-auto xoopsinactive-color fas fa-envelope"></span> <span class="badge badge-pill badge-danger align-text-top"><{$unread_count}></span>
            <{/if}>
                <
span style="font-size: 20px;" class="mx-auto xoopsinactive-color fas fa-envelope-open"></span> <span class="badge badge-pill badge-secondary align-text-top"><{$inbox_total-$unread_count}></span>
            </
a>
        </
li>


alain01

Quite a regular
Posted on: 12/8 0:32
alain01
alain01 (Show more)
Quite a regular
Posts: 324
Since: 2003/6/20
#24

Re: Warning with xoInboxCount

Link to the file /class/smarty/xoops_plugins/function.xoInboxCount.php
https://github.com/XOOPS/XoopsCore25/b ... function.xoInboxCount.php

With this subject, i discover the directory /class/smarty/xoops_plugins.
So cool !

Ok ok, i could discovered 10 years ago...


alain01

Quite a regular
Posted on: 12/8 0:29
alain01
alain01 (Show more)
Quite a regular
Posts: 324
Since: 2003/6/20
#25

Re: Warning with xoInboxCount

Yes, thanks,
but another question :

How can i subtract <{$inbox_total}>-<{$unread_count}>

It 's display : "4-3", not"1"


<li class="nav-item">
            <
class="nav-link" href="<{$xoops_url}>/viewpmsg.php">
            <{if 
$unread_count}> 
                <
span style="font-size: 20px;" class="mx-auto xoopsinactive-color fas fa-envelope"></span> <span class="badge badge-pill badge-danger align-text-top"><{$unread_count}></span>
            <{/if}>
                <
span style="font-size: 20px;" class="mx-auto xoopsinactive-color fas fa-envelope-open"></span> <span class="badge badge-pill badge-secondary"><{$inbox_total}>-<{$unread_count}></span>
            </
a>
        </
li>


alain01

Quite a regular
Posted on: 2019/11/27 9:37
alain01
alain01 (Show more)
Quite a regular
Posts: 324
Since: 2003/6/20
#26

Re: xswatch

Ok, good news !

Do you use smarty variables with the tag active, with the navmenu elements ?
Like $xoops_page, $xoops_startpage and $xoops_modulepage.

It's a very usefull !


alain01

Quite a regular
Posted on: 2019/11/19 7:03
alain01
alain01 (Show more)
Quite a regular
Posts: 324
Since: 2003/6/20
#27

Re: xswatch

OK, i will come back next days to get a full answer for you,
but quick answer here :

1- Read the file here README

2- sources are here https://bootswatch.com/ (buttons Download)

3 - Here you get custumize b4 but xswatch was created with b3, so you need to modify some little things in files *.tpl.


alain01

Quite a regular
Posted on: 2019/11/18 16:44
alain01
alain01 (Show more)
Quite a regular
Posts: 324
Since: 2003/6/20
#28

Re: xswatch

Humm, Not clear,
i dont understand...

U use bootstrap (with xswatch, it's B V3)

With B4 or b3, u can use autamatically with media :

See the table here

xs, sm, md and mg...


alain01

Quite a regular
Posted on: 2019/11/16 14:00
alain01
alain01 (Show more)
Quite a regular
Posts: 324
Since: 2003/6/20
#29

Re: XOOPS installation with sample data

Mamba,

i 've wrotten other thing :
Quote:
Now,
i think, to bring more people, it would be so usefull for all (specially for new xoops webmaster) to get XOOPS with an option during installation :
- Fresh empty news XOOPS
- Fresh New XOOPS with sample data


I mean " A ready to use " XOOPS, for the option 2 (1 module installed like xmcontent with data, and 2 activated blocks with informations on it)


alain01

Quite a regular
Posted on: 2019/11/14 15:52
alain01
alain01 (Show more)
Quite a regular
Posts: 324
Since: 2003/6/20
#30

Re: xswatch

Hi,
with B4, may be use hide class

Read this : https://getbootstrap.com/docs/4.0/util ... /display/#hiding-elements



TopTop
« 1 2 (3) 4 5 6 ... 20 »