xoops forums

Forum Index


Board index » All Posts (alain01)




alain01

Quite a regular
Posted on: Today 0:51
alain01
alain01 (Show more)
Quite a regular
Posts: 302
Since: 2003/6/20
#1

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: Today 0:32
alain01
alain01 (Show more)
Quite a regular
Posts: 302
Since: 2003/6/20
#2

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: Today 0:29
alain01
alain01 (Show more)
Quite a regular
Posts: 302
Since: 2003/6/20
#3

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: 11/27 9:37
alain01
alain01 (Show more)
Quite a regular
Posts: 302
Since: 2003/6/20
#4

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: 11/19 7:03
alain01
alain01 (Show more)
Quite a regular
Posts: 302
Since: 2003/6/20
#5

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: 11/18 16:44
alain01
alain01 (Show more)
Quite a regular
Posts: 302
Since: 2003/6/20
#6

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: 11/16 14:00
alain01
alain01 (Show more)
Quite a regular
Posts: 302
Since: 2003/6/20
#7

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: 11/14 15:52
alain01
alain01 (Show more)
Quite a regular
Posts: 302
Since: 2003/6/20
#8

Re: xswatch

Hi,
with B4, may be use hide class

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


alain01

Quite a regular
Posted on: 11/14 15:14
alain01
alain01 (Show more)
Quite a regular
Posts: 302
Since: 2003/6/20
#9

XOOPS installation with sample data

Hi,
cause XOOPS comes with no data, it 's hard for novices to see and undertand the power of xoops in 10 mn.

2 examples :
1 - In the themes directory, since long time (2016 ?), there is a beautiful theme with lot of functionnalities : xswatch.
I never used it cause for a fresh install, without data, this theme is very minimalist. With data, it's a wonderfull theme

2 - With Goofy's modules (wgteams), there is button to import sample data
It's very usefull, in 1 mn, we can see how works the module
I think it would be in the next new modules

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

For the option 2,
We could install and activate a very simple and usefull module like xmcontent, with 2 pages like :
page 1 : "Welcome to my first page"
page 2 : "About us"
Using center block to display pages.

I know that blocks are not always display, depends theme, but, the idea is here.

It's just an idea...


alain01

Quite a regular
Posted on: 11/12 1:03
alain01
alain01 (Show more)
Quite a regular
Posts: 302
Since: 2003/6/20
#10

Re: XOOPS 2.5.9 Notes for Theme Creators

Thank you for this advice !

Here, by mage (little bug, it would be ok by mage next days)



TopTop
(1) 2 3 4 ... 18 »