Search found 83 matches

by Tongara
Sun Mar 21, 2021 11:30 pm
Forum: FlatPress project
Topic: FlatPress 1.2 "Legato" released
Replies: 6
Views: 111647

Re: FlatPress 1.2 "Legato" released

Oh man, have already updated my dev blog with this version, and I'll be updating my main site with it soon. Well done to everyone involved~
by Tongara
Fri Mar 19, 2021 2:10 am
Forum: General Support
Topic: How can I remove the web page entry field from the Comments form?
Replies: 7
Views: 20832

Re: How can I remove the web page entry field from the Comments form?


My Comment-Form.tpl looked a little differently, but I remove the URL section and got the same results. So thanks for pointing me in the right direction!

<div id="comment-userdata">

<p>
<input type="text" {$error.name|notempty:'class="field-error"'} name="name" id="name" value="{$values.name ...
by Tongara
Thu Mar 18, 2021 3:26 pm
Forum: General Support
Topic: How can I remove the web page entry field from the Comments form?
Replies: 7
Views: 20832

Re: How can I remove the web page entry field from the Comments form?

Very simple to do.

Go to the root of your FP install directory and locate "fp-interface/sharedtpls", and open the file called "comment-form.tpl".

Simply find the following code and remove it:
<p>
{if isset($error) && isset($error.url) && !empty($error.url)}
{assign var=class value="field-error ...
by Tongara
Fri Feb 26, 2021 11:40 pm
Forum: General Support
Topic: Use PHP in entries
Replies: 18
Views: 96165

Re: Use PHP in entries

Fair enough. I think I'll just focus on my blog content for now and maybe come back to this at some point in the future.
by Tongara
Sun Feb 21, 2021 2:06 pm
Forum: General Support
Topic: How add a sharing button on Static pages ?
Replies: 9
Views: 31047

Re: How add a sharing button on Static pages ?


If this can help you, this works better

http://www.facebook.com/sharer/sharer.php (with this every page is shared well)

than this

http://www.facebook.com/sharer.php

At the end I use this code:

<a href="http://www.facebook.com/sharer/sharer.php?u={$id|link:page_link}&title={$subject|tag:the ...
by Tongara
Sat Feb 20, 2021 8:43 pm
Forum: General Support
Topic: How add a sharing button on Static pages ?
Replies: 9
Views: 31047

Re: How add a sharing button on Static pages ?

Ah, glad you got it working! :)
by Tongara
Sat Feb 20, 2021 6:29 pm
Forum: General Support
Topic: Use PHP in entries
Replies: 18
Views: 96165

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 ...
by Tongara
Sat Feb 20, 2021 6:21 pm
Forum: General Support
Topic: How add a sharing button on Static pages ?
Replies: 9
Views: 31047

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

Then going of mouse on facebook button appears this:
http://www ...
by Tongara
Sat Feb 20, 2021 2:19 am
Forum: General Support
Topic: How add a sharing button on Static pages ?
Replies: 9
Views: 31047

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