191
alain01
Re: Customize blocs with no title in the managment page
  • 2020/1/12 23:36

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


ok,
$block.block_type is unknown by the system.

Ok i tried to find another solution.

All my customize title blocs start with "@ - "

Then in tpl file, I modified the code

<{if $block.title}><h4><{$block.title}></h4><{/if}>

by

<{if ($block.title|truncate:4:"":true)!="@ - "}><h4><{$block.title}></h4><{/if}>
And it works !!!

Title customize bloc examples :
- "My personnal title bloc" => The title is displayed
- "@ - My personnal title bloc" => The title is not displayed

It's a fine code, no ?



192
alain01
Customize blocs with no title in the managment page
  • 2020/1/12 21:12

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Hello,
1 problem but may be 2 solutions.

All my customize blocks dont used title.
it's easy to not put title in the field title in the /modules/system/admin.php?fct=blocksadmin&op=add page.
But when you used lot of customize block,
it's hard to manage these blocks in the /modules/system/admin.php?fct=blocksadmin page cause blocks get blank title...
I should edit the bloc to know the block.

I think about 2 solutions :

1) I put title in the title field and in theme.tpl i should add condition for customize blocks.

i have seen these exemples :
//  Examples:
//  <{block id=1 display="title"}>   displays just the block title
//  <{block id=1}>                   displays just the block content
//  <{block id=7 display="none"}>    does not display nothing but executes the block, this can go for online block or to trigger some cron block
//  <{block id=600 groups="0|1" cache=20}>  display block just for this 2 groups and sets a cache of 20 seconds
//  <{block id=600 options="100|100|s_poweredby.gif|0"}> displays block with diferent options


In database, i see 1 field named block_type where (i suppose) :
S for System
M for Module
C for Customize

So how can add code to test that it's a customize bloc ?

<{if $block.block_type!="C"}><h4><{$block.title}></h4><{/if}>
 <{
$block.content}>


I have not yet tested this code

2 - Solution 2
Hummm,
we need to add a new fied for blocks named label for example
and we can see the label field + the title field in the blocks managment (/modules/system/admin.php?fct=blocksadmin)
So the label field is just here to manage blocks without title

Please, let me go in the good way !



193
alain01
Re: Customize Blocks and smarty variable
  • 2020/1/12 8:54

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Haaaaa,
{X_SITEURL} !!!

Sure, thank you, it works like i want.
Quote:
I have used that to more easily move things from a development system to a production environment, without making changes.
Yes, exactly

Haaaa, shortcodes,
I remember this news, now !
I was so happy to read this very good news !
It's a very powerful and amazing new fonction !
Again 1 time, i'm unpatient to use the 2.6 version in stable and production stage...



194
alain01
Customize Blocks and smarty variable
  • 2020/1/11 18:21

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Hi,
i have added some code full bootsrap4 in my theme.tpl file in my theme.
All is ok
But now, i want to move this code from theme.tpl to customize blocks.

All is the same except smarty variables.

in my theme.tpl :
<img class="mb-1" src="<{$xoops_imageurl}>images/logo-xoops.png" alt="<{$xoops_sitename}>" width="200px">


but if i put this code in customize block, the block cant interpret smarty variable.

May be it's a noob question...
Is it possible to use "assign" function in customize blocks like in theme.tpl ?
For example, in theme.tpl, i use
<{xoMemberInfo assign=member_info}>
and
<{xoInboxCount assign="unread_count" total='inbox_total'}>
.

Sure, i can put Hard link in my block but i hate that,
i can put absolut link too (/themes/mytheme/images/) but it's bad too.

I want used a smarty variable to extract the path theme..
SO
How ?
Thank you in advance !

Alain



195
alain01
Re: Can't Locate My Ads Setup
  • 2020/1/9 12:01

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


hum, u dint understand what i try to explain, sorry for my english.
Did you search on the right theme ?
I mean :
"/themes/mytheme"
and not "/themes/other_theme/"



196
alain01
Re: Can't Locate My Ads Setup
  • 2020/1/8 16:04

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Hi Ocanwar,
not sure if i understand,
You write :
Quote:
I tried by editing in my theme.html but con't find the iframe code


Did u use a block to insert your iframe code ?
Or, is it in hardcoded in your theme ?
if you cant find, may be it's in a another file,
in your theme.html, you can find code like 'include' some files...

Last but stupid question, Are you sure to search on the theme that you use ?
ok, stupid question but i prefered list all possible issues.

Alain



197
alain01
Re: Icon for new pm in the main navbar, not only on the dropdown "User Menu" list
  • 2020/1/4 13:47

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


to preserve space on the navbar, i changed the code :
<{xoInboxCount assign="unread_count" total='inbox_total'}>
    <
li class="nav-item">
        <
class="nav-link" href="<{$xoops_url}>/viewpmsg.php">
                <{if 
$unread_count}> 
                        <
span class="mx-auto xoopsweb-color fas fa-envelope fa-lg"></span> <span class="badge badge-pill badge-danger align-text-top"><{$unread_count}></span>
                <{else}>
                    <
span class="mx-auto xoopsweb-color fas fa-envelope-open fa-lg"></span> <span class="badge badge-pill badge-secondary align-text-top"><{$inbox_total-$unread_count}></span>
                <{/if}>
        </
a>
    </
li>



198
alain01
Re: A big surprise for 2020
  • 2019/12/26 9:15

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


We wish all of our web builders a very happy holiday season (very happy end of year celebrations)

and continue our teasing and especially our work here:

Resized Image


monxoops.fr
You will find out more later ...



199
alain01
A big surprise for 2020
  • 2019/12/22 22:46

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Hello xoopsiens and xoopsiennes (french speakers)!

A number of us have planned for you, web builders and users of our much appreciated CMS, a big surprise for 2020 !!!

Yes Yes,
it is neither a hoax, nor an April Fool's Day, but indeed a real surprise that will delight you, we have no doubt ...

We are working really hard on it and we reserve the premiere for the French-speaking community.

We will keep you informed of the rest in a very short time.
Resized Image



200
alain01
Re: New users: cannot register with firefox, chrome, can with explorer
  • 2019/12/17 21:25

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


U could try with portable FF




TopTop
« 1 ... 17 18 19 (20) 21 22 23 ... 38 »



Login

Who's Online

209 user(s) are online (139 user(s) are browsing Support Forums)


Members: 0


Guests: 209


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