bbcode img topic title to alt

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
AzadKing
Mitglied
Beiträge: 71
Registriert: 28.01.2007 15:11

bbcode img topic title to alt

Beitrag 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
AzadKing
Mitglied
Beiträge: 71
Registriert: 28.01.2007 15:11

Beitrag von AzadKing »

bump
AzadKing
Mitglied
Beiträge: 71
Registriert: 28.01.2007 15:11

Beitrag von AzadKing »

bbbbbbuuummppp mal wieder :D
hat denn niemand so ein mod... oder weiß warum der nicht geht ?
Online Games - Your Soruce for Freegames
Antworten

Zurück zu „phpBB 2.0: Mod Support“