Search found 51 matches

by peggylon
Thu Oct 31, 2013 12:08 pm
Forum: General discussions
Topic: displaying most commented post on archive page
Replies: 14
Views: 8404

Re: displaying most commented post on archive page

Ah okay, thanks for the explanation. I tested the smarty function. Unfortunately I'm not familiar with serendipity functions such as serendipity_printEntries and serendipity_smarty_fetch. When I implement them as suggested, I get a blank page. Therefore I thought perhaps it would have to be: serendi...
by peggylon
Thu Oct 31, 2013 11:29 am
Forum: General discussions
Topic: displaying most commented post on archive page
Replies: 14
Views: 8404

Re: displaying most commented post on archive page

$serendipity['smarty']->register_function('serendipity_mostcomments', 'serendipity_mostcomments'); Thanks Garvin! Someone mentioned to me a little while ago, that registering syntax has changed from $serendipity['smarty']->register_modifier('name', 'name'); to $serendipity['smarty']->registerPlugin...
by peggylon
Thu Oct 31, 2013 10:43 am
Forum: General discussions
Topic: displaying most commented post on archive page
Replies: 14
Views: 8404

Re: displaying most commented post on archive page

Hi Ian and Garvin, thanks to you both! Before I read Garvin's answer I have done some more testing of that first approach. The assigned variable $mostcommented is only read-able from index.tpl (even ahead of $content), no matter whether scopes were added to the template call or not. This is certainl...
by peggylon
Wed Oct 30, 2013 7:14 pm
Forum: General discussions
Topic: displaying most commented post on archive page
Replies: 14
Views: 8404

displaying most commented post on archive page

Hi, I'm about to touch up my archive page. At the top I would like to insert the most commented entry of the month and below every other entry of the particular month (as usual). I realized, that there was a plugin for popular entries, but not as event plugin. Therefore I'm working on a solution and...
by peggylon
Tue Oct 22, 2013 10:22 am
Forum: General discussions
Topic: retrieving entry body's first picture for open graph's og:im
Replies: 8
Views: 9433

Re: retrieving entry body's first picture for open graph's o

{foreach from=$dategroup.entries item="entry"} {assign var="entry" value=$entry scope="parent"} Which template are you using? Do you have that? (Should have been noted with the upgrade to 1.7-rc2 or above.) Thanks Ian! That's the missing piece... I had been using my ad...
by peggylon
Fri Oct 18, 2013 3:59 pm
Forum: General discussions
Topic: retrieving entry body's first picture for open graph's og:im
Replies: 8
Views: 9433

Re: retrieving entry body's first picture for open graph's o

@gtfreymann Sorry I missed your earlier post... Thanks for pointing me to the facebook plugin! @Timbalu Thanks for the hint with modifier calls in Smarty 3. I changed that. The solution for open graph tags in the <head> section as discussed earlier had been working fine till recently. Not anymore, t...
by peggylon
Fri Oct 18, 2013 3:20 pm
Forum: Generelles in Deutsch
Topic: Site reagiert sporadisch sehr langsam
Replies: 15
Views: 8142

Re: Site reagiert sporadisch sehr langsam

Sorry Ian, habe deine Antwort ebend erst gesehen. Fakt ist, dass ich - entgegen meiner Annahme - bei den Plugins doch nicht auf dem neuesten Stand war. Habe alles aktualisiert und jetzt läuft der Blog wieder normal. Sorry für die Aufregung! Die Höhenangabe hatte ich vor längerer Zeit reingenommen, d...
by peggylon
Thu Aug 29, 2013 5:34 pm
Forum: Generelles in Deutsch
Topic: Site reagiert sporadisch sehr langsam
Replies: 15
Views: 8142

Re: Site reagiert sporadisch sehr langsam

Ich habe bei einem sehr zuverlässigen Provider die selben Probleme seit eines PHP-Upgrades (mittlerweile 5.4). Habe deshalb extra auf die neueste s9y-Version umgestellt. Die Ladehemmungen treten dennoch weiterhin auf. Nur beim Blog, die restlichen Seiten laufen wie gewohnt schnell... Meiner Meinung ...
by peggylon
Tue Mar 05, 2013 12:16 pm
Forum: General discussions
Topic: retrieving entry body's first picture for open graph's og:im
Replies: 8
Views: 9433

[solved retrieving entry body's first picture for open graph

Hi Garvin, thanks for your help. I reckon, that the first approach is still my best bet. The plugin uses regular expressions for fetching the picture as well. That's what did the trick, just as you suggested... in config.inc.php: function get_image($param) { if (preg_match('@<img.*src=["\'](.+)...
by peggylon
Thu Feb 28, 2013 4:49 pm
Forum: General discussions
Topic: retrieving entry body's first picture for open graph's og:im
Replies: 8
Views: 9433

retrieving entry body's first picture for open graph's og:im

I'm back with another question and even with searching the forum for hours I seem not to be able to solve it on my own... I'd like to gain controll over what is shared on social media, by implementing open graph tags. I figured, there are two ways of doing it. My first approach was editing entries.t...
by peggylon
Wed Feb 20, 2013 4:56 pm
Forum: Plugins
Topic: entry data via Smarty parsing plugin
Replies: 7
Views: 8292

Re: entry data via Smarty parsing plugin

Timbalu, I thought of that option. But since replacing takes into account more options as specified in serendipity_local_config.inc.php (which don't really work, but that's another story) $GLOBALS['i18n_filename_from'] = array(' ', '!', '%', '_', '+', ',', ';', '.', ':', '?'); $GLOBALS['i18n_filenam...
by peggylon
Wed Feb 20, 2013 4:07 pm
Forum: Plugins
Topic: entry data via Smarty parsing plugin
Replies: 7
Views: 8292

Re: entry data via Smarty parsing plugin

Thanks Garvin, that's the way to go. At least for most of the current entry's data. {$smartymarkup_eventData.title} outputs the desired title. What the $smartymarkup_eventData array does not contain and what I'm after is the current entry's url, though. {$smartymarkup_eventData.link} returns no resu...
by peggylon
Wed Feb 20, 2013 2:23 pm
Forum: Plugins
Topic: entry data via Smarty parsing plugin
Replies: 7
Views: 8292

entry data via Smarty parsing plugin

Hi, in order to use the entry's url for a piece of code I regularly copy-paste into my posts, I installed the Smarty Parsing plugin. In the entry body box I added the line Test: {$entry.title} for testing purpose. This results in just 'Test: '. The entry in question does have a title and is online. ...
by peggylon
Wed Feb 13, 2013 5:41 pm
Forum: Plugins
Topic: freetag - related posts' pictures
Replies: 5
Views: 5161

Re: freetag - related posts' pictures

I implemented a custom field for thumbnail image. Since I can't see a database connection to the post it belongs to via post id, I still wouldn't know how to call related post's custom images from another post. Looks like I will have to go with the link within widget or stay with the related-tags pl...
by peggylon
Mon Jan 07, 2013 9:27 am
Forum: Plugins
Topic: freetag - related posts' pictures
Replies: 5
Views: 5161

Re: freetag - related posts' pictures

Thank you for the hint Eni!
I'll try adapting it for my purpose.

cheers