Welcome, Guest. Please login or register.
March 19, 2010, 07:35:15 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
110412 Posts in 15942 Topics by 9295 Members
Latest Member: jordans boy
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Modules (Moderators: Argos, BerndJM)
| | |-+  Is there a plain text page module available?
Pages: [1] Go Down Print
Author Topic: Is there a plain text page module available?  (Read 254 times)
dennisvr

Offline Offline

Posts: 20


« on: December 31, 2009, 12:16:19 AM »

Hi,

I'm working on a Droplet that can upload files from the media-directory to Scribd (www.scribd.com) and show those files.

I want to use the following structure on the page:
- In a WYSIWYG section ($BLOCK[1] in my template) I add the [[droplet]]
- In a Code section ($BLOCK[2] in my template) I add the url and/or filename (for example document.pdf)

This way I can use page_content(2) in the Droplet to upload/show the document on the page.

I used to be able to use a Code section, however I have the feeling that code is checked for valid PHP, in WB 2.8, since nothing shows up.

Using a WYSIWYG section adds <p> tags, so I can not use that either.

Is there a module available that only inserts the text (preferably a single line)?

Thank you for your reply!

All the best,

Dennis

P.s. If someone has been able to implement the Scribd API, I'm very interested. I'm not really a coder, so I'm building the Droplet through trial and error.
Logged
dennisvr

Offline Offline

Posts: 20


« Reply #1 on: January 13, 2010, 08:15:41 PM »

* bump *
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 5559


WWW
« Reply #2 on: January 13, 2010, 08:55:36 PM »

Maybe somebody would actually help if you post some code that you have done ...

cheers

Klaus
Logged

http://www.weitzel.biz
PM has been disabled
instantflorian

Offline Offline

Posts: 232



WWW
« Reply #3 on: January 14, 2010, 09:14:51 AM »

There is a module called Code2 which can either display PHP, HTML oder JavaScript
http://www.websitebaker2.org/forum/index.php/topic,14200.0.html
Logged
dennisvr

Offline Offline

Posts: 20


« Reply #4 on: January 14, 2010, 12:34:40 PM »

Hi Klaus & Instantflorian,

Thank you for your replies.

@ Instantflorian: This might well be the module I am looking for. Will test it tonight.

Currently I am able to upload text/pdf files to Scribd (file path and name hardcoded into the droplet) , but unfortunately a new document gets uploaded on every page refresh. Hopefully the new module enables me to make it dynamic.

@ Klaus: The droplet code is far from finished and not very useful at the moment (a simple copy/past of the embed code from the Scribd website works better / is easier). I will try the new module and, if I am able to produce something that works, post the droplet code later on.

Again, thanks!

Regards,

Dennis
Logged
Pages: [1] Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!