0 Пользователей и 1 Гость просматривают эту тему.
  • 880 Ответов
  • 213314 Просмотров
*

nikonor

  • Давно я тут
  • 513
  • 56 / 0
  • Content Grabber
конечный <div class="clear">
Показывать тэги НЕТ
HTML перед модулем <div class="newsgroup list">
*

sept

  • Захожу иногда
  • 60
  • 5 / 1
  • J2.5.6+VM2.0.6
конечный <div class="clear">
Показывать тэги НЕТ
HTML перед модулем <div class="newsgroup list">

Все равно: 1Tags cant found
*

nikonor

  • Давно я тут
  • 513
  • 56 / 0
  • Content Grabber
кеширование в самом модуле отключено?
в качестве URL что вставляете?
*

sept

  • Захожу иногда
  • 60
  • 5 / 1
  • J2.5.6+VM2.0.6
Время кэширования: 0
URL cайта-источника: http://www.inforbuh.com.ua/ua/about/news
*

nikonor

  • Давно я тут
  • 513
  • 56 / 0
  • Content Grabber
есть возможность мне доступ к настройкам модуля сделать?
*

sept

  • Захожу иногда
  • 60
  • 5 / 1
  • J2.5.6+VM2.0.6
*

nikonor

  • Давно я тут
  • 513
  • 56 / 0
  • Content Grabber
сайт не открывается ваш ... проверьте правильно ли ссылку прислали
*

sept

  • Захожу иногда
  • 60
  • 5 / 1
  • J2.5.6+VM2.0.6
Скопировал из браузера.
*

sept

  • Захожу иногда
  • 60
  • 5 / 1
  • J2.5.6+VM2.0.6
На другом сайте: 1Не удается запустить процесс с указанными параметрами!

Настройки:




А на почту приходит сообщение:
"http://www.inforbuh.com.ua/ua/about/news: Не удается запустить процесс с указанными параметрами!"
« Последнее редактирование: 29.10.2012, 18:37:25 от sept »
*

nikonor

  • Давно я тут
  • 513
  • 56 / 0
  • Content Grabber
только что проверил ... у меня работает с указанными настройками ... а у вас случайно какой-нибудь шаблон не подключен?
*

sept

  • Захожу иногда
  • 60
  • 5 / 1
  • J2.5.6+VM2.0.6
Ну вот только что скачал чистую Joomla! 2.5.7 с www.joomla.org и тоже самое: 1Tags cant found  >:(
*

sept

  • Захожу иногда
  • 60
  • 5 / 1
  • J2.5.6+VM2.0.6
*

nikonor

  • Давно я тут
  • 513
  • 56 / 0
  • Content Grabber
*

sept

  • Захожу иногда
  • 60
  • 5 / 1
  • J2.5.6+VM2.0.6
Я сравнил, там в регулярном выражении по умолчанию стоял знак ?: #$start(.*?)$end#s
Когда его убрали, все заработало.

Еще вопрос.
Можно ли в регулярное выражение засунуть переменную? Мне нужно, чтобы менялась дата.

#$start(.*?)2012-10-25#s (А вот это выражение, кстати, не работает без знака ?)
« Последнее редактирование: 30.10.2012, 01:12:41 от sept »
*

Delpo

  • Новичок
  • 7
  • 0 / 0
Хотел спросить по поводу CSS.
Суффикс в шаблоне сайта довольно сложно создавать.
Я так понял, можно вставить CSS в "Текст/HTML перед кодом" в тег <style></style> ?

напр. <style type="text/css">
.floatbox h1 + div{
         height: 0;
         overflow: hidden;
         -moz-transition: height 0.3s ease-in-out;
         -webkit-transition: height 0.3s ease-in-

out;
         -o-transition: height 0.3s ease-in-out;
         transition: height 0.3s ease-in-out;
   }
   .floatbox :target h1 + div{
         height: 100px;
  </style>

но у меня не работает. Или я где-то ошибся?
*

nikonor

  • Давно я тут
  • 513
  • 56 / 0
  • Content Grabber
CSS код после вставки присутствует на вашем сайте? и что сложного в том чтобы прописать стили для модуля отдельно?
*

Delpo

  • Новичок
  • 7
  • 0 / 0
нет, он не отображается. и никак не воздействует на материал (хотя классы те же что и в сграбленном материале).
сложно прописать стили, тк в шаблоне извращенный способ создания суффиксов (приходится править около 7 файлов).
*

nikonor

  • Давно я тут
  • 513
  • 56 / 0
  • Content Grabber
а можно ссылку на ваш сайт?
*

Delpo

  • Новичок
  • 7
  • 0 / 0
http://seriousbet.ru
там еще пока почти ничего нет.
*

nikonor

  • Давно я тут
  • 513
  • 56 / 0
  • Content Grabber
попробуйте, например в этот файл стили прописать http://seriousbet.ru/templates/yoo_revista/css/style.css
*

Delpo

  • Новичок
  • 7
  • 0 / 0
спасибо, во всем разобрался! еще вопрос небольшой..
а модуль поддерживает скрипты?
т.е. заработает ли в теории скрипт если его поместить в в "Текст/HTML перед кодом" в тег <script>
или ссылку поставить на него..


Хотел захватить слайдер отсюда: http://www.livescorehunter.com/Livescores/Livescore-Tennis.html
Но он, естественно, в сграббленом материале не работает..Поэтому такой и вопрос.
CSS кстати на материал удачно встал=)
« Последнее редактирование: 05.11.2012, 19:37:31 от Delpo »
*

nikonor

  • Давно я тут
  • 513
  • 56 / 0
  • Content Grabber
да, можете либо в тэги script поместить то что нужно или просто ссылку указать
*

deepakdhingra

  • Новичок
  • 5
  • 0 / 0
Hi,

My name is Deepak and I am from India. I cannot speak Russian.

I think this module will help me show an XML feed into my Joomla 2.5 page. But I do not understand how to configure it. Help will be highly appreciated.

This is a sample XML feed that I have. I really have no idea what part of the code to use in the module. There is a lot of code that is there in the feed. I am puttin in the sample -

<deals xmlns="http://www.api.citydeal.com/v1">
<deal canonical_tag="182217" title_short="" shipping_suffix="" shipping_amount="0.0" limited_quantity="true" sold_out="false" tipped="true" discount_percent="61.0" discount_amount="2071.0" discount_desc="61 %" price_suffix="" price_prefix="" url="http://www.groupon.co.in/deals/mumbai/Kallista-Spa-Salon/182217?CID=IN_AFF_0_1015_1122_0" logo_url="" newsletter_title="Rs.1299 for Choice of Wellness Sevices at Kallista Spa & Salon, Bandra West" newsletter_subject="Spas galore" last_modified="2012-11-06 11:07:07" image_large_height="300" image_medium_height="212" image_small_height="127" image_large_width="450" image_medium_width="320" image_small_width="190" image_large_url="" image_medium_url="" image_small_url="" title_coupon="Bandra(W): Wellness services like Swedish Body Massage, Signature Turkish Bath, Head Massage & MORE at Kallista Spa & Salon" salesforce_id="02547229" coupon_valid_until="" coupon_valid_from="2012-11-06 06:46:00" end="2012-11-07 07:29:00" start="2012-11-06 06:46:00" max_number_customers="600" min_number_customers="1" sold_count="10" tax="185.02" price="1299.0" original_price="3370.0" highlights="<img src="" alt="" width="201" height="103" /><br /><br />
 <ul>
 <li>Offer is on relaxing wellness services:
 <ul>
 <li>Offer 1 – Rs.1299: Swedish Full Body Massage (60min)</li>
 <li>Offer 2 – Rs.1499: Swedish Full Body Massage (60min) + Head Massage (30min) + Foot Reflexology (30min)</li>
 <li>Offer 3 – Rs.2299: Swedish Full Body Massage (60min) + Rejuvenating Facial (45min) + Foot Reflexology (30min)</li>
 <li>Offer 4 – Rs.3499: Signature Turkish Bath - Hammam (75min)</li>
 </ul>
 </li>
 <li>The salon was launched by Salman Khan – watch the video <a href="http://www.youtube.com/watch?v=6kUUiUr7GlE
" target="_blank">here</a></li>
 <li>Prime location – Bandra West</li>
 <li>Relaxing environment</li>
 <li>Pleasant interiors with white decor and candles to set the mood</li>
 <li>Inclusive of all taxes and service charges</li>
 <li>Multiple vouchers can be purchased and gifted</li>
 </ul>
 <p><strong><em><br />For additional discounts on more than 20 orders, please fill up our <a href="https://crazeal.wufoo.eu/forms/corporate-booking-form/" target="_blank">Corporate Order Form</a></em></strong></p>" conditions="<script type="text/javascript">// <![CDATA[
 <span class="GingerNoCheckStart"></span>// <![CDATA[
 // [CDATA[
 // [CDATA[
 // [CDATA[
 // [CDATA[
 // [CDATA[
 function MM_swapImgRestore() { //v3.0
 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
 }
 function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
 var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
 if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
 }
 
 function MM_findObj(n, d) { //v4.01
 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
 d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
 if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
 for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
 if(!x && d.getElementById) x=d.getElementById(n); return x;
 }
 
 function MM_swapImage() { //v3.0
 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
 if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
 }
 // ]]></script>
 <a onmouseover="MM_swapImage('Cash On Delivery','','http://110.234.176.36/merchantinfo/70141955282-btn_in.jpg',1)" onmouseout="MM_swapImgRestore()" href="https://crazeal.wufoo.eu/forms/crazealcom-cod-form/" target="_blank"><img id="Cash On Delivery" title="Click to order Cash on delivery!" src="" alt="Click here for Cash on Delivery" name="Cash On Delivery" width="201" height="67" border="0" /></a><br /><br /> <strong><br />What You Get:</strong>
 <ul>
 <li>Offer 1: Swedish Full Body Massage (60min)</li>
 <li>Offer 2: Swedish Full Body Massage (60min) + Head Massage (30min) + Foot Reflexology (30min)</li>
 <li>Offer 3: Swedish Full Body Massage (60min) + Rejuvenating Facial (45min) + Foot Reflexology (30min)</li>
 <li>Offer 4: Signature Turkish Bath - Hammam (75min)</li>
 </ul>
 <strong><br />Validity:</strong>
 <ul>
 <li>Valid until: 02.02.2013</li>
 <li>Valid 7 days a week</li>
 <li>Timings – 11:00AM to 9:00PM</li>
 <li>Valid for 1 person</li>
 <li>Valid for men and women</li>
 </ul>
 <br /><strong>General Fine Print:</strong>
 <ul>
 <li>Prior appointment mandatory. Rescheduling may result in additional charges</li>
 <li>Voucher printout is mandatory</li>
 <li>Customers may be asked to show their ID proof while availing the offer to prevent misuse</li>
 <li>All local/national laws and rules - dress code - that apply to regular customers, apply to Groupon voucher holders too</li>
 </ul>
 <p><strong><br />Cash on Delivery (COD) Charges:</strong></p>
 <ul>
 <li>Please complete the<strong> <a href="
https://crazeal.wufoo.eu/forms/crazealcom-cod-form/" target="_blank">COD form</a> </strong>to avail cash on delivery<strong></strong></li>
 <li>Rs.50 COD charge for total transaction of Rs.499 and below</li>
 <li>FREE COD for total transaction of Rs.500 and above</li>
 <li>We suggest you check out other awesome deals in your city to waive it off!<br /><br />See the <a href="http://www.crazeal.com/universal-fine-print" target="_blank">rules</a> that apply to all deals.</li>
 </ul>" description="" meta_keywords="groupon groupon-india crazeal kallista-spa-and-salon-bandra-west swedish-body-massage head-massage foot-reflexology turkish-bath microsite-ht mum-02" meta_description="Rs.1299 for Choice of Wellness Services at Kallista Spa & Salon, Bandra West. Get Head Massage, Signature Turkish Bath & MORE!" meta_title="Rs.1299 for Choice of Wellness Sevices at Kallista Spa & Salon | GROUPON.co.in" title_url="Kallista-Spa-Salon" title="Sample A New Turkish Delight! From Rs.1299 for Swedish Full Body Massage, Head Massage, Signature Turkish Bath & MORE at Kallista Spa & Salon, Bandra (W)" id="182217">
<country default_locale="en_IN" double_optin="false" incentive_reward_amount="8000" bonus_payment_name="Groupon Amount" last_modified="2012-10-31 16:58:44" reward_units="10000" currency="INR" url="http://www.groupon.co.in" shortname="IN" id="39"/>
<city timezone="Asia/Calcutta" city_group_id="22" locale="en_IN" last_modified="2012-05-08 10:40:46" menu_sort_order="11" parent_city="22" top_city="true" facebook_group="255916811086574" twitter_account="crazeal" longitude="72.856" latitude="19.018" url="mumbai" status="0" name="Mumbai" id="22">
<country default_locale="en_IN" double_optin="false" incentive_reward_amount="8000" bonus_payment_name="Groupon Amount" last_modified="2012-10-31 16:58:44" reward_units="10000" currency="INR" url="http://www.groupon.co.in" shortname="IN" id="39"/>
</city>
<type info="MAIN_DEAL" id="1"/>
<status info="DEAL_PUBLISHED" id="1"/>
<tags>
<tag type="CATEGORY" translation="Beauty" name="BEAUTY" id="1">
<tag type="CATEGORY" translation="Facial treatments" name="FACIAL_TREATMENTS1" id="28">
<tag type="CATEGORY" translation="Facial Treatments" name="FACIAL_TREATMENTS2" id="29"/>
</tag>
</tag>
<tag type="CATEGORY" translation="Wellness" name="WELLNESS" id="55">
<tag type="CATEGORY" translation="Spa" name="SPA1" id="68">
<tag type="CATEGORY" translation="Spa" name="SPA2" id="69"/>
</tag>
<tag type="CATEGORY" translation="Massage" name="MASSAGE1" id="60">
<tag type="CATEGORY" translation="Head Masage" name="HEAD_MASAGE" id="63"/>
<tag type="CATEGORY" translation="Full Body Massage" name="FULL_BODY_MASSAGE" id="62"/>
</tag>
</tag>
<tag type="CHANNEL" translation="LOCAL" name="LOCAL" id="1407"/>
</tags>
*

sept

  • Захожу иногда
  • 60
  • 5 / 1
  • J2.5.6+VM2.0.6
Это видимо был ответ на пост выше про ссылки.
Да, именно jQuery. Спасибо nikonor'у за терпение и помощь. Суть такая: с помощью этой билиотеки, т.е. посредством JS мы визуально отключаем некоторые теги, содержание или классы. Т.е. реально в HTML они есть, но пользователь в итоге этого не видит. Подозреваю, что и ссылки поисковиками будут учитываться (но повторюсь, что пользователь эти ссылки не видит), поэтому можно я думаю пробовать ноуфоллоу и все такое)))
теперь сам скрипт:
ставим в хеадер шаблона:
Код
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
jQuery.noConflict();
  jQuery(document).ready(function(){   
jQuery(".moduletable-grab a[href]").removeAttr('href');
  });
  </script>
разумеется, теперь суффикс для модуля будет -grab


А можно для чайников разжевать этот момент на примере этого сайта: inforbuh.com.ua/ua/about/news
Нужно взять только 5 свежих новостей.
*

nikonor

  • Давно я тут
  • 513
  • 56 / 0
  • Content Grabber
Hi, Deepak.
From your code need to get some of it or all in a form displayed on the site?
*

nikonor

  • Давно я тут
  • 513
  • 56 / 0
  • Content Grabber
sept В этом коде речь идет об удалении ссылок из сграбленного материала.
Вам же что бы получить первые 5 новостей нужно соответствующим образом составить регулярное выражение.
Способ с jquery в принципе поможет вам, но он несколько неправильный.
Логика такая:
Получаете грабером все новости, но потом с помощью jquery скрываете все кроме первых пяти ... смотреть вот в эту сторону http://api.jquery.com/slice/
*

deepakdhingra

  • Новичок
  • 5
  • 0 / 0
Hi Nikonor,

The entire code is too long. If I paste it here gives me an error. Need to show all the different offers on a Joomla page. What I have pasted here is part of a long long piece of code. Basically I do not know where an offer ends and where does another begin. If you could help me that would be great. I could send you the entire code in an email.

Do let me know what to do.

Thanks.

Deepak
*

nikonor

  • Давно я тут
  • 513
  • 56 / 0
  • Content Grabber
ok.. email me your full code and it would be good to provide what should happen eventually
*

deepakdhingra

  • Новичок
  • 5
  • 0 / 0
I have emailed you the code to nikoyar@gmail.com

Please check in your spam folder incase you do not see it in your inbox.

Thanks.

Deepak
*

Delpo

  • Новичок
  • 7
  • 0 / 0
nikonor, хотел спросить

А сайт-источник видит что с него парсинг идет?
Или он видит это просто как серфинг?
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Модуль для отображения курсов валют

Автор Геон

Ответов: 2
Просмотров: 337
Последний ответ 03.02.2024, 22:19:02
от Геон
Модуль «Image Show gk4», не отображается ни картинка, ни текст

Автор kaasin

Ответов: 1
Просмотров: 1975
Последний ответ 13.05.2023, 15:42:15
от anastasya96
Компонент Commedia и плагин mp3browser для медиа-сайтов

Автор ecolora

Ответов: 557
Просмотров: 118610
Последний ответ 13.03.2023, 00:25:14
от ecolora
Стандартный модуль случайного изображения не выводит фотографии

Автор strix

Ответов: 8
Просмотров: 6348
Последний ответ 19.10.2022, 16:07:11
от Andrej_777
Модуль тегов Joes Word Cloud для Joomla 3

Автор ecolora

Ответов: 1
Просмотров: 1320
Последний ответ 05.05.2022, 19:04:44
от ecolora