[ABD] jQ Preview v.0.0.1

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] jQ Preview v.0.0.1

Post by 4_seven »

NintendoMii wrote:I don't know if this is reported yet, but the [ c ] tag doesn't do what I think it is supposed to do anymore.
the [ c ] tag is no [ code ] tag.

[color=#FF0000][b]bold with color[/b][/color] [img]http://www.phpbb.com/community/images/smilies/icon_e_wink.gif[/img]

Code: Select all

[c][color=#FF0000][b]bold with color[/b][/color] [img]http://www.phpbb.com/community/images/smilies/icon_e_wink.gif[/img][/c]
NintendoMii wrote:Also, is a life update possible?
another mod
http://www.phpbb.com/customise/db/mod/live_preview/

i build jq preview without auto-load as an alternative to live preview
Current Mods | Mod Base | php(BB) programming | No help via PM
puabase-2
Registered User
Posts: 34
Joined: Sat Oct 29, 2011 8:54 am

Re: [DEV] jQ Preview v.0.0.1

Post by puabase-2 »

g8
NintendoMii
Registered User
Posts: 547
Joined: Thu Aug 04, 2011 9:08 pm

Re: [DEV] jQ Preview v.0.0.1

Post by NintendoMii »

4_seven wrote:
NintendoMii wrote:I don't know if this is reported yet, but the [ c ] tag doesn't do what I think it is supposed to do anymore.
the [ c ] tag is no [ code ] tag.

[color=#FF0000][b]bold with color[/b][/color] [img]http://www.phpbb.com/community/images/smilies/icon_e_wink.gif[/img]

Code: Select all

[c][color=#FF0000][b]bold with color[/b][/color] [img]http://www.phpbb.com/community/images/smilies/icon_e_wink.gif[/img][/c]
NintendoMii wrote:Also, is a life update possible?
another mod
http://www.phpbb.com/customise/db/mod/live_preview/

i build jq preview without auto-load as an alternative to live preview
k, thanks! :D
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] jQuery Preview v.0.0.1

Post by 4_seven »

4_seven wrote:jQ Preview now supports Auto Video Embed. Addition follows.
screen: http://www.4seven.de/w_i_w/jqpreview_autovideo.png
demo: http://www.4seven.de/forum/media/postin ... =post&f=11
Auto Video Embed Addition released
http://www.4seven.de/forum/6test/viewto ... p=273#p273
Current Mods | Mod Base | php(BB) programming | No help via PM
Frode789
Registered User
Posts: 119
Joined: Sun Jan 06, 2008 7:57 pm
Location: Norway

Re: [DEV] jQ Preview v.0.0.1

Post by Frode789 »

The preview works perfectly in topic when I preview, but it isn't working in PM! I've went over the edits several times. Here is the board:
http://www.wrath-legion.com/forum/
Help :oops:
User avatar
Leinad4Mind
Translator
Posts: 855
Joined: Sun Jun 01, 2008 11:08 pm
Contact:

Re: [DEV] jQ Preview v.0.0.1

Post by Leinad4Mind »

The solution is in the last page: http://www.phpbb.com/community/viewtopi ... #p13087416

Cheers!
Want to access all my portuguese MOD and Extension translations?
Become my Patreon!
phpBB Portugal Translator and Moderator
Frode789
Registered User
Posts: 119
Joined: Sun Jan 06, 2008 7:57 pm
Location: Norway

Re: [DEV] jQ Preview v.0.0.1

Post by Frode789 »

Thanks, working :)
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] jQ Preview v.0.0.1

Post by 4_seven »

fix#1 for Auto Video Embed Addition
  • add new clipfish.de code (provider syntax changed + xhtml 1.0 strict)
package is updated.

----------------------

to update download current package, config* and upload
  • includes/auto_video_embed_post_jq.php
again

*dont forget to set all provider to false, which are not needed
Current Mods | Mod Base | php(BB) programming | No help via PM
wwwreichwerdenme
Registered User
Posts: 3
Joined: Thu Apr 12, 2012 3:35 am

Re: [DEV] jQ Preview v.0.0.1

Post by wwwreichwerdenme »

it is impossible to login into your forum.

i tried it 30 minutes
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] jQ Preview v.0.0.1

Post by 4_seven »

you mean to login or register?
demo or area51?
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
ordhor
Registered User
Posts: 8
Joined: Fri Dec 07, 2007 5:50 pm

Re: [DEV] jQ Preview v.0.0.1

Post by ordhor »

About http://www.phpbb.com/customise/db/mod/l ... ew-t_99392 continuing in here:

This was just what I was looking for! And since I couldn't find it I even took a couple javascript lessons, so at least that :)

Incorporated this into my tab idea. I leave it here the changes I did (not using changes asked by the mod):

Open: styles/prosilver/template/posting_editor.html

Find:

Code: Select all

<script type="text/javascript">
// <![CDATA[
	onload_functions.push('apply_onkeypress_event()');
// ]]>
</script>
Replace with:

Code: Select all

<script type="text/javascript">
// <![CDATA[
	onload_functions.push('apply_onkeypress_event()');
function subabas(p){
	var i, e, t;
	if (typeof(p) == 'string')	{show_panel = p;}
	for (i = 0; i < abas.length; i++){
		e = document.getElementById(abas[i]);
		t = document.getElementById(abas[i] + '-aba');
		if (e)	{if (abas[i] == show_panel)
			{e.style.display = 'block';
		if (t){
		t.className = 'activetab';
		}}else{
		e.style.display = 'none';
		if (t){
		t.className = '';
		}}}}}	
var abas = new Array('mensagem', 'prever');

$(document).ready(function(){
	$('.jq_preview').click(function(){
	$('.jq_content').load('jq_preview.php?sid={SESSION_ID}', {text : document.getElementById('message').value});
	});
});
// ]]>
</script>
Find:

Code: Select all

	<!-- INCLUDE posting_buttons.html -->
Add Before:

Code: Select all

		<div id="tabs">
			<ul>
				<li id="mensagem-aba" class="activetab"><a name="mensagem" href="#aba" onclick="subabas('mensagem'); return false;"><span>{L_MESSAGE}</span></a>
				<li id="prever-aba" class="jq_preview" ><a name="prever" href="#aba" onclick="subabas('prever'); return false;"><span>{L_PREVIEW}</span></a></li>
			</ul>
		</div>

<div id="panel-aba" class="panel bg3">
	<div class="inner"><span class="corners-top"><span></span></span>

	<div id="mensagem">
Find:

Code: Select all

	<div id="message-box">
		<textarea <!-- IF S_UCP_ACTION and not S_PRIVMSGS and not S_EDIT_DRAFT -->name="signature" id="signature" style="height: 9em;"<!-- ELSE -->name="message" id="message"<!-- ENDIF --> rows="15" cols="76" tabindex="4" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onfocus="initInsertions();" class="inputbox">{MESSAGE}{DRAFT_MESSAGE}{SIGNATURE}</textarea>
	</div>
Add After:

Code: Select all

	</div>
	<div id="prever" class="postbody" style="display: none;"><p class="content jq_content"></p></div>
	<span class="corners-bottom"><span></span></span>
	</div>
</div>
Find:

Code: Select all

		{S_HIDDEN_ADDRESS_FIELD}
			{S_HIDDEN_FIELDS}
			<!-- IF S_HAS_DRAFTS --><input type="submit" accesskey="d" tabindex="8" name="load" value="{L_LOAD_DRAFT}" class="button2" onclick="load_draft = true;" />&nbsp; <!-- ENDIF -->
			<!-- IF S_SAVE_ALLOWED --><input type="submit" accesskey="k" tabindex="7" name="save" value="{L_SAVE_DRAFT}" class="button2" />&nbsp; <!-- ENDIF -->
			<input type="submit" tabindex="5" name="preview" value="{L_PREVIEW}" class="button1"<!-- IF not S_PRIVMSGS --> onclick="document.getElementById('postform').action += '#preview';"<!-- ENDIF --> />&nbsp;
			<input type="submit" accesskey="s" tabindex="6" name="post" value="{L_SUBMIT}" class="button1 default-submit-action" />&nbsp;
Remove this part:

Code: Select all

<input type="submit" tabindex="5" name="preview" value="{L_PREVIEW}" class="button1"<!-- IF not S_PRIVMSGS --> onclick="document.getElementById('postform').action += '#preview';"<!-- ENDIF --> />&nbsp;
And the result is:

While creating/editing message
Image

While previewing message
Image

Known Issue: BBCode [code] gets abit messed up, showing the select all part on the left side instead :?
"Great minds discuss ideas. Average minds discuss events. Small minds discuss people." -- Eleanor Roosevelt
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [DEV] jQ Preview v.0.0.1

Post by Jessica »

^
this is actually really cool. I'm going to try it out
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
User avatar
ordhor
Registered User
Posts: 8
Joined: Fri Dec 07, 2007 5:50 pm

Re: [DEV] jQ Preview v.0.0.1

Post by ordhor »

Jessica wrote:^
this is actually really cool. I'm going to try it out
:)

You might want to add also the lines

Code: Select all

<script type="text/javascript">
// <![CDATA[ 
!window.jQuery && document.write('<script type="text\/javascript" src="http:\/\/code.jquery.com\/jquery.min.js"><\/script>');
// ]]> 
</script>
If you don't have already something similar to get jquery
"Great minds discuss ideas. Average minds discuss events. Small minds discuss people." -- Eleanor Roosevelt
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] jQ Preview v.0.0.1

Post by 4_seven »

Thanks for that nice addition. When i have time for this one (i work on my mods 'rolling'), i recheck it and may integrate it in v.0.0.2.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
Leinad4Mind
Translator
Posts: 855
Joined: Sun Jun 01, 2008 11:08 pm
Contact:

Re: [DEV] jQ Preview v.0.0.1

Post by Leinad4Mind »

It seems very nice. I will try out :) Many thks!
Want to access all my portuguese MOD and Extension translations?
Become my Patreon!
phpBB Portugal Translator and Moderator
Locked

Return to “[3.0.x] Abandoned MODs”