hulp bij pbpbb mod omzetten naar e107
ik ben sinds gisteren overgestapt van phpbb naar e107 met forum, nu had ik bij phpbb een handig linkje die images deed uploaden naar een andere website en die direct goed zet in het textvlak..
Nu is het zo dat bij e107 het images resizen vaak een huge probleem is, dus het zou wel handig zijn als deze mod ook voor e107 zou zijn. ;)
Nu heb ik al een beetje zitten rotzooien maar van php coden heb ik niet echt superveel verstand..
Ik zou het erg op prijs stellen als iemand mij hiermee zou kunnen helpen :)
Alvast bedankt,
Pascal
Code=
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
##############################################################
## MOD Title: Simple Image Upload
## MOD Author: TehShunT < [email protected] > (Phil Santoro) http://www.postimage.org
## MOD Description:
## This mod integrates image hosting with phpBB
## 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.3
##
## Installation Level: Easy
## Installation Time: ~1 Minutes
## Files To Edit: 3
## templates/subSilver/posting_body.tpl
## language/lang_english/lang_main.php
## posting.php
## Included Files: 1
## addform.html
## 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:
##
##############################################################
## MOD History:
##
## 2006-05-14 - Version 1.0.3
## - Updated Install code
##
## 2006-04-21 - Version 1.0.2
## - Updated Install code
##
## 2006-04-09 - Version 1.0.1
## - No longer requires eXtreme Styles mod
## - Updated Install code
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]------------------------------------------
#
copy addform.html to addform.html
#
#-----[ OPEN ]---------------------------------------------
#
posting.php
#
#-----[ FIND ]---------------------------------------------
#
'L_DELETE_POST' => $lang['Delete_post'],
#
#-----[ AFTER, ADD ]---------------------------------------------
#
'L_ADD_IMAGE' => $lang['Add_image_to_post'],
#
#-----[ OPEN ]---------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]---------------------------------------------
# around line 1027
?>
## MOD Title: Simple Image Upload
## MOD Author: TehShunT < [email protected] > (Phil Santoro) http://www.postimage.org
## MOD Description:
## This mod integrates image hosting with phpBB
## 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.3
##
## Installation Level: Easy
## Installation Time: ~1 Minutes
## Files To Edit: 3
## templates/subSilver/posting_body.tpl
## language/lang_english/lang_main.php
## posting.php
## Included Files: 1
## addform.html
## 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:
##
##############################################################
## MOD History:
##
## 2006-05-14 - Version 1.0.3
## - Updated Install code
##
## 2006-04-21 - Version 1.0.2
## - Updated Install code
##
## 2006-04-09 - Version 1.0.1
## - No longer requires eXtreme Styles mod
## - Updated Install code
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]------------------------------------------
#
copy addform.html to addform.html
#
#-----[ OPEN ]---------------------------------------------
#
posting.php
#
#-----[ FIND ]---------------------------------------------
#
'L_DELETE_POST' => $lang['Delete_post'],
#
#-----[ AFTER, ADD ]---------------------------------------------
#
'L_ADD_IMAGE' => $lang['Add_image_to_post'],
#
#-----[ OPEN ]---------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]---------------------------------------------
# around line 1027
?>
#
#-----[ BEFORE, ADD ]---------------------------------------------
#
$lang['Add_image_to_post'] = 'Add image to post';
#
#-----[ OPEN ]---------------------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]---------------------------------------------
# around line 1021
<textarea name="message" rows="15" cols="35" wrap="virtual" style="width:450px" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{MESSAGE}</textarea>
#
#-----[ IN-LINE FIND ]------------------------------------------
#
</textarea>
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
<br /><span class="genmed"><a href="javascript:void(0);" onclick="window.open('http://www.postimage.org/index.php?mode=phpbb&tpl=.&forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=500,height=400');return false;">{L_ADD_IMAGE}</a></span>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
en dit staat in de addform.html:
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<html>
<head>
</head>
<body>
<script language="javascript" type="text/javascript">
<!--
function add_code()
{
var text = unescape(document.location.search.substring(1));
opener.document.forms['post'].message.value = opener.document.forms['post'].message.value + text;
opener.focus();
window.close();
}
add_code();
//-->
</script>
</body>
</html>
<head>
</head>
<body>
<script language="javascript" type="text/javascript">
<!--
function add_code()
{
var text = unescape(document.location.search.substring(1));
opener.document.forms['post'].message.value = opener.document.forms['post'].message.value + text;
opener.focus();
window.close();
}
add_code();
//-->
</script>
</body>
</html>
Gewijzigd op 01/01/1970 01:00:00 door Pascal
*bump*
Gewijzigd op 01/01/1970 01:00:00 door Pascal
en in de 1ste geplaatse file jier in je 1ste post op Line 2 staat :
MOD Author: TehShunT < [email protected] > (Phil Santoro) http://www.postimage.org
Gewijzigd op 01/01/1970 01:00:00 door Kevichill
Er valt vast wel een module voor e107 te bouwen die hetzelfde kan als jouw module bij het phpBB forum, maar ik denk niet deze module in e107 kan gaan werken. Simpelweg omdat phpBB en e107 niet op de zelfde manier met hun code omgaan..
ik zal de andere forum/maker raadplegen
sorry voor het felle reageren :(
Gewijzigd op 01/01/1970 01:00:00 door Pascal