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 are already more than 250 extensions available!
User avatar
madebyibloo
 
 
Posts: 480
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 » Wed Jun 01, 2011 11:45 am

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


creating the new, together.

User avatar
BaconFries
 
 
Posts: 4581
Joined: Thu Aug 16, 2007 7:32 pm

Re: Text File Reader - Extension

Post by BaconFries » Wed Jun 01, 2011 1:34 pm

Nice Scott...:)

User avatar
protectourlands
 
 
Posts: 763
Joined: Sat May 24, 2008 2:16 am
Contact:

Re: Text File Reader - Extension

Post by protectourlands » Wed Jun 01, 2011 4:07 pm

I can really use this. Excellent work Scott.

Plus I really like your website. Very professional looking. Love the color.

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

Re: Text File Reader - Extension

Post by madebyibloo » Wed Jun 01, 2011 7:01 pm

BaconFries wrote:Nice Scott...:)

Thanks BF! appreciated again! :)



Cheers,
Scott
Cheers,
Scott


creating the new, together.

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

Re: Text File Reader - Extension

Post by madebyibloo » Wed Jun 01, 2011 7:02 pm

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


creating the new, together.

User avatar
SteveMann
 
 
Posts: 256
Joined: Tue Jun 17, 2008 4:54 am

Re: Text File Reader - Extension

Post by SteveMann » Mon Jun 27, 2011 8:11 pm

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: 480
Joined: Fri Mar 27, 2009 3:58 pm
Location: East Yorkshire, United Kingdom
Contact:

Re: Text File Reader - Extension

Post by madebyibloo » Mon Jun 27, 2011 8:16 pm

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


creating the new, together.

User avatar
SteveMann
 
 
Posts: 256
Joined: Tue Jun 17, 2008 4:54 am

Re: Text File Reader - Extension

Post by SteveMann » Mon Jun 27, 2011 10:20 pm

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: 480
Joined: Fri Mar 27, 2009 3:58 pm
Location: East Yorkshire, United Kingdom
Contact:

Re: Text File Reader - Extension

Post by madebyibloo » Mon Jun 27, 2011 10:47 pm

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


creating the new, together.

User avatar
SteveMann
 
 
Posts: 256
Joined: Tue Jun 17, 2008 4:54 am

Re: Text File Reader - Extension

Post by SteveMann » Tue Jun 28, 2011 12:58 am

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: 480
Joined: Fri Mar 27, 2009 3:58 pm
Location: East Yorkshire, United Kingdom
Contact:

Re: Text File Reader - Extension

Post by madebyibloo » Tue Jun 28, 2011 1:42 am

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


creating the new, together.

LoneWolf1038
 
 
Posts: 25
Joined: Sat Jul 26, 2008 11:47 pm

Re: Text File Reader - Extension

Post by LoneWolf1038 » Thu Jan 19, 2012 12:36 am

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.

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

Re: Text File Reader - Extension

Post by madebyibloo » Thu Jan 19, 2012 12:12 pm

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


creating the new, together.

LoneWolf1038
 
 
Posts: 25
Joined: Sat Jul 26, 2008 11:47 pm

Re: Text File Reader - Extension

Post by LoneWolf1038 » Thu Jan 19, 2012 5:23 pm

Worked like a charm, Scott! Thank you soooooooo much!

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

Re: Text File Reader - Extension

Post by madebyibloo » Thu Jan 19, 2012 5:27 pm

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


Cheers,
Scott
Cheers,
Scott


creating the new, together.

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests