News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Razvoj modova za SMF

Started by manix, April 08, 2010, 02:06:22 PM

Previous topic - Next topic

Dzonny

Na serveru, ispravan .htaccess.
Za error log ti ne mogu trenutno reći pošto sam se u toku noći premestio na novi server, pa nisam stigao taj test forum da konfigurišem.

Masterd

#161
Nova verzija!  :D

Masterd

Uklonio sam privitke zato što planiram to integrirati s ovim modom, tako da ćete onda moći testirati.

Masterd

#163
Počeo sam prepravljati Manix Moderator Requests mod za SMF 2.0. Za sada sam uspio uspješno rekonstruirati modrequest tablicu. 

<?php
// If SSI.php is in the same place as this file, and SMF isn't defined, this is being run standalone.
if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
require_once(dirname(__FILE__) . '/SSI.php');
// Hmm... no SSI.php and no SMF?
elseif (!defined('SMF'))
die('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');

if (
SMF == 'SSI')
db_extend('packages');

global 
$smcFunc;

$table = array(
'table_name' => '{db_prefix}modrequest',
'columns' => array(
array('name' => 'id''auto' => false'type' => 'bigint''size' => 11'null' => false),
array('name' => 'member_id''auto' => false'type' => 'bigint''size' => 11'null' => false'default' => 0),
array('name' => 'board_id''auto' => false'type' => 'bigint''size' => 11'null' => false'default' => 0), 
array('name' => 'time''auto' => false'type' => 'int''size' => 11'null' => false'default' => 0), 
array('name' => 'status''auto' => false'type' => 'int''size' => 1'unsigned' => true'null' => false'default' => 0)
),
'indexes' => array(
array('columns' => array('id'), 'type' => 'primary')
),
'if_exists' => 'update',
'error' => 'fatal',
'parameters' => array(),
);


$smcFunc['db_create_table']($table['table_name'], $table['columns'], $table['indexes'], $table['parameters'], $table['if_exists'], $table['error']);


// If we're using SSI, tell them we're done
if(SMF == 'SSI')
echo 'Database changes are complete!';

?>

rocknroller


Masterd

Još uglavnom prilagodba template koda.

Madzgo

Šta ti pokušavaš napraviti..?

Masterd

Prepravljam Moderator Requests mod.

Masterd


Masterd

Nakon poduže pauze, nastavljam s radom na ovom modu, tako da će ubrzo biti završen.

Advertisement: