Seite 1 von 1

bbcode img topic title to alt

Verfasst: 07.01.2008 02:07
von AzadKing
Hallo,

ich bekomme immer einen Fehler wenn ich diesen Mod einbaue.
Alles ist in Ordnung nur das Drama fängt an wenn ich das hier mache.

Sobald ich das , &$alt wieder raus neheme geht es wieder. Ansonsten macht er folgende Meldung:

Warning: Missing argument 3 for bbencode_second_pass(), called in /WWWROOT/122313/htdocs/viewforum.php on line 781 and defined in /WWWROOT/122313/htdocs/includes/bbcode.php on line 128

Code: Alles auswählen

#-----[ FIND ]------------------------------------------
#
function bbencode_second_pass($text, $uid)
#
#-----[ REPLACE WITH ]------------------------------------------
#
function bbencode_second_pass($text, $uid, &$alt)
#
#-----[ FIND ]------------------------------------------

Code: Alles auswählen

##############################################################
## MOD Title: add topic title to alt tag for img bbcode
## MOD Author: angelside < n/a > (Sevdin Filiz) http://www.canver.net
## MOD Description: This mod add topic title to all [img] bbcodes a topic inside.
## MOD Version: 1.0.0
## 
## Installation Level: Easy
## Installation Time: 5 minutes
## Files To Edit: includes/bbcode.php
##                viewtopic.php
##                templates/subSilver/bbcode.tpl
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes: This mod add topic title to all [img] bbcodes a topic inside.
## 
## like this
## 
## <img src="img.gif" alt="topic title">
##############################################################
## MOD History:
## 
## 2007-02-28 - Version 1.0.0
##  - first release
## 
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
function bbencode_second_pass($text, $uid)
#
#-----[ REPLACE WITH ]------------------------------------------
#
function bbencode_second_pass($text, $uid, &$alt)
#
#-----[ FIND ]------------------------------------------
#
	// [img]image_url_here[/img] code..
	// This one gets first-passed..
#
#-----[ AFTER, ADD ]------------------------------------------
#
	$bbcode_tpl['img'] = str_replace('{ALT}', $alt, $bbcode_tpl['img']);
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
		$message = ($board_config['allow_bbcode']) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace("/\:$bbcode_uid/si", '', $message);
#
#-----[ REPLACE WITH ]------------------------------------------
#
		$message = ($board_config['allow_bbcode']) ? bbencode_second_pass($message, $bbcode_uid, $topic_title) : preg_replace("/\:$bbcode_uid/si", '', $message);
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/bbcode.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN img --><img src="{URL}" border="0" /><!-- END img -->
#
#-----[ REPLACE WITH ]------------------------------------------
#
<!-- BEGIN img --><img src="{URL}" border="0" alt="{ALT}" /><!-- END img -->
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

Verfasst: 12.01.2008 13:38
von AzadKing
bump

Verfasst: 21.03.2008 23:05
von AzadKing
bbbbbbuuummppp mal wieder :D
hat denn niemand so ein mod... oder weiß warum der nicht geht ?