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

pablo24

I can't install it!
I use smf 2.0rc5
There is an error when it tries to replace this:
         echo '
<div class="quickReplyContent">
<textarea cols="600" rows="7" name="message" tabindex="', $context['tabindex']++, '"></textarea>
</div>
<div class="righttext padding">
<input type="submit" name="post" value="', $txt['post'], '" onclick="return submitThisOnce(this);" accesskey="s" tabindex="', $context['tabindex']++, '" class="button_submit" />
<input type="submit" name="preview" value="', $txt['preview'], '" onclick="return submitThisOnce(this);" accesskey="p" tabindex="', $context['tabindex']++, '" class="button_submit" />';

if ($context['show_spellchecking'])
echo '
<input type="button" value="', $txt['spell_check'], '" onclick="spellCheck(\'postmodify\', \'message\');" tabindex="', $context['tabindex']++, '" class="button_submit" />';

echo '
</div>
</form>


with this

// Start of WYSIWYG Quick Reply

// Only show bbcode bar if BBCodes are enabled, AND if its a quick reply mode with bbcode bar
if ($context['show_bbc'] && (in_array($options['wysiwyg_quick_reply'], array(0, 1, 4, 5))))
echo '<div id="bbcBox_message"></div>';

// Only show smilies if smiliesare enabled AND if its a quick reply mode with smilies
if (!empty($context['smileys']['postform']) && (in_array($options['wysiwyg_quick_reply'], array(0, 2, 4, 6))))
echo ' <div id="smileyBox_message"></div>';

// Show the quick reply (WYSIWYG vs NON-WYSIWYG dealt with already decided in source file)
echo  template_control_richedit($context['post_box_name'], 'smileyBox_message', 'bbcBox_message'), '';

// End of WYSIWYG Quick Reply

echo '
<div id="qr_buttons">
<input type="submit" name="post" value="', $txt['post'], '" onclick="return submitThisOnce(this);" accesskey="s" tabindex="', $context['tabindex']++, '" class="button_submit" />
<input type="submit" name="preview" value="', $txt['preview'], '" onclick="return submitThisOnce(this);" accesskey="p" tabindex="', $context['tabindex']++, '" class="button_submit" />';
if ($context['show_spellchecking'])
echo '
<input type="button" value="', $txt['spell_check'], '" onclick="spellCheck(\'postmodify\', \'message\');" tabindex="', $context['tabindex']++, '" class="button_submit" />';
echo '
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
<input type="hidden" name="seqnum" value="', $context['form_sequence_number'], '" />
</div>
</form>

in index.template


Please Help me!

SilverLining

Hi there! I was wondering if there's any chance of getting a guide of how to make this mod work on the Babylon theme? I'd love to use it but I just can't seem to figure out how to do the edits on it. Thanks in advance! =)

Adrek

#502
At my site this mod causes two errors:
8: Undefined index: wysiwyg_quick_reply5
and
8: Undefined index: wysiwyg_quick_reply1
File: /home/xxx/domains/xxx.pl/public_html/Themes/default/Profile.template.php
Line: 1537


Any fix for that ?




I think that i'm blind...
Fix for this is here > http://www.simplemachines.org/community/index.php?topic=251436.msg3093967#msg3093967
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

Antechinus

Quote from: SilverLining on July 10, 2011, 05:41:51 AM
Hi there! I was wondering if there's any chance of getting a guide of how to make this mod work on the Babylon theme? I'd love to use it but I just can't seem to figure out how to do the edits on it. Thanks in advance! =)

Babylon isn't available for 2.0 Final at the moment AFAIK.

Quote from: ph4ntom on July 10, 2011, 02:17:07 PM
At my site this mod causes two errors:

I'll fix the array tonight and reload the mod.

SilverLining

#504
Quote from: Antechinus on July 10, 2011, 06:15:14 PM
Quote from: SilverLining on July 10, 2011, 05:41:51 AM
Hi there! I was wondering if there's any chance of getting a guide of how to make this mod work on the Babylon theme? I'd love to use it but I just can't seem to figure out how to do the edits on it. Thanks in advance! =)

Babylon isn't available for 2.0 Final at the moment AFAIK.


Well, I use a custom theme that's based on Babylon (same code, different colors). It is updated/upgraded for 2.0 though.

ETA: If anyone can help me with this it'd be most appreciated. This is such a useful mod but I don't want to change to the Curve layout and I'm not experienced enough with coding that I dare try to "babylonify" it myself. Thanks in advance!

saosangmo

When I press quote buton, the smf display loading.... and can't quote the post.
If this is an error of your mod?

thanks
-saosangmo

Si6776

Is that with the Chrome browser, by any chance?  I have the same issue, only solved by telling people to turn off WYSIWYG on the Quick Reply box if using Chrome.  :(

doum

Quote from: saosangmo on July 13, 2011, 01:33:13 AM
When I press quote buton, the smf display loading.... and can't quote the post.
If this is an error of your mod?

thanks
-saosangmo

Quote from: Si6776 on July 13, 2011, 11:46:31 AM
Is that with the Chrome browser, by any chance?  I have the same issue, only solved by telling people to turn off WYSIWYG on the Quick Reply box if using Chrome.  :(

Same thing for me with FF 6 beta


Yngwiedis

Hello...

Everything is ok with this mod except the resizer size.
Please take a look at the picture.




Can we do anything about that ?

Thank you very very much.
AmityHost.com - The Affordable Host

dembow

Quote from: Yngwiedis on July 15, 2011, 10:15:51 PM
Hello...

Everything is ok with this mod except the resizer size.
Please take a look at the picture.




Can we do anything about that ?

Thank you very very much.

yeah i asked the same thing a few pages back probably almost a month ago and nobody responded, but i managed to fix it with:


#quickReplyOptions .richedit_resize {margin: 0 auto 10px auto; width: 690px; max-width: 690px; min-width: 690px;}


hope that helps  ;)

Yngwiedis

#510
This is a fixed width size which is not good on my forum.
Can we make it somehow "dynamic" ?


You have seen these ?

One in the Themes/default/css/index.css.
.richedit_resize { margin: 0 auto; }

and another one in Themes/default/css/editor.css
/* The resize handle. */
.richedit_resize
{
height: 5px;
font-size: 0;
background: #eee url(../images/bbc/resize-handle.gif) no-repeat 50% 1px;
border: 1px solid #ddd;
border-top-width: 0;
cursor: s-resize;
}




Thank you very very much.
AmityHost.com - The Affordable Host

hcfwesker

Quote from: ph4ntom on July 10, 2011, 02:17:07 PM
I think that i'm blind...
Fix for this is here > http://www.simplemachines.org/community/index.php?topic=251436.msg3093967#msg3093967

Yeah, that was a Temp fix I came up with to remove the errors.

MOD Author said he was going to update sometime ago with the fixes.

Yngwiedis

Some help please ?

Quote from: Yngwiedis on July 17, 2011, 04:19:27 PM
This is a fixed width size which is not good on my forum.
Can we make it somehow "dynamic" ?


You have seen these ?

One in the Themes/default/css/index.css.
.richedit_resize { margin: 0 auto; }

and another one in Themes/default/css/editor.css
/* The resize handle. */
.richedit_resize
{
height: 5px;
font-size: 0;
background: #eee url(../images/bbc/resize-handle.gif) no-repeat 50% 1px;
border: 1px solid #ddd;
border-top-width: 0;
cursor: s-resize;
}




Thank you very very much.

AmityHost.com - The Affordable Host

hialex

#513
Hello. The script which is described on this page: http://www.simplemachines.org/community/index.php?topic=21285.0  does not work with this mod. But it is works with standart quick reply form. is it possible to resolve this problem?

smf 2.0

in script.js :

function quote_selection()
{
selection = document.getSelection ? document.getSelection() : document.selection.createRange().text;
document.postmodify.message.value += '\n[quote]' + selection + '[/quote]\n';
}

function to_name(char_name)
{
document.postmodify.message.value += '[b][u]2 [color=red]' + char_name + '[/color][/u][/b]: ';
}


in Display.template.php:

echo '
<table><tr><td align="center" border="0">
<img src="', $settings['images_url'], '/author.gif" alt="Author" onclick="to_name(\'', $message['member']['name'], '\')" border="0" style="cursor: ', $context['browser']['is_ie'] ? 'hand' : 'pointer', '" />
</td>
<td align="center" border="0">
<img src="', $settings['images_url'], '/quote1.gif" alt="Quote" onclick="quote_selection()" style="cursor: ', $context['browser']['is_ie'] ? 'hand' : 'pointer', '" />
</td></tr></table> ';


after
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69]

Yngwiedis

Any news about that ?

Quote from: Yngwiedis on July 22, 2011, 01:19:54 AM
Some help please ?

Quote from: Yngwiedis on July 17, 2011, 04:19:27 PM
This is a fixed width size which is not good on my forum.
Can we make it somehow "dynamic" ?


You have seen these ?

One in the Themes/default/css/index.css.
.richedit_resize { margin: 0 auto; }

and another one in Themes/default/css/editor.css
/* The resize handle. */
.richedit_resize
{
height: 5px;
font-size: 0;
background: #eee url(../images/bbc/resize-handle.gif) no-repeat 50% 1px;
border: 1px solid #ddd;
border-top-width: 0;
cursor: s-resize;
}




Thank you very very much.


AmityHost.com - The Affordable Host

Yngwiedis

I really need some help for the above...
AmityHost.com - The Affordable Host

Yngwiedis

I am still waiting for some help...
AmityHost.com - The Affordable Host

Yngwiedis

AmityHost.com - The Affordable Host

MiY4Gi

This mod makes too many changes to the display.template.php file, which causes conflict with any other mods that alter quick reply.

Can't this mod be installed by simply adding code to the default quick reply code, rather than replacing all of it? Replacing code removes all possibility of manually installing other mods easily.

This mod would be excellent when combined with the Ajax Instant Quick Reply and Drafts mods. I reckon the main culprit of the incompatibility is this mod, and not the other two.
Check out my new website, MyAnimeClub.net. I plan to create the largest anime community, and most fun and user-friendly anime forum in the world. It's still in the development stage though.

Yngwiedis

Can someone help please ?
AmityHost.com - The Affordable Host

Advertisement: