[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
Jessica
Former Team Member
Posts: 4341
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 » Mon Jun 18, 2012 3:19 am

ordhor wrote:
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
where would I add this?
Please do not PM me for support unless it is absolutely necessary
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 » Mon Jun 18, 2012 3:51 am

Jessica wrote:where would I add this?
Tried to say in short that it would be to add in the same file (posting_editor.html), can be on top of it, but your site is full of mods, you probably already calling jquery file in overall_header.html with something like this

Code: Select all

<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
And I just did a quick check on your site and it seems you got several mods that call it (outdated versions of it) just for them. You could do a clean up of your overall_header, clear all of it and just put the line i added here in [code]... or just leave it untouched if all is working and you don't wanna mess up stuff :P
"Great minds discuss ideas. Average minds discuss events. Small minds discuss people." -- Eleanor Roosevelt

User avatar
DionDesigns
Registered User
Posts: 515
Joined: Sun Feb 26, 2012 11:22 pm
Location: Uncertain due to momentum.
Contact:

Re: [DEV] jQ Preview v.0.0.1

Post by DionDesigns » Mon Jun 18, 2012 5:57 am

The good folks at jQuery have requested for some time now that one NOT use the version of jQuery on their site. Google has generously placed most versions of jQuery on a blinding-fast server for all to use. Here's the tag to load the latest version of jQuery:

Code: Select all

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
If you prefer to use an earlier version (I do, 1.7 is sluggish), it can be accessed as follows:

Code: Select all

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
The above SCRIPT tag will load jQuery 1.5.1.

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 » Mon Jun 18, 2012 8:25 am

Personally i use jquery.com. ;) But if "it must be" google, i prefer this method, so jquery is only loaded, if needed and not included already. this way you cant "double inserting" jquery core and prevent trouble.

Code: Select all

<script type="text/javascript">
// <![CDATA[
!window.jQuery && document.write('<script type="text\/javascript" src="http:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1\/jquery.min.js"><\/script>');
// ]]>
</script>
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
Jessica
Former Team Member
Posts: 4341
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 » Mon Jun 18, 2012 3:09 pm

okay

also I tried out the tab idea, but it doesn't seem to work...

When I click JQ Preview it comes out as "undefined" and the preview tab disappears

when I click close it reappears but the JQ preview above does not go away, and the preview tab is empty

my posting_editor.html

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('message', 'preview');

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

<fieldset class="fields1">
	<!-- IF ERROR --><p class="error">{ERROR}</p><!-- ENDIF -->

	<!-- IF S_PRIVMSGS and not S_SHOW_DRAFTS -->

		<div class="column1">
		<!-- IF S_ALLOW_MASS_PM -->
			<!-- IF .to_recipient -->
				<dl>
					<dt><label>{L_TO}:</label></dt>
					<dd>
						<!-- BEGIN to_recipient -->
							<!-- IF not to_recipient.S_FIRST_ROW and to_recipient.S_ROW_COUNT mod 2 eq 0 --></dd><dd><!-- ENDIF -->
							<!-- IF to_recipient.IS_GROUP --><a href="{to_recipient.U_VIEW}"><strong>{to_recipient.NAME}</strong></a>&nbsp;<!-- ELSE -->{to_recipient.NAME_FULL}&nbsp;<!-- ENDIF -->
							<!-- IF not S_EDIT_POST --><input type="submit" name="remove_{to_recipient.TYPE}[{to_recipient.UG_ID}]" value="x" class="button2" />&nbsp;<!-- ENDIF -->
						<!-- END to_recipient -->
					</dd>
				</dl>
			<!-- ENDIF -->
			<!-- IF .bcc_recipient -->
				<dl>
					<dt><label>{L_BCC}:</label></dt>
					<dd>
						<!-- BEGIN bcc_recipient -->
							<!-- IF not bcc_recipient.S_FIRST_ROW and bcc_recipient.S_ROW_COUNT mod 2 eq 0 --></dd><dd><!-- ENDIF -->
							<!-- IF bcc_recipient.IS_GROUP --><a href="{bcc_recipient.U_VIEW}"><strong>{bcc_recipient.NAME}</strong></a><!-- ELSE -->{bcc_recipient.NAME_FULL}&nbsp;<!-- ENDIF -->
							<!-- IF not S_EDIT_POST --><input type="submit" name="remove_{bcc_recipient.TYPE}[{bcc_recipient.UG_ID}]" value="x" class="button2" />&nbsp;<!-- ENDIF -->
						<!-- END bcc_recipient -->
					</dd>
				</dl>
			<!-- ENDIF -->
			<!-- IF not S_EDIT_POST -->
			<dl class="pmlist">
				<dt><textarea id="username_list" name="username_list" class="inputbox" cols="50" rows="2"></textarea></dt>
				<dd><span><a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a></span></dd>
				<dd><input type="submit" name="add_to" value="{L_ADD}" class="button2" /></dd>
				<dd><input type="submit" name="add_bcc" value="{L_ADD_BCC}" class="button2" /></dd>
			</dl>
			<!-- ENDIF -->
		<!-- ELSE -->
			<dl>
				<dt><label for="username_list">{L_TO}:</label><!-- IF not S_EDIT_POST --><br /><span><a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false">{L_FIND_USERNAME}</a></span><!-- ENDIF --></dt>
				<!-- IF .to_recipient -->
					<dd>
						<!-- BEGIN to_recipient -->
							<!-- IF not to_recipient.S_FIRST_ROW and to_recipient.S_ROW_COUNT mod 2 eq 0 --></dd><dd><!-- ENDIF -->
							<!-- IF to_recipient.IS_GROUP --><a href="{to_recipient.U_VIEW}"><strong>{to_recipient.NAME}</strong></a><!-- ELSE -->{to_recipient.NAME_FULL}&nbsp;<!-- ENDIF -->
							<!-- IF not S_EDIT_POST --><input type="submit" name="remove_{to_recipient.TYPE}[{to_recipient.UG_ID}]" value="x" class="button2" />&nbsp;<!-- ENDIF -->
						<!-- END to_recipient -->
					</dd>
				<!-- ENDIF -->

				<!-- IF not S_EDIT_POST -->
				<dd><input class="inputbox" type="text" name="username_list" id="username_list" size="20" value="" /> <input type="submit" name="add_to" value="{L_ADD}" class="button2" /></dd>
				<!-- ENDIF -->
			</dl>
		<!-- ENDIF -->

		</div>

		<!-- IF S_GROUP_OPTIONS -->
			<div class="column2">
				<dl>
					<dd><label for="group_list">{L_USERGROUPS}:</label> <select name="group_list[]" id="group_list" multiple="multiple" size="4" class="inputbox">{S_GROUP_OPTIONS}</select></dd>
				</dl>
			</div>
		<!-- ENDIF -->

		<div class="clear"></div>

	<!-- ENDIF -->

	<!-- IF S_DELETE_ALLOWED -->
	<dl>
		<dt><label for="delete">{L_DELETE_POST}:</label></dt>
		<dd><label for="delete"><input type="checkbox" name="delete" id="delete" /> {L_DELETE_POST_WARN}</label></dd>
	</dl>
	<!-- ENDIF -->

	<!-- IF S_SHOW_TOPIC_ICONS or S_SHOW_PM_ICONS -->
	<dl>
		<dt><label for="icon">{L_ICON}:</label></dt>
		<dd>
			<label for="icon"><input type="radio" name="icon" id="icon" value="0" checked="checked" /> <!-- IF S_SHOW_TOPIC_ICONS -->{L_NO_TOPIC_ICON}<!-- ELSE -->{L_NO_PM_ICON}<!-- ENDIF --></label>
			<!-- BEGIN topic_icon --><label for="icon-{topic_icon.ICON_ID}"><input type="radio" name="icon" id="icon-{topic_icon.ICON_ID}" value="{topic_icon.ICON_ID}" {topic_icon.S_ICON_CHECKED} /><img src="{topic_icon.ICON_IMG}" width="{topic_icon.ICON_WIDTH}" height="{topic_icon.ICON_HEIGHT}" alt="" title="" /></label> <!-- END topic_icon -->
		</dd>
	</dl>
	<!-- ENDIF -->

	<!-- IF not S_PRIVMSGS and S_DISPLAY_USERNAME -->
	<dl style="clear: left;">
		<dt><label for="username">{L_USERNAME}:</label></dt>
		<dd><input type="text" tabindex="1" name="username" id="username" size="25" value="{USERNAME}" class="inputbox autowidth" /></dd>
	</dl>
	<!-- ENDIF -->

   <!-- IF FORUM_ID -->
   <dl style="clear: left;">
      <dt><label for="forum">{L_FORUM}:</label></dt>
      <dd>
         <select name="f" id="forum" tabindex="2"><!-- BEGIN forums -->
            <option value="{forums.FORUM_ID}"{forums.SELECTED}><!-- BEGIN level -->&nbsp; &nbsp;<!-- END level -->{forums.FORUM_NAME}</option>
         <!-- END forums --></select>
      </dd>
   </dl>
   <!-- ENDIF -->
	<!-- IF S_POST_ACTION or S_PRIVMSGS or S_EDIT_DRAFT -->
	    <dl style="clear: left;">
            <dl style="clear: left;">
        <dl style="clear: left;">
            <dt><label for="subject">{L_SUBJECT}:</label></dt>
            <dd><input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->{SL}<!-- ELSE -->{SL}<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" /></dd>
        </dl>
	<!-- IF S_ALLOW_PASSWORD -->
  	<dl style="clear: left;">
  		<dt><label for="topic_password">{L_TOPIC} {L_PASSWORD}:</label></dt>
  		<dd><input type="password" name="topic_password" id="topic_password" size="45" maxlength="40" value="{EDIT_TOPIC_PASSWORD}" class="inputbox autowidth" /></dd>
  	</dl>
	<!-- ENDIF -->
	<!-- IF S_COLOUR -->
	<dl>
		<dt><label for="topic_title_colour">{L_TOPIC_TITLE_COLOUR}:</label></dt>
		<dd><input class="text small" type="text" id="topic_title_colour" name="topic_title_colour" value="{TOPIC_TITLE_COLOUR}" size="10" maxlength="6" />&nbsp;&nbsp;<span>[ <a href="{U_COLOR_PALET}" onclick="popup(this.href, 636, 150, '_swatch'); return false">{L_COLOUR_SWATCH}</a> ]</span></dd>
	</dl>
	<!-- ENDIF -->

	<!-- IF S_AUTH_MODEL and S_TOTAL_MODEL -->
	<dl style="clear: left;">
		<dt><label>{L_MODELS_POST}:</label></dt>
		<dd id="refresh_id"><!-- IF S_TOTAL_LANGUAGE -->{S_LANGUAGE}&nbsp;<!-- ENDIF -->{S_POST_MODEL}&nbsp;{BUTTON}</dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF CAPTCHA_TEMPLATE and S_CONFIRM_CODE -->
		<!-- DEFINE $CAPTCHA_TAB_INDEX = 3 -->
		<!-- INCLUDE {CAPTCHA_TEMPLATE} -->
	<!-- ENDIF -->
	<!-- ENDIF -->


	<!-- INCLUDE attributes.html -->
	<!-- IF $SIG_EDIT eq 1 -->
	<p><strong>Characters remaining:</strong> <span class="charsLeft error">{L_SIGNATURE_LIMIT}</span></p>
	<!-- ENDIF -->

      <div id="tabs">
         <ul>
            <li id="message-aba" class="activetab"><a name="message" href="#aba" onclick="subabas('message'); return false;"><span>{L_MESSAGE}</span></a>
            <li id="preview-aba" class="jq_preview" ><a name="preview" href="#aba" onclick="subabas('preview'); 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="message">
	<!-- INCLUDE posting_buttons.html -->

	<div id="smiley-box">
		<!-- IF S_SMILIES_ALLOWED and .smiley -->
			<strong>{L_SMILIES}</strong><br />
			<!-- BEGIN smiley -->
				<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" /></a>
			<!-- END smiley -->
		<!-- ENDIF -->
		<!-- IF S_SHOW_SMILEY_LINK and S_SMILIES_ALLOWED-->
			<br /><a href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a>
		<!-- ENDIF -->

		<!-- IF BBCODE_STATUS -->
		<!-- IF .smiley --><hr /><!-- ENDIF -->
		{BBCODE_STATUS}<br />
