[TYPO3-english] include external txt file with typoscript?

messsi messsi messsi bilal_ at live.nl
Fri Jun 11 12:23:01 CEST 2010


Hi Sebastian,

Thanks for your quick answer.

I'm getting your point. So basically, the skypeStatus-> main function is loaded from the php file, the php file is included as well. And to verify the username, the txt file is loaded as well.


But where can I get this php file? I'm getting to strange websites when I search on skype status php, etc.



> From: sebastiangebhard at hoch2.de
> Date: Fri, 11 Jun 2010 11:55:29 +0200
> To: typo3-english at lists.typo3.org
> Subject: Re: [TYPO3-english] include external txt file with typoscript?
> 
> Am 11.06.10 11:42, schrieb messsi messsi messsi:
> >
> > Hi list,
> >
> > I have an idea but I don't know if typoscript is capable of doing this.
> >
> > I use Skype and I want people to know my status in plain text. I found this: http://mystatus.skype.com/yourusername.txt and it works perfectly.
> > Now I want this external txt file (http://mystatus.skype.com/username.txt) to be included in my layout, so I want a marker which I can use in the layout of my website.
> >
> > So I could have MYUSERNAME (###marker###) and the end result should be MYUSERNAME (Online)
> >
> > Is it possible to do this with typoscript?
> No, not with a TypoScript-Only Solution. To read the external file you 
> need PHP Code. You could invoke a PHP-Script with a USER Object
> 
> includeLibs.skypeStatus = fileadmin/php/userSkypeStatus.php
> page.10.marks{
>    SKYPESTATUS = USER
>    SKYPESTATUS.userFunc = user_skypeStatus->main
>    SKYPESTATUS.readfile = http://mystatus.skype.com/username.txt
> }
> 
> Hope that helps,
> 
> Sebastian
> >
> > Thanks in advance! :-) 		 	   		
> > _________________________________________________________________
> > Alles wat je wilt weten over Windows 7, en meer !
> > http://www.windows.nl/windows7
> 
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
 		 	   		  
_________________________________________________________________
Een netbook met Windows 7? Hier vind je alles dat je moet weten.
http://www.windows.nl/netbook


More information about the TYPO3-english mailing list