[PLUGIN] Feedview_XH

Ein CMSimple Support Forum für deutsch sprechende Nutzer und Entwickler
Ralf H.
Posts: 495
Joined: Sun Feb 16, 2014 1:45 pm
Location: Münsterland
Contact:

Re: [PLUGIN] Feedview_XH

Post by Ralf H. » Sun Feb 15, 2015 1:48 pm

cmb wrote:Die voreingestellte Zeit bis ein gecachter Feed stale ist (also nicht mehr aktuell) ist eine Stunde. Das finde ich eigentlich einen ganz ordentlichen Kompromiss für viele Newsfeeds
Habe den Cache jetzt wieder aktiviert. Wenn sich das 1stündlich aktuallisiert, reicht das natürlich.
Wahrscheinlich habe ich genau innerhalb der Std. den Unterschied zwischen Online und Offline erlebt.

lg,
Ralf
Badminton Individual-/Gruppentraining im Münsterland:
http://www.badminton-tips.de (deutsch)

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: [PLUGIN] Feedview_XH

Post by cmb » Sun Feb 15, 2015 2:23 pm

Ralf H. wrote:Habe den Cache jetzt wieder aktiviert. Wenn sich das 1stündlich aktuallisiert, reicht das natürlich.
Wahrscheinlich habe ich genau innerhalb der Std. den Unterschied zwischen Online und Offline erlebt.
Vermutlich. Im Zweifel solltest Du das aber mal im Auge behalten; die Ursache kann natürlich immer auch ein Bug sein.
Christoph M. Becker – Plugins for CMSimple_XH

Maxim
Posts: 121
Joined: Thu Jun 13, 2013 6:52 am
Location: Запорожье
Contact:

Date and description

Post by Maxim » Wed Jun 10, 2015 7:13 am

1. I can remove the tag:

Code: Select all

<description>
Search and selection of job vacancies from popular job search website, information about companies and their employees, the address on the city map
</description>
2. Plugins -> Feedview -> Language -> Format -> Date: "F jS, Y, g:i a"
Then publish date "1970": "January 1st, 1970, 3:00 am
If the "Date" field is not populated, then it is correct. But "+0300" display is not necessary.

3. If the xml file is great image that breaks the site template.

1. Я могу убрать содержимое тега:

Code: Select all

<description>
Поиск и подбор по параметрам вакансий с популярных сайтов поиска работы, информация о компаниях и их сотрудниках, адреса на карте города
</description>
2. Plugins -> Feedview -> Language -> Format -> Date: "F jS, Y, g:i a"
Тогда дата публикации "1970 год": "January 1st, 1970, 3:00 am"
Если поле "Date" не заполнено, тогда правильно. Но "+0300" отображать не нужно.

3. Если в xml файле большое изображение, ломается шаблон сайта.
Simple Hosting
Бедная, бросаемая бурею, безутешная!

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: [PLUGIN] Feedview_XH

Post by cmb » Thu Jun 11, 2015 7:25 pm

Maxim wrote:Я могу убрать содержимое тега:
Remove this line.
Maxim wrote:Тогда дата публикации "1970 год": "January 1st, 1970, 3:00 am"
Change this line to:

Code: Select all

<?php if $item->get_date(''):?>
    <p class="feedview_item_posted"><?php echo sprintf($ptx['message_posted'], $item->get_date($ptx['format_date']))?></p>
<?php endif?>
Maxim wrote:Но "+0300" отображать не нужно.
"3:00 am" is the time (3 hours after midnight); it is not the offset to UTC. If you want to suppress the time (and show only the date) change this line to

Code: Select all

$plugin_tx['feedview']['format_date']="F jS, Y";
or maybe better:

Code: Select all

$plugin_tx['feedview']['format_date']="j.n.Y";
Maxim wrote:Если в xml файле большое изображение, ломается шаблон сайта.
See http://cmsimpleforum.com/viewtopic.php? ... =20#p44604. Maybe that helps.
Christoph M. Becker – Plugins for CMSimple_XH

Maxim
Posts: 121
Joined: Thu Jun 13, 2013 6:52 am
Location: Запорожье
Contact:

h4??? h5???

Post by Maxim » Fri Jun 12, 2015 4:56 am

cmb wrote:
Maxim wrote:Я могу убрать содержимое тега:
Remove this line.

Code: Select all

    <h4 class="feedview_feed_title">
        <a href="<?php echo $feed->get_permalink()?>" target="_blank">
            <?php echo $feed->get_title()?>
        </a>
    </h4>

Code: Select all

    <h5 class="feedview_item_title">
        <a href="<?php echo $item->get_permalink();?>" target="_blank">
            <?php echo $item->get_title()?>
        </a>
    </h5>
h4??? h5??? Maybe that's why I moved all sections of the site??? I use h4. I can replace h4, h5 for example on strong???

h4??? h5??? Может поэтому у меня сместились все разделы сайта??? Я использую h4. Я могу заменить h4, h5 к примеру на strong???
Simple Hosting
Бедная, бросаемая бурею, безутешная!

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: [PLUGIN] Feedview_XH

Post by cmb » Fri Jun 12, 2015 11:27 am

Maxim wrote:h4??? h5??? Может поэтому у меня сместились все разделы сайта??? Я использую h4. Я могу заменить h4, h5 к примеру на strong???
Well, actually it should not matter, whether you use h4, h5, strong or something else. You could even do something like:

Code: Select all

    <strong class="my_own_class">
        <a href="<?php echo $item->get_permalink();?>" target="_blank">
            <?php echo $item->get_title()?>
        </a>
    </strong>
One thing, that could happen is that the layout overflows, and hides parts of the rest of the page. For instance, that can happen if tables are embedded in the feed description. In this case try (in stylesheet):

Code: Select all

feedview_item {overflow-x: auto}
Christoph M. Becker – Plugins for CMSimple_XH

Maxim
Posts: 121
Joined: Thu Jun 13, 2013 6:52 am
Location: Запорожье
Contact:

A fatal error occurred. Enable debug mode for further inform

Post by Maxim » Sun Jun 14, 2015 3:58 am

If so:

Code: Select all

<?php if $item->get_date(''):?>
    <p class="feedview_item_posted"><?php echo sprintf($ptx['message_posted'], $item->get_date($ptx['format_date']))?></p>
<?php endif?>
Then:
"A fatal error occurred. Enable debug mode for further information."

Если так:

Code: Select all

<?php if $item->get_date(''):?>
    <p class="feedview_item_posted"><?php echo sprintf($ptx['message_posted'], $item->get_date($ptx['format_date']))?></p>
<?php endif?>
Тогда:
"A fatal error occurred. Enable debug mode for further information."
Simple Hosting
Бедная, бросаемая бурею, безутешная!

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: [PLUGIN] Feedview_XH

Post by cmb » Sun Jun 14, 2015 12:59 pm

Bad code! :oops:

Try:

Code: Select all

<?php if ($item->get_date('')):?>
    <p class="feedview_item_posted"><?php echo sprintf($ptx['message_posted'], $item->get_date($ptx['format_date']))?></p>
<?php endif?>
Christoph M. Becker – Plugins for CMSimple_XH

Maxim
Posts: 121
Joined: Thu Jun 13, 2013 6:52 am
Location: Запорожье
Contact:

1970

Post by Maxim » Mon Jun 15, 2015 4:19 am

Not helped, it is still 1970.
Не помогло, всё равно 1970 год.
http://maxim.maxim.zp.ua/rabotayandexua ... -doma.html
Simple Hosting
Бедная, бросаемая бурею, безутешная!

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: [PLUGIN] Feedview_XH

Post by cmb » Mon Jun 15, 2015 11:37 am

Maxim wrote:Не помогло, всё равно 1970 год.
http://maxim.maxim.zp.ua/rabotayandexua ... -doma.html
Please also post the URL of the feed.
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply