du flash dans ma signature avec phpbb
Dernière réponse : dans Logiciels de bureau
c'est possible ?
j'ai chercher un peu et j'ai vu qu'il fallait mettre : [swf]http://www.le site.com/le_lien.swf[/swf] mais ca ne marche pas ! :-?
j'ai chercher un peu et j'ai vu qu'il fallait mettre : [swf]http://www.le site.com/le_lien.swf[/swf] mais ca ne marche pas ! :-?
Autres pages sur : flash signature phpbb
Lassé par la pub ? Créez un compte
1° t'entative de hacking .
2° oui heu..atten je vais voir si je trouve une solution pour toi
Edition :
## Fichiers à modifier :
## - bbcode.php //répertoire "includes"
## - posting_body.tpl //répertoire Templates/{Template utilisé}/
## - bbcode.tpl //répertoire Templates/{Template utilisé}/
################################################################
Dans "bbcode.php" :
Après la ligne :
$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']);
Ajouter :
$bbcode_tpl['swf1'] = str_replace('{URL}', '\\1', $bbcode_tpl['swf']);
$bbcode_tpl['swf2'] = str_replace('{WIDTH}', '\\1', $bbcode_tpl['swf_perso']);
$bbcode_tpl['swf2'] = str_replace('{HEIGHT}', '\\2', $bbcode_tpl['swf2']);
$bbcode_tpl['swf2'] = str_replace('{URL}', '\\3', $bbcode_tpl['swf2']);
Après la ligne :
$replacements[5] = $bbcode_tpl['email'];
Ajouter :
// [swf]swf[/swf] code..
$patterns[6] = "#\[swf:$uid\](.*?)\[/swf:$uid\]#si";
$replacements[6] = $bbcode_tpl['swf1'];
// [swf width=xxxx height=xxx]swf[/swf] code..
$patterns[7] = "#\[swf:$uid width=([0-9]+?) height=([0-9]+?)\](.*?)\[/swf:$uid\]#si";
$replacements[7] = $bbcode_tpl['swf2'];
Après la ligne :
$text = preg_replace("#\
#si", "
", $text);
Ajouter :
//[swf]swf[/swf]
$text = preg_replace("#\[swf\](.*?)\[\/swf\]#si","[swf:$uid]\\1[/swf:$uid]", $text);
//[swf width=XXX heigth=XXX]swf[/swf]
$text = preg_replace("#\[swf width=(.*?) height=(.*?)\](.*?)\[\/swf\]#si","[swf:$uid width=\\1 height=\\2]\\3[/swf:$uid]", $text);
Dans "posting_body.tpl" :
Après la ligne :
f_help = "{L_BBCODE_F_HELP}";
Ajouter :
z_help = "[swf]http://swf_url[/swf] ou [swf width=XXX height=XXX]http://...[/swf] (alt+z)";
Modifier la ligne :
bbtags = new Array('','','','','','','','
','');
Par :
bbtags = new Array('','','','','','','','
','','[swf]','[/swf]');
Après les lignes :
bbtags = new Array('','','','','','','','
','','','[swf]','[/swf]');
Après les lignes :
<td><span class="genmed">
<input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(this.form,16)" onMouseOver="helpline('w')" />
</span></td>
Ajouter :
<td><span class="genmed">
<input type="button" class="button" accesskey="z" name="addbbcode18" value="SWF" style="text-decoration: underline; width: 40px" onClick="bbstyle(18)" onMouseOver="helpline('z')" />
</span></td>
Modifier la ligne :
<select name="addbbcode18" onChange="bbfontstyle(this.form, '.value + ']', '.value + ']', '', '.value + ']', '')" onMouseOver="helpline('f')">
Dans "bbcode.tpl" :
Ajouter à la fin (après "<!-- END email -->") le bloc suivant :
<!-- BEGIN swf -->
<EMBED SRC="{URL}" MENU=FALSE QUALITY=HIGH TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?..."></EMBED>
<!-- END swf -->
<!-- BEGIN swf_perso -->
<EMBED SRC="{URL}" MENU=FALSE QUALITY=HIGH WIDTH="{WIDTH}" HEIGHT="{HEIGHT}" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?..."></EMBED>
<!-- END swf_perso -->
" alt="" class="imgLz frmImg" />[/url][/size]
2° oui heu..atten je vais voir si je trouve une solution pour toi
Edition :
## Fichiers à modifier :
## - bbcode.php //répertoire "includes"
## - posting_body.tpl //répertoire Templates/{Template utilisé}/
## - bbcode.tpl //répertoire Templates/{Template utilisé}/
################################################################
Dans "bbcode.php" :
Après la ligne :
$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']);
Ajouter :
$bbcode_tpl['swf1'] = str_replace('{URL}', '\\1', $bbcode_tpl['swf']);
$bbcode_tpl['swf2'] = str_replace('{WIDTH}', '\\1', $bbcode_tpl['swf_perso']);
$bbcode_tpl['swf2'] = str_replace('{HEIGHT}', '\\2', $bbcode_tpl['swf2']);
$bbcode_tpl['swf2'] = str_replace('{URL}', '\\3', $bbcode_tpl['swf2']);
Après la ligne :
$replacements[5] = $bbcode_tpl['email'];
Ajouter :
// [swf]swf[/swf] code..
$patterns[6] = "#\[swf:$uid\](.*?)\[/swf:$uid\]#si";
$replacements[6] = $bbcode_tpl['swf1'];
// [swf width=xxxx height=xxx]swf[/swf] code..
$patterns[7] = "#\[swf:$uid width=([0-9]+?) height=([0-9]+?)\](.*?)\[/swf:$uid\]#si";
$replacements[7] = $bbcode_tpl['swf2'];
Après la ligne :
$text = preg_replace("#\
Ajouter :
//[swf]swf[/swf]
$text = preg_replace("#\[swf\](.*?)\[\/swf\]#si","[swf:$uid]\\1[/swf:$uid]", $text);
//[swf width=XXX heigth=XXX]swf[/swf]
$text = preg_replace("#\[swf width=(.*?) height=(.*?)\](.*?)\[\/swf\]#si","[swf:$uid width=\\1 height=\\2]\\3[/swf:$uid]", $text);
Dans "posting_body.tpl" :
Après la ligne :
f_help = "{L_BBCODE_F_HELP}";
Ajouter :
z_help = "[swf]http://swf_url[/swf] ou [swf width=XXX height=XXX]http://...[/swf] (alt+z)";
Modifier la ligne :
bbtags = new Array('','','','','','','
Citation :
','','
','
- ','
- ','
Par :
bbtags = new Array('','','','','','','
Citation :
','','
','
- ','
- ','
Après les lignes :
bbtags = new Array('','','','','','','
Citation :
','','
','
- ','
- ','
Après les lignes :
<td><span class="genmed">
<input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(this.form,16)" onMouseOver="helpline('w')" />
</span></td>
Ajouter :
<td><span class="genmed">
<input type="button" class="button" accesskey="z" name="addbbcode18" value="SWF" style="text-decoration: underline; width: 40px" onClick="bbstyle(18)" onMouseOver="helpline('z')" />
</span></td>
Modifier la ligne :
<select name="addbbcode18" onChange="bbfontstyle(this.form, '.value + ']', '.value + ']', '', '.value + ']', '')" onMouseOver="helpline('f')">
Dans "bbcode.tpl" :
Ajouter à la fin (après "<!-- END email -->") le bloc suivant :
<!-- BEGIN swf -->
<EMBED SRC="{URL}" MENU=FALSE QUALITY=HIGH TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?..."></EMBED>
<!-- END swf -->
<!-- BEGIN swf_perso -->
<EMBED SRC="{URL}" MENU=FALSE QUALITY=HIGH WIDTH="{WIDTH}" HEIGHT="{HEIGHT}" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?..."></EMBED>
<!-- END swf_perso -->
" alt="" class="imgLz frmImg" />[/url][/size]
dsl sa se melange unpeu donc rent toi ici :
http://forums.phpbb-fr.com/viewtopic.php?t=8113&highlight=bbcode+flash
http://forums.phpbb-fr.com/viewtopic.php?t=8113&highlight=bbcode+flash
Lassé par la pub ? Créez un compte