Search found 77 matches
- Sat Feb 20, 2021 8:43 pm
- Forum: General Support
- Topic: How add a sharing button on Static pages ?
- Replies: 9
- Views: 9347
Re: How add a sharing button on Static pages ?
Ah, glad you got it working!
- Sat Feb 20, 2021 6:29 pm
- Forum: General Support
- Topic: Use PHP in entries
- Replies: 18
- Views: 20690
Re: Use PHP in entries
You need to tell your plugin to assign Smarty variables. function yourFunction() { global $smarty; $smarty->assign('yourvariable', 'some value'); These can then be used in the templates: <a href="{$yourvariable}">Back</a> Would I still be able to set what that variable is on a per static ...
- Sat Feb 20, 2021 6:21 pm
- Forum: General Support
- Topic: How add a sharing button on Static pages ?
- Replies: 9
- Views: 9347
Re: How add a sharing button on Static pages ?
Hi, I have tried to modify in: <a href="http://www.facebook.com/sharer.php?u={$id|link:page_link}&title={$subject|tag:the_title}" target="_blank"><img src="/Immagini/facebook.png" border="0" alt="Facebook" width="36" height="36&qu...
- Sat Feb 20, 2021 2:19 am
- Forum: General Support
- Topic: How add a sharing button on Static pages ?
- Replies: 9
- Views: 9347
Re: How add a sharing button on Static pages ?
On the plugin you made last year, I did add a thing on how to make it work on static pages. The same change will work here.
Please see this post: viewtopic.php?f=4&t=144&start=10#p453
Please see this post: viewtopic.php?f=4&t=144&start=10#p453
- Wed Feb 17, 2021 6:26 am
- Forum: General Support
- Topic: Use PHP in entries
- Replies: 18
- Views: 20690
Re: Use PHP in entries
Tongara: Move to the previous page [html]<a href="javascript:history.back(1)">Back</a>[/html] Haha I am well aware on how to create a back link in Javascript. If you read my post again, that is not exactly what I am trying to do here. It is appreciated, though. Will put here again, just i...
- Tue Feb 16, 2021 5:53 am
- Forum: General Support
- Topic: Use PHP in entries
- Replies: 18
- Views: 20690
Re: Use PHP in entries
YES, you can run file /fp-plugins/locale.php [exec]require_once('../locale.php');[/exec] Okay, good to know. Anyway, still trying to fix my issue, so if anyone has any idea as requested in one of my last posts, I'd appreciate it. Like I said, I'm open to ideas, and I'm sure I'm just missing somethi...
- Mon Feb 15, 2021 8:54 pm
- Forum: General Support
- Topic: Use PHP in entries
- Replies: 18
- Views: 20690
Re: Use PHP in entries
Sadly this doesn't fix my issue, but it's an absolute game changer when it comes to using PHP in all kinds of entries!Lubomír Ludvík wrote: ↑Mon Feb 15, 2021 2:09 pm plugin inlinephp
http://flatpress.cz/flatpress/fp-plugin ... inephp.zip
Code: Select all
[exec]echo(rand(10,100)); echo PHP_VERSION;[/exec]
- Mon Feb 15, 2021 9:03 am
- Forum: General Support
- Topic: Use PHP in entries
- Replies: 18
- Views: 20690
Re: Use PHP in entries
No problem at all, you can't be expected to remember every person and everything! hehe So, I did try this, but it sadly didn't turn out how I wanted it to. I'll explain the basic idea before sharing any files or code... With how my website is set up, I wanted the option of adding a custom "Back...
- Sun Feb 14, 2021 4:54 pm
- Forum: FlatPress project
- Topic: First beta release of FlatPress 1.2 "Legato": Please help testing
- Replies: 32
- Views: 129049
Re: First beta release of FlatPress 1.2 "Legato": Please help testing
Depends on your server configuration. Some servers report every single little PHP notice (although most do not). And there were quite a lot of them (see laborix' posting). Very true! In fact, it still works with at least PHP 5.6. Although you're right that one should run only still supported versio...
- Thu Feb 11, 2021 7:38 am
- Forum: General Support
- Topic: New admin theme [Beta][Responsive][Boostrap]
- Replies: 36
- Views: 54822
Re: New admin theme [Beta][Responsive][Boostrap]
WOW! I've put off trying this until now, but my gosh... From the login page onwards, this looks and feels so nice to use! It really makes Flatpress feel a bit less dated. Don't get me wrong, the current Admin Panel is great and does it's job well, but this is very lovely and modern feeling. The only...