[rootturkhacks.com~]
duyuru LiNK KISALTMAK / TEMA VEYA SCRiPT iSTEĞiNDE BULUNMAK YASAKTIR!
duyuru GiZLi iÇERiKLERE "asdafsdfsdf" TARZI YORUM YAPMAK BAN SEBEBIDIR !
hack forum

[MOD]phpBB Members Webpage v.1/üye websayfaları

#1
Kod:
################################################## ######
## MOD Title: Phpbb Member's Webpage
## MOD Author: steve sketchley
## MOD Description: This mod will allow users to create there own member webpage, they can upload photos and description.
they can create a webpage by going to http://yourforum.com/webpage.php when logged in.
## MOD Version: 1.0.0
## Compatibility: 2.0.21
##
## PLEASE LEAVE ALL THE COPYRIGHT NOTICES IN PLACE, THANK YOU.
for support of this mod please see our forum http://www.webmastersroom.com

and for demo

http://www.webmastersroom.com/webpage/demo


##
## Installation Level: medium
## Installation Time: 15 min
## Files To Edit:
## includes/page_header.php,
## language/lang_english/lang_main.php
## .htaccess
##
##
##
## Included Files:
## webpage.php
## webpage_view.php
## templates/subSilver/mwp_view.tpl
## templates/subSilver/mwp_editor.tpl
## templates/subSilver/mwp_footer.tpl
## templates/subSilver/mwp_header.tpl
## mwpdata/images/
##
##
################################################## ###############
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
################################################## ###############

START OF MOD

run this code in phpmyadmin to create database tables

code must be run in same database phpbb is in.

It will add 2 tables to your phpbb database.



DROP TABLE IF EXISTS `phpbb_mwp_images`;
CREATE TABLE `phpbb_mwp_images` (
`image_id` mediumint(8) NOT NULL auto_increment,
`image_user_id` mediumint(8) NOT NULL default '0',
`image_name` varchar(64) NOT NULL default '',
PRIMARY KEY (`image_id`),
KEY `image_user_id` (`image_user_id`)
) ENGINE=MyISAM;

DROP TABLE IF EXISTS `phpbb_mwp_pages`;
CREATE TABLE `phpbb_mwp_pages` (
`page_id` mediumint(8) NOT NULL auto_increment,
`page_user_id` mediumint(8) NOT NULL default '0',
`page_alias` varchar(32) NOT NULL default '',
`page_title` varchar(100) NOT NULL default '',
`page_description` text NOT NULL,
`page_email` varchar(50) NOT NULL default '',
PRIMARY KEY (`page_id`),
UNIQUE KEY `INDEX` (`page_user_id`,`page_alias`)
) ENGINE=MyISAM;


#
#----[ OPEN ]---------------------------------------------
#
.htaccess

add this code to file.

RewriteEngine on
RewriteRule ^webpage/([^/\.]+)/?$ webpage_view.php?webpage=$1 [L]

#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php

#
#-----[ FIND ]------------------------------------------
#
$template->assign_vars(array(

#
#-----[ AFTER, ADD ]------------------------------------------
#
// START: 'MEMBERS WEBPAGE' MOD
'L_MY_WEBPAGE' => $lang['mwp_my_webpage'],
'U_MY_WEBPAGE' => append_sid('webpage.'.$phpEx),
// END: 'MEMBERS WEBPAGE' MOD

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
#
//
// That's all, Folks!
// -------------------------------------------------

#
#-----[ BEFORE, ADD ]------------------------------------------
#
// START: 'MEMBERS WEBPAGE' MOD
$lang['mwp_my_webpage'] = 'My Webpage';

$lang['mwp_create_new'] = 'Create New';
$lang['mwp_view_update'] = 'View/Update';
$lang['mwp_uploaded_pictures'] = 'Uploaded Pictures';

$lang['mwp_create'] = 'Create';
$lang['mwp_reset'] = 'Reset';
$lang['mwp_update'] = 'Update';
$lang['mwp_upload'] = 'Upload';
$lang['mwp_delete'] = 'Delete';

$lang['mwp_updated'] = 'Updated';
$lang['mwp_not_updated'] = 'Not updated';
$lang['mwp_created'] = 'Created';
$lang['mwp_not_created'] = 'Not created';
$lang['mwp_uploaded'] = 'Uploaded';
$lang['mwp_not_uploaded'] = 'Not uploaded';
$lang['mwp_deleted'] = 'Deleted';
$lang['mwp_not_deleted'] = 'Not deleted';

$lang['mwp_alias'] = 'name of your webpage';
$lang['mwp_alias_explain'] = 'Your page URL will be like this http://thishost.com/webpage/YOURNAME';
$lang['mwp_url'] = 'URL of your webpage';
$lang['mwp_url_explain'] = 'You can give it to your friends';
$lang['mwp_title'] = 'Title';
$lang['mwp_description'] = 'Description';
$lang['mwp_description_explain'] = '';
$lang['mwp_email'] = 'E-mail address';
$lang['mwp_no_images'] = 'No images';

$lang['mwp_limitations'] = 'You can upload only 3 pictures (.jpg, .gif, .png) with max size 200x150';

$lang['mwp_not_exists'] = 'Page not found';
// END: 'MEMBERS WEBPAGE' MOD

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl

#
#-----[ FIND ]------------------------------------------
#
<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>&nbsp; &nbsp;<a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>&nbsp; &nbsp;<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp;</span></td>
</tr>

#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- BEGIN switch_user_logged_in -->
<tr>
<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_MY_WEBPAGE}" class="mainmenu">{L_MY_WEBPAGE}</a>&nbsp;</span></td>
</tr>
<!-- END switch_user_logged_in -->

#
#-----[ COPY ]-------------------------------------------------------
#
copy webpage.php to webpage.php
copy webpage_view.php to webpage_view.php
copy templates/subSilver/*.* to templates/subSilver/*.*

#
#-----[ CREATE FOLDERS INSTRUCTIONS ]------------------------------------------
#
Create folder: mwpdata
Create folder: mwpdata/images ---- CHMOD THIS FOLDER TO 777


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#

# EoM
imza
Eski Kurt
Alıntı
#2
Teşekkürler
imza
Alıntı


Benzer Konular...
Konu: Yazar Cevaplar: Gösterim: Son Mesaj
  phpBB nedir CyberHawk 2 342 06-03-2019, 09:35 AM
Son Mesaj: CyberHawk
  Forum Sitesi Kurulumu [phpbb] Full Anlatım Son Surum CyberHawk 0 366 05-20-2019, 05:29 PM
Son Mesaj: CyberHawk
  [MOD] Only Active Members Can Post URLs MiRaT 0 392 01-28-2018, 09:16 PM
Son Mesaj: MiRaT
  Light online mod / phpbb hızlandırma MiRaT 0 425 01-28-2018, 09:04 PM
Son Mesaj: MiRaT
  [ezPortal] ezPortal v2.1.8c phpBB 2.0.x MiRaT 0 467 01-28-2018, 09:00 PM
Son Mesaj: MiRaT



Bu konuyu görüntüleyen kullanıcı(lar): 1 Ziyaretçi
brazzers premium accounts izmit escort porno beylikdüzü escort avcılar escort porno cami halısı vdcasino vdcasino giriş ilbet casino siteleri taraftarium24 ilbet giriş kurtköy escort izmir escort izmir escort izmir escort