Download
-------
Linkpartners
Download

Je html klopt niet helemaal.
Code: Selecteer alles
<table width="100%" align="center" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<td align="center" class="catHead" height="25"><span class="cattitle"><b>LinkPartners</b></td>
</tr>
<tr>
<td class="row1" align="center">Hier je links , banners.</td>
</tr></table>
Technisch gezien is elke aanpassing (modification) een mod, maar ik begrijp wat je bedoelt.Stefkuh schreef:Maar zijn dit nou mods?
Code: Selecteer alles
<?php
/***************************************************************************
* <php.filename/>
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: $
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
define('IN_PHPBB', true);
if( !empty($setmodules) )
{
$file = basename(__FILE__);
$module['General']['BTPort Pages Admin'] = "$file";
return;
}
$phpbb_root_path = './../';
include($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
$sql = "SELECT * FROM phpbb_btport";
$result = $db->sql_query($sql);
if ($result) {
while ($row = $db->sql_fetchrow($result)) {
$template->assign_block_vars('items_row', array(
'TITLE' => $row['portal_title'],
'U_EDIT' => append_sid("admin_btport.$phpEx?edit=".$row['portal_id']) // Omgewisseld
)
);
}
}
if (!empty($HTTP_GET_VARS['edit'])) {
message_die(GENERAL_MESSAGE, "Go to phpMyAdmin or something...");
}
if (!empty($HTTP_GET_VARS['add'])) {
$title = $HTTP_POST_VARS['portal_title_new'];
$text = $HTTP_POST_VARS['portal_text_new'];
$forum = $HTTP_POST_VARS['portal_forum_new'];
$sql = "INSERT INTO `phpbb_btport` ( `portal_id` , `portal_text` , `portal_title` , `portal_forum` ) "
. " VALUES ( '', '$text', '$title', '$forum' );"
. ' ';
$db->sql_query($sql) or message_die(GENERAL_MESSAGE, 'INSERT QUERY FAILED!!!!<br>' . $sql);
message_die(GENERAL_MESSAGE, 'Page added!!!!!');
}
//
// Start output of page
//
$page_title = $lang['Index'];
$template->set_filenames(array(
'body' => 'admin/btport_config_body.tpl')
);
$template->assign_vars(array(
'U_CONFIG_BTP' => append_sid("admin_btport.$phpEx?add=1")
)
);
//
// Generate the page
//
$template->pparse('body');
include('./page_footer_admin.'.$phpEx);
?>
Code: Selecteer alles
<!-- BEGIN items_row -->
Title: {items_row.TITLE}<br />
<a href="{items_row.U_EDIT}">Edit</a><br />
<!-- END items_row -->
<form method=post action="{U_CONFIG_BTP}">
Voeg nieuwe toe:
Titel: <input type=text name=portal_title_new><br />
Tekst: <input type=text name=portal_text_new><br />
Forum voor nieuws: <input type=text name=portal_forum_new><br />
<input type=submit value=Verzend>
</form>