Hi, I have a couple of question :
I use agregator to put rss news in frontpage ... sometime I have double post for the same mesage
my site now in front all post are listed twice... its possible to change something to solve this ?
When I search with Quicksearch box .. what is the tpl I have to tweak to change the look ? the result page .
Thx !
Sometime I have double post in frontpage
Sometime I have double post in frontpage
Last edited by Chief on Sat Dec 16, 2006 8:18 pm, edited 1 time in total.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Sometime I have double post in frontpage
Hi!
Did you update to the latest RSS aggregator version from CVS? In a parallel thread http://www.s9y.org/forums/viewtopic.php?t=6417 someone is having a similar problem.
Regards,
Garvin
Did you update to the latest RSS aggregator version from CVS? In a parallel thread http://www.s9y.org/forums/viewtopic.php?t=6417 someone is having a similar problem.
The search uses the same entries.tpl file like the usual display does. You would need to insert {if...} blocks to see if you are in search-results mode. You can detect that by checking the $view variableWhen I search with Quicksearch box .. what is the tpl I have to tweak to change the look ? the result page .
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Ok thx... just download the new Aggregator and I give a try
for the result page I want to see the link to post comments in the search result but cant find where ... whe a comment is in this post its show the link butif I have no comments in the post the link to add a comments is not there.
Thx Garvin for the quick reply.
for the result page I want to see the link to post comments in the search result but cant find where ... whe a comment is in this post its show the link butif I have no comments in the post the link to add a comments is not there.
Thx Garvin for the quick reply.
Last edited by Chief on Fri Aug 25, 2006 2:15 pm, edited 1 time in total.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
I think this link is also hidden/shown in your entries.tpl file; search for {$entry.comments}
Regards,
Garvin
I think this link is also hidden/shown in your entries.tpl file; search for {$entry.comments}
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
I have update the RSS Agregator and I have same problem but now I have 5 times same content lol
My section http://www.parlez-en.ca/index.php?/cate ... TUBE-VIDEO if you browse a bit have a lots of page with 4 or 5 times post with same content around 10:15PM or 22:15.
Also I have updated cronjob sheduler... but
if I disable or Enable cronjob to be activated by user visit the link in the page not change...
I want to program cronjob start every 30 min and the Logs look llike this:
Here is what I have in cronjob around 10:15PM
My database have around 30MO of log entries since a week ... its normal ?
Maybe put a link in cronjob sheduler to update / clear the database ?
I think the problem of double post have cronjob multi-job start in a short time.
For the link in search page if I have comments in post its show the link in the search result page... what is the variable I put to see if entry have no comments too ?
{if $entry.has_comments ??????}
My section http://www.parlez-en.ca/index.php?/cate ... TUBE-VIDEO if you browse a bit have a lots of page with 4 or 5 times post with same content around 10:15PM or 22:15.
Also I have updated cronjob sheduler... but
if I disable or Enable cronjob to be activated by user visit the link in the page not change...
Code: Select all
<img src="my site /index.php?serendipity[cronjob]=true" style="display: none" width="0" height="0" />Here is what I have in cronjob around 10:15PM
Code: Select all
25.08.2006 22:15 next Next scheduled run: 25.08.2006 22:15
25.08.2006 22:15 execute Executing "cronjob_1h"
25.08.2006 22:15 next Next scheduled run: 25.08.2006 22:14
25.08.2006 22:15 execute Executing "cronjob_12h"
25.08.2006 22:15 next Next scheduled run: 25.08.2006 22:15
25.08.2006 22:15 execute Executing "cronjob_daily"
25.08.2006 22:15 next Next scheduled run: 25.08.2006 22:14
25.08.2006 22:15 execute Executing "cronjob_weekly"
25.08.2006 22:15 next Next scheduled run: 25.08.2006 22:14
25.08.2006 22:15 execute Executing "cronjob_monthly"
25.08.2006 22:15 next Next scheduled run: 25.08.2006 22:14
25.08.2006 22:15 next Next scheduled run: 25.08.2006 22:16
25.08.2006 22:15 execute Executing "cronjob_1h"
25.08.2006 22:15 next Next scheduled run: 25.08.2006 22:15
25.08.2006 22:15 execute Executing "cronjob_12h"
25.08.2006 22:15 next Next scheduled run: 25.08.2006 22:15
25.08.2006 22:15 execute Executing "cronjob_daily"
25.08.2006 22:15 next Next scheduled run: 25.08.2006 22:15
25.08.2006 22:15 execute Executing "cronjob_weekly"
25.08.2006 22:15 next Next scheduled run: 25.08.2006 22:15
25.08.2006 22:15 execute Executing "cronjob_monthly"
25.08.2006 22:15 next Next scheduled run: 25.08.2006 22:15
25.08.2006 22:15 execute Executing "cronjob_5min"
25.08.2006 22:15 next Next scheduled run: 25.08.2006 22:15
25.08.2006 22:15 execute Executing "cronjob_30min"
25.08.2006 22:15 plugin Aggregator
25.08.2006 22:15 execute Executing "cronjob_5min"
25.08.2006 22:15 next Next scheduled run: 25.08.2006 22:15
25.08.2006 22:15 execute Executing "cronjob_30min"
25.08.2006 22:15 plugin Aggregator
25.08.2006 22:15 execute Executing "cronjob_30min"
25.08.2006 22:15 plugin Aggregator
25.08.2006 22:15 execute Executing "cronjob_5min"
25.08.2006 22:15 next Next scheduled run: 25.08.2006 22:15
25.08.2006 22:15 execute Executing "cronjob_30min"
25.08.2006 22:15 plugin Aggregator
25.08.2006 22:15 execute Executing "cronjob_30min"
25.08.2006 22:15 plugin Aggregator
25.08.2006 22:15 execute Executing "cronjob_5min"
25.08.2006 22:15 next Next scheduled run: 25.08.2006 22:15
25.08.2006 22:15 execute Executing "cronjob_30min"
25.08.2006 22:15 plugin Aggregator
25.08.2006 22:15 next Next scheduled run: 25.08.2006 22:14
25.08.2006 22:15 execute Executing "cronjob_1h"
25.08.2006 22:15 next Next scheduled run: 25.08.2006 22:14
25.08.2006 22:15 execute Executing "cronjob_12h"
25.08.2006 22:15 next Next scheduled run: 25.08.2006 22:14
25.08.2006 22:15 execute Executing "cronjob_daily"
25.08.2006 22:15 next Next scheduled run: 25.08.2006 22:14
25.08.2006 22:15 execute Executing "cronjob_weekly"
25.08.2006 22:15 next Next scheduled run: 25.08.2006 22:14
25.08.2006 22:15 execute Executing "cronjob_monthly"
25.08.2006 22:15 next Next scheduled run: 25.08.2006 22:14 Maybe put a link in cronjob sheduler to update / clear the database ?
I think the problem of double post have cronjob multi-job start in a short time.
For the link in search page if I have comments in post its show the link in the search result page... what is the variable I put to see if entry have no comments too ?
{if $entry.has_comments ??????}
Last edited by Chief on Sat Dec 16, 2006 8:18 pm, edited 1 time in total.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Your problem definitely seems cronjob related. I didn't know that you run that plugin, this would have set me on a different track
I've now patched up the cronjob plugin in version 0.3, please download that manually from CVS. Until then you should disable the plugin.
The visitor-option was not properly checked in the plugin yet.
You should also purge your logfile, 30MB is not normal. Your plugin was executed way too often. The output of your log also looks strange, because the 'next Next' string nowhere occurs in my code!
Regards,
Garvin
Your problem definitely seems cronjob related. I didn't know that you run that plugin, this would have set me on a different track
I've now patched up the cronjob plugin in version 0.3, please download that manually from CVS. Until then you should disable the plugin.
The visitor-option was not properly checked in the plugin yet.
You should also purge your logfile, 30MB is not normal. Your plugin was executed way too often. The output of your log also looks strange, because the 'next Next' string nowhere occurs in my code!
I think that one, yes.{if $entry.has_comments ??????}
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Look at your entries.tpl file and what is outputted there in the blocks with $entry.has_comments. Those texts you need to put where you want them.
Best regards,
Garvin
Look at your entries.tpl file and what is outputted there in the blocks with $entry.has_comments. Those texts you need to put where you want them.
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
This is my entries.tpl can you look at it ?
many thx lol you are very quick to reply
Code: Select all
<!-- ENTRIES START -->
{serendipity_hookPlugin hook="entries_header" addData="$entry_id"}
<a target="_blank" href="http://www.nod32-canada.com/purchase.html?affiliate=MTA"><img src="http://www.nod32-canada.com/banners/nod32a-fr-468.png" border="0" alt="NOD32 Canada" /></a>
{foreach from=$entries item="dategroup"}
{foreach from=$dategroup.entries item="entry"}
{if $entry.author and not $entry.properties.ep_aggregator_feedname}
<h2 class="serendipity_title">{$entry.author} : <a target="_self" href="{$entry.link}">{$entry.title}</a></h2>
{else}
<h2 class="serendipity_title">{$entry.properties.ep_aggregator_feedname} : <a target="_blank" href="{$entry.properties.ep_aggregator_articleurl}">{$entry.title}</a> </h2>
{/if}
<div class="serendipity_date">
{$dategroup.date|@formatTime:DATE_FORMAT_ENTRY}{if $dategroup.is_sticky}{/if}</div></div>
<div class="serendipity_entry serendipity_entry_author_{$entry.author|@makeFilename} {if $entry.is_entry_owner}serendipity_entry_author_self{/if}">
{if $entry.categories}
<span class="serendipity_entryIcon">
{foreach from=$entry.categories item="entry_category"}
{if $entry_category.category_icon}
<a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|@escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|@escape}" src="{$entry_category.category_icon}" /></a>
{/if}
{/foreach}
</span>
{/if}
<div class="serendipity_entry_body">
{if $entry.body == ""}
<a href="{$entry.properties.ep_aggregator_articleurl}">Read Article</a>
{else}
{$entry.body}
{/if}
</div>
{if $entry.is_extended}
<br /><div class="serendipity_entry_extended"><a id="extended"></a><br />{$entry.extended}</div>
{/if}
{if $entry.has_extended and not $is_single_entry and not $entry.is_extended}
<br /><a href="{$entry.link}#extended">{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title}</a><br /><br />
{/if}
<div class='serendipity_entryFooter'>
{$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a><br />
{if $entry.categories}
{$CONST.IN} {foreach from=$entry.categories item="entry_category" name="categories"}<a href="{$entry_category.category_link}">{$entry_category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}
{/if}
{if $dategroup.is_sticky}
{$CONST.ON}
{else}
{$CONST.AT}
{/if} <a href="{$entry.link}">{if $dategroup.is_sticky}{$entry.timestamp|@formatTime:DATE_FORMAT_ENTRY} {/if}{$entry.timestamp|@formatTime:'%H:%M'}</a>
{if $entry.has_comments}
{if $use_popups}
| <a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=480,height=480,scrollbars=yes'); return false;">{$entry.label_comments} ({$entry.comments})</a>
{else}
| <a href="{$entry.link}#comments"><font color="#FF0000">{$entry.label_comments}</font> ({$entry.comments})</a>
{/if}
{/if}
{if $entry.has_trackbacks}
{/if}
{if $entry.is_entry_owner and not $is_preview}
<br /><a href="{$entry.link_edit}">{$CONST.EDIT_ENTRY}</a>
{/if}
{$entry.add_footer}
</div>
</div>
<!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<rdf:Description
rdf:about="{$entry.link_rdf}"
trackback:ping="{$entry.link_trackback}"
dc:title="{$entry.title_rdf|@default:$entry.title}"
dc:identifier="{$entry.rdf_ident}" />
</rdf:RDF>
-->
{$entry.plugin_display_dat}
{if $is_single_entry and not $use_popups and not $is_preview}
{if $CONST.DATA_UNSUBSCRIBED}
<br /><div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_UNSUBSCRIBED|@sprintf:$CONST.UNSUBSCRIBE_OK}</div><br />
{/if}
{if $CONST.DATA_TRACKBACK_DELETED}
<br /><div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_TRACKBACK_DELETED|@sprintf:$CONST.TRACKBACK_DELETED}</div><br />
{/if}
{if $CONST.DATA_TRACKBACK_APPROVED}
<br /><div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_TRACKBACK_APPROVED|@sprintf:$CONST.TRACKBACK_APPROVED}</div><br />
{/if}
{if $CONST.DATA_COMMENT_DELETED}
<br /><div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_COMMENT_DELETED|@sprintf:$CONST.COMMENT_DELETED}</div><br />
{/if}
{if $CONST.DATA_COMMENT_APPROVED}
<br /><div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_COMMENT_APPROVED|@sprintf:$CONST.COMMENT_APPROVED}</div><br />
{/if}
{/if}
{if $is_single_entry and not $is_preview}
<div class="serendipity_comments serendipity_section_comments">
<br />
<a id="comments"></a>
<div class="serendipity_commentsTitle">{$CONST.COMMENTS}</div>
{serendipity_printComments entry=$entry.id mode=$entry.viewmode}
{if $entry.is_entry_owner}
{if $entry.allow_comments}
<div class="serendipity_center">(<a href="{$entry.link_deny_comments}">{$CONST.COMMENTS_DISABLE}</a>)</div>
{else}
<div class="serendipity_center">(<a href="{$entry.link_allow_comments}">{$CONST.COMMENTS_ENABLE}</a>)</div>
{/if}
{/if}
<a id="feedback"></a>
{foreach from=$comments_messagestack item="message"}
<div class="serendipity_center serendipity_msg_important">{$message}</div>
{/foreach}
{if $is_comment_added}
<br />
<div class="serendipity_center serendipity_msg_notice">{$CONST.COMMENT_ADDED}</div>
{elseif $is_comment_moderate}
<br />
<div class="serendipity_center serendipity_msg_notice">{$CONST.COMMENT_ADDED}<br />{$CONST.THIS_COMMENT_NEEDS_REVIEW}</div>
{elseif not $entry.allow_comments}
<br />
<div class="serendipity_center serendipity_msg_important">{$CONST.COMMENTS_CLOSED}</div>
{else}
<br />
<div class="serendipity_section_commentform">
<div class="serendipity_commentsTitle">{$CONST.ADD_COMMENT}</div>
{$COMMENTFORM}
</div>
{/if}
</div>
{/if}
{$entry.backend_preview}
{/foreach}
</div>
{foreachelse}
{if not $plugin_clean_page}
{$CONST.NO_ENTRIES_TO_PRINT}
{/if}
{/foreach}
<div class='serendipity_entryFooter' style="text-align: center">
{if $footer_prev_page}
<a href="{$footer_prev_page}">« {$CONST.PREVIOUS_PAGE}</a>
{/if}
{if $footer_info}
({$footer_info})
{/if}
{if $footer_next_page}
<a href="{$footer_next_page}">» {$CONST.NEXT_PAGE}</a>
{/if}
{serendipity_hookPlugin hook="entries_footer"}
</div>
<!-- ENTRIES END -->
many thx lol you are very quick to reply
Last edited by Chief on Sun Aug 27, 2006 1:06 am, edited 1 time in total.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Maybe I can look into this somewhen next week. Until then you might just try a few things, see hwo changes in IF-Blocks affect your layout.
Have fun,
Garvin.[/i]
Maybe I can look into this somewhen next week. Until then you might just try a few things, see hwo changes in IF-Blocks affect your layout.
Have fun,
Garvin.[/i]
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/