Text File Reader - Extension Updated ***31/03/2012***

In this section you can share self-made extensions with other users of WYSIWYG Web Builder.
There is a dedicated section for commercial extensions.
Post Reply
User avatar
madebyibloo
 
 
Posts: 371
Joined: Fri Mar 27, 2009 3:58 pm
Location: East Yorkshire, United Kingdom
Contact:

Text File Reader - Extension Updated ***31/03/2012***

Post by madebyibloo »

Image Text File Reader

Image

Description
Reads and displays a .txt file from server.

What does it do?
This extension will read and display a text file. For use with hit counters, click counters and other uses that require text files.

Features
Read a text (.txt) file and display as html.
Select either ‘Full Text File’ or ‘Specific Text Line’.
Choice of ‘Beginning Text’ and ‘Ending Text’ Optional.

How to use…
Drag and drop this extension, double click to enter the properties and select your ‘Text Type’ to display then choose your ‘text file name’ and Font display options. (.txt file extension not needed on input, e.g. counter)

IMPORTANT:
To use this extension, you must set your page to .php
When selecting to read the 'Specific Text Line' option, please remember that the top line of a .txt file is '0' and the second line is '1' and so on...


Download & Demo
http://www.funky5.co.uk


UPDATE 31/03/2012
Added: You can now select to read a 'Full Text File' and display as html. (this includes line breaks)
Added: You can now select to read 'Specific Text Lines' from any .txt file.



More WYSIWYG Web Builder Extensions available at http://www.funky5.co.uk

Cheers,
Scott
Last edited by madebyibloo on Sat Mar 31, 2012 3:03 pm, edited 3 times in total.
Cheers,
Scott


www.madebyibloo.com - a creative design studio.
User avatar
BaconFries
 
 
Posts: 5316
Joined: Thu Aug 16, 2007 7:32 pm

Re: Text File Reader - Extension

Post by BaconFries »

Nice Scott...:)
User avatar
protectourlands
 
 
Posts: 443
Joined: Sat May 24, 2008 2:16 am
Contact:

Re: Text File Reader - Extension

Post by protectourlands »

I can really use this. Excellent work Scott.

Plus I really like your website. Very professional looking. Love the color.
User avatar
madebyibloo
 
 
Posts: 371
Joined: Fri Mar 27, 2009 3:58 pm
Location: East Yorkshire, United Kingdom
Contact:

Re: Text File Reader - Extension

Post by madebyibloo »

BaconFries wrote:Nice Scott...:)

Thanks BF! appreciated again! :)



Cheers,
Scott
Cheers,
Scott


www.madebyibloo.com - a creative design studio.
User avatar
madebyibloo
 
 
Posts: 371
Joined: Fri Mar 27, 2009 3:58 pm
Location: East Yorkshire, United Kingdom
Contact:

Re: Text File Reader - Extension

Post by madebyibloo »

protectourlands wrote:I can really use this. Excellent work Scott.

Plus I really like your website. Very professional looking. Love the color.
Thanks Protectourlands! its appreciated, glad you can use it in something usefull and thanks for the compliments.



Cheers,
Scott
Cheers,
Scott


www.madebyibloo.com - a creative design studio.
User avatar
SteveMann
 
 
Posts: 69
Joined: Tue Jun 17, 2008 4:54 am

Re: Text File Reader - Extension

Post by SteveMann »

I have a problem with "Text File Reader" from Funky5 is that it appears that it can't find the text file.
Where do I put the text file on my server?

Thanks,
Steve

Here's my setup:
Image

And here's the results:
Image
User avatar
madebyibloo
 
 
Posts: 371
Joined: Fri Mar 27, 2009 3:58 pm
Location: East Yorkshire, United Kingdom
Contact:

Re: Text File Reader - Extension

Post by madebyibloo »

Hi Steve, place the text file in your root dir, the same as your index.html or index.php

also make sure you have something in your text file thats readable e.g if its for a counter put 0



Hope his helps, lemme know how you get on



Cheers,
Scott
Cheers,
Scott


www.madebyibloo.com - a creative design studio.
User avatar
SteveMann
 
 
Posts: 69
Joined: Tue Jun 17, 2008 4:54 am

Re: Text File Reader - Extension

Post by SteveMann »

I tried putting a single line of text into the root, and in the folder where the test page is located. No difference.
Is there something that could be missing from my server?

Thanks
Seve
User avatar
madebyibloo
 
 
Posts: 371
Joined: Fri Mar 27, 2009 3:58 pm
Location: East Yorkshire, United Kingdom
Contact:

Re: Text File Reader - Extension

Post by madebyibloo »

SteveMann wrote:I tried putting a single line of text into the root, and in the folder where the test page is located. No difference.
Is there something that could be missing from my server?

Thanks
Seve
Hi, this could be one of a couple of things..

Before you try anything, please make sure your page has the .php extension e.g. index.php or test.php

now try this...

1) place the 'text file reader' extension in wb and choose your text file in the properties section, for example: test (not test.txt).
2) now place a 'file publisher' object from the advanced section in wb, browse and select your desired text file. (This will place the text file in the same dir of your index page)
3) this should now display your text file.

Other

Make sure your server has php enabled (contact your hosting provider to clarify this, it should have because most do nowadays, but just incase)

Check what the chmod of the text file is set to once uploaded to the server, try changing it to 755. (change chmod in ftp program)

apart from that, it should work fine, i just did a re-test and it worked first time on my server.


Lemme know how you get on,



Cheers,
Scott
Cheers,
Scott


www.madebyibloo.com - a creative design studio.
User avatar
SteveMann
 
 
Posts: 69
Joined: Tue Jun 17, 2008 4:54 am

Re: Text File Reader - Extension

Post by SteveMann »

DOH!
should have recognized that the errant output was a PHP command. Anyway, changed the page type in the project properties to PHP and it works. Thanks

BTW, How did you format your sample text? Is it basic HTML?

Thanks again,
Steve
User avatar
madebyibloo
 
 
Posts: 371
Joined: Fri Mar 27, 2009 3:58 pm
Location: East Yorkshire, United Kingdom
Contact:

Re: Text File Reader - Extension

Post by madebyibloo »

SteveMann wrote:DOH!
should have recognized that the errant output was a PHP command. Anyway, changed the page type in the project properties to PHP and it works. Thanks
Excellent! :) glad you got it working!
BTW, How did you format your sample text? Is it basic HTML?
Sorry I dont understand, do you mean the 'start text' and 'end text' in the actaul extension? if so, yes its just font styling.



Cheers,
Scott
Cheers,
Scott


www.madebyibloo.com - a creative design studio.
User avatar
madebyibloo
 
 
Posts: 371
Joined: Fri Mar 27, 2009 3:58 pm
Location: East Yorkshire, United Kingdom
Contact:

Re: Text File Reader - Extension

Post by madebyibloo »

LoneWolf1038 wrote:Hi Scott!

I'm still learning all these neat things, and as usual...I've run into a problem. I know it's not the extension, it is ME! Anyway, I unzipped the invisible counter and installed it with no problem. Then I unzipped the Text file reader and put that in the extension folder also. Went to WYSIWYG where I am working on my website and sure enough...there it was, so I dragged it over and put it at the bottom of the page next to the invisible counter. Changed the page properties to from html to php. Published to the local publish folder and then uploaded the lot. Now I have 2 index pages...one html and one php? Is that what I'm supposed to have? The page itself also displays "There has been 2 page hits". When I double clicked on the "counter.txt" file, it showed just the number 2 (which would correspond with the number of hits), but I thought the "There has been..." text was supposed to be in the counter text doc and NOT on the website where everyone sees it. What am I doing wrong and how do I fix it? Please be gentle...I'm still new at this. Thanks in advance.
Hi LoneWolf, not a problem at all, we was all at the beginning at some point :)

First of all, you need to remove index.html from your server and just keep the index.php

Secondly, the aim of the 'text file reader' is to read the .txt file only, the beginning and after text (there has been...) is html side and has nothing to do with the .txt file, you can remove this text(s) by leaving them blank in the 'text file reader' extension properties.

A good solution for this extension is to be used like this...
1) Place the 'hit counter extension' on the index.php (and set to invisible).
2) Place the 'text file reader extension' on another page, maybe something like admin.php or somewere thats maybe page protected so only you can view.
3) In the 'text file reader' extension properties set it to read the .txt file that you created in the hit counter properties.
4) Make sure the .txt file is in the same dir (folder) as the page you are displaying it on.


Hope this helps, let me know how you get on.


Cheers,
Scott
Cheers,
Scott


www.madebyibloo.com - a creative design studio.
User avatar
madebyibloo
 
 
Posts: 371
Joined: Fri Mar 27, 2009 3:58 pm
Location: East Yorkshire, United Kingdom
Contact:

Re: Text File Reader - Extension

Post by madebyibloo »

LoneWolf1038 wrote:Worked like a charm, Scott! Thank you soooooooo much!
Awesome! glad you got it to work :)


Cheers,
Scott
Cheers,
Scott


www.madebyibloo.com - a creative design studio.
User avatar
zinc
 
 
Posts: 2146
Joined: Sat Dec 08, 2007 3:06 pm
Location: London, United Kingdom
Contact:

Re: Text File Reader - Extension

Post by zinc »

Scott;
It only dawned on me today what little gem you have created here. I needed something whereby the user can update a set of prices via a text file and bingo!!!!
Great piece of work!!! Well done :)

Just one question:
How do I get it to read multiple lines? <BR>
Running WYSIWYG Web Builder since 2007...
User avatar
madebyibloo
 
 
Posts: 371
Joined: Fri Mar 27, 2009 3:58 pm
Location: East Yorkshire, United Kingdom
Contact:

Re: Text File Reader - Extension

Post by madebyibloo »

bendigo wrote:Scott;
It only dawned on me today what little gem you have created here. I needed something whereby the user can update a set of prices via a text file and bingo!!!!
Great piece of work!!! Well done :)

Just one question:
How do I get it to read multiple lines? <BR>
Thanks B!! yeh, its crazy what you can acheive with this extension, I use it for a number of things, it does alot more than it says on the tin! :) i'll take a look at the multiple line thing for you and see what I can come up with for you :)




Cheers,
Scott
Cheers,
Scott


www.madebyibloo.com - a creative design studio.
User avatar
madebyibloo
 
 
Posts: 371
Joined: Fri Mar 27, 2009 3:58 pm
Location: East Yorkshire, United Kingdom
Contact:

Re: Text File Reader - Extension

Post by madebyibloo »

bendigo wrote:Just one question:
How do I get it to read multiple lines? <BR>
Hi B! the extension has been updated with some new features, this includes line breaks when displayed as html.


Please see first post.



Cheers,
Scott
Cheers,
Scott


www.madebyibloo.com - a creative design studio.
User avatar
zinc
 
 
Posts: 2146
Joined: Sat Dec 08, 2007 3:06 pm
Location: London, United Kingdom
Contact:

Re: Text File Reader - Extension Updated ***31/03/2012***

Post by zinc »

As always great work Scott. Thank you so much. Will try it tonight.
Running WYSIWYG Web Builder since 2007...
User avatar
docdoc
 
 
Posts: 55
Joined: Sun Jul 18, 2010 9:34 am

Re: Text File Reader - Extension Updated ***31/03/2012***

Post by docdoc »

I like this extension. Good idea!
Maybe a .txt file writer would be great 'behind' a login system this way users could update that file without 'messing around' with the server... :D
docdoc :D
User avatar
madebyibloo
 
 
Posts: 371
Joined: Fri Mar 27, 2009 3:58 pm
Location: East Yorkshire, United Kingdom
Contact:

Re: Text File Reader - Extension Updated ***31/03/2012***

Post by madebyibloo »

docdoc wrote:I like this extension. Good idea!
Maybe a .txt file writer would be great 'behind' a login system this way users could update that file without 'messing around' with the server... :D
docdoc :D
Thanks Doc! have you got camera's on me? hehe, cause thats the next thing i'm onto :) , I've got that setup here but need to publish it as an extension.

Great minds think alike.


Cheers,
Scott
Cheers,
Scott


www.madebyibloo.com - a creative design studio.
User avatar
zinc
 
 
Posts: 2146
Joined: Sat Dec 08, 2007 3:06 pm
Location: London, United Kingdom
Contact:

Re: Text File Reader - Extension Updated ***31/03/2012***

Post by zinc »

Hi Scott;
Is there any way to maintain the tab space that is saved within the txt file? What I mean is for example:

You type

Special Deal ---------------------------> £200
Now if I have this there should a that space between the £200 and Deal but the extension shows Deal £200

Take a look at this

http://bit.ly/HjjKS2
Running WYSIWYG Web Builder since 2007...
User avatar
madebyibloo
 
 
Posts: 371
Joined: Fri Mar 27, 2009 3:58 pm
Location: East Yorkshire, United Kingdom
Contact:

Re: Text File Reader - Extension Updated ***31/03/2012***

Post by madebyibloo »

bendigo wrote:Hi Scott;
Is there any way to maintain the tab space that is saved within the txt file? What I mean is for example:

You type

Special Deal ---------------------------> £200
Now if I have this there should a that space between the £200 and Deal but the extension shows Deal £200

Take a look at this

http://bit.ly/HjjKS2
Hi B, the only way for now is to include this html in the text file...

Code: Select all

&nbsp

example: Special Deal &nbsp &nbsp &nbsp &nbsp &nbsp £200
I've added it on the demo page if you want to see the outcome.

I'll take a look at the extension and try to implement it, but it might be a week or so cause i've got the kids on school hols and going away for a few days :)



Cheers,
Scott
Cheers,
Scott


www.madebyibloo.com - a creative design studio.
User avatar
zinc
 
 
Posts: 2146
Joined: Sat Dec 08, 2007 3:06 pm
Location: London, United Kingdom
Contact:

Re: Text File Reader - Extension Updated ***31/03/2012***

Post by zinc »

Oh Joys of Easter & Kids. I am on the same boat mate. Not to worry. I shall see what I can do manually and do what you have done. Enjoy the hols.
Running WYSIWYG Web Builder since 2007...
User avatar
madebyibloo
 
 
Posts: 371
Joined: Fri Mar 27, 2009 3:58 pm
Location: East Yorkshire, United Kingdom
Contact:

Re: Text File Reader - Extension Updated ***31/03/2012***

Post by madebyibloo »

bendigo wrote:Oh Joys of Easter & Kids. I am on the same boat mate. Not to worry. I shall see what I can do manually and do what you have done. Enjoy the hols.
:) You too B!
Cheers,
Scott


www.madebyibloo.com - a creative design studio.
vec_tra
 
 
Posts: 18
Joined: Thu Jan 28, 2016 4:35 pm

Re: Text File Reader - Extension Updated ***31/03/2012***

Post by vec_tra »

Hi,

unfortunately http://www.funky5.co.uk is not available - right ?

Best regards
User avatar
madebyibloo
 
 
Posts: 371
Joined: Fri Mar 27, 2009 3:58 pm
Location: East Yorkshire, United Kingdom
Contact:

Re: Text File Reader - Extension Updated ***31/03/2012***

Post by madebyibloo »

Hi,

Sorry, its not available anymore, I will be updating extensions on my new site that is coming soon.

Thanks for your interest.
Cheers,
Scott


www.madebyibloo.com - a creative design studio.
vec_tra
 
 
Posts: 18
Joined: Thu Jan 28, 2016 4:35 pm

Re: Text File Reader - Extension Updated ***31/03/2012***

Post by vec_tra »

Hi,

thanks for info :-)

Short question:
the 'Text File Reader': is it still available - and is it compatiple to WWB 11?

Best Regards
Post Reply