News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

[Depreciated]

Started by Depreciated, July 24, 2008, 03:18:45 PM

Previous topic - Next topic

kirbyiwaki

Me has the same problem xD... I hope we can get a solution (I used enhanced quick reply, but that's not working with SMF 2...)

edi67

#81
Dont Worry Guys  ;) our Karl is busy so cannot find one solution for this, but this is solution for me and i hope to you

in GenericControls.Template.php find:

echo '
<div>
<div>
<textarea class="editor" name="', $editor_id, '" id="', $editor_id, '" rows="', $editor_context['rows'], '" cols="', $editor_context['columns'], '" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="', $context['tabindex']++, '" style="width: ', $editor_context['width'], '; height: ', $editor_context['height'], ';', isset($context['post_error']['no_message']) || isset($context['post_error']['long_message']) ? 'border: 1px solid red;' : '', '">', $editor_context['value'], '</textarea>
</div>
<div id="', $editor_id, '_resizer" style="display: none; width: ', $editor_context['width'], '" class="richedit_resize"></div>
</div>


and Replace with:

echo '
<textarea class="editor" name="', $editor_id, '" id="', $editor_id, '" rows="', $editor_context['rows'], '" cols="', $editor_context['columns'], '" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="', $context['tabindex']++, '" style="width: ', $editor_context['width'], '; height: ', $editor_context['height'], ';', isset($context['post_error']['no_message']) || isset($context['post_error']['long_message']) ? 'border: 1px solid red;' : '', '">', $editor_context['value'], '</textarea>
<div id="', $editor_id, '_resizer" style="display: none; width: ', $editor_context['width'], '" class="richedit_resize"></div>



Everything will be ok ;)
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

SpectroPro

I see what you did there...but oddly, it has no affect at all on my site.. :( 

It should have done something!!!   I even emptied the file cache...  that had no affect.  How can you remove 2 sections (div tags) and nothing changes visually...that just doesn't make any sense....
Stats:  SMF v. 2b4  -  Mambo v4.65  -  Bridge v2.0b1

http://www.therealityrocks.com    http://forum.therealityrocks.com/trr
- Greg

SpectroPro

Ok..just for giggles, I started removing entire sections of that file.  I cut out the drop down boxes, all divider graphics, etc...  and it never changed once on my forum.  Nothing I removed made any difference at all in the look..  The drop downs were still there.   Smileys were there, even after I cut out the code to show them. 

What the hell??????

And yes, I am, as always, in the default theme...that's all I ever use.
Stats:  SMF v. 2b4  -  Mambo v4.65  -  Bridge v2.0b1

http://www.therealityrocks.com    http://forum.therealityrocks.com/trr
- Greg

X3mE

#84
Quote from: edi67 on November 07, 2008, 05:32:37 AM
Dont Worry Guys  ;) our Karl is busy so cannot find one solution for this, but this is solution for me and i hope to you

in GenericControls.Template.php find:

echo '
<div>
<div>
<textarea class="editor" name="', $editor_id, '" id="', $editor_id, '" rows="', $editor_context['rows'], '" cols="', $editor_context['columns'], '" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="', $context['tabindex']++, '" style="width: ', $editor_context['width'], '; height: ', $editor_context['height'], ';', isset($context['post_error']['no_message']) || isset($context['post_error']['long_message']) ? 'border: 1px solid red;' : '', '">', $editor_context['value'], '</textarea>
</div>
<div id="', $editor_id, '_resizer" style="display: none; width: ', $editor_context['width'], '" class="richedit_resize"></div>
</div>


and Replace with:

echo '
<textarea class="editor" name="', $editor_id, '" id="', $editor_id, '" rows="', $editor_context['rows'], '" cols="', $editor_context['columns'], '" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="', $context['tabindex']++, '" style="width: ', $editor_context['width'], '; height: ', $editor_context['height'], ';', isset($context['post_error']['no_message']) || isset($context['post_error']['long_message']) ? 'border: 1px solid red;' : '', '">', $editor_context['value'], '</textarea>
<div id="', $editor_id, '_resizer" style="display: none; width: ', $editor_context['width'], '" class="richedit_resize"></div>



Everything will be ok ;)

Yes!!! It is working for both my default and custom theme!!! Thanks a million man!!!

Tested in FF, IE, Opera and Safari.
Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



edi67

Quote from: SpectroPro on November 07, 2008, 07:54:06 AM
I see what you did there...but oddly, it has no affect at all on my site.. :( 

It should have done something!!!   I even emptied the file cache...  that had no affect.  How can you remove 2 sections (div tags) and nothing changes visually...that just doesn't make any sense....

DUDE that Tips work perfectly ; try better with your custom theme and default theme
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

SpectroPro

#86
Quote from: edi67 on November 07, 2008, 05:44:14 PM
Quote from: SpectroPro on November 07, 2008, 07:54:06 AM
I see what you did there...but oddly, it has no affect at all on my site.. :( 

It should have done something!!!   I even emptied the file cache...  that had no affect.  How can you remove 2 sections (div tags) and nothing changes visually...that just doesn't make any sense....

DUDE that Tips work perfectly ; try better with your custom theme and default theme

I do not use custom themes..  And you can tell me it works all day long.. I am telling you I did it and nothing changed... but again, like I said, I have deleted MOST of that file, saved it, uploaded it, and deleted the file cache..and everything looks the same..  EVERYTHING!!!   Even with 90% of the code ripped out..  So you tell me....cause I aint got a freaking clue!!!!

-------

ADD:   Ok, I deleted that file totally, and installed a copy I had from before I started playing with it..  Made the edit, and it works.  HOWEVER, it flipped the 'drag' bar from the bottom to the top. Still works, but wondering why it would do that..  Again, this is clean file with just the edit you posted done to it...

Here is a pic of what it did..

Stats:  SMF v. 2b4  -  Mambo v4.65  -  Bridge v2.0b1

http://www.therealityrocks.com    http://forum.therealityrocks.com/trr
- Greg

AlenNS

Quote from: edi67 on November 07, 2008, 05:32:37 AM
Dont Worry Guys  ;) our Karl is busy so cannot find one solution for this, but this is solution for me and i hope to you

in GenericControls.Template.php find:

echo '
<div>
<div>
<textarea class="editor" name="', $editor_id, '" id="', $editor_id, '" rows="', $editor_context['rows'], '" cols="', $editor_context['columns'], '" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="', $context['tabindex']++, '" style="width: ', $editor_context['width'], '; height: ', $editor_context['height'], ';', isset($context['post_error']['no_message']) || isset($context['post_error']['long_message']) ? 'border: 1px solid red;' : '', '">', $editor_context['value'], '</textarea>
</div>
<div id="', $editor_id, '_resizer" style="display: none; width: ', $editor_context['width'], '" class="richedit_resize"></div>
</div>


and Replace with:

echo '
<textarea class="editor" name="', $editor_id, '" id="', $editor_id, '" rows="', $editor_context['rows'], '" cols="', $editor_context['columns'], '" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="', $context['tabindex']++, '" style="width: ', $editor_context['width'], '; height: ', $editor_context['height'], ';', isset($context['post_error']['no_message']) || isset($context['post_error']['long_message']) ? 'border: 1px solid red;' : '', '">', $editor_context['value'], '</textarea>
<div id="', $editor_id, '_resizer" style="display: none; width: ', $editor_context['width'], '" class="richedit_resize"></div>



Everything will be ok ;)
Thank you 1000000000000000000000000000000 times... :)

AlenNS

I have problem with resizer.
What should I change to move it little left?

I guess that it has something with this:
<div id="', $editor_id, '_resizer" style="display: none; width: ', $editor_context['width'], '" class="richedit_resize"></div>

SpectroPro

Funny...  as per MY picture just above yours... I have the same problem, only mine moved to the top instead of at the bottom..  Goofy!!!!

Anyone have any ideas??
Stats:  SMF v. 2b4  -  Mambo v4.65  -  Bridge v2.0b1

http://www.therealityrocks.com    http://forum.therealityrocks.com/trr
- Greg

X3mE

I have hard coded the width od the textarea to 95%, and the resizer to 45%, and it looks ok like that. I've search through the CSS, but don't have a clue how to move it left :/
Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



AlenNS

#91
I've changed my editor.css

/* This is the IFRAME that holds the editor. */
.rich_editor_frame
{
    
border1px solid #808080;
}

/* This is the WYSIWYG editor */
.rich_editor
{
    
background-colorwhite;
    
colorblack;
    
font-familyverdana;
    
font-sizesmall;
    
bordernone;
}

.
rich_editor p
{
    
margin0px;
}

.
richedit_resize
{
    
height5px;
    
font-size0px;
    
background#eeeeee url(../images/bbc/resize-handle.gif) no-repeat 50% 1px;
    
border1px solid #dddddd;
    
border-top-width0px;
    
cursorrow-resize;
    
width49%
}


Adding width: 49%

SpectroPro

Ok..  I am uploading my GenericControl file...  can someone please check it out and see why my resizer is stuck at the top now instead of the bottom?   Would greatly appreciate it..  I changed the code exactly as I should have, and once done, it moved that from under the text box to over it.  And I wouldn't care, cept it is way off center (see the picture I posted a couple posts above....)

Thanks for any help on this...

Greg
Stats:  SMF v. 2b4  -  Mambo v4.65  -  Bridge v2.0b1

http://www.therealityrocks.com    http://forum.therealityrocks.com/trr
- Greg

sAce

people please tell how to add this in 117 ,

AlenNS


X3mE

SpectroPro, here is my GenericControl template file. Copy it to your theme folder and see if it works.

If it still doesn't work, that would mean something else is the problem, as it works absolutely fine for me.
Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



SpectroPro

Thanks!  That didn't fix it..   Damned odd because it was on the bottom until I made the change to fix it.. LOL  Oh well...  someday I'll decide I give a crap and try and figure it out..  It is NOT a priority..if someone has an idea and lets me know..great...otherwise, just NOT at top of my list.. 

Since your file didn't change its placement, it must be something else..  but damned if I have any idea what it would be..  The only real diff between your file and mine, is that I have a capchta thing installed that is in my file.

Thanks again!!!

Greg
Stats:  SMF v. 2b4  -  Mambo v4.65  -  Bridge v2.0b1

http://www.therealityrocks.com    http://forum.therealityrocks.com/trr
- Greg


SpectroPro

If you had read the posts by me, same exact problem.   odd, that the bar is at the bottom, UNTIL you make the change to get rid of the 2 extra lines (divs).   That totally makes NO sense what so ever in the world of site design.  One should have NOTHING to do with the other.. but I removed the fix, and my bar went right back to the bottom and lined up just like it should have.. NOW, I redo the fix, and it is at the top, and off center again.  Freaking ridiculous!!!!!

And mine is default theme.... 
Stats:  SMF v. 2b4  -  Mambo v4.65  -  Bridge v2.0b1

http://www.therealityrocks.com    http://forum.therealityrocks.com/trr
- Greg

Mikeric

Has anyone figured this out yet? I realy like this mod other than that, i do know its not beign supported by the author anymore.

Advertisement: