• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Ako zobrazit XML na stranke (pomoc so sablonou)
PostPosted: Thu Aug 16, 2012 3:11 pm 
Offline
Forum Members
Forum Members

Joined: Wed Mar 16, 2011 9:13 am
Posts: 206
zdravim

ako ma vyzerat sablona nizsie uvedeneho xml feedu?

na zobrazovanie feedov pouzivam RSS2HTML

{foreach a dalej?

\$1:
<Diary>
<Event EventName="2.10 Newmarket" ClassificationID="2" Classification="Horse Racing" EventStart="2012-08-16T14:10:00+01:00" EventEnd="2012-08-16T15:10:00+01:00" Streaming="1" BlockedCountryCodes="AU#AX#FR#HK#NZ#SG#UM#US#" EventGroup="Newmarket"/>
</Diary>


alebo to musím zobrazovať pomocou tagu?


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Ako zobrazit XML na stranke (pomoc so sablonou)
PostPosted: Mon Aug 20, 2012 8:06 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Tue Oct 10, 2006 5:00 pm
Posts: 448
Location: Bratislava
Najednoduchsia cesta podla mna (takoj!)

1, CGFeedMaker
2, vytvoris si novy feed, do sablony vlozit XML kod (mozes pouzivaj aj smarty)
Ked si urobis {Mojmodul assign="hocicoc"}, tak na dalsom riadku uz vies pouzivaj smarty z toho modulu - cize vies urobit foreach atd.

3, vysledna URL bude domena.tld/feeds/alias/

Screenshoty z mojho pouzitia: https://skydrive.live.com/?cid=624e502a ... 7F5%211912

_________________
Yes, it's me: MleCMS, MleDomains, ModuleGenerator, URLWatchdog, Youtuber, Extended Content Blocks, Extended Tools, Analytics etc.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Ako zobrazit XML na stranke (pomoc so sablonou)
PostPosted: Mon Aug 20, 2012 9:13 am 
Offline
Forum Members
Forum Members

Joined: Wed Mar 16, 2011 9:13 am
Posts: 206
ahoj

trosku si ma nepochopil, ja nepotrebujem ten feed generovat ja ho chcem na stranke zobrazovat najlepsie pomocou RSS2HTML, lenze neviem ako vytvorit na tento feed sablonu keby si ma mohol trosku naviest, lebo skusal som kadeco ale to bolo len take hadanie


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Ako zobrazit XML na stranke (pomoc so sablonou)
PostPosted: Mon Aug 20, 2012 9:26 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Tue Oct 10, 2006 5:00 pm
Posts: 448
Location: Bratislava
RSS2HTML pouziva kniznicu MagpieRSS z roku 2005

Pre zobrazenie pouzi moj RSS Simple Pie, ktory vyuziva SimplePie kniznicu - http://www.simplepie.org/

http://dev.cmsmadesimple.org/projects/rsssimplepie

Ked mi poslel linku na ten XML feed, tak ti to mozem skusit aj pozriet a sparsovat.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Ako zobrazit XML na stranke (pomoc so sablonou)
PostPosted: Mon Aug 20, 2012 1:19 pm 
Offline
Forum Members
Forum Members

Joined: Wed Mar 16, 2011 9:13 am
Posts: 206
ak sa smiem spytat v com je RSS Simple Pie lepsie ako rss2html?
mam take nutkanie rss2html odinstalovat a nainstalovat RSS Simple Pie


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Ako zobrazit XML na stranke (pomoc so sablonou)
PostPosted: Mon Aug 20, 2012 8:58 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Tue Oct 10, 2006 5:00 pm
Posts: 448
Location: Bratislava
Joseph777 \Joseph777:
ak sa smiem spytat v com je RSS Simple Pie lepsie ako rss2html?
mam take nutkanie rss2html odinstalovat a nainstalovat RSS Simple Pie


Ja som to v tom prispevku spominal:

RSS2HTML pouziva kniznicu MagpieRSS z roku 2005

RSS Simple Pie, vyuziva SimplePie kniznicu (z roku 2012 :))

7 rokov je pre PHP vecnost.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Ako zobrazit XML na stranke (pomoc so sablonou)
PostPosted: Mon Aug 20, 2012 10:29 pm 
Offline
Forum Members
Forum Members

Joined: Wed Mar 16, 2011 9:13 am
Posts: 206
ok uz budem vediet


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Ako zobrazit XML na stranke (pomoc so sablonou)
PostPosted: Sat Aug 25, 2012 1:16 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Tue Oct 10, 2006 5:00 pm
Posts: 448
Location: Bratislava
Vytvor si uzivatelsky tag. Spracovanie XML zhruba nasledovne (aj s kesovanim):


\$1:
$timeout = 3600*24;
$remote_files = new cge_cached_remote_file('http://www.domena.tld/diary.xml', $timeout);
$xml = $remote_files->file_get_contents();
$json = json_encode($xml);
$array = json_decode($json,TRUE);
print_R($array);


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Ako zobrazit XML na stranke (pomoc so sablonou)
PostPosted: Tue Aug 28, 2012 9:25 am 
Offline
Forum Members
Forum Members

Joined: Wed Mar 16, 2011 9:13 am
Posts: 206
takze tento tag vlozim do sablony v CMSsimplepie a tam dam nejaky ten foreach $onefeed->get_... atd?


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Ako zobrazit XML na stranke (pomoc so sablonou)
PostPosted: Wed Aug 29, 2012 8:09 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Tue Oct 10, 2006 5:00 pm
Posts: 448
Location: Bratislava
Zabudni na CMSsimplepie. Vytvor si UDT (uzivatelsky tag), neviem na kolko mas znalosti PHP, ale to co som ti napisal, z toho by mal vediet vychadzat aj zaciatocnik.

Script ti nacita XML, vytvori z neho pole a potom si uz len urobis foreach, pripadne si to hodis do smarty ako premennu a foreach urobis v smarty sablone.

V ramci scriptu mas aj kesovanie, a to sa myslim oplati :)

Ci ti to mam cele kodovat? Pay me! :)


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Ako zobrazit XML na stranke (pomoc so sablonou)
PostPosted: Thu Oct 25, 2012 4:57 pm 
Offline
Forum Members
Forum Members

Joined: Wed Mar 16, 2011 9:13 am
Posts: 206
takze takyto feed v CMSsimplepie nespracujem? Ale ako mam vediet ktory feed sa v tomto module da spracovat a ktory uz nie ateda sa musi riesit cez UDT tag?

PS: kuzmany, napisal som ti spravu


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Ako zobrazit XML na stranke (pomoc so sablonou)
PostPosted: Thu Oct 25, 2012 6:27 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Tue Oct 10, 2006 5:00 pm
Posts: 448
Location: Bratislava
Nie nespracujes, lebo SimplePie kniznica prasuje iba RSS feedy. Ty mas XML subor


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting