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

  • alain01

  • Just can't stay away

  • Posts: 530

  • 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



1652
Lupin
Re: JQuery problems for MAC OS ?
  • 2020/1/10 16:22

  • Lupin

  • Just popping in

  • Posts: 92

  • Since: 2007/6/1 2


TYVM geekwright !

of course I will apply the patch and I wil ask my friend to repeat tests.

I will return the report.

Pino



1653
geekwright
Re: JQuery problems for MAC OS ?

I've not heard anything about Mac specific jQuery issues, but I have a possible explanation for odd jQuery behavior when jgrowl is involved.

This patch was made quite recently: https://github.com/XOOPS/XoopsCore25/pull/759

All the Bootstrap based themes need to load jQuery before the Bootstrap code. Most older themes didn't need jQuery, so when there was a message to display with jgrowl (that depends on jquery,) the load of the jquery.js file was added. That resulted in two copies of jQuery being loaded. Anything that had already referenced the first copy could experience unexpected behavior. Lot of things would happily latch on to the second copy, so lots of things would work, but not everything.

The hack patch mentioned above does the load from javascript in the browser after checking if jQuery has already been loaded. That makes everything use the same copy, solving some odd issues.

The browser console log might offer more precise clues as to what is failing in your case, but the first suggestion is to update to the current master of XOOPS 2.5.11.

While there could be differences based on the OS, the Safari browser could also be a factor if it is involved. I don't currently have direct access to a Mac for testing, so I depend on report like yours. Thanks!



1654
Lupin
JQuery problems for MAC OS ?
  • 2020/1/9 20:53

  • Lupin

  • Just popping in

  • Posts: 92

  • Since: 2007/6/1 2


Xoops 2.5.11 , PHP 7.2 , MySql 5.6.44 , xswatch theme.

My co-admin works with a MAC ( MAC OS Hih Sierra 10.13.6) and I had some probs with his account , but at first I was thinking of some of his mistakes (he is not an expert on portals) ...
Yesterday, however, a constant error occurred: loading a change in the text of a publisher article, this was not loaded! It seemed impossible that this would happen because I could do it correctly (Windows 10).

I asked him to make the same changes with a tablet and a smartphone and the changes were made without problems.
Obviously I started thinking that it could be a problem with the O.S. of his MAC ... but for what reason ??? And why in loading situations?

Then I had an intuition and I made an attempt: I disabled the jGrowl redirect and asked him to repeta tests : his MAC resumed normal functionality. Do you have news of MAC problems with JQuery?

Pino



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

  • alain01

  • Just can't stay away

  • Posts: 530

  • 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/"



1656
ocanwar56
Re: Can't Locate My Ads Setup
  • 2020/1/9 11:55

  • ocanwar56

  • Just popping in

  • Posts: 3

  • Since: 2020/1/3 3


Any thing can be, no one is stupid but still finding lol.



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

  • alain01

  • Just can't stay away

  • Posts: 530

  • 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



1658
ocanwar56
Re: Can't Locate My Ads Setup
  • 2020/1/8 9:22

  • ocanwar56

  • Just popping in

  • Posts: 3

  • Since: 2020/1/3 3


Hey Mamba,
Thanks for your reply.

I tried by editing in my theme.html but con't find the iframe code: https://prnt.sc/qkqnvb



It's random and it's on home page even in the single post. I think it's a loop and don't know where it's feeds from. Please help me.

Thank you.



1659
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: 530

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



1660
Mamba
Re: Can't Locate My Ads Setup
  • 2020/1/4 1:57

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Well, as long as we don't have access to the Website where we can see it and inspect it, it's hard to say, at least for me.

I went to your Website, but everything seems to be OK. 

How and when does the white block appears? Is it random? 

There was once a discussion about AdSense, and it worked for some people, and some people seemed to have issues. 

Next time when you have it again, right click on it (in Chrome or Firefox), and select "Inspect" - it should show you the name of the element, and then you might try to look for it in your code.  

 

Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs




TopTop
« 1 ... 163 164 165 (166) 167 168 169 ... 29425 »



Login

Who's Online

771 user(s) are online (559 user(s) are browsing Support Forums)


Members: 0


Guests: 771


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits