Welcome to Geeklog, Anonymous Friday, September 30 2022 @ 12:25 pm EDT

Geeklog Forums

still double spacing in body text


Status: offline

tubbs

Forum User
Newbie
Registered: 03/09/02
Posts: 13
Hi, I really need to fix this. When users on my site submits articles, they submit it in plain text and it looks ok when i first check it. But, then there's this problem; the users have only one form-area to submit in, which becomes the "intro text". I then have to move the main part of the article to "body text". The intro text part is nicely formatted with single spacing, but the body text part looks freakish with double spacing. When looking at the printer friendly version it looks ok though... Could anyone please give me a hint about what to do? (a suggestion for other releases of geeklog is to let the user have two submit field too, one for intro text and one for body text...) If you dont understand what i mean, just check www.freebsd.se and see for your self. TIA tubbs
 Quote

Status: offline

tcarr

Forum User
Newbie
Registered: 12/17/01
Posts: 7
News sites never carry the whole article as a solid chunk of text. There is always an opening statement or a kicker to draw readers into the article. Two text input boxes would allow the writer of an article to indicate their intended split between into and main text. It would also ease the work of the editor. I would suggest a short term solution in a situation where the community members operate as peers. That is to assign everyone story admin rights so they can use the story admin block to enter their stories. tcarr
 Quote

Anonymous

Anonymous
Sure, I agree, I could do that, but it still doesnt solve the crazy formatting Frown, Im sure its something simple...
 Quote

Status: offline

Tony

Site Admin
Admin
Registered: 12/17/01
Posts: 405
Location:Urbandale, Iowa
This was an old bug and has been fixed in newer versions of geeklog. I'd upgrade if I were you. ----- The reason people blame things on previous generations is that there's only one other choice.
The reason people blame things on previous generations is that there's only one other choice.
 Quote

Status: offline

tubbs

Forum User
Newbie
Registered: 03/09/02
Posts: 13
ok, so this was a bug in 1.3.3, but its solved in 1.3.4?
 Quote

Status: offline

squatty

Forum User
Full Member
Registered: 01/21/02
Posts: 269
I've got the same issue on a 1.3.4 install. My fix to date has been to edit the data in phpMyAdmin.
In a world without walls and fences, who needs Windows and Gates?
 Quote

Status: offline

tubbs

Forum User
Newbie
Registered: 03/09/02
Posts: 13
ugh, I'll try upgrading later tonight. I'll post if it helped or not.
 Quote

Status: offline

tcarr

Forum User
Newbie
Registered: 12/17/01
Posts: 7
Only solution I have found in the short term is to enter the relevant html line <br> and paragraph breaks <p> and to switch the format to html.
 Quote

Anonymous

Anonymous
yup, but that would make do nothing but converting txt to html all day long... i actually have better things to do Smile, but yes its a solution hehe.
 Quote

Status: offline

tubbs

Forum User
Newbie
Registered: 03/09/02
Posts: 13
I tried upgrading, did _not_ change the formating...
 Quote

Status: offline

tubbs

Forum User
Newbie
Registered: 03/09/02
Posts: 13
Now it works perfectly since i removed that extra nl2br() call, thanks a bunch Tony! what a relief Smile thanks thanks thanks! (for those of you who have the same problem: about line 183 in public_html/lib-common.php theres an unnecessary use of nl2br, it looks like this: $article->set_var('story_introtext', stripslashes($A['introtext']) . '<br><br>'.nl2br(stripslashes($A['bodytext']))); but should look like this: $article->set_var('story_introtext', stripslashes($A['introtext']) . '<br><br>'.stripslashes($A['bodytext'])); I kinda had a feeling it was just a small thing like this Smile
 Quote

All times are EDT. The time is now 12:25 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content