View Full Version : Blogging feature...
PC101
08-28-2007, 11:46 AM
Howdy,
I'm testing out the blogging feature and I'm seeing something a lil odd. I posted a "test" blog which you can see on the home page (http://www.pc101.com). I figured I would be best suited to use the VBCode input ... but with this format, I get all the html tags.
Now, when using the Filtered HTML input format, I put in spaces between the lines, as in...
Hey y'all,
I'm testing our new blogging capabilites! :)
Lyte
In both cases/formats, when I hit submit it comes out all on one line and there's no smilie face.
I guess what I'm after ... need to know... is which format will give me a WYSIWYG format that will use the forum's vb tags, smilies and we won't see any of the html.
Thanks! :)
Lyte
EDIT: Just realized I put this thread in the wrong area. Sorry.
Goddess
08-29-2007, 02:17 PM
look at your input filters and experiement with those, as that's most likely where your issue is. for example, i have the smileys active in the filtered html profile, so you can use both. i don't use straight bbcode because you have to tag all the urls, images, etc with the bbcode...
elmuerte
08-29-2007, 02:21 PM
check the input formats that the filters are properly defined.
for newlines to be converted to breaks you need to enable the "Line break converter" filter.
the vbCode input format works best with only the vbCode filter activated. Other filters could be used (depending on thier function), but only with a lower priority than the vbCode filter.
PC101
08-30-2007, 02:17 PM
Thanks so much for the response!
I was able to get rid of the html code and I got the lines to break... somewhat (http://www.pc101.com)... each row of text has it's own line but there's no additional blank line between as it was typed. (example in first post). How do I get it to put a blank line between each row of text? Do I have to add raw html (eg. <br> or <p>)?
Under filters I have just these two checked...
*vBulletin smilies - Only parses the vBulletin smilies.
* Line break converter - Converts line breaks into HTML (i.e. <br> and <p> tags).
Also... I'm concerned though about NOT having this filter checked...
*HTML filter - Allows you to restrict if users can post HTML and which tags to filter out.
Am I setting myself and the site up for people posting something crazy (inappropriate) or something that might mess up the site's look or coding?
Thanks! :)
Lyte
Goddess
08-30-2007, 03:23 PM
lyte-i suspect this is a css issue. i'm using fckeditor and in my recipes, i notice the same thing. in order to get a break between paragraphs, you have to add an extra blank paragraph which isn't right.
are you using a wysiwyg editor for posting the blog entry?
viewing the source code for your page, paragraph tags ARE showing up properly, so there is some reason why they are not displaying with the expected line breaks between paragraphs. but i'd be interested to know how yours pans out so maybe it can help me on mine or vice versa. i hadn't gotten to tracking that one yet for my install.
Goddess
08-30-2007, 04:52 PM
lyte-i got this fixed on my site.
in the defaulttangy theme, common.css there is a style rule that causes no margins between the paragraphs...
P {
margin: 0;
}
I simply added comment tags around the css to this style tag, and voila! paragraph breaks. i'm not sure if this rule had some other purpose or not, so hopefully it won't break something else.
and also remember that when you upgrade vbdrupal, you'll overwrite the style. the readme for defaulttangy suggests creating a seperate syles.css so software updates don't overwrite your customization. so it might be better to set this as an !important style rule in a custom file instead...i should do that myself.
also, if you notice any other weirdness and are using a wysiwyg editor, check your input filers area of the test post for allowed tags. if you have your wysiwyg enabled for members, you'll probably have it set to filtered html, which you should, and may not have included all the tags you are trying to use. which i know to check that because i just did had to figure out the same thing. :p
hope that helps!
Goddess
08-30-2007, 04:58 PM
looking back at this, i'm not sure i answered your question. i think-and someone will correct me if i'm wrong, i'm sure, but i think that without any html filter enabled it won't parse the html.
there are some good input filter tutorials out there...i know i read a good one recently but i dont know where...i'll keep an eye out for it if i find it, but you may be able to just google it, too.
PC101
08-30-2007, 06:02 PM
Hey Goddess,
Thanks for your help! :)
Phew... I'm gonna have to read your post a couple times as I'm totally new to this CMS thang! :o
With regard to what I'm using... WYSIWYG... I've done nothing special to the Drupal that was installed. I simply went to my blog and started typing. Was there something I should have clicked on somewhere to turn WYSIWYG on?
With regards to...
"I simply added comment tags around the css to this style tag, and voila! paragraph breaks. i'm not sure if this rule had some other purpose or not, so hopefully it won't break something else."
Where do I go to test this out? If I understood you correctly, I need to find this file... common.css ... and change it somehow. Can you tell me (again?) what code it is that I need to find and how to change it?
Thanks!! :)
Lyte
Goddess
08-30-2007, 07:33 PM
ok, well unless you installed and set up a wysiwyg editor, you don't have it there, then... so don't worry about it. maybe that's something for later on. :) i set up fckeditor on mine with imce module to upload images so that people can use an easy text editor for their blog and such. but that will have it's own configuration tweaks if you decide to that. so putting it aside for now...
on the css - looked at the common.css in the defaultytangy theme module, which will be in your themes folder in the vbdrupal root...read the readme though; it will explain why i suggested added the custom css file. :)
it's the css styling for paragrahps. you'll see this -
P {
margin: 0;
}
you change it to something like this -
/* manual edit to allow p spacing 083007 dlv
P {
margin: 0;
}*/
with whatever notes want. i like to note why i'm editing the file, add the date and my initials...that way i can do searches on my initials to locate custom edits later if need be...but the point being that it starts and ends with the asterik and slashes as shown, which leaves the code as a comment in the css and therefore browsers don't call the rule and mess up your paragraph spacing.
HOWEVER, if you just fix it this way and if a later version of the theme in an update you install still has the same paragraph rule in it, it will overwrite your edit so you'll have to redo it then...
clearer? :D
PC101
08-30-2007, 09:31 PM
More clear! Thanks! I'll give it a go! :)
Lyte
Darwa
10-12-2008, 07:27 PM
Sorry for the necropost, but seeing the date on this and having just downloaded/installed, I'm astounded that this fix hasn't made it to core yet.
I'm certainly pleased I found this post though - I was pulling out my eyebrows :)