[2.0.10] Select Expand BBcodes MOD

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
20
91%
Very Good
1
5%
Good
0
No votes
Fair
0
No votes
Poor
1
5%
 
Total votes: 22

Kinetix-
Registered User
Posts: 128
Joined: Sun Aug 01, 2004 12:07 pm
Location: Canada
Contact:

Post by Kinetix- » Tue Oct 12, 2004 3:54 pm

Small design flaw I noticed in IE6 SP2. Haven't done any extensive testing or anything, but it seems that the scrollbar will be cut off the side if it is indented. Like if you use a list, and in the list you put a code box, the right side of the box will get a bit cut off (I noticed it on your site at this post http://www.phpmix.com/index.php?page=213&t=328 ).

Possibly a code problem, or a problem with the browser itself.

deny
Registered User
Posts: 565
Joined: Wed May 14, 2003 9:14 am
Location: Find-Ip-Address.org
Contact:

Post by deny » Tue Oct 12, 2004 4:05 pm

markus_petrux wrote: deny: Please, edit your previous post and replace the bbcode.tpl code. You have posted the one with my MOD applied again. :lol:

It seems a problem with nested HTML tags. In subSilver, all "boxed" BBCodes begin with </span> and end with <span class="postbody">. So, the BBCode depends on viewtopic.tpl.

I need to see your bbcode.tpl BEFORE applying my MOD to figure out what's going on.

Also, a URL would help.


I've change my code above.Sorry for my mistake.
I've use template based on subsilver - subRed.
Everything seems to works fine except bug inside quote!?!?
Last edited by deny on Tue Oct 12, 2004 5:25 pm, edited 1 time in total.

markus_petrux
Former Team Member
Posts: 1887
Joined: Wed Apr 23, 2003 7:11 am
Location: Girona, Catalunya (Spain)
Contact:

Post by markus_petrux » Tue Oct 12, 2004 4:15 pm

Kinetix-: I noticed this too. Can't figure out why it happens. Seems to be related to the fact the width of the table is 90% of its parent. It only happens sometimes for IE6 (sp2 or not) only. :? However, Firefox renders the 90% width correctly.

I did several tests (using DIV or TABLE) when coding the MOD in search of a workaround, without luck. :(

Suggestions? :?
EasyMOD Standards | MOD Template Actions | MODs in Development Rules
Useful information for MOD Authors | MOD Queue Stats | Search MODs
Write SQL/DDL portable to all SQL servers supported by phpBB!
Get EasyMOD 0.3.0! | Suport al phpBB en Català!
8)

markus_petrux
Former Team Member
Posts: 1887
Joined: Wed Apr 23, 2003 7:11 am
Location: Girona, Catalunya (Spain)
Contact:

Post by markus_petrux » Tue Oct 12, 2004 4:44 pm

deny: Thanks for the URL. However, I get redirected to the login screen. :? anyway... please, try this:

Code: Select all

<!-- BEGIN quote_open --></span>
<div class="quotetitle"><b>{L_QUOTE}:</b> 
<script type="text/javascript" src="{U_SXBB_JSLIB}"></script> 
<script type="text/javascript"> 
<!-- 
   var id = 'SXBB' + (1000 + Math.floor(Math.random() * 5000)); 
   SXBB[id] = new _SXBB(id); 
   SXBB[id].T['select'] = '{L_SELECT}'; 
   SXBB[id].T['expand'] = '{L_EXPAND}'; 
   SXBB[id].T['contract'] = '{L_CONTRACT}'; 
   SXBB[id].writeCmd(); 
//--> 
</script></div><div class="quotecontent"> 
<script type="text/javascript"> 
<!-- 
   SXBB[id].writeDiv(); 
//--> 
</script> 
<!-- END quote_open --> 

<!-- BEGIN quote_close --> 
<script type="text/javascript">
<!--
	document.write('</div>');
//-->
</script>
</div><span class="postbody">
<!-- END quote_close --> 

<!-- BEGIN quote_username_open --></span>
<div class="quotetitle"><b>{USERNAME} {L_WROTE}:</b> 
<script type="text/javascript" src="{U_SXBB_JSLIB}"></script> 
<script type="text/javascript"> 
<!-- 
   var id = 'SXBB' + (1000 + Math.floor(Math.random() * 5000)); 
   SXBB[id] = new _SXBB(id); 
   SXBB[id].T['select'] = '{L_SELECT}'; 
   SXBB[id].T['expand'] = '{L_EXPAND}'; 
   SXBB[id].T['contract'] = '{L_CONTRACT}'; 
   SXBB[id].writeCmd(); 
//--> 
</script></div><div class="quotecontent"> 
<script type="text/javascript"> 
<!-- 
   SXBB[id].writeDiv(); 
//--> 
</script><!-- END quote_username_open -->
Changes I made here:
a) Append </span> after <!-- BEGIN quote_open -->
b) Append <span class="postbody"> after </div>, before <!-- END quote_close -->
c) Add the javascript after <!-- BEGIN quote_close -->
EasyMOD Standards | MOD Template Actions | MODs in Development Rules
Useful information for MOD Authors | MOD Queue Stats | Search MODs
Write SQL/DDL portable to all SQL servers supported by phpBB!
Get EasyMOD 0.3.0! | Suport al phpBB en Català!
8)

deny
Registered User
Posts: 565
Joined: Wed May 14, 2003 9:14 am
Location: Find-Ip-Address.org
Contact:

Post by deny » Tue Oct 12, 2004 4:50 pm

Thanks a lot.It works now!Great :D

markus_petrux
Former Team Member
Posts: 1887
Joined: Wed Apr 23, 2003 7:11 am
Location: Girona, Catalunya (Spain)
Contact:

Post by markus_petrux » Tue Oct 12, 2004 5:47 pm

Good to know! ;)


.
EasyMOD Standards | MOD Template Actions | MODs in Development Rules
Useful information for MOD Authors | MOD Queue Stats | Search MODs
Write SQL/DDL portable to all SQL servers supported by phpBB!
Get EasyMOD 0.3.0! | Suport al phpBB en Català!
8)

User avatar
drumstix42
Registered User
Posts: 1100
Joined: Tue Sep 24, 2002 11:01 pm
Location: NJ
Contact:

Post by drumstix42 » Wed Oct 20, 2004 7:15 pm

I use Daz's expander on my forums. That one works in IE and Firefox. What makes this one not work in IE?
Need a phpBB update or mod installed? PM me for any questions and pricing!
HostMonster.com (Unlimited Space, Unlimited Transfer, Unlimited Domains, $6.95/month )

markus_petrux
Former Team Member
Posts: 1887
Joined: Wed Apr 23, 2003 7:11 am
Location: Girona, Catalunya (Spain)
Contact:

Post by markus_petrux » Wed Oct 20, 2004 8:21 pm

drumstix42 wrote: I use Daz's expander on my forums. That one works in IE and Firefox. What makes this one not work in IE?

Have you tried Daz's div_expand on Opera 5, 6 or 7? ...or on IE or FF with javascript disabled?

Try the same tests on the demo of this MOD. You'll see the difference.

What makes you think this MOD doesn't work on IE?
EasyMOD Standards | MOD Template Actions | MODs in Development Rules
Useful information for MOD Authors | MOD Queue Stats | Search MODs
Write SQL/DDL portable to all SQL servers supported by phpBB!
Get EasyMOD 0.3.0! | Suport al phpBB en Català!
8)

User avatar
drumstix42
Registered User
Posts: 1100
Joined: Tue Sep 24, 2002 11:01 pm
Location: NJ
Contact:

Post by drumstix42 » Wed Oct 20, 2004 9:33 pm

I viewed your Demo boared with Firefox. Works fine, I love it.
I then tested it with IE and it showed with the boxes already expanded.

I was just saying that Daz's version was working for me in both and it seems this one is not, and I would like to use this one on my new forums :)
Need a phpBB update or mod installed? PM me for any questions and pricing!
HostMonster.com (Unlimited Space, Unlimited Transfer, Unlimited Domains, $6.95/month )

markus_petrux
Former Team Member
Posts: 1887
Joined: Wed Apr 23, 2003 7:11 am
Location: Girona, Catalunya (Spain)
Contact:

Post by markus_petrux » Wed Oct 20, 2004 10:02 pm

This MOD hides the select/expand commands if a) not supported or b) not really useful.

There are 2 demos. One of them has short content, so the expand command is hidden. The other demo has longer code/quotes.

This MOD also catches window resize events, then evaluates if the expand command is really useful/required.

Another feature of this MOD is it expands outer blocks if you expand an inner block.

Make backups and give it a try. :)
EasyMOD Standards | MOD Template Actions | MODs in Development Rules
Useful information for MOD Authors | MOD Queue Stats | Search MODs
Write SQL/DDL portable to all SQL servers supported by phpBB!
Get EasyMOD 0.3.0! | Suport al phpBB en Català!
8)

User avatar
wang5555
Translator
Posts: 592
Joined: Wed Oct 27, 2004 2:57 pm
Location: Taiwan

Post by wang5555 » Wed Oct 27, 2004 3:22 pm

Hi, dear author:

I Have some trouble.

I received a "script error", Select/Expand actions were vain.

Can you help me? thanks!

This is my original bbcode.tpl(only part)

Code: Select all

<!-- BEGIN ulist_open --><ul><!-- END ulist_open -->
<!-- BEGIN ulist_close --></ul><!-- END ulist_close -->

<!-- BEGIN olist_open --><ol type="{LIST_TYPE}"><!-- END olist_open -->
<!-- BEGIN olist_close --></ol><!-- END olist_close -->

<!-- BEGIN listitem --><li><!-- END listitem -->

<!-- BEGIN quote_username_open --></span>
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr> 
	  <td><span class="genmed"><b>{USERNAME} {L_WROTE}:</b></span></td>
	</tr>
	<tr>
	  <td class="quote"><!-- END quote_username_open -->
<!-- BEGIN quote_open --></span>
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr> 
	  <td><span class="genmed"><b>{L_QUOTE}:</b></span></td>
	</tr>
	<tr>
	  <td class="quote"><!-- END quote_open -->
<!-- BEGIN quote_close --></td>
	</tr>
</table>
<span class="postbody"><!-- END quote_close -->

<!-- BEGIN code_open --></span>
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr> 
	  <td><span class="genmed"><b>{L_CODE}:</b></span></td>
	</tr>
	<tr>
	  <td class="code"><!-- END code_open -->
<!-- BEGIN code_close --></td>
	</tr>
</table>
<span class="postbody"><!-- END code_close -->


<!-- BEGIN b_open --><span style="font-weight: bold"><!-- END b_open -->
<!-- BEGIN b_close --></span><!-- END b_close -->

<!-- BEGIN table_open --><table align="top" cellpadding="2" cellspacing="2" border="1" bgcolor="#FFFFFF"><!-- END table_open -->
<!-- BEGIN table_close --></td></tr></table><!-- END table_close -->
<!-- BEGIN table_mainrow --><tr bgcolor="#FFFF00" align="center"><td><!-- END table_mainrow -->
<!-- BEGIN table_row --></td></tr><tr><td><!-- END table_row -->
<!-- BEGIN table_row_color --></td></tr><tr bgcolor="{TABCOLOR}"><td><!-- END table_row_color -->
<!-- BEGIN table_newcol --></td><td><!-- END table_newcol -->
<!-- BEGIN table_col_color --></td><td bgcolor="{TABCCOLOR}"><!-- END table_col_color -->

<!-- BEGIN cf --><!-- URL's used in the movie--> 
<!-- text used in the movie--> 
<!-- --> 
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"> 
<PARAM NAME=movie VALUE="{URL}"> <PARAM NAME=quality VALUE=high> <PARAM NAME=scale VALUE=noborder> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="{URL}" quality=high scale=noborder wmode=transparent bgcolor=#000000 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED> 
</OBJECT><!-- END cf -->

<!-- BEGIN u_open --><span style="text-decoration: underline"><!-- END u_open -->
<!-- BEGIN u_close --></span><!-- END u_close -->

<!-- BEGIN i_open --><span style="font-style: italic"><!-- END i_open -->
<!-- BEGIN i_close --></span><!-- END i_close -->

<!-- BEGIN color_open --><span style="color: {COLOR}"><!-- END color_open -->
<!-- BEGIN color_close --></span><!-- END color_close -->

<!-- BEGIN size_open --><span style="font-size: {SIZE}px; line-height: normal"><!-- END size_open -->
<!-- BEGIN size_close --></span><!-- END size_close -->
This is my installed bbcode.tpl(only part)

Code: Select all

<!-- BEGIN ulist_open --><ul><!-- END ulist_open -->
<!-- BEGIN ulist_close --></ul><!-- END ulist_close -->

<!-- BEGIN olist_open --><ol type="{LIST_TYPE}"><!-- END olist_open -->
<!-- BEGIN olist_close --></ol><!-- END olist_close -->

<!-- BEGIN listitem --><li><!-- END listitem -->

<!-- BEGIN quote_username_open --></span>
<table class="bodyline" width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr> 
		<td class="helpline"><span class="genmed"><b>{USERNAME} {L_WROTE}:</b>
<script type="text/javascript" src="{U_SXBB_JSLIB}"></script>
<script type="text/javascript">
<!--
	var id = 'SXBB' + (1000 + Math.floor(Math.random() * 5000));
	SXBB[id] = new _SXBB(id);
	SXBB[id].T['select'] = '{L_SELECT}';
	SXBB[id].T['expand'] = '{L_EXPAND}';
	SXBB[id].T['contract'] = '{L_CONTRACT}';
	SXBB[id].writeCmd();
//-->
</script>
		</span></td>
	</tr>
	<tr>
	  <td class="quote">
<script type="text/javascript">
<!--
	SXBB[id].writeDiv();
//-->
</script><!-- END quote_username_open -->

<!-- BEGIN quote_open --></span>
<table class="bodyline" width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr> 
		<td class="helpline"><span class="genmed"><b>{L_QUOTE}:</b>
<script type="text/javascript" src="{U_SXBB_JSLIB}"></script>
<script type="text/javascript">
<!--
	var id = 'SXBB' + (1000 + Math.floor(Math.random() * 5000));
	SXBB[id] = new _SXBB(id);
	SXBB[id].T['select'] = '{L_SELECT}';
	SXBB[id].T['expand'] = '{L_EXPAND}';
	SXBB[id].T['contract'] = '{L_CONTRACT}';
	SXBB[id].writeCmd();
//-->
</script>
		</span></td>
	</tr>
	<tr>
	  <td class="quote">
<script type="text/javascript">
<!--
	SXBB[id].writeDiv();
//-->
</script><!-- END quote_open -->

<!-- BEGIN quote_close -->
<script type="text/javascript">
<!--
	document.write('</div>');
//-->
</script>
		</td>
	</tr>
</table>
<span class="postbody"><!-- END quote_close -->

<!-- BEGIN code_open --></span>
<table class="bodyline" width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr> 
		<td class="helpline"><span class="genmed"><b>{L_CODE}:</b>
<script type="text/javascript" src="{U_SXBB_JSLIB}"></script>
<script type="text/javascript">
<!--
	var id = 'SXBB' + (1000 + Math.floor(Math.random() * 5000));
	SXBB[id] = new _SXBB(id);
	SXBB[id].T['select'] = '{L_SELECT}';
	SXBB[id].T['expand'] = '{L_EXPAND}';
	SXBB[id].T['contract'] = '{L_CONTRACT}';
	SXBB[id].writeCmd();
//-->
</script>
		</span></td>
	</tr>
	<tr>
	  <td class="code">
<script type="text/javascript">
<!--
	SXBB[id].writeDiv();
//-->
</script><!-- END code_open -->

<!-- BEGIN code_close -->
<script type="text/javascript">
<!--
	document.write('</div>');
//-->
</script>
		</td>
	</tr>
</table>
<span class="postbody"><!-- END code_close -->

<!-- BEGIN b_open --><span style="font-weight: bold"><!-- END b_open -->
<!-- BEGIN b_close --></span><!-- END b_close -->

<!-- BEGIN table_open --><table align="top" cellpadding="2" cellspacing="2" border="1" bgcolor="#FFFFFF"><!-- END table_open -->
<!-- BEGIN table_close --></td></tr></table><!-- END table_close -->
<!-- BEGIN table_mainrow --><tr bgcolor="#FFFF00" align="center"><td><!-- END table_mainrow -->
<!-- BEGIN table_row --></td></tr><tr><td><!-- END table_row -->
<!-- BEGIN table_row_color --></td></tr><tr bgcolor="{TABCOLOR}"><td><!-- END table_row_color -->
<!-- BEGIN table_newcol --></td><td><!-- END table_newcol -->
<!-- BEGIN table_col_color --></td><td bgcolor="{TABCCOLOR}"><!-- END table_col_color -->

<!-- BEGIN cf --><!-- URL's used in the movie--> 
<!-- text used in the movie--> 
<!-- --> 
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"> 
<PARAM NAME=movie VALUE="{URL}"> <PARAM NAME=quality VALUE=high> <PARAM NAME=scale VALUE=noborder> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="{URL}" quality=high scale=noborder wmode=transparent bgcolor=#000000 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED> 
</OBJECT><!-- END cf -->

<!-- BEGIN u_open --><span style="text-decoration: underline"><!-- END u_open -->
<!-- BEGIN u_close --></span><!-- END u_close -->

<!-- BEGIN i_open --><span style="font-style: italic"><!-- END i_open -->
<!-- BEGIN i_close --></span><!-- END i_close -->

<!-- BEGIN color_open --><span style="color: {COLOR}"><!-- END color_open -->
<!-- BEGIN color_close --></span><!-- END color_close -->

<!-- BEGIN size_open --><span style="font-size: {SIZE}px; line-height: normal"><!-- END size_open -->
<!-- BEGIN size_close --></span><!-- END size_close -->

markus_petrux
Former Team Member
Posts: 1887
Joined: Wed Apr 23, 2003 7:11 am
Location: Girona, Catalunya (Spain)
Contact:

Post by markus_petrux » Wed Oct 27, 2004 8:55 pm

wang5555:

Changes made in bbcode.tpl seem to be correct.

What's the exact message of the javascript error you're getting?
Browser/Version/Platform?
Do you have a link?
EasyMOD Standards | MOD Template Actions | MODs in Development Rules
Useful information for MOD Authors | MOD Queue Stats | Search MODs
Write SQL/DDL portable to all SQL servers supported by phpBB!
Get EasyMOD 0.3.0! | Suport al phpBB en Català!
8)

User avatar
wang5555
Translator
Posts: 592
Joined: Wed Oct 27, 2004 2:57 pm
Location: Taiwan

Post by wang5555 » Wed Oct 27, 2004 10:50 pm

markus_petrux wrote: wang5555:

Changes made in bbcode.tpl seem to be correct.

What's the exact message of the javascript error you're getting?
Browser/Version/Platform?
Do you have a link?

Thank your answer! :D

It's only "Script Error!", no more information.

Browser = IE /Version = 6 SP1 /Platform = WinXP SP2

"link?" What do you mean by saying that? :?
Last edited by wang5555 on Thu Oct 28, 2004 12:09 am, edited 1 time in total.
It is more blessed to give than to reveive, welcome to letter, thanks & good-bye!
Good luck ^_^
Welcome to my forum!!
http://wang5555.hopto.org/phpBB3/
p.s. Shut down computer before 11 clock night!!!

richard_5421
Registered User
Posts: 521
Joined: Tue Dec 30, 2003 12:57 am

Post by richard_5421 » Wed Oct 27, 2004 11:19 pm

I get this error:

Code: Select all

Parse error: parse error, unexpected '>' in /home/username/public_html/forum/includes/bbcode.php(62) : eval()'d code on line 121
I looked but on line 121 is a blank line and the below is underneath

// Replacing BBCode variables, but also adding CR to preserve HTML comment delimiters for JS code.


Could I be having this error because I have the hidebb code added...

When I replaced the includes file with the original I still got the error
but when I replaced the bbcode.tpl file it went bac kto normal ...

So is the error in bbcode.tpl


Here is my code edited code with this MOD

Code: Select all

<!-- BEGIN show --> 
</span>
<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1">
<tr> 
          <td><span class="genmed"><b>Protected Message:</b></span></td>
        </tr>
        <tr>
          <td class="quote">
                {HTEXTE}
                </td>
        </tr>
</table>
<span class="postbody">
<!-- END show --> 

<!-- BEGIN hide --> 
</span>
<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1">
<tr> 
          <td><span class="genmed"><b>Protected Message:</b></span></td>
        </tr>
        <tr>
          <td class="quote">
                <center>- Post a reply to see text -</center>
                </td>
        </tr>
</table>
<span class="postbody">
<!-- END hide -->
<!-- BEGIN ulist_open --><ul><!-- END ulist_open -->
<!-- BEGIN ulist_close --></ul><!-- END ulist_close -->

<!-- BEGIN olist_open --><ol type="{LIST_TYPE}"><!-- END olist_open -->
<!-- BEGIN olist_close --></ol><!-- END olist_close -->

<!-- BEGIN listitem --><li><!-- END listitem -->

<!-- BEGIN quote_username_open --><table class="bodyline" width="90%" cellspacing="1" cellpadding="3" border="0" align="center"> 
<tr> 
<td class="helpline"><span class="genmed"><b>{USERNAME} {L_WROTE}:</b>
<script type="text/javascript" src="{U_SXBB_JSLIB}"></script>
<script type="text/javascript">
<!--
	var id = 'SXBB' + (1000 + Math.floor(Math.random() * 5000));
	SXBB[id] = new _SXBB(id);
	SXBB[id].T['select'] = '{L_SELECT}';
	SXBB[id].T['expand'] = '{L_EXPAND}';
	SXBB[id].T['contract'] = '{L_CONTRACT}';
	SXBB[id].writeCmd();
//-->
</script>
		</span></td>
	</tr>
	<tr>
	  <td class="quote">
<script type="text/javascript">
<!--
	SXBB[id].writeDiv();
//-->
</script><!-- END quote_username_open -->
      
<!-- BEGIN quote_open --><table class="bodyline" width="90%" cellspacing="1" cellpadding="3" border="0" align="center"> 
<tr> 
<td class="helpline"><span class="genmed"><b>{L_QUOTE}:</b>
<script type="text/javascript" src="{U_SXBB_JSLIB}"></script>
<script type="text/javascript">
<!--
	var id = 'SXBB' + (1000 + Math.floor(Math.random() * 5000));
	SXBB[id] = new _SXBB(id);
	SXBB[id].T['select'] = '{L_SELECT}';
	SXBB[id].T['expand'] = '{L_EXPAND}';
	SXBB[id].T['contract'] = '{L_CONTRACT}';
	SXBB[id].writeCmd();
//-->
</script>
		</span></td>
	</tr>
	<tr>
	  <td class="quote">
<script type="text/javascript">
<!--
	SXBB[id].writeDiv();
//-->
</script><!-- END quote_open -->     
<!-- BEGIN quote_close -->
<script type="text/javascript">
<!--
	document.write('</div>');
//-->
</script>
		</td>

   </tr> 
</table><!-- END quote_close --> 

<!-- BEGIN code_open --></span>
<table class="bodyline" width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr> 
<td class="helpline"><span class="genmed"><b>{L_CODE}:</b>
<script type="text/javascript" src="{U_SXBB_JSLIB}"></script>
<script type="text/javascript">
<!--
	var id = 'SXBB' + (1000 + Math.floor(Math.random() * 5000));
	SXBB[id] = new _SXBB(id);
	SXBB[id].T['select'] = '{L_SELECT}';
	SXBB[id].T['expand'] = '{L_EXPAND}';
	SXBB[id].T['contract'] = '{L_CONTRACT}';
	SXBB[id].writeCmd();
//-->
</script>
		</span></td>
	</tr>
	<tr>
	  <td class="code">
<script type="text/javascript">
<!--
	SXBB[id].writeDiv();
//-->
</script><!-- END code_open -->
	  >
<!-- BEGIN code_close -->
<script type="text/javascript">
<!--
	document.write('</div>');
//-->
</script>
		</td>

	</tr>
</table>
<span class="postbody"><!-- END code_close -->


<!-- BEGIN b_open --><span style="font-weight: bold"><!-- END b_open -->
<!-- BEGIN b_close --></span><!-- END b_close -->

<!-- BEGIN u_open --><span style="text-decoration: underline"><!-- END u_open -->
<!-- BEGIN u_close --></span><!-- END u_close -->

<!-- BEGIN i_open --><span style="font-style: italic"><!-- END i_open -->
<!-- BEGIN i_close --></span><!-- END i_close -->

<!-- BEGIN color_open --><span style="color: {COLOR}"><!-- END color_open -->
<!-- BEGIN color_close --></span><!-- END color_close -->

<!-- BEGIN size_open --><span style="font-size: {SIZE}px; line-height: normal"><!-- END size_open -->
<!-- BEGIN size_close --></span><!-- END size_close -->

<!-- BEGIN img --><img src="{URL}" border="0" /><!-- END img -->

<!-- BEGIN url --><a href="{URL}" target="_blank" class="postlink">{DESCRIPTION}</a><!-- END url -->

<!-- BEGIN email --><a href="mailto:{EMAIL}">{EMAIL}</A><!-- END email -->
Web Request - Virtual Shared / Reseller / VPS / Dedicated
Multiple Domain Hosting .... 24/7 Technical Support - UK Website

markus_petrux
Former Team Member
Posts: 1887
Joined: Wed Apr 23, 2003 7:11 am
Location: Girona, Catalunya (Spain)
Contact:

Post by markus_petrux » Thu Oct 28, 2004 4:34 am

wang5555 wrote: It's only "Script Error!", no more information.
This doesn't help much. Where do you see this error? If it's a javascript error, double clicking the browser's status bar should popup a small window with information related to all current javascript errors.
wang5555 wrote: "link?" What do you mean by saying that? :?

I mean a link to the site your having this errors.
wang5555 wrote: Browser = IE /Version = 6 SP1 /Platform = WinXP SP2

The MOD works on this environment. The problem could be related to other javascript code present on the page. Also, check if there's any problem with the external .js file provided with this MOD.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
richard_5421 wrote: I get this error:

Code: Select all

Parse error: parse error, unexpected '>' in /home/username/public_html/forum/includes/bbcode.php(62) : eval()'d code on line 121

What's the contents of a group of lines (say 10 lines before/after) around line 121 in bbcode.php? Sounds a problem related to a missing quote (or single quote).

Please, compare your bbcode.tpl with the one posted above by wang5555 there are some mistakes in yours. Also, check the changes made in bbcode.php. If you still get in trouble try to work on fresh bbcode.tpl and bbcode.php files. Does that solve the problem?
AFAIK, there should be no problem between this and other BBCode MODs.
EasyMOD Standards | MOD Template Actions | MODs in Development Rules
Useful information for MOD Authors | MOD Queue Stats | Search MODs
Write SQL/DDL portable to all SQL servers supported by phpBB!
Get EasyMOD 0.3.0! | Suport al phpBB en Català!
8)

Post Reply

Return to “[2.0.x] MOD Database Cleanup”