how to upload img directly in body? how to add poll in body field?
Hi, I have a few confusing question I hope I can get answere of
1.When a member writing a blog the member gets the possibility to use the TinyMC as a editor, which works very good, but why does does it make a page break every time Im hitting enter? Like this:
Bla bla bla bla [enter]
Bla bla bla
it should be
bla bla bla bla
bla bla bla
2. Like wordpress I want the user to be able to upload a file from his/hers harddisk and get a directly preview in the TinyMC body, so the user can administrate in wich position the picture should be in his /hers blog text.
I have tried the imgFupload module, but it didnt work so good, lots of MYSQL errors and sadly it didnt show any directly preview in the TinyMC body so the user could admin the pic positions.
So do anyone have a solution for this?
3. Lastly I wanted to implement a poll field directly under the body field (in the write a blog edit page). So I tried the Poll module, and it worked very well, BUT not being able to make it avaible in the Content types-"manage post by content" (so the add a poll field/button shows up in the creat a blog editor, directly under the body) made me try another solution. I tried the
the pollfield module and well , now I can make a field under the create a blog editor but sadly it dont work as well and giving me lots of these errors:
user warning: Unknown column 'field_poll_anonymous' in 'field list' query: SELECT field_poll_anonymous FROM content_type_blog WHERE nid=13 in C:\wamp\www\drupal-6.14\drupal-6.14\modules\pollfield-6.x-1.7-beta1\pollfield\pollfield.module on line 1545.
Anyone got another solution?
(Excuse me for my poor english spelling (english are not my native language))
Thanks in advance!
EDIT: Its working now, duplicate are gone... the solution was ENABLE HTML FILTER, but doing so makes the pictures align in a row when uploading more then one pic.
It should be like this
PIC PIC PIC
but after enable html filter (duplicate is gone) it looks like this in tinymce
PIC
PIC
PIC
Any solution?

1. It is annoying behaviour,
1.
It is annoying behaviour, and I'm not sure how to change it if you're using the wysiwyg module.
Probably it is an option in the editor's config file (as opposed to being an option in the wysiwyg module).
There is something you should know though:
'Enter' makes a new paragraph. But, you can also use Shift+Enter to insert a normal, one-line break.
2.
The 'best' (ie. easiest solution for the user) I have found so far is:
· cck + imagecache + filefield + imagefield for uploading the image to a folder.
· insert module for inserting the uploaded image into the wysiwyg editor window.
· And if you want a really smart finishing touch, the image resize filter module.
Here are the module pages:
http://drupal.org/project/cck
http://drupal.org/project/imagecache
http://drupal.org/project/filefield
http://drupal.org/project/imagefield
http://drupal.org/project/insert
http://drupal.org/project/image_resize_filter
And a screencast! http://mustardseedmedia.com/podcast/episode29
3.
Sorry, I've never used the polls, so I can't offer any help.
Wow thanks a lot, I watched
Wow thanks a lot, I watched the podcast bob video tutorial and its amazing, gonna try this out!
I also added the http://mustardseedmedia.com/ to my favourites, so much tutorial, its grt
many thanks!
Oklok
=-=
1. Happens because of drupal's line break filter if enabled on an input format. With regards to editors its why it's likley best to create a new input formats and have only have filters enabled on those input formats you know you need.
3. investigate the pollfield.module in the downloads area.
> 1. Happens because of
> 1. Happens because of drupal's line break filter if enabled on an input format
I tried disabling the line break filter, but TinyMCE still has the same behaviour.
I'm fairly sure it is due to a default setting in TinyMCE. They seem to think that
a paragraph is the proper behaviour for 'Enter' in a wysiwyg. I can see their point,
but it is not what users expect. Further, using shift+enter to do manual lists is a
pain because of buggy, erratic cursor behaviour.
Here is the docs page for reference:
http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/force_br_newlines
The problem is that there doesn't seem to be any 'init' file for editors when using
the wysiwyg module; I don't see how to make manual config changes to the editors.
Hmm are trying this now but
Hmm are trying this now but cant find html insert , why is that? I just have the insert...with less options than the video tutorial.
EDIT: Never mind, there is a slighty change from the release of the tutorial video compared to the new realease.
I had to go to Home » Administer » Site configuration » Input formats and change from here!
Oklok
So I have trying this out and
So how do I make a clickable thumbnail with image cache? anyone with a suggestion?
Oklok
Assuming you've used
Assuming you've used imagefield to upload the image(s) to the server, then the various display/link options for the images are in the cck part of the content type settings. I think they're on a settings page called 'display fields' or something like that:
Administer -> Content management -> CONTENT-TYPE -> Manage fields -> Display fields
And there should be options such as 'thumbnail -> original'
If you have lightbox2 installed, you'll see extra options like 'thumbnail -> lightboxed'
Yeah its true, I found this
Yeah its true, I found this solution yesterday but still I dont understand
what Teaser Exclude Full node Exclude means?
I m using thickbox so I Choose :Thumbnail image well it works but somehow I get a duplicated image: One above (which are not clickable), and one duplicate (which are clickable)
Oklok
> what Teaser Exclude Full
> what Teaser Exclude Full node Exclude means?
It means that any image uploaded by imagefield to that content-type will
not display (it is 'excluded' from the page render).
Normally you would not use these options (the whole point of uploading an
image is to display it, right?), but when using other modules that 'do
something' with the cck field data, then it is often useful to tell cck not
to display it.
Sorry, I've never used thickbox, so I can't help with your 'duplicate' problem.
If you look at the location of the image you don't want, the location will give
you a clue as to which of the three modules is creating/displaying it.
Anti , thanks for your kinds
Anti , thanks for your kinds replies.
So I have checked the duplicates, the first one had this link:
sites/default/files/imagecache/Thumbnail/picture.jpg <--- this is not a clickable thumbnail
the second
sites/default/files/picture.jpg <-- this is a clickable thumnbail (shadowbox)
Pls see : http://drupal.org/node/555726#comment-2214592
in my comment #3 I have a pic to describe what I mean...
Oklok
Without installing all the
Without installing all the modules and trying to reproduce the problem, I can't really help further, especially since I don't even have a test site available at the moment.
Regarding your question about the poll, I just noticed this:
http://drupal.org/project/pollfield
It appears very buggy, but it might help you in the future.
Good luck.
EDIT: Its working now,
EDIT: Its working now, duplicate are gone... the solution was ENABLE HTML FILTER, but doing so makes the pictures align in a row when uploading more then one pic.
It should be like this
PIC PIC PIC
but after enable html filter (duplicate is gone) it looks like this in tinymce
PIC
PIC
PIC
I have tested lots and lots of mixture settings:
-Administer › Site configuration › Input formats › Full HTML-> re-arrange full html
-TinyMCE profile for Full HTML
-Insert format
and cant find the solution. I have realised that I must have html filter on else the text looks choppy (not word like, no breaks or
etc) but the pic are not aligned side by side and the re-size dont work.
Any solution?
Oklok