Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Page Editor Glitches (http://www.mysidiaadoptables.com/forum/showthread.php?t=3630)

AlexC 04-23-2012 03:33 PM

Page Editor Glitches
 
I mentioned this briefly in another thread, but another issue there arose, so I'm reposting it.

I'm having issues with my page editor creating massive spaces, line breaks ans shoving things like tables and forms far down the page. I've taken some screenshots;

This is of a page right now;

http://i43.tinypic.com/33as9ap.jpg


This is what it looks like when I'm editing it;

http://i43.tinypic.com/6iwg8y.jpg


And this is the preview the editor provides;

http://i39.tinypic.com/2jfbmlz.jpg

I have some live examples;

http://ratties.x10.mx/contact.php
http://ratties.x10.mx/sites.php
http://ratties.x10.mx/index.php
http://ratties.x10.mx/contests.php

I can throw a table up if anyone would like to see - the pages that look half decent have been dramatically altered through the editor to get them as normal looking as possible.

SilverDragonTears 04-23-2012 06:00 PM

Yep had that problem too, which is why I don't use the editor at all. I'm so sure that helps you tons. LoL

AlexC 04-23-2012 06:30 PM

You can disable the editor? Darn, that'd be nice. It's great in theory and for beginners, but I prefer to be given the barebones and work up from there. I can do a ton more with bbcodes.

SilverDragonTears 04-23-2012 06:54 PM

I Just edit the php pages and put my content there :/

Hall of Famer 04-23-2012 07:25 PM

Well the CKEditor inserts an empty line into the database out of nowhere. You can find the page from table prefix.content and edit out the <p> which is causing problem.

AlexC 04-24-2012 03:05 PM

Sorry for the delay in getting back, issues...

Anyway, I tried looking for an extra <p> in my content table and couldn't find it. Actually, in the content area, it looks (html wise) exactly how I wanted it to appear.

Hall of Famer 04-24-2012 08:05 PM

Well at this point you can fix this by going to phpmyadmin and edit table prefix.content. Remove every instance of <div> and </div> except for the one at the beginning or end of a paragraph. An example is shown here(as you find from table prefix.content:

PHP Code:

<div>
    <
u><strong>The Excellent CKEditor Page!</strong></u></div>
<
div>
    
But looks like linebreak is not workingumm...</div

The <div> and </div> at the beginning/end of the entry should remain untouched, what to do with the extra <div>'s inside the entry is up to you though. If I remove the inner </div><div> I will get this:

PHP Code:

<div>
    <
u><strong>The Excellent CKEditor Page!</strong></u>
    
But looks like linebreak is not workingumm...</div

And the page will appear normally without linebreak. For now this is what you can do, and by the release Mys v1.3.2 I will figure out a better and easier way to fix this extra linebreak issue since not everyone knows how to edit in phpmyadmin.

AlexC 04-24-2012 09:39 PM

Okay, so I did that on the index page and I didn't seem to notice a difference, so I went to check the contest page and edit that thinking perhaps I'd get better results, and here is what it looks like;

Code:

<div style="text-align: center;">
        I am your best follower,</div>
<div style="text-align: center;">
        Constant as the air,</div>
<div style="text-align: center;">
        Forever lingering near the ground,</div>
<div style="text-align: center;">
        I will keep at your heels all day long</div>
<div style="text-align: center;">
        But come the night I vanish,</div>
<div style="text-align: center;">
        And come the midday sun I hide.</div>
<div style="text-align: center;">
        </div>
<div style="text-align: center;">
        What am I?</div>
<div style="text-align: center;">
        </div>
<div style="text-align: center;">
        <em>Message Bea the answer and she'll reward you with nibbles and a </em>Standard Amber Bareback Rat.</div>
<div style="text-align: center;">
        Check back on the first of May for another riddle!</div>
<div style="text-align: center;">
        </div>
<div style="text-align: center;">
        <a href="http://ratties.x10.mx/forum/private.php?action=send&uid=1">Click here to answer!</a></div>

I'm... not really sure how to remove all those divs without destroying it.

Hall of Famer 04-24-2012 10:02 PM

Remove every instance of the following code as below except when you actually want a linebreak.

PHP Code:

</div> <div style="text-align: center;"

And I can fix it for you now:

PHP Code:

<div style="text-align: center;">    
 
I am your best follower,     
Constant as the air,     
Forever lingering near the ground,     
I will keep at your heels all day long     
But come the night I vanish
,     
And 
come the midday sun I hide.</div
<
div style="text-align: center;">     
What am I?      </div
<
div style="text-align: center;">     
<
em>Message Bea the answer and she'll reward you with nibbles and a </em>Standard Amber Bareback Rat.     
Check back on the first of May for another riddle!</div> 
<div style="text-align: center;">     
<a href="http://ratties.x10.mx/forum/private.php?action=send&uid=1">Click here to answer!</a></div> 


Alaric 04-28-2012 07:39 AM

I Have figured out what causes the massive spaces, line breaks and shoving things like tables and forms far down the page.

In The File-Manager, Open Whatever php you want to edit. and search for this line
PHP Code:

// Convert line breaks to <br>
$article_content nl2br ($article_content); 

Replace it with this:
PHP Code:

// Convert line breaks to <br>
$article_content = ($article_content); 

Fixed.


All times are GMT -5. The time now is 06:44 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.