News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

[Depreciated]

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

Previous topic - Next topic

Antechinus

I'm not going to recode the whole WYSIWYG editor.

Engel

Quote from: Antechinus on August 28, 2011, 07:07:36 PM
Which editor do you have selected? WYSIWYG or the standard BBC editor? I'm in the process of recoding this mod at the moment, and there does seem to be a problem with quoting to the WYSIWYG editor, but the other one works. Haven't got a fix for it yet but will look into it.

I just disable the WYSIWYG and everything works fine. Thanks everyone. :3

待ち合わせはいつも曲がり角んとこ 赤いポストに寄りかかって待ってたの
[ hellsketch ]

Sci-Fi_Fan

I installed the mod on my forum but all of the buttons are squashed up together. Is there a way to correct this?

Screenshot attached.
ShadowFleet.org - more than just a Star Trek RPG!

T3CHN0

I don't know if this will help anyone but my QR was all out of shape as well
as you can see in the following pic


I search around for some time and ended up finding if I replace this bit of code
in my custome theme display.template.php with the code from my default theme display.template.php
it fixed my QR display

My themes code
<div class="roundframe">
', $txt['quick_reply_desc'], $context['is_locked'] ? '<p><strong>' . $txt['quick_reply_warning'] . '</strong></p>' : '', $context['oldTopicError'] ? '<p><strong>' . sprintf($txt['error_old_topic'], $modSettings['oldTopicDays']) . '</strong></p>' : '', '
</div>
<div id="quickReplyContent">', $context['can_reply_approved'] ? '' : '<em>' . $txt['wait_for_approval'] . '</em>', '
', !$context['can_reply_approved'] && $context['require_verification'] ? '<br />' : '', '


replaced with default themes code
<div class="roundframe">
', $context['is_locked'] ? '<p class="alert smalltext">' . $txt['quick_reply_warning'] . '</p>' : '',
$context['oldTopicError'] ? '<p class="alert smalltext">' . sprintf($txt['error_old_topic'], $modSettings['oldTopicDays']) . '</p>' : '', '
', $context['can_reply_approved'] ? '' : '<em>' . $txt['wait_for_approval'] . '</em>', '
', !$context['can_reply_approved'] && $context['require_verification'] ? '<br />' : '', '


now my QR display shows like this, the correct way.



So have a look around to find the code that looks SOMETHING like this (THIS IS JUST TO HELP YOU FIND YOUR CODE)
in your themes display.template.php and make the small change. I hope it helps.....

this below code shows more of my themes code to help you locate your part of the code
and I don't recommend anyone replacing there code with this but you can always try it...
always remember to backup before making changes

// Show the jumpto box, or actually...let Javascript do it.
echo '
<div class="plainbox" id="display_jump_to">&nbsp;</div>';

if ($context['can_reply'] && !empty($options['display_quick_reply']))
{
echo '
<a id="quickreply"></a>
<div class="tborder" id="quickreplybox">
<div class="cat_bar">
<h3 class="catbg">
<span class="ie6_header floatleft"><a href="javascript:oQuickReply.swap();">
<img src="', $settings['images_url'], '/', $options['display_quick_reply'] == 2 ? 'collapse' : 'expand', '.gif" alt="+" id="quickReplyExpand" class="icon" />
</a>
<a href="javascript:oQuickReply.swap();">', $txt['quick_reply'], '</a>
</span>
</h3>
</div>
<div id="quickReplyOptions"', $options['display_quick_reply'] == 2 ? '' : ' style="display: none"', '>
<span class="upperframe"><span></span></span>
<div class="roundframe">
', $context['is_locked'] ? '<p class="alert smalltext">' . $txt['quick_reply_warning'] . '</p>' : '',
$context['oldTopicError'] ? '<p class="alert smalltext">' . sprintf($txt['error_old_topic'], $modSettings['oldTopicDays']) . '</p>' : '', '
', $context['can_reply_approved'] ? '' : '<em>' . $txt['wait_for_approval'] . '</em>', '
', !$context['can_reply_approved'] && $context['require_verification'] ? '<br />' : '', '
<form action="', $scripturl, '?board=', $context['current_board'], ';action=post2" method="post" accept-charset="', $context['character_set'], '" name="postmodify" id="postmodify" onsubmit="submitonce(this);" style="margin: 0;">
<input type="hidden" name="topic" value="', $context['current_topic'], '" />
<input type="hidden" name="subject" value="', $context['response_prefix'], $context['subject'], '" />
<input type="hidden" name="icon" value="xx" />
<input type="hidden" name="from_qr" value="1" />
<input type="hidden" name="notify" value="', $context['is_marked_notify'] || !empty($options['auto_notify']) ? '1' : '0', '" />
<input type="hidden" name="not_approved" value="', !$context['can_reply_approved'], '" />
<input type="hidden" name="goback" value="', empty($options['return_to_post']) ? '0' : '1', '" />
<input type="hidden" name="last_msg" value="', $context['topic_last_message'], '" />
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
<input type="hidden" name="seqnum" value="', $context['form_sequence_number'], '" />';

// Guests just need more.

SimpleGost

Quote from: mrselnombre on June 24, 2011, 07:18:17 AM
looking at the modifications.english.php
// Wysiwyg Quick Reply
$txt['wysiwyg_quick_reply'] = 'Choose Quick Reply Type';
$txt['wysiwyg_quick_reply0'] = 'WYSIWYG (with bbc buttons and smilies)';
$txt['wysiwyg_quick_reply2'] = 'WYSIWYG (with smilies only)';
$txt['wysiwyg_quick_reply3'] = 'WYSIWYG Only';
$txt['wysiwyg_quick_reply4'] = 'Non-WYSIWYG (with bbc buttons and smilies)';
$txt['wysiwyg_quick_reply6'] = 'Non-WYSIWYG (with smilies only)';
$txt['wysiwyg_quick_reply7'] = 'Non-WYSIWYG (standard)';

Both 1 and 5 are missing?

so i added
$txt['wysiwyg_quick_reply1'] = '.';
and
$txt['wysiwyg_quick_reply5'] = '.';

to stop the error until i can find out what it is supposed to say

Did you found out what are tha 2 ?

T3CHN0

These are only naming tages.
change it to this

// Wysiwyg Quick Reply
$txt['wysiwyg_quick_reply'] = 'Choose Quick Reply Type';
$txt['wysiwyg_quick_reply0'] = 'WYSIWYG (with bbc buttons and smilies)';
$txt['wysiwyg_quick_reply1'] = '(SMF Standard Quick Reply)';
$txt['wysiwyg_quick_reply2'] = 'WYSIWYG (with smilies only)';
$txt['wysiwyg_quick_reply3'] = 'WYSIWYG Only';
$txt['wysiwyg_quick_reply4'] = 'Non-WYSIWYG (with bbc buttons and smilies)';
$txt['wysiwyg_quick_reply5'] = '(SMF Standard Quick Reply)';
$txt['wysiwyg_quick_reply6'] = 'Non-WYSIWYG (with smilies only)';
$txt['wysiwyg_quick_reply7'] = 'Non-WYSIWYG (standard)';


then go to
Forum »Profile»Look and Layout »    Choose Quick Reply Type

and you will see your options are there to select, you can change "1" and "5" to what ever you you want to call them.
I call them SMF Standard Quick Reply because that's what they are. but if you want to remove 1 and 5 from the list
just put

// Wysiwyg Quick Reply
$txt['wysiwyg_quick_reply'] = 'Choose Quick Reply Type';
$txt['wysiwyg_quick_reply0'] = 'WYSIWYG (with bbc buttons and smilies)';
$txt['wysiwyg_quick_reply1'] =
$txt['wysiwyg_quick_reply2'] = 'WYSIWYG (with smilies only)';
$txt['wysiwyg_quick_reply3'] = 'WYSIWYG Only';
$txt['wysiwyg_quick_reply4'] = 'Non-WYSIWYG (with bbc buttons and smilies)';
$txt['wysiwyg_quick_reply5'] =
$txt['wysiwyg_quick_reply6'] = 'Non-WYSIWYG (with smilies only)';
$txt['wysiwyg_quick_reply7'] = 'Non-WYSIWYG (standard)';

T3CHN0

Quote from: hcfwesker on August 28, 2011, 09:08:29 PM
Quote from: Engel on August 28, 2011, 05:11:23 PM
I just installed this mod, and pretty much everything works fine (great job by the way) except for quotes whenever I hit the quote button it start loading but it never actually finish so you never see the quote. Any way to fix this? Thank you
A sorta solution we used was
1.Go to your profile and go to "look and layout".
2.Scroll down til you see "use quick reply on topic display"
3.change the setting to either "don't show at all" or "show, off by default" <-- which only shrinks down the QR box
Now when it quotes, it goes to the normal reply page, and hopefully it helps the problem.
You can also globally change these settings for all members under your theme's options
Better option is install Quote Always WYSIWYG works great hand in hand with this mod so you can have QR always on
and if you quote is goes directly to the reply post instead of the QR post.
It's for SMF Versions: 1.1.6, 1.1.7, 2.0 Beta 4  but works on 2.0.1 as well.

Antechinus

Ok, newsflash. This mod isn't going to be updated as such. It's going to be superseded. Emanuele was working on his "Full Reply in Topic" mod, which basically makes Post.template.php redundant. I was working on upgrading this mod, including things like post preview in Quick Reply and attachments as options.

Yesterday I suggested that it would make more sense to merge the two mods into one, and use conditionals to have user-selectable display of anything from default basic quick reply, to full reply page in topic, with a few options in between. Personally, I favour just having quick reply with post preview, BBC buttons, smileys and attachments added, so for instance that will be one of the intermediate options.

We were both stuck on quoting directly to WYSIWYG in quick reply, but Emanuele thinks he has nailed that bug. Apart from that both mods are bug-fee now, and merging them into one should be quick and easy since they largely use the same code for the fancy bits.

Will post an update in a day or two.

T3CHN0

Quote from: Antechinus on October 15, 2011, 05:05:34 PM
OK, newsflash. This mod isn't going to be updated as such. It's going to be superseded. Emanuele was working on his "Full Reply in Topic" mod, which basically makes Post.template.php redundant. I was working on upgrading this mod, including things like post preview in Quick Reply and attachments as options.

Yesterday I suggested that it would make more sense to merge the two mods into one, and use conditionals to have user-selectable display of anything from default basic quick reply, to full reply page in topic, with a few options in between. Personally, I favour just having quick reply with post preview, BBC buttons, smileys and attachments added, so for instance that will be one of the intermediate options.

We were both stuck on quoting directly to WYSIWYG in quick reply, but Emanuele thinks he has nailed that bug. Apart from that both mods are bug-fee now, and merging them into one should be quick and easy since they largely use the same code for the fancy bits.

Will post an update in a day or two.

Sweet, that will make a much better mod.
should thous of us who have both mods installed "uninstall" them both and update to the new 2 in 1 so to speak mod.

Antechinus

Yes you would have to do that, as otherwise you would get all sorts of conflicts. Emanuele's one isn't out yet anyway, but you would want to be getting rid of this one. :).

MiY4Gi

Quote from: Antechinus on October 15, 2011, 05:05:34 PM
Ok, newsflash. This mod isn't going to be updated as such. It's going to be superseded. Emanuele was working on his "Full Reply in Topic" mod, which basically makes Post.template.php redundant. I was working on upgrading this mod, including things like post preview in Quick Reply and attachments as options.

Yesterday I suggested that it would make more sense to merge the two mods into one, and use conditionals to have user-selectable display of anything from default basic quick reply, to full reply page in topic, with a few options in between. Personally, I favour just having quick reply with post preview, BBC buttons, smileys and attachments added, so for instance that will be one of the intermediate options.

We were both stuck on quoting directly to WYSIWYG in quick reply, but Emanuele thinks he has nailed that bug. Apart from that both mods are bug-fee now, and merging them into one should be quick and easy since they largely use the same code for the fancy bits.

Will post an update in a day or two.

Would it be possible to make the additional quick reply buttons (e.g. Spoiler, boldface, italics, font, etc) look tidier? The layout in vBulletin and IP.Board looks really neat and professional, similar to the layout in Microsoft Office Word. Would it be possible to have such a layout in this mod, or its successor?
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.

Antechinus

You can do anything with gfx and layout, but at this stage we'd just be using the standard SMF layout for convenience and familiarity.

T3CHN0

Quote from: Antechinus on October 26, 2011, 04:21:00 PM
You can do anything with gfx and layout, but at this stage we'd just be using the standard SMF layout for convenience and familiarity.
standard SMF layout is the way to go, leave it like this :D if it looked different to the SMF reply it would only
make something look out of place.

this is a great mod

cheers

BaghdadGhost

Great MOD and great job everyone,

btw, does anybody know when we gonna get the combined mod?


thanks

Ascot

Quote from: Ascot on June 19, 2011, 03:07:35 PM
Hey there. Awesome mod !!.
Also i will be grateful for me if you can help me to integrate your mod to this one.
Ajax Quick Reply

Can you help me with that please?
I'll be very grateful.
thanks~

Anyone can help me with this please?
I'll be very grateful

T3CHN0

Quote from: Ascot on November 10, 2011, 11:49:05 AM
Quote from: Ascot on June 19, 2011, 03:07:35 PM
Hey there. Awesome mod !!.
Also i will be grateful for me if you can help me to integrate your mod to this one.
Ajax Quick Reply

Can you help me with that please?
I'll be very grateful.
thanks~

Anyone can help me with this please?
I'll be very grateful
I have both mods installed and they work good together.

Ascot

Quote from: T3CHN0 on November 10, 2011, 08:07:12 PM
Quote from: Ascot on November 10, 2011, 11:49:05 AM
Quote from: Ascot on June 19, 2011, 03:07:35 PM
Hey there. Awesome mod !!.
Also i will be grateful for me if you can help me to integrate your mod to this one.
Ajax Quick Reply

Can you help me with that please?
I'll be very grateful.
thanks~

Anyone can help me with this please?
I'll be very grateful
I have both mods installed and they work good together.

In what order you've installed them? ???

T3CHN0

Don't really think it matters what order
I did WYSIWYG QR first then Ajax quick reply
I did have to make edits to the custom theme my self for  Ajax quick reply but on a default theme everything was no errors for both installs

Ascot

well i'm using a custom theme. Guess i have do the same.
But i really don't know where to start from. Any suggestion ?
thanks in advance

T3CHN0

I could say from the beginning lol but that would be slack.
best way I find is to have both display.templates side by side and with your custom theme what code is missing normally is just a little different
so you would then go find the code you are looking for on the default display.template then grab a little bit of code from the template
example copy >>    //what ever is says
and on your custom template search for //what ever is says and you will know then you are in the right area to make the edit.
look closely at the codes between the 2 templates , try to recognise what is different on your template and then make the change
that the mod is want to add... DO NOT MAKE YOUR TEMPLATE THE SAME AS THE DEFAULT TEMPLATE as it will only stuff your forum up.
And always make backups of the php files that are going to be edited by the mod in the case of you going no where fast and give up you
can at least restore the files and move along happily again

You will need to install the mod first with the error's after which your forum may become inactive until you have updated the template
with the missing code..  more info on how to install mods is here if you didn't back up first then have a look at this 

Advertisement: