Pagina 1 van 1

Een taalvariabele aan mod toevoegen

Geplaatst: 31 jul 2007, 09:37
door saaiber
  • Modificatie & Versie: Simple image upload
    Directe link naar de modificatie:http://www.postimage.org/mod.php
    Adres van je forum: http://www.zonderdank.be/forum/
    phpBB versie:3.0 RC4
    Heb je onlangs een andere modificatie of stijl geïnstalleerd? Clean install RC4

    Wat is het probleem? Ik zou graag deze mod taalvariabel maken maar weet niet waar de variabelen toe te voegen

Code: Selecteer alles

############################################################## 
## MOD Title: Simple Image Upload
## MOD Author: Sium < admin@postimage.org > (N/A) http://www.postimage.org
## MOD Description:
##		This mod integrates image hosting with phpBB3
##		It makes image upload very simple. All images are
##		hosted on remote image hosting service, not on
##		your forum. When user uploads image, script
##		creates a thumbnail for image and appends bbcode
##		to post user is typing. User doesn't need to
##		know anything about bbcode. And this mod is very
##		simple to install.
## MOD Version: 1.0.5
## 
## Installation Level:  Easy
## Installation Time:   ~1 Minutes
## Files To Edit:       "posting_editor.html" or "posting_body.html"
## Included Files:      addform.html
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2 
############################################################## 
## Author Notes:
## If you run into any problems or have any questions feel free to email me at admin@postimage.org.
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 

# 
#-----[ COPY ]------------------------------------------ 
# 

copy addform.html to ./addform.html

# 
#-----[ EDIT TEMPLATES (Administration Control Panel->Templates->Edit) ]--------------------------------------------- 
# 

"posting_editor.html" or "posting_body.html"

# 
#-----[ FIND ]--------------------------------------------- 
# 

}</textarea>

# 
#-----[ AFTER, ADD ]--------------------------------------------- 
# 

<br />&nbsp;&bull;&nbsp;<a href="javascript:void(0);" onclick="window.open('http://www.postimage.org/index.php?mode=phpbb&lang=dutch&forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=500,height=400');return false;">Add image to post</a>

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM
Bovenstaande mod bevat:

Code: Selecteer alles

<br />&nbsp;&bull;&nbsp;<a href="javascript:void(0);" onclick="window.open('http://www.postimage.org/index.php?mode=phpbb&lang=dutch&forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=500,height=400');return false;">Add image to post</a>
Nu zou ik graag "Add image to post" taalvariabel maken en eventueel (maar niet zo belangrijk) ook de "&lang=dutch" indien dit mogelijk zou zijn. Bij een vorige versie voor phpBB2 was het mogelijk om de "add image to post" taalafhankelijk te maken met een {ADD_IMAGE} veld.

Is er iemand hier die mij kan uitleggen hoe ik dat best aanpak?

Grtjs,

Nic

Re: Een taalvariabele aan mod toevoegen

Geplaatst: 31 jul 2007, 10:56
door Stef
Je plaatst {L_ADD_IMAGE} in het template en daarna voeg je in het taalbestand de taalvariabele toe.

Re: Een taalvariabele aan mod toevoegen

Geplaatst: 31 jul 2007, 11:12
door saaiber
Fantastisch :) Ik dacht dat ik die variabele eerst in posting.php moest gaan definieren, blijkbaar niet dus ;)

Enorm bedankt Stef!

Grtz,

Nic

Re: Een taalvariabele aan mod toevoegen

Geplaatst: 02 aug 2007, 16:52
door brandsrus
saaiber schreef:Fantastisch :) Ik dacht dat ik die variabele eerst in posting.php moest gaan definieren, blijkbaar niet dus ;)

Enorm bedankt Stef!

Grtz,

Nic
Dat was in phpBB 2.0.x zo maar tegenwoordig met phpBB 3.0 niet meer nodig 8-)