Search found 22 matches

by neogeo
Sun Oct 27, 2024 7:20 pm
Forum: Plugins
Topic: Auto Minify no longer works
Replies: 4
Views: 71815

Re: Auto Minify no longer works


Is it totally dead?
What errors are you getting?
Where do you think the problem is?
What have you tried to resolve?

I have a certain amount of tinker-time to hand but "it's broken - fix it" is a bit of a cold start for anyone.

cheers - kusalo


You are asking like if I was a developer or some ...
by neogeo
Sun Oct 27, 2024 7:12 pm
Forum: General
Topic: Import RSS feeds?
Replies: 7
Views: 95638

Re: Import RSS feeds?



Folks;
talking RSS again: Is there a (good, preferred, recommended) way to import content from external sources (like another blog, a social network site, ...) using RSS? My general idea would be to create some sort of logic that fetches articles coming in example from my Mastodon or Friendica ...
by neogeo
Wed Oct 23, 2024 3:19 pm
Forum: Plugins
Topic: Auto Minify no longer works
Replies: 4
Views: 71815

Auto Minify no longer works

Does anyone know how to get this addon working again? I liked to see the output of the HTML code in just 1 line.

Plugin Auto Minify: https://plugins.bludit.com/plugin/bludit-minify-html
by neogeo
Mon Oct 21, 2024 9:22 pm
Forum: General
Topic: Import RSS feeds?
Replies: 7
Views: 95638

Re: Import RSS feeds?

+1

a RSS-auto-import addon would be super cool!

SpegalDev wrote: Mon Jul 22, 2024 8:25 pm @mention
by neogeo
Sat Oct 19, 2024 7:58 pm
Forum: General
Topic: Load PHP code into Static Page
Replies: 16
Views: 226153

Re: Load PHP code into Static Page



Do you know which is the php-condition to show the tags only to a specific page-url-slug?


You have two possiblities.

1) Add an if condition to the template

You can enclose your code with the if condition:


<?php
if ($page->slug() == "page-url-slug") {
$items = getTags();
foreach ...
by neogeo
Sat Oct 19, 2024 7:54 pm
Forum: General
Topic: Load PHP code into Static Page
Replies: 16
Views: 226153

Re: Load PHP code into Static Page


... managing a collection of snips - an interface where code can be written, named, saved/edited, (and a few other?) and page-inserted without the need to access template files.

I would be interested to see the extent of the (redundant?) existing snippet - but not enough to pay :)

cheers ...
by neogeo
Fri Oct 18, 2024 7:29 pm
Forum: General
Topic: Load PHP code into Static Page
Replies: 16
Views: 226153

Re: Load PHP code into Static Page



Few years ago I bought "PHP Shortcode Snippets", the problem is that it does not work with Php 8 (only does with php7) and their author don't reply so I can't use it at all :/


Who is the author?


@Zebraslive
Website: http://aestheticode.net
Github: https://github.com/Zebraslive/
Addon ...
by neogeo
Fri Oct 18, 2024 5:25 pm
Forum: General
Topic: Load PHP code into Static Page
Replies: 16
Views: 226153

Re: Load PHP code into Static Page


There is a snippet plugin: PHP Shortcode Snippets ($4)
I haven't tried it but it could work for you.

On the template add:
<?php $slug = $page->slug();
echo 'slug='.$slug;
?>
Load any page and this will show you/confirm which page you are on.
Then you can try in the template something like ...
by neogeo
Fri Oct 18, 2024 5:17 pm
Forum: General
Topic: Load PHP code into Static Page
Replies: 16
Views: 226153

Re: Load PHP code into Static Page

Edi wrote: Thu Oct 17, 2024 9:43 pm You have to add the code in a template.

In the template index.php you can define an if condition for the template with the php code.
That's interesting, it would solve my "problem". Do you know which is the php-condition to show the tags only to a specific page-url-slug?
by neogeo
Thu Oct 17, 2024 4:24 pm
Forum: General
Topic: Load PHP code into Static Page
Replies: 16
Views: 226153

Load PHP code into Static Page

I would like to load a php-code into a specific static page:

This code lists all tags:

<?php
// Returns an array with all the tags
$items = getTags();

foreach ($items as $tag) {
echo 'Tag name: ' . $tag->name();
}
?>

How could I load that code on specific static page only. Is it possible?