Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 04-23-2012, 03:33 PM
AlexC's Avatar
AlexC AlexC is offline
Moderator
 
Join Date: Dec 2009
Location: Canada
Posts: 753
Gender: Unknown/Other
Credits: 67,259
AlexC is an unknown quantity at this point
Default 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;




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




And this is the preview the editor provides;



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.
__________________
Reply With Quote
  #2  
Old 04-23-2012, 06:00 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,353
SilverDragonTears is on a distinguished road
Default

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
__________________

Check out SilvaTales
Reply With Quote
  #3  
Old 04-23-2012, 06:30 PM
AlexC's Avatar
AlexC AlexC is offline
Moderator
 
Join Date: Dec 2009
Location: Canada
Posts: 753
Gender: Unknown/Other
Credits: 67,259
AlexC is an unknown quantity at this point
Default

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.
__________________
Reply With Quote
  #4  
Old 04-23-2012, 06:54 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,353
SilverDragonTears is on a distinguished road
Default

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

Check out SilvaTales
Reply With Quote
  #5  
Old 04-23-2012, 07:25 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 333,456
Hall of Famer is on a distinguished road
Default

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.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #6  
Old 04-24-2012, 03:05 PM
AlexC's Avatar
AlexC AlexC is offline
Moderator
 
Join Date: Dec 2009
Location: Canada
Posts: 753
Gender: Unknown/Other
Credits: 67,259
AlexC is an unknown quantity at this point
Default

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.
__________________
Reply With Quote
  #7  
Old 04-24-2012, 08:05 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 333,456
Hall of Famer is on a distinguished road
Default

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.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #8  
Old 04-24-2012, 09:39 PM
AlexC's Avatar
AlexC AlexC is offline
Moderator
 
Join Date: Dec 2009
Location: Canada
Posts: 753
Gender: Unknown/Other
Credits: 67,259
AlexC is an unknown quantity at this point
Default

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.
__________________
Reply With Quote
  #9  
Old 04-24-2012, 10:02 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 333,456
Hall of Famer is on a distinguished road
Default

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> 
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #10  
Old 04-28-2012, 07:39 AM
Alaric Alaric is offline
Mod
 
Join Date: Nov 2011
Posts: 112
Gender: Male
Credits: 312,480
Alaric is on a distinguished road
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove WYSIWYG Editor Abronsyth Questions and Supports 5 12-29-2014 06:11 PM
Help Making Stats Page = Click Page & Lineages? squiggler Questions and Supports 2 02-22-2014 04:42 AM
Adopt Page & Pound Page change? tahbikat Questions and Supports 3 02-14-2014 03:19 PM
PHP in editor? SilverDragonTears Questions and Supports 5 05-02-2012 10:43 PM


All times are GMT -5. The time now is 06:18 AM.

Currently Active Users: 9808 (0 members and 9808 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636