<a href="{U_BOARDBBCODES}" onclick="window.open(this.href); return false;" onkeypress="window.open(this.href); return false;">{L_CUSTOM_BBCODES}</a><br />
		<!-- IF S_BBCODE_ALLOWED -->
			{IMG_STATUS}<br />
			{FLASH_STATUS}<br />
			{URL_STATUS}<br />
		<!-- ENDIF -->
		{SMILIES_STATUS}
		<!-- ENDIF -->
		<!-- IF S_EDIT_DRAFT || S_DISPLAY_REVIEW -->
			<!-- IF S_DISPLAY_REVIEW --><hr /><!-- ENDIF -->
			<!-- IF S_EDIT_DRAFT --><strong><a href="{S_UCP_ACTION}">{L_BACK_TO_DRAFTS}</a></strong><!-- ENDIF -->
			<!-- IF S_DISPLAY_REVIEW --><strong><a href="#review">{L_TOPIC_REVIEW}</a></strong><!-- ENDIF -->
		<!-- ENDIF -->
	</div>

<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<!-- IF $SIG_EDIT eq 1 --> limited<!-- ENDIF -->">{MESSAGE}{DRAFT_MESSAGE}{SIGNATURE}</textarea>
   </div>
   <div id="preview" class="postbody" style="display: none;"><p class="content jq_content"></p></div>
   <span class="corners-bottom"><span></span></span>
   </div>
</div>
		<!-- IF S_MODERATION_MESSAGE_BOX -->
		<dl><dt><label>{L_MODERATION_MESSAGE}:</label></dt></dl>
		<textarea name="mm_text" id="mm_text" rows="4" cols="76" style="height: 5em" class="inputbox">{MODERATION_MESSAGE_BOX}</textarea>
		<!-- ENDIF -->


        <!-- IF $SIG_EDIT eq 1 --><input type="hidden" name="maxlength" value="{L_SIGNATURE_LIMIT}" /><!-- ENDIF -->
</fieldset>

<!-- IF $SIG_EDIT eq 1 -->
		<script type="text/javascript">
  			$('textarea.limited').maxlength({
    		'feedback' : '.charsLeft',
   			'useInput' : true
  		});
		</script>
<!-- ENDIF -->

<!-- IF $EXTRA_POSTING_OPTIONS eq 1 -->

	<!-- IF not S_SHOW_DRAFTS -->
		<span class="corners-bottom"><span></span></span></div>
	</div>
	<!-- ENDIF -->

	<!-- IF S_HAS_ATTACHMENTS -->
		<div class="panel bg2">
			<div class="inner"><span class="corners-top"><span></span></span>
			<h3>{L_POSTED_ATTACHMENTS}</h3>

			<fieldset class="fields2">

			<!-- BEGIN attach_row -->
			<dl>

				<dt><label for="comment_list_{attach_row.ASSOC_INDEX}">{L_FILE_COMMENT}:</label></dt>
				<dd><textarea name="comment_list[{attach_row.ASSOC_INDEX}]" id="comment_list_{attach_row.ASSOC_INDEX}" rows="1" cols="35" class="inputbox">{attach_row.FILE_COMMENT}</textarea></dd>
				<dd><a href="{attach_row.U_VIEW_ATTACHMENT}" class="{S_CONTENT_FLOW_END}">{attach_row.FILENAME}</a></dd>
				<dd style="margin-top: 5px;">
					<!-- IF S_INLINE_ATTACHMENT_OPTIONS --><input type="button" value="{L_PLACE_INLINE}" onclick="attach_inline({attach_row.ASSOC_INDEX}, '{attach_row.A_FILENAME}');" class="button2" />&nbsp; <!-- ENDIF -->
					<input type="submit" name="delete_file[{attach_row.ASSOC_INDEX}]" value="{L_DELETE_FILE}" class="button2" />
				</dd>
			</dl>
			{attach_row.S_HIDDEN}
				<!-- IF not attach_row.S_LAST_ROW --><hr class="dashed" /><!-- ENDIF -->
			<!-- END attach_row -->

			</fieldset>

			<span class="corners-bottom"><span></span></span></div>
		</div>
	<!-- ENDIF -->


	<!-- IF not S_SHOW_DRAFTS and not $SIG_EDIT eq 1 -->
	<div class="panel bg2">
		<div class="inner"><span class="corners-top"><span></span></span>
		<fieldset class="submit-buttons">
      {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="button" class="jq_update button1" style="display:none;color:darkred;margin-right:8px;" value="JQ Update" /><input type="button" class="jq_preview button1" style="display:inline;" value="JQ Preview" /><input type="button" class="jq_close button1" style="display:none;" value="JQ Close" />&nbsp;
			<input type="submit" accesskey="s" tabindex="6" name="post" value="{L_SUBMIT}" class="button1 default-submit-action" />&nbsp;

		</fieldset>

		<span class="corners-bottom"><span></span></span></div>
	</div>
	<!-- ENDIF -->

	<!-- IF not S_PRIVMSGS and not S_SHOW_DRAFTS and not $SIG_EDIT eq 1 -->
		<div id="tabs">
			<ul>
				<li id="options-panel-tab" class="activetab"><a href="#tabs" onclick="subPanels('options-panel'); return false;"><span>{L_OPTIONS}</span></a></li>
				<!-- IF S_SHOW_ATTACH_BOX --><li id="attach-panel-tab"><a href="#tabs" onclick="subPanels('attach-panel'); return false;"><span>{L_ADD_ATTACHMENT}</span></a></li><!-- ENDIF -->
				<!-- IF S_SHOW_POLL_BOX || S_POLL_DELETE --><li id="poll-panel-tab"><a href="#tabs" onclick="subPanels('poll-panel'); return false;"><span>{L_ADD_POLL}</span></a></li><!-- ENDIF -->
				<!-- IF S_SHOW_SURVEY --><li id="survey-panel-tab"><a href="#tabs" onclick="subPanels('survey-panel'); return false;"><span>{L_DESIGN_A_SURVEY}</span></a></li><!-- ENDIF -->
			</ul>
		</div>
	<!-- ENDIF -->

	<!-- IF not S_SHOW_DRAFTS and not $SIG_EDIT eq 1 -->
	<div class="panel bg3" id="options-panel">
		<div class="inner"><span class="corners-top"><span></span></span>

		<fieldset class="fields1">
			<!-- IF S_BBCODE_ALLOWED -->
				<div><label for="disable_bbcode"><input type="checkbox" name="disable_bbcode" id="disable_bbcode"{S_BBCODE_CHECKED} /> {L_DISABLE_BBCODE}</label></div>
			<!-- ENDIF -->
			<!-- IF S_PRIVMSGS and S_PM_ALLOW_NOTIFY -->
				<div><label for="notify_read"><input type="checkbox" name="notify_read" id="notify_read" /> {L_PM_NOTIFY_READ}</label></div>
			<!-- ENDIF -->
			<!-- IF S_SMILIES_ALLOWED -->
				<div><label for="disable_smilies"><input type="checkbox" name="disable_smilies" id="disable_smilies"{S_SMILIES_CHECKED} /> {L_DISABLE_SMILIES}</label></div>
			<!-- ENDIF -->
			<!-- IF S_LINKS_ALLOWED -->
				<div><label for="disable_magic_url"><input type="checkbox" name="disable_magic_url" id="disable_magic_url"{S_MAGIC_URL_CHECKED} /> {L_DISABLE_MAGIC_URL}</label></div>
			<!-- ENDIF -->
			<!-- IF S_SIG_ALLOWED -->
				<div><label for="attach_sig"><input type="checkbox" name="attach_sig" id="attach_sig"{S_SIGNATURE_CHECKED} /> {L_ATTACH_SIG}</label></div>
			<!-- ENDIF -->
			<!-- IF S_NOTIFY_ALLOWED -->
				<div><label for="notify"><input type="checkbox" name="notify" id="notify"{S_NOTIFY_CHECKED} /> {L_NOTIFY_REPLY}</label></div>
			<!-- ENDIF -->
			<!-- IF S_LOCK_TOPIC_ALLOWED -->
				<div><label for="lock_topic"><input type="checkbox" name="lock_topic" id="lock_topic"{S_LOCK_TOPIC_CHECKED} /> {L_LOCK_TOPIC}</label></div>
			<!-- ENDIF -->
			<!-- IF S_LOCK_POST_ALLOWED -->
				<div><label for="lock_post"><input type="checkbox" name="lock_post" id="lock_post"{S_LOCK_POST_CHECKED} /> {L_LOCK_POST} [{L_LOCK_POST_EXPLAIN}]</label></div>
			<!-- ENDIF -->


			<!-- IF S_SHOUT_HIDE_ALLOWED -->
				<div><label for="hide_robot"><input type="checkbox" name="hide_robot" id="hide_robot" checked="checked" /> {L_SHOUT_SELECT_ROBOT} </label></div>
			<!-- ENDIF -->
			<!-- IF S_TYPE_TOGGLE or S_TOPIC_TYPE_ANNOUNCE or S_TOPIC_TYPE_STICKY -->
			<hr class="dashed" />
			<!-- ENDIF -->

			<!-- IF S_TYPE_TOGGLE -->
			<dl>
				<dt><label for="topic_type-0"><!-- IF S_EDIT_POST -->{L_CHANGE_TOPIC_TO}<!-- ELSE -->{L_POST_TOPIC_AS}<!-- ENDIF -->:</label></dt>
				<dd><!-- BEGIN topic_type --><label for="topic_type-{topic_type.VALUE}"><input type="radio" name="topic_type" id="topic_type-{topic_type.VALUE}" value="{topic_type.VALUE}"{topic_type.S_CHECKED} />{topic_type.L_TOPIC_TYPE}</label> <!-- END topic_type --></dd>
			</dl>
			<!-- ENDIF -->

			<!-- IF S_TOPIC_TYPE_ANNOUNCE or S_TOPIC_TYPE_STICKY -->
			<dl>
				<dt><label for="topic_time_limit">{L_STICK_TOPIC_FOR}:</label></dt>
				<dd><label for="topic_time_limit"><input type="text" name="topic_time_limit" id="topic_time_limit" size="3" maxlength="3" value="{TOPIC_TIME_LIMIT}" class="inputbox autowidth" /> {L_DAYS}</label></dd>
				<dd>{L_STICK_TOPIC_FOR_EXPLAIN}</dd>
			</dl>
			<!-- ENDIF -->

			<!-- IF S_EDIT_REASON -->
			<dl>
				<dt><label for="edit_reason">{L_EDIT_REASON}:</label></dt>
				<dd><input type="text" name="edit_reason" id="edit_reason" value="{EDIT_REASON}" class="inputbox" /></dd>
			</dl>
			<!-- ENDIF -->
		</fieldset>
		<!-- ENDIF -->

<!-- ENDIF -->
Please do not PM me for support unless it is absolutely necessary
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
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 » Mon Jun 18, 2012 7:05 pm

Seems that on your board another tab-mod/-snippet is in effect,
so the script goes into empty undefined on this part.
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
Jessica
Former Team Member
Posts: 4341
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 » Mon Jun 18, 2012 7:16 pm

hmm the other places that are tabs:

the header -- Board Index, Search, Members, etc

profiles (tabbed profiles)

Who is online/statistics/who was here

which one would be affecting the tabs for jQ preview?
Please do not PM me for support unless it is absolutely necessary
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
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 » Mon Jun 18, 2012 7:22 pm

No clue, bcs. its not my code. Means, i have no overview over this construct, so you should ask the author.
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 » Mon Jun 18, 2012 7:37 pm

Jessica wrote:which one would be affecting the tabs for jQ preview?
The ones that also appear on the same page where you see this preview tabbing.

Also, thought this problem might happen to some and to solve this and other stuff, I've been thinking on trying out the creation of the tabs in different ways, but lately not having much time to mess around with phpbb. In a couple weeks i might show up with a better code Image
"Great minds discuss ideas. Average minds discuss events. Small minds discuss people." -- Eleanor Roosevelt

User avatar
tumba25
Former Team Member
Posts: 4430
Joined: Wed Jun 06, 2007 6:42 am
Location: Kokkola, Finland.
Name: Jari Kanerva
Contact:

Re: [ABD] jQ Preview v.0.0.1

Post by tumba25 » Fri Jun 29, 2012 9:14 am

Since the MOD author has been banned I'll lock this topic as [ABD] - Abandoned. If someone else wants to take over the development, please PM anyone on the MOD Team to request a link to your development topic. You can't reuse this topic, you need to start a new.

Notice!
We do not recommend that a user of the phpBB software install this mod, or any other mod that is marked as “abandoned” or “in development”, on a live forum. Doing so may cause your forum to not perform in the manner it should.


Thank you,
The phpBB Modifications Team
Need a mod/extension created/installed, other custom-coded solution or a server admin? https://tumba25.net

Locked

Return to “[3.0.x] Abandoned MODs”

Who is online

Users browsing this forum: No registered users and 11 guests

cron