[OzzModz] Daily Doodle Alternating Logo

[OzzModz] Daily Doodle Alternating Logo 2.0.5

No permission to download
Have you or @Russ edited the PAGE_CONTAINER template so the logo URL no longer uses "publicLogoUrl" and "publicLogoUrl2x"?

Or, is there another add-on that might be modifying that code?

Original code in PAGE_CONTAINER...
Code:
<a href="{{ ($xf.options.logoLink && $xf.homePageUrl) ? $xf.homePageUrl : link('index') }}">
    <img src="{{ base_url(property('publicLogoUrl')) }}"
        alt="{$xf.options.boardTitle}"
        {{ property('publicLogoUrl2x') ? 'srcset="' . base_url(property('publicLogoUrl2x')) . ' 2x"' : '' }} />
</a>
 
Last edited:
As a add-on, it would be cool if this would also give you the option to change your header backdrop...
 
Thanks guys, with @Russ 's help we sorted this. I had another image specified in the 2x retina field so this was stopping the doodle showing to anyone on a high resolution screen. All good now except....Mouseover text does not seem to be working on the logos, any ideas?. Cheers
 
Last edited:
All good now except....Mouseover text does not seem to be working on the logos, any ideas?
Post what you have in the settings Doodle Array for the logo where the mouseover text isn't working. The logo image and the mouseover text is set at the same time in the same routine. So there's no reason it shouldn't show if the logo is being changed.
 
@ozzy47 @Snog

The logo shows up but not the mouseover text.

04-23 | logos/2020/stgeorge.png | Happy Whatever
Right click on the new logo and select "Inspect Element".

You should see something like this...
Code:
<a href="/index.php" title="Happy Whatever">
    <img src="YOUR LOGO" alt="YOUR SITE NAME">
</a>
OR
Code:
<a href="/" title="Happy Whatever">
    <img src="YOUR LOGO" alt="YOUR SITE NAME">
</a>
What do you actually see?

If you don't see one of those two (or something similar to it) then the PAGE_CONTAINER template modification for the Daily Doodle add-on isn't being applied to the PAGE_CONTAINER template for your style. And the only reason that would happen is if the PAGE_CONTAINER template doesn't have what I posted here...
To be exact, it doesn't have this...
Code:
{{ ($xf.options.logoLink && $xf.homePageUrl) ? $xf.homePageUrl : link('index') }}
Which would indicate an edited template, another add-on changing it, or the style has changed it for some unknown reason. None of which can be accounted for by the Doodle add-on. It must have that stock XF template code to change the link and/or the TITLE for the link.
 
Last edited:
Hey, I have 366 banner images for my forum, they're all like this:

tms_banner_1920_1.jpg
tms_banner_1920_2.jpg
...
tms_banner_1920_72.jpg
tms_banner_1920_73.jpg
...
tms_banner_1920_366.jpg

Can I use this plugin to change my header daily based on the day number?

Right now I have this, but I need to re-save PAGE_CONTAINER daily.

Code:
    <xf:css>
        bannerimage_{{ date($xf.time, 'z') + 1 }}.jpg
    </xf:css>
 
Hey, I have 366 banner images for my forum, they're all like this:

tms_banner_1920_1.jpg
tms_banner_1920_2.jpg
...
tms_banner_1920_72.jpg
tms_banner_1920_73.jpg
...
tms_banner_1920_366.jpg

Can I use this plugin to change my header daily based on the day number?

Right now I have this, but I need to re-save PAGE_CONTAINER daily.

Code:
    <xf:css>
        bannerimage_{{ date($xf.time, 'z') + 1 }}.jpg
    </xf:css>
No you can't. Day number is not an option in this add-on.
 
No you can't. Day number is not an option in this add-on.
He CAN do it, right? By date?

365 entries in the Doodle Array, each one for that specific day.

Like:

01-1 | logos/imagefile | On-hover description
01-2 | logos/anotherimagefile | On-hover description
01-3 | logos/yetanotherimagefile | On-hover description

And so on?
 
Manster54: Good idea.
With a shell script you can produce a textfile.
Then copy/paste into the addon^^
 
With a shell script you can produce a textfile.
Then copy/paste ^^
Well, I showed him what he CAN do with this snazzy free addon. He can't do himself any harm by trying. Free stuff Free stuff! And he can use it to get to where he wants to be.
 
AND does he mean his logo when he says "banner" or some advertising banner which the add-on won't do?
 
I only brought it up because the logo and an advertising banner are two distinctly different things that can appear in the header..

banner.png

And since "bannerimage" is not a value from XF itself, we don't know what it is. So this add-on may have absolutely no effect for what he wants to do.
 
Last edited:
Top Bottom