Search found 51 matches

by peggylon
Tue Apr 26, 2016 4:51 pm
Forum: Plugins
Topic: making plugin-related post stick in 3rd position
Replies: 2
Views: 1633

Re: making plugin-related post stick in 3rd position

Thangs Garvin!
I thought about using he entry_display hook, but reconed it might not be suitable since it is employed every time an entry is displayed. I might go with the jQuery DOM manipualtion instead. Its probably saver than mixing up entries.
by peggylon
Tue Apr 19, 2016 6:48 pm
Forum: Plugins
Topic: making plugin-related post stick in 3rd position
Replies: 2
Views: 1633

making plugin-related post stick in 3rd position

Hello once more, I'm running a simple question and answer plugin on my site. The first question went online in march. See http://www.multikulinarisch.es/1044-geschmacksfrage-mrz.html As long as there is no newer question (sitting in position 1, 2 or 3), I'd like it to stick the last question post (o...
by peggylon
Mon Feb 22, 2016 4:43 pm
Forum: Plugins
Topic: how to refer to vars from query in hook frontend_fetchentry
Replies: 7
Views: 2481

Re: how to refer to vars from query in hook frontend_fetchen

I checked $entryData. It doesn't contain the question part. I'll forget about that approach and use seperate db query instead. Thanks for your advice, Oli, Here's the result of print_r($eventData): Array ( [id] => 1040 [title] => Eierkuchen mit Vogelbeer-Karamell [timestamp] => 1455692400 [body] => ...
by peggylon
Fri Feb 19, 2016 6:35 pm
Forum: Plugins
Topic: how to refer to vars from query in hook frontend_fetchentry
Replies: 7
Views: 2481

Re: how to refer to vars from query in hook frontend_fetchen

Yes. Potentially, a separate query can be slower, but it is easier to structure and the spared join can also help performance, depending on the data and the characteristics of the DBMS (at least in the past, mysql was said to be bad there). I'll check the $eventData content via print_r. But I think...
by peggylon
Fri Feb 19, 2016 6:13 pm
Forum: Plugins
Topic: how to refer to vars from query in hook frontend_fetchentry
Replies: 7
Views: 2481

Re: how to refer to vars from query in hook frontend_fetchen

You could work just with frontend_display. $eventData contains the data of the entry (have a look with `print_r($eventData);`). Use that data to get your question id. Then use that id to get the question + the data you want to display. Assign the question to smarty and output that smarty object pro...
by peggylon
Fri Feb 19, 2016 4:52 pm
Forum: Plugins
Topic: how to refer to vars from query in hook frontend_fetchentry
Replies: 7
Views: 2481

Re: how to refer to vars from query in hook frontend_fetchen

Thanks onli,

the ID is not what I'm after. It's the question itself. As I understand it gets retrieved along-side entry data (since the query was changed that way). But I dunno how to grab/use that query's result.

Hope that helps to clarify the issue.

cheers
Peggy
by peggylon
Thu Feb 18, 2016 6:15 pm
Forum: Plugins
Topic: how to refer to vars from query in hook frontend_fetchentry
Replies: 7
Views: 2481

how to refer to vars from query in hook frontend_fetchentry

Hi, Unfortunately I'm not familiar with s9y plugins but from docs and examples I'm slowly getting along to create a simple question and answers-plugin. I'm aware of the existence of a plugin featuring a full blown discussion board. I'm looking for something slightly different, though. I could succes...
by peggylon
Tue Aug 18, 2015 4:26 pm
Forum: Plugins
Topic: Modifying freetag output
Replies: 8
Views: 3767

Re: Modifying freetag output

I finally figured out how to display preview pictures with related entries links. If there is a general interest in that I could perhaps update the plugin, if I get help along the way. Am not familiar with the process. In my version of the plugin I edited two lines of the function getRelatedEntries ...
by peggylon
Wed Aug 12, 2015 5:57 pm
Forum: Plugins
Topic: Modifying freetag output
Replies: 8
Views: 3767

Re: Modifying freetag output

As I stated in the previous post I somewhat changed the freetag plugin's output in my system. What I couldn't figure out though, was how to get first image's url from related entries' bodies as third parameter. So far I'm able to retrieve the desired images' urls in function getRelatedEntries() by a...
by peggylon
Wed Aug 12, 2015 5:40 pm
Forum: Plugins
Topic: Modifying freetag output
Replies: 8
Views: 3767

Re: Modifying freetag output

I just happened to do modify related links today the way you asked for. If you use extended smarty you can change the output as follows: In serendipity_event_freetag.php in function getRelatedEntriesHtml(): vorher: $return['entries'][] = '<a href="' . serendipity_archiveURL($entryid, $title) . '" ti...
by peggylon
Fri Apr 24, 2015 11:26 am
Forum: General discussions
Topic: mysql str replace takes only effect after manual saving
Replies: 2
Views: 1845

[SOLVED] mysql str replace takes only effect after manual sa

Hi Garvin! You were right about you have the entryproperties plugin enabled, which offers caching, and saves that in serendipity_entryproperties I had not been sure about using the backend cache function. I thought it would freeze entries the way they were displayed on the blog. But since you sugges...
by peggylon
Thu Apr 23, 2015 4:19 pm
Forum: General discussions
Topic: mysql str replace takes only effect after manual saving
Replies: 2
Views: 1845

mysql str replace takes only effect after manual saving

Hello, a couple days ago I switched to a new template. For better looks I then added some additional HTML to a recipe scheme I used to use. Manually this worked (and looked) just fine. In order to adapt these changes to previos entries I did string replace that portion in body. UPDATE multikuli_entr...
by peggylon
Fri Nov 01, 2013 12:35 pm
Forum: General discussions
Topic: displaying most commented post on archive page
Replies: 14
Views: 4675

Re: displaying most commented post on archive page

I removed files and sub folders of the last 3 days from template_c/multikuli. The error message still displays. I could track the occurance of the error down to the archives plugin though, which I will temporarily de-activate and look at closer. Strange, since I didn't update or change a thing about...
by peggylon
Thu Oct 31, 2013 8:32 pm
Forum: General discussions
Topic: displaying most commented post on archive page
Replies: 14
Views: 4675

Re: displaying most commented post on archive page

Thanks for the advice Ian, I deleted all files (no folders) from today within the nested structure of tempates_c/multikuli/ It didn't help. Besides the mentioned ....file.sidebar.tpl.php from today, which is removed, there is only one more sidebar related file in the tempaltes_c directory. Since it'...
by peggylon
Thu Oct 31, 2013 6:34 pm
Forum: General discussions
Topic: displaying most commented post on archive page
Replies: 14
Views: 4675

Re: displaying most commented post on archive page

Now I'm in trouble. First of all, I might have been wrong with my previous statement. I do get output in entries.tpl when running config.inc.php as suggested by you. <!-- ENTRIES START --> <h2 class="serendipity_date">am meisten kommentiert</h2> <!-- ENTRIES START --> <h2 class="serendipity_date">am...