Flash BBcode mod for phpbb 2.0.21

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
User avatar
MHobbit
Former Team Member
Posts: 4761
Joined: Thu Mar 18, 2004 5:32 pm
Location: There and Back Again

Post by MHobbit » Tue Jan 09, 2007 1:45 am

Hello,

Please edit your topic title with a prefix as outlined in MOD Development forum rules, section 3.a. This will allow people to see the development status of your MOD at a glance.

Also, please change your MODs version number as outlined in MOD Development forum rules, section 2. Your MOD as being in development requires a development version number as stated in the phpBB versioning scheme.

For example if your MOD is currently displaying v1.0.0, you can change it to 0.1.0 or 1.1.0, depending on your feelings of it's development status. Even minor version numbers (y of x.y.z) are reserved for release versions. If you believe your MOD is of a quality that deserves a release version, please do not hesitate to submit your MOD to the phpBB.com MODDB (MOD release database) for validation pending release.

Please edit your topic starter as outlined in MOD Development forum rules section 3.f.5. This will allow people to see what your MOD is about at a glance.

Thank you,
The phpBB MOD Team
Former phpBB MOD Team member
No private support is offered.
"There’s too many things to get done, and I’m running out of days..."

phpaaa
Registered User
Posts: 168
Joined: Sun Dec 17, 2006 11:59 am

Post by phpaaa » Tue Jan 09, 2007 2:40 am

PizzaHuge wrote:
phpaaa wrote:i added this mod but it didn't work ... just saw the following line appear on my post without video loading ... :(
[swf width=400 height=300]http://www.mydomain.com/test.swf[/swf]


my php version is 2.0.21 ... any thing wrong ?????

also does this mod has any "ACTION SCRIPT" security problem ????


Make sure your bbcode is turned on in ACP


of course my bbcode is turned on ... those default codes like [img][/img] work very well .... also why this MOD preset "width=400 height=300", could I change these to other value ????


ooh ... i upload the "changed" php file again, the above problem disappear but it lead to a more fatal error ~~>

Fatal error: Call to undefined function smilies_pass() in folder/viewtopic.php on line 1097
* this MOD doesn't require me to change VIEWTOPIC.PHP ... so why such an error message apppear????

User avatar
Sultani
Registered User
Posts: 125
Joined: Wed Dec 13, 2006 8:42 pm
Location: California, Orange County
Contact:

Post by Sultani » Fri Jan 19, 2007 2:44 am

Hi there,
i really dont understand this part:

Code: Select all

#
#---------------[ FIND this 2 lines]---------------------
#
# Doing the same thing for this two line and replace the old value with the new value increase by 2, in this case it is gonna
#be 20 and 22

<select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">

</select> &nbsp;{L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">

#
#---------------[ REPLACE THE VALUE]---------------------
#
of 18 and 20 in the line with 20 and 22 for each correspond line (18=20, 20=22)

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Can u explain better plase?

Tanks in advance and congratz for this awsome mod :)
Scraablee - Free Flash Games!

Sorry for my bad english ( Im american ) :D

User avatar
Sultani
Registered User
Posts: 125
Joined: Wed Dec 13, 2006 8:42 pm
Location: California, Orange County
Contact:

Post by Sultani » Fri Jan 19, 2007 8:14 pm

when i have installed this mod i dint do this because i really dont know where it is:

Code: Select all

#
#---------------[ FIND this 2 lines]---------------------
#
# Doing the same thing for this two line and replace the old value with the new value increase by 2, in this case it is gonna
#be 20 and 22

<select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">

</select> &nbsp;{L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">

#
#---------------[ REPLACE THE VALUE]---------------------
#
of 18 and 20 in the line with 20 and 22 for each correspond line (18=20, 20=22)

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
and it works well, but now i have a conflict with other mods, like youtube and wmp, when i hit the youtube button after the swf he put the swf tag
[/swf][swf width=400 height=300]

if i click on the wmp button after the youtube mod e put the youtube tag!

Any ideas ?

I really like thi mod but i dont know whats happen.

Tanks in advance
Scraablee - Free Flash Games!

Sorry for my bad english ( Im american ) :D

PizzaHuge
Registered User
Posts: 360
Joined: Sun Apr 10, 2005 3:36 am

Post by PizzaHuge » Fri Jan 19, 2007 9:00 pm

phpaaa wrote:
PizzaHuge wrote:
phpaaa wrote:i added this mod but it didn't work ... just saw the following line appear on my post without video loading ... :(
[swf width=400 height=300]http://www.mydomain.com/test.swf[/swf]


my php version is 2.0.21 ... any thing wrong ?????

also does this mod has any "ACTION SCRIPT" security problem ????


Make sure your bbcode is turned on in ACP


of course my bbcode is turned on ... those default codes like [img][/img] work very well .... also why this MOD preset "width=400 height=300", could I change these to other value ????


ooh ... i upload the "changed" php file again, the above problem disappear but it lead to a more fatal error ~~>

Fatal error: Call to undefined function smilies_pass() in folder/viewtopic.php on line 1097
* this MOD doesn't require me to change VIEWTOPIC.PHP ... so why such an error message apppear????


check to make sure you did everything right please

PizzaHuge
Registered User
Posts: 360
Joined: Sun Apr 10, 2005 3:36 am

Post by PizzaHuge » Fri Jan 19, 2007 9:12 pm

Sultani wrote: when i have installed this mod i dint do this because i really dont know where it is:

Code: Select all

#
#---------------[ FIND this 2 lines]---------------------
#
# Doing the same thing for this two line and replace the old value with the new value increase by 2, in this case it is gonna
#be 20 and 22

<select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">

</select> &nbsp;{L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">

#
#---------------[ REPLACE THE VALUE]---------------------
#
of 18 and 20 in the line with 20 and 22 for each correspond line (18=20, 20=22)

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
and it works well, but now i have a conflict with other mods, like youtube and wmp, when i hit the youtube button after the swf he put the swf tag
[/swf][swf width=400 height=300]

if i click on the wmp button after the youtube mod e put the youtube tag!

Any ideas ?

I really like thi mod but i dont know whats happen.

Tanks in advance


Hi Sultani
suppose in templates/subSilver/posting_body.tpl without any bbcode mod installed yet

the last line of bbcode mod button is :

Code: Select all

<td><span class="genmed"> 
  <input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" /> 
</span></td>
and the next 2 lines are for font color and font size:

Code: Select all

<select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')"> 

</select> &nbsp;{L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">
so for example in the mod it tell you to find the last line of bbcode mod button which is this line:

Code: Select all

<td><span class="genmed"> 
  <input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" /> 
</span></td> 
and then add after that line is this line:

Code: Select all

 <td><span class="genmed"> 
  <input type="button" class="button" accesskey="swf" name="addbbcode18" value="SWF" style="text-decoration: underline; width: 40px" onClick="bbstyle(18)" onMouseOver="helpline('swf')" /> 
</span></td>
so you see what it meant is every bbcode mod if you want to add a button, you need to change the position number for the button
you see that the line we find the position number of the button is 16 so the line we add after have to be 18

and then the next 2 lines for font color and font size was 18 and 20 you ahve to change it to 20 and 22 because you just add the line for flash mod with position number of 18

if you still confuse plaese post your posting_body.tpl file here

User avatar
Sultani
Registered User
Posts: 125
Joined: Wed Dec 13, 2006 8:42 pm
Location: California, Orange County
Contact:

Post by Sultani » Fri Jan 19, 2007 9:35 pm

im so sorry but i have to put the code here, i still dont find that line, maybe because im ussing the Morpheus theme.

Code: Select all

{TPL_CONTENT_TOPNAV1}<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
	<td align="left" class="navbar-links"><a href="{U_INDEX}">{L_INDEX}</a><!-- BEGIN switch_not_privmsg --> &raquo;  <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a> &raquo; <a href="#">{L_POST_A}</a><!-- END switch_not_privmsg --></td>
	<td align="right" class="navbar-text">{CURRENT_TIME}</td>
</tr>
</table>{TPL_CONTENT_TOPNAV2}

<!-- BEGIN switch_xs_enabled -->
<?php
if(xs_switch($this, 'switch_username_select') && empty($this->vars['USERNAME']))
{
	global $HTTP_COOKIE_VARS;
	if(isset($HTTP_COOKIE_VARS['guest_name']))
	{
		$this->vars['USERNAME'] = htmlspecialchars(stripslashes($HTTP_COOKIE_VARS['guest_name']));
	}
}
// add labels to it
if(!empty($this->vars['S_TYPE_TOGGLE']))
{
	$start = strpos($this->vars['S_TYPE_TOGGLE'], '<input type="radio"');
	if($start)
	{
		$str = '';
		$len = strlen($this->vars['S_TYPE_TOGGLE']);
		while($start > 0)
		{
			$end = strpos($this->vars['S_TYPE_TOGGLE'], '<input type="radio"', $start + 1);
			if(!$end)
			{
				$end = $len;
			}
			if(!$str)
			{
				$str .= substr($this->vars['S_TYPE_TOGGLE'], 0, $start);
			}
			$substr = str_replace('&nbsp;', '', substr($this->vars['S_TYPE_TOGGLE'], $start, $end - $start));
			$str .= '<label>' . str_replace(' /> ', ' /> <span>', $substr) . '</span></label>&nbsp;&nbsp;';
			$start = $end < $len ? $end : 0;
		}
		$this->vars['S_TYPE_TOGGLE'] = $str;
	}
}
?>
<!-- END switch_xs_enabled -->
<script language="JavaScript" type="text/javascript">
<!--
// bbCode control by
// subBlue design
// www.subBlue.com

// Startup variables
var imageTag = false;
var theSelection = false;

// Check for Browser & Platform for PC & IE specific bits
// More details from: http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html
var clientPC = navigator.userAgent.toLowerCase(); // Get client info
var clientVer = parseInt(navigator.appVersion); // Get browser version

var is_ie = ((clientPC.indexOf("msie") != -1) && (clientPC.indexOf("opera") == -1));
var is_nav = ((clientPC.indexOf('mozilla')!=-1) && (clientPC.indexOf('spoofer')==-1)
                && (clientPC.indexOf('compatible') == -1) && (clientPC.indexOf('opera')==-1)
                && (clientPC.indexOf('webtv')==-1) && (clientPC.indexOf('hotjava')==-1));
var is_moz = 0;

var is_win = ((clientPC.indexOf("win")!=-1) || (clientPC.indexOf("16bit") != -1));
var is_mac = (clientPC.indexOf("mac")!=-1);

// Helpline messages
b_help = "{L_BBCODE_B_HELP}";
i_help = "{L_BBCODE_I_HELP}";
u_help = "{L_BBCODE_U_HELP}";
q_help = "{L_BBCODE_Q_HELP}";
c_help = "{L_BBCODE_C_HELP}";
l_help = "{L_BBCODE_L_HELP}";
o_help = "{L_BBCODE_O_HELP}";
p_help = "{L_BBCODE_P_HELP}";
w_help = "{L_BBCODE_W_HELP}";
a_help = "{L_BBCODE_A_HELP}";
s_help = "{L_BBCODE_S_HELP}";
f_help = "{L_BBCODE_F_HELP}";
swf_help = "{L_BBCODE_SWF_HELP}";
<!-- BEGIN MultiBB -->
{MultiBB.VALUE}_help = "{MultiBB.HELP}";
<!-- END MultiBB -->


// Define the bbCode tags
bbcode = new Array();
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','[img]','[/img]','','','[swf width=400 height=300]','[/swf]');
imageTag = false;

// Shows the help messages in the helpline window
function helpline(help) {
document.post.helpbox.value = eval(help + "_help");
}


// Replacement for arrayname.length property
function getarraysize(thearray) {
for (i = 0; i < thearray.length; i++) {
if ((thearray == "undefined") || (thearray == "") || (thearray == null))
return i;
}
return thearray.length;
}

// Replacement for arrayname.push(value) not implemented in IE until version 5.5
// Appends element to the array
function arraypush(thearray,value) {
thearray[ getarraysize(thearray) ] = value;
}

// Replacement for arrayname.pop() not implemented in IE until version 5.5
// Removes and returns the last element of an array
function arraypop(thearray) {
thearraysize = getarraysize(thearray);
retval = thearray[thearraysize - 1];
delete thearray[thearraysize - 1];
return retval;
}

function checkForm() {

formErrors = false;

if (document.post.message.value.length < 2) {
formErrors = "{L_EMPTY_MESSAGE}";
}

if (formErrors) {
alert(formErrors);
return false;
} else {
bbstyle(-1);
<!-- BEGIN switch_username_select -->
SetCookie('guest_name', document.post.username.value, exp);
<!-- END switch_username_select -->
//formObj.preview.disabled = true;
//formObj.submit.disabled = true;
return true;
}
}

function emoticon(text) {
var txtarea = document.post.message;
text = ' ' + text + ' ';
if (txtarea.createTextRange && txtarea.caretPos) {
var caretPos = txtarea.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
txtarea.focus();
} else {
txtarea.value += text;
txtarea.focus();
}
}

function bbfontstyle(bbopen, bbclose) {
var txtarea = document.post.message;

if ((clientVer >= 4) && is_ie && is_win) {
theSelection = document.selection.createRange().text;
if (!theSelection) {
txtarea.value += bbopen + bbclose;
txtarea.focus();
return;
}
document.selection.createRange().text = bbopen + theSelection + bbclose;
txtarea.focus();
return;
}
else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0))
{
mozWrap(txtarea, bbopen, bbclose);
return;
}
else
{
txtarea.value += bbopen + bbclose;
txtarea.focus();
}
storeCaret(txtarea);
}


function bbstyle(bbnumber) {
var txtarea = document.post.message;

donotinsert = false;
theSelection = false;
bblast = 0;

if (bbnumber == -1) { // Close all open tags & default button names
while (bbcode[0]) {
butnumber = arraypop(bbcode) - 1;
txtarea.value += bbtags[butnumber + 1];
buttext = eval('document.post.addbbcode' + butnumber + '.value');
eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"');
}
imageTag = false; // All tags are closed including image tags :D
txtarea.focus();
return;
}

if ((clientVer >= 4) && is_ie && is_win)
{
theSelection = document.selection.createRange().text; // Get text selection
if (theSelection) {
// Add tags around selection
document.selection.createRange().text = bbtags[bbnumber] + theSelection + bbtags[bbnumber+1];
txtarea.focus();
theSelection = '';
return;
}
}
else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0))
{
mozWrap(txtarea, bbtags[bbnumber], bbtags[bbnumber+1]);
return;
}

// Find last occurance of an open tag the same as the one just clicked
for (i = 0; i < bbcode.length; i++) {
if (bbcode == bbnumber+1) {
bblast = i;
donotinsert = true;
}
}

if (donotinsert) { // Close all open tags up to the one just clicked & default button names
while (bbcode[bblast]) {
butnumber = arraypop(bbcode) - 1;
txtarea.value += bbtags[butnumber + 1];
buttext = eval('document.post.addbbcode' + butnumber + '.value');
eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"');
imageTag = false;
}
txtarea.focus();
return;
} else { // Open tags

if (imageTag && (bbnumber != 14)) { // Close image tag before adding another
txtarea.value += bbtags[15];
lastValue = arraypop(bbcode) - 1; // Remove the close image tag from the list
document.post.addbbcode14.value = "Img"; // Return button back to normal state
imageTag = false;
}

// Open tag
txtarea.value += bbtags[bbnumber];
if ((bbnumber == 14) && (imageTag == false)) imageTag = 1; // Check to stop additional tags after an unclosed image tag
arraypush(bbcode,bbnumber+1);
eval('document.post.addbbcode'+bbnumber+'.value += "*"');
txtarea.focus();
return;
}
storeCaret(txtarea);
}

// From http://www.massless.org/mozedit/
function mozWrap(txtarea, open, close)
{
var selLength = txtarea.textLength;
var selStart = txtarea.selectionStart;
var selEnd = txtarea.selectionEnd;
if (selEnd == 1 || selEnd == 2)
selEnd = selLength;

var s1 = (txtarea.value).substring(0,selStart);
var s2 = (txtarea.value).substring(selStart, selEnd)
var s3 = (txtarea.value).substring(selEnd, selLength);
txtarea.value = s1 + open + s2 + close + s3;
return;
}

// Insert at Claret position. Code from
// http://www.faqts.com/knowledge_base/vie ... 52/fid/130
function storeCaret(textEl) {
if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate();
}

//-->
</script>

<!-- BEGIN switch_privmsg -->
<table border="0" cellspacing="0" cellpadding="0" align="center" width="100%">
<tr>
<td valign="top" align="center" width="100%">
<table height="40" cellspacing="2" cellpadding="2" border="0">
<tr valign="middle">
<td><span class="forumlink">{INBOX} &nbsp;</span></td>
<td><span class="forumlink">{SENTBOX} &nbsp;</span></td>
<td><span class="forumlink">{OUTBOX} &nbsp;</span></td>
<td><span class="forumlink">{SAVEBOX} &nbsp;</span></td>
</tr>
</table>
</td>
</tr>
</table>

<br />
<!-- END switch_privmsg -->

<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)">

{POST_PREVIEW_BOX}

<!-- IF ERROR_MESSAGE --><!-- INCLUDE error_body_xs.tpl --><!-- ENDIF -->

{TPL_HDR1}{L_POST_A}{TPL_HDR2}<table border="0" cellpadding="3" cellspacing="1" width="100%" class="forumline">
<!-- BEGIN switch_username_select -->
<tr>
<td class="row1"><span class="gen"><b>{L_USERNAME}</b></span></td>
<td class="row2"><span class="genmed"><input type="text" class="post" tabindex="1" name="username" size="25" maxlength="25" value="{USERNAME}" /></span></td>
</tr>
<!-- END switch_username_select -->
<!-- BEGIN switch_privmsg -->
<tr>
<td class="row1"><span class="gen"><b>{L_USERNAME}</b></span></td>
<td class="row2"><span class="genmed"><input type="text" class="post" name="username" maxlength="25" size="25" tabindex="1" value="{USERNAME}" />&nbsp;<input type="submit" name="usersubmit" value="{L_FIND_USERNAME}" class="liteoption" onClick="window.open('{U_SEARCH_USER}', '_phpbbsearch', 'height=200,width=400,resizable=yes');return false;" /></span></td>
</tr>
<!-- END switch_privmsg -->
<tr>
<td class="row1" width="22%"><span class="gen"><b>{L_SUBJECT}</b></span></td>
<td class="row2" width="78%"><input type="text" name="subject" size="45" maxlength="60" style="width:98%" tabindex="2" class="post" value="{SUBJECT}" /></td>
</tr>
<tr>
<td class="row1" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td><span class="gen"><b>{L_MESSAGE_BODY}</b></span> </td>
</tr>
<tr>
<td valign="middle" align="center"> <br />
<table width="100" border="0" cellspacing="0" cellpadding="5">
<tr align="center">
<td colspan="{S_SMILIES_COLSPAN}" class="gensmall"><b>{L_EMOTICONS}</b></td>
</tr>
<!-- BEGIN smilies_row -->
<tr align="center" valign="middle">
<!-- BEGIN smilies_col -->
<td><a href="javascript:emoticon('{smilies_row.smilies_col.SMILEY_CODE}')"><img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td>
<!-- END smilies_col -->
</tr>
<!-- END smilies_row -->
<!-- BEGIN switch_smilies_extra -->
<tr align="center">
<td colspan="{S_SMILIES_COLSPAN}"><span class="genmed"><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'height=400,resizable=yes,scrollbars=yes,width=450');return false;" target="_phpbbsmilies" class="genmed">{L_MORE_SMILIES}</a></span></td>
</tr>
<!-- END switch_smilies_extra -->
</table>
</td>
</tr>
</table>
</td>
<td class="row2" valign="top">
<table width="450" border="0" cellspacing="0" cellpadding="2">
<tr align="center" valign="middle">
<td><span class="genmed">
<input type="button" class="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onClick="bbstyle(0)" onMouseOver="helpline('b')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onClick="bbstyle(2)" onMouseOver="helpline('i')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onClick="bbstyle(4)" onMouseOver="helpline('u')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onClick="bbstyle(6)" onMouseOver="helpline('q')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onClick="bbstyle(8)" onMouseOver="helpline('c')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onClick="bbstyle(10)" onMouseOver="helpline('l')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onClick="bbstyle(12)" onMouseOver="helpline('o')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onClick="bbstyle(14)" onMouseOver="helpline('p')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
</span></td>

<td><span class="genmed">
<input type="button" class="button" accesskey="swf" name="addbbcode18" value="SWF" style="text-decoration: underline; width: 40px" onClick="bbstyle(18)" onMouseOver="helpline('swf')" />
</span></td>
<!-- BEGIN MultiBB -->
<td><span class="genmed">
<input type="button" class="button" accesskey="{MultiBB.KEY}" name="{MultiBB.NAME}" value="{MultiBB.VALUE}" style="width: {MultiBB.WIDTH}px" onClick="{MultiBB.STYLE}" onMouseOver="helpline('{MultiBB.VALUE}')" />
</span></td>
<!-- END MultiBB -->

</tr>
<tr>
<td colspan="9">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><span class="genmed button"> &nbsp;{L_FONT_COLOR}:
<select class="button" name="addbbcodefontcolor" onChange="bbfontstyle('[color=' + this.form.addbbcodefontcolor.options[this.form.addbbcodefontcolor.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">
<option style="color:black; background-color: white" value="{T_FONTCOLOR1}" class="genmed">{L_COLOR_DEFAULT}</option>
<option style="color:darkred; background-color: white" value="darkred" class="genmed">{L_COLOR_DARK_RED}</option>
<option style="color:red; background-color: white" value="red" class="genmed">{L_COLOR_RED}</option>
<option style="color:orange; background-color: white" value="orange" class="genmed">{L_COLOR_ORANGE}</option>
<option style="color:brown; background-color: white" value="brown" class="genmed">{L_COLOR_BROWN}</option>
<option style="color:yellow; background-color: white" value="yellow" class="genmed">{L_COLOR_YELLOW}</option>
<option style="color:green; background-color: white" value="green" class="genmed">{L_COLOR_GREEN}</option>
<option style="color:olive; background-color: white" value="olive" class="genmed">{L_COLOR_OLIVE}</option>
<option style="color:cyan; background-color: white" value="cyan" class="genmed">{L_COLOR_CYAN}</option>
<option style="color:blue; background-color: white" value="blue" class="genmed">{L_COLOR_BLUE}</option>
<option style="color:darkblue; background-color: white" value="darkblue" class="genmed">{L_COLOR_DARK_BLUE}</option>
<option style="color:indigo; background-color: white" value="indigo" class="genmed">{L_COLOR_INDIGO}</option>
<option style="color:violet; background-color: white" value="violet" class="genmed">{L_COLOR_VIOLET}</option>
<option style="color:white; background-color: white" value="white" class="genmed">{L_COLOR_WHITE}</option>
<option style="color:black; background-color: white" value="black" class="genmed">{L_COLOR_BLACK}</option>
</select> &nbsp;{L_FONT_SIZE}:<select class="button" name="addbbcodefontsize" onChange="bbfontstyle('[size=' + this.form.addbbcodefontsize.options[this.form.addbbcodefontsize.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">
<option value="7" class="genmed">{L_FONT_TINY}</option>
<option value="9" class="genmed">{L_FONT_SMALL}</option>
<option value="12" selected class="genmed">{L_FONT_NORMAL}</option>
<option value="18" class="genmed">{L_FONT_LARGE}</option>
<option value="24" class="genmed">{L_FONT_HUGE}</option>
</select>
</span></td>
<td nowrap="nowrap" align="right"><span class="moderators"><a href="javascript:bbstyle(-1)" onMouseOver="helpline('a')">{L_BBCODE_CLOSE_TAGS}</a></span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="9"><input type="text" name="helpbox" size="45" maxlength="100" style="width:450px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" /></td>
</tr>
</table>
<textarea name="message" rows="15" cols="35" wrap="virtual" style="width:98%" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{MESSAGE}</textarea><br />
<a href="javascript:void(0);" onclick="window.open('http://www.postimage.org/index.php?mode=phpbb&tpl=' + 'MorpheusXPink' + '&forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=500,height=400');return false;">Add image to post</a>
</span></td>
</tr>
<tr>
<td class="row1" valign="top"><span class="gen"><b>{L_OPTIONS}</b></span><br /><span class="gensmall">{HTML_STATUS}<br />{BBCODE_STATUS}<br />{SMILIES_STATUS}</span></td>
<td class="row2"><span class="gen">
<!-- BEGIN switch_html_checkbox -->
<label><input type="checkbox" name="disable_html" {S_HTML_CHECKED} /> <span>{L_DISABLE_HTML}</span></label><br />
<!-- END switch_html_checkbox -->
<!-- BEGIN switch_bbcode_checkbox -->
<label><input type="checkbox" name="disable_bbcode" {S_BBCODE_CHECKED} /> <span>{L_DISABLE_BBCODE}</span></label><br />
<!-- END switch_bbcode_checkbox -->
<!-- BEGIN switch_smilies_checkbox -->
<label><input type="checkbox" name="disable_smilies" {S_SMILIES_CHECKED} /> <span>{L_DISABLE_SMILIES}</span></label><br />
<!-- END switch_smilies_checkbox -->
<!-- BEGIN switch_signature_checkbox -->
<label><input type="checkbox" name="attach_sig" {S_SIGNATURE_CHECKED} /> <span>{L_ATTACH_SIGNATURE}</span></label><br />
<!-- END switch_signature_checkbox -->
<!-- BEGIN switch_notify_checkbox -->
<label><input type="checkbox" name="notify" {S_NOTIFY_CHECKED} /> <span>{L_NOTIFY_ON_REPLY}</span></label><br />
<!-- END switch_notify_checkbox -->
<!-- BEGIN switch_delete_checkbox -->
<label><input type="checkbox" name="delete" /> <span>{L_DELETE_POST}</span></label><br />
<!-- END switch_delete_checkbox -->
<!-- BEGIN switch_type_toggle -->
{S_TYPE_TOGGLE}
<!-- END switch_type_toggle -->
</td>
</tr>
{POLLBOX}
<tr>
<td class="catBottom" colspan="2" align="center" height="25"> {S_HIDDEN_FORM_FIELDS}<input type="submit" accesskey="s" tabindex="6" name="post" class="mainoption" value="{L_SUBMIT}" />&nbsp;<input type="submit" tabindex="5" name="preview" class="mainoption" value="{L_PREVIEW}" /></td>
</tr>
</table>{TPL_FTR}

<table width="100%" cellspacing="0" border="0" align="center" cellpadding="4">
<tr>
<td align="right" valign="top" class="row-right"><span class="gensmall">{S_TIMEZONE}</span></td>
</tr>
</table>
</form>

<table width="100%" cellspacing="0" border="0" align="center">
<tr>
<td valign="top" align="right">{JUMPBOX}</td>
</tr>
</table>

{TOPIC_REVIEW_BOX}


{TPL_CONTENT_BOTTOM}[/code]

Tanks so much to reply to my issue.

Best regards
Scraablee - Free Flash Games!

Sorry for my bad english ( Im american ) :D

User avatar
Sultani
Registered User
Posts: 125
Joined: Wed Dec 13, 2006 8:42 pm
Location: California, Orange County
Contact:

Post by Sultani » Fri Jan 19, 2007 9:59 pm

ok, with your help i have figure it out, i just compared the subsilver file with morpheus, and i have find the 2 lines.

But this 2 lines in morpheus are diferent.
as you can see, i have:

Code: Select all

<select class="button" name="addbbcodefontcolor" onChange="bbfontstyle('[color=' + this.form.addbbcodefontcolor.options[this.form.addbbcodefontcolor.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">
and

Code: Select all

</select> &nbsp;{L_FONT_SIZE}:<select class="button" name="addbbcodefontsize" onChange="bbfontstyle('[size=' + this.form.addbbcodefontsize.options[this.form.addbbcodefontsize.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">
on the morpheus theme.

What can i do on this 2 lines to increase the value?

Tanks a lot for the support
Scraablee - Free Flash Games!

Sorry for my bad english ( Im american ) :D

PizzaHuge
Registered User
Posts: 360
Joined: Sun Apr 10, 2005 3:36 am

Post by PizzaHuge » Fri Jan 19, 2007 10:04 pm

Hi Sultani

that code looks fine for your template you are using, you dont need to do nothing else if not subSilver template

and accord to that if you want to add button for youtube and wmp, you will add it after this flash line:

Code: Select all

<td><span class="genmed"> 
  <input type="button" class="button" accesskey="swf" name="addbbcode18" value="SWF" style="text-decoration: underline; width: 40px" onClick="bbstyle(18)" onMouseOver="helpline('swf')" /> 
</span></td>
for example:

Code: Select all

<td><span class="genmed"> 
  <input type="button" class="button" accesskey="youtube" name="addbbcode20" value="YouTube" style="text-decoration: underline; width: 40px" onClick="bbstyle(20)" onMouseOver="helpline('youtube')" /> 
</span></td>
and

Code: Select all

<td><span class="genmed"> 
  <input type="button" class="button" accesskey="wmp" name="addbbcode22" value="WMP" style="text-decoration: underline; width: 40px" onClick="bbstyle(22)" onMouseOver="helpline('wmp')" /> 
</span></td>
and the array should be:

Code: Select all

bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','[img]','[/img]','','','[swf width=400 height=300]','[/swf]','[youtube]','[/youtube]','[wmp]','[/wmp]');
[/code]
Last edited by PizzaHuge on Sat Jan 20, 2007 7:26 pm, edited 1 time in total.

User avatar
Sultani
Registered User
Posts: 125
Joined: Wed Dec 13, 2006 8:42 pm
Location: California, Orange County
Contact:

Post by Sultani » Fri Jan 19, 2007 10:36 pm

tanks a lot for your help, i have follow what u say but now appears me 2 buttons with youtube, one of them have the old problem, when i hit that button he put the swf tag.The other button works fine.

But i will ask suport on the youtube mod treahd.

Tanks for the great work, and sorry my english (im from portugal)

Best regards
Scraablee - Free Flash Games!

Sorry for my bad english ( Im american ) :D

PizzaHuge
Registered User
Posts: 360
Joined: Sun Apr 10, 2005 3:36 am

Post by PizzaHuge » Sat Jan 20, 2007 7:26 pm

Sultani wrote: tanks a lot for your help, i have follow what u say but now appears me 2 buttons with youtube, one of them have the old problem, when i hit that button he put the swf tag.The other button works fine.

But i will ask suport on the youtube mod treahd.

Tanks for the great work, and sorry my english (im from portugal)

Best regards


it is because of the multi bbcode function that you have added earlier when you installed you tube bbcode mod

just delete those for multi bbcode then you will be fine:

Code: Select all

#
#-----[ OPEN ]---------------------------------
#
includes/bbcode.php

#
#-----[ FIND ]---------------------------------
#
$EMBB_widths = array(''

#
#-----[ IN-LINE FIND ]---------------------------------
#
 ,'60'

#
#-----[ IN-LINE , DELETE IT ]---------------------------------
#
,'60'

#
#-----[ FIND ]---------------------------------
#
$EMBB_values = array(''

#
#-----[ IN-LINE FIND ]---------------------------------
#
,'YouTube'

#
#-----[ IN-LINE , DELETE IT]---------------------------------
#
,'YouTube'


erhangazi84
Registered User
Posts: 6
Joined: Thu Jun 08, 2006 7:21 pm
Contact:

Post by erhangazi84 » Sun Feb 04, 2007 5:49 pm

This is the best and working flash BBcode I have ever tried. Thanks a lot for the posting posting....

erhangazi84
Registered User
Posts: 6
Joined: Thu Jun 08, 2006 7:21 pm
Contact:

Post by erhangazi84 » Tue Feb 06, 2007 10:08 am

http://ingilizcegrammar.com/forum/templ ... g_body.tpl

here is my posting_body.tpl. I cannot find where I made mistake. swf flash mod is working well. but the color and font size is not working. I changed addbbcode for 2 values (18-20 20-22) but though color and font size is not working....

erhangazi84
Registered User
Posts: 6
Joined: Thu Jun 08, 2006 7:21 pm
Contact:

hi

Post by erhangazi84 » Tue Feb 06, 2007 10:14 am

i am sorry, i found that you cant download the posting_body.tpl file from the server.

here it is...

http://rapidshare.com/files/15161007/po ... y.tpl.html

PizzaHuge
Registered User
Posts: 360
Joined: Sun Apr 10, 2005 3:36 am

Post by PizzaHuge » Tue Feb 06, 2007 7:45 pm

I see you have you tube bbcode mod install, please do the following :

Code: Select all

# 
#-----[ OPEN ]--------------------------------- 
# 
includes/bbcode.php 

# 
#-----[ FIND ]--------------------------------- 
# 
$EMBB_widths = array('' 

# 
#-----[ IN-LINE FIND ]--------------------------------- 
# 
 ,'60' 

# 
#-----[ IN-LINE , DELETE IT ]--------------------------------- 
# 
,'60' 

# 
#-----[ FIND ]--------------------------------- 
# 
$EMBB_values = array('' 

# 
#-----[ IN-LINE FIND ]--------------------------------- 
# 
,'YouTube' 

# 
#-----[ IN-LINE , DELETE IT]--------------------------------- 
# 
,'YouTube' 

Code: Select all

# 
#-----[ OPEN ]--------------------------------- 
# 
 posting_body.tpl

# 
#-----[ FIND ]--------------------------------- 
# 
<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="swf" name="addbbcode18" value="SWF" style="text-decoration: underline; width: 40px" onClick="bbstyle(18)" onMouseOver="helpline('swf')" /> 
			  </span></td>

# 
#-----[ AFTER, ADD ]--------------------------------- 
# 
<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="youtube" name="addbbcode20" value="YouTube" style="text-decoration: underline; width: 60px" onClick="bbstyle(20)" onMouseOver="helpline('youtube')" /> 
			  </span></td>

# 
#-----[ FIND 2 LINES ]--------------------------------- 
# 
<select name="addbbcode<select name="addbbcode20" onChange="bbfontstyle('[color=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">

AND
</select> &nbsp;{L_FONT_SIZE}:<select name="addbbcode22" onChange="bbfontstyle('[size=' + this.form.addbbcode22.options[this.form.addbbcode22.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">

# 
#-----[ REPLACE ]--------------------------------- 
# 
20 - 22 

# 
#-----[ WITH ]--------------------------------- 
# 
22 - 24


Post Reply

Return to “[2.0.x] MODs in Development”

Who is online

Users browsing this forum: No registered users and 16 guests

cron