Add "credits" sto phpbb

Μια περιοχή για το phpBB, την δημοφιλή δωρεάν πλατφόρμα για forums

Συντονιστές: WebDev Moderators, Super-Moderators, PHP Moderators

Απάντηση
emphasy
Honorary Member
Δημοσιεύσεις: 4303
Εγγραφή: 16 Ιαν 2005 10:31

Add "credits" sto phpbb

Δημοσίευση από emphasy » 26 Ιούλ 2005 15:44

Mipws 3erei kaneis an mporw na valw credits, h na kanw kati paromoio me to www.gamerenders.com, oxi alh8ina leuta, alla sthn ousia kapioi pontoi pou dinoun nohma sto forum....

kai ena paradeigma: http://www.gamerenders.com/forum/index. ... opic=80325
koita3te to profile tou user :)

Άβαταρ μέλους
alxk
Δημοσιεύσεις: 718
Εγγραφή: 25 Μάιος 2003 23:48
Τοποθεσία: Αθήνα | Βούλα

Add "credits" sto phpbb

Δημοσίευση από alxk » 26 Ιούλ 2005 18:14

Υπάρχει ένα mod, λέγετε "Cash Mode" αν δεν κάνω λάθος! Κοίταξε στα mods μέσα στο site του phpBB σίγουρα θα το βρείς.

emphasy
Honorary Member
Δημοσιεύσεις: 4303
Εγγραφή: 16 Ιαν 2005 10:31

Add "credits" sto phpbb

Δημοσίευση από emphasy » 26 Ιούλ 2005 21:38

ekana thn egatastash kanonika kai otan piga sto admin panel evgale to ekshs:

Κώδικας: Επιλογή όλων

Fatal error: Cannot instantiate non-existent class: cash_menucat in /home2/techstud/public_html/forum/admin/admin_cash.php on line 31
kai o kwdikas tou arxeiou:

Κώδικας: Επιλογή όλων

<?php
/***************************************************************************
 *                              admin_cash.php
 *                            -------------------
 *   begin                &#58; Monday, Aug 18, 2003
 *   copyright            &#58; &#40;C&#41; 2003 Xore
 *   email                &#58; mods@xore.ca
 *
 *   $Id&#58; admin_cash.php,v 1.1.0.0 2003/09/18 23&#58;03&#58;34 Xore $
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   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
 *   &#40;at your option&#41; any later version.
 *
 ***************************************************************************/

if &#40; !defined&#40;'ADMIN_MENU'&#41; &#41;
&#123;
	define&#40;'ADMIN_MENU',1&#41;;
	function admin_menu&#40;&$menu&#41;
	&#123;
		global $lang;
		$i = 0;
		$j = 0;
		&#91;b&#93;$menu&#91;$i&#93; = new cash_menucat&#40;$lang&#91;'Cmcat_main'&#93;&#41;;&#91;/b&#93;
		$menu&#91;$i&#93;->additem&#40;new cash_menuitem&#40;$j,	'Cash_Configuration',	'cash_config',		$lang&#91;'Cmenu_cash_config'&#93;&#41;&#41;;
		$menu&#91;$i&#93;->additem&#40;new cash_menuitem&#40;$j,	'Cash_Currencies',		'cash_currencies',	$lang&#91;'Cmenu_cash_currencies'&#93;&#41;&#41;;
		$menu&#91;$i&#93;->additem&#40;new cash_menuitem&#40;$j,	'Cash_Forums',			'cash_forums',		$lang&#91;'Cmenu_cash_forums'&#93;&#41;&#41;;
		$menu&#91;$i&#93;->additem&#40;new cash_menuitem&#40;$j,	'Cash_Settings',		'cash_settings',	$lang&#91;'Cmenu_cash_settings'&#93;&#41;&#41;;
		$i++;
		$menu&#91;$i&#93; = new cash_menucat&#40;$lang&#91;'Cmcat_addons'&#93;&#41;;
		$menu&#91;$i&#93;->additem&#40;new cash_menuitem&#40;$j,	'Cash_Events',			'cash_events',		$lang&#91;'Cmenu_cash_events'&#93;&#41;&#41;;
		$menu&#91;$i&#93;->additem&#40;new cash_menuitem&#40;$j,	'Cash_Reset',			'cash_reset',		$lang&#91;'Cmenu_cash_reset'&#93;&#41;&#41;;
		$i++;
		$menu&#91;$i&#93; = new cash_menucat&#40;$lang&#91;'Cmcat_other'&#93;&#41;;
		$menu&#91;$i&#93;->additem&#40;new cash_menuitem&#40;$j,	'Cash_Exchange',		'cash_exchange',	$lang&#91;'Cmenu_cash_exchange'&#93;&#41;&#41;;
		$menu&#91;$i&#93;->additem&#40;new cash_menuitem&#40;$j,	'Cash_Groups',			'cash_groups',		$lang&#91;'Cmenu_cash_groups'&#93;&#41;&#41;;
		$menu&#91;$i&#93;->additem&#40;new cash_menuitem&#40;$j,	'Cash_Logs',			'cash_log',			$lang&#91;'Cmenu_cash_log'&#93;&#41;&#41;;
		$i++;
		$menu&#91;$i&#93; = new cash_menucat&#40;$lang&#91;'Cmcat_help'&#93;&#41;;
		$menu&#91;$i&#93;->additem&#40;new cash_menuitem&#40;$j,	'Cash_Help',			'cash_help',		$lang&#91;'Cmenu_cash_help'&#93;&#41;&#41;;
	&#125;
&#125;

if &#40; !empty&#40;$navbar&#41; && defined&#40;'IN_PHPBB'&#41; &#41;
&#123;
	$menu = array&#40;&#41;;
	admin_menu&#40;$menu&#41;;

	$template->set_filenames&#40;array&#40;
		"navbar" => "admin/cash_navbar.tpl"&#41;
	&#41;;

	$class = 0;
	for &#40; $i = 0; $i < count&#40;$menu&#41;; $i++ &#41;
	&#123;
		$template->assign_block_vars&#40;"navcat",array&#40;	"L_CATEGORY" => $menu&#91;$i&#93;->category,
														"WIDTH" => $menu&#91;$i&#93;->num&#40;&#41;&#41;&#41;;
		for &#40; $j = 0; $j < $menu&#91;$i&#93;->num&#40;&#41;; $j++ &#41;
		&#123;
			$template->assign_block_vars&#40;"navitem",$menu&#91;$i&#93;->items&#91;$j&#93;->data&#40;$phpEx,$class+1,''&#41;&#41;;
			$class = &#40;$class + 1&#41;%2;
		&#125;
	&#125;
	$template->assign_var_from_handle&#40;'NAVBAR', 'navbar'&#41;;
	return;
&#125;

if &#40; !empty&#40;$setmodules&#41; && defined&#40;'IN_PHPBB'&#41; &#41;
&#123;
	if &#40; empty&#40;$table_prefix&#41; &#41;
	&#123;
		// jr admin mod
		/*
			since this gets included from within a function,
			and we require these base-scope variables, we
			copy them in from the global scope
		*/
		$table_prefix = $GLOBALS&#91;'table_prefix'&#93;;
		$phpbb_root_path = $GLOBALS&#91;'phpbb_root_path'&#93;;
		$phpEx = $GLOBALS&#91;'phpEx'&#93;;
		$board_config = $GLOBALS&#91;'board_config'&#93;;
		$lang = $GLOBALS&#91;'lang'&#93;;
	&#125;
	include&#40;$phpbb_root_path . 'includes/functions_cash.'.$phpEx&#41;;
	$menu = array&#40;&#41;;
	admin_menu&#40;$menu&#41;;

	if &#40; $board_config&#91;'cash_adminbig'&#93; &#41;
	&#123;
		for &#40; $i = 0; $i < count&#40;$menu&#41;; $i++ &#41;
		&#123;
			for &#40; $j = 0; $j < $menu&#91;$i&#93;->num&#40;&#41;; $j++ &#41;
			&#123;
				$module&#91;'Cash Mod'&#93;&#91;$menu&#91;$i&#93;->items&#91;$j&#93;->title&#93; = $menu&#91;$i&#93;->items&#91;$j&#93;->linkage&#40;$phpEx&#41;;
				if &#40; &#40;$j == $menu&#91;$i&#93;->num&#40;&#41; - 1&#41; && !&#40;$i == count&#40;$menu&#41; - 1&#41; &#41;
				&#123;
					$lang&#91;$menu&#91;$i&#93;->items&#91;$j&#93;->title&#93; = $lang&#91;$menu&#91;$i&#93;->items&#91;$j&#93;->title&#93; . '</a></span></td></tr><tr><td class="row2" height="7"><span class="genmed"><a name="cm' . $menu&#91;$i&#93;->num&#40;&#41; . '">';
				&#125;
			&#125;
		&#125;
	&#125;
	else
	&#123;
		$file = basename&#40;__FILE__&#41;;
		$module&#91;'Cash Mod'&#93;&#91;'Cash_Admin'&#93; = "$file";
		$module&#91;'Cash Mod'&#93;&#91;'Cash_Help'&#93; = "cash_help.$phpEx";
	&#125;
	return;
&#125;

define&#40;'IN_PHPBB', 1&#41;;
define&#40;'IN_CASHMOD', 1&#41;;

//
// Let's set the root dir for phpBB
//
$phpbb_root_path = "./../";
require&#40;$phpbb_root_path . 'extension.inc'&#41;;
require&#40;'./pagestart.' . $phpEx&#41;;
include&#40;$phpbb_root_path . 'includes/functions_selects.'.$phpEx&#41;;

if &#40; $board_config&#91;'cash_adminnavbar'&#93; &#41;
&#123;
	$navbar = 1;
	include&#40;'./admin_cash.'.$phpEx&#41;;
&#125;

//$menu = array&#40;&#41;;
admin_menu&#40;$menu&#41;;

$template->set_filenames&#40;array&#40;
	"body" => "admin/cash_menu.tpl"&#41;
&#41;;

for &#40; $i = 0; $i < count&#40;$menu&#41;; $i++ &#41;
&#123;
	$template->assign_block_vars&#40;"menucat",array&#40;"L_CATEGORY" => $menu&#91;$i&#93;->category&#41;&#41;;
	for &#40; $j = 0; $j < $menu&#91;$i&#93;->num&#40;&#41;; $j++ &#41;
	&#123;
		$template->assign_block_vars&#40;"menucat.menuitem",$menu&#91;$i&#93;->items&#91;$j&#93;->data&#40;$phpEx,1,''&#41;&#41;;
	&#125;
&#125;

$template->pparse&#40;"body"&#41;;

include&#40;'./page_footer_admin.'.$phpEx&#41;;

?>
kai sthn 31ti seira vrhka to:

Κώδικας: Επιλογή όλων

		$menu&#91;$i&#93; = new cash_menucat&#40;$lang&#91;'Cmcat_main'&#93;&#41;;

Άβαταρ μέλους
fafos
Script Master
Δημοσιεύσεις: 6231
Εγγραφή: 30 Νοέμ 2004 03:09

Add "credits" sto phpbb

Δημοσίευση από fafos » 26 Ιούλ 2005 22:37

Ta kommatia kodika pou pane sthn glossa (sto lang_main profanos) ta evales?

emphasy
Honorary Member
Δημοσιεύσεις: 4303
Εγγραφή: 16 Ιαν 2005 10:31

Add "credits" sto phpbb

Δημοσίευση από emphasy » 26 Ιούλ 2005 22:52

oxi :roll: to mono pou ekana htan egatastash apo to /root/sql_installer.php :-?

Απάντηση

Επιστροφή στο “phpBB”

Μέλη σε σύνδεση

Μέλη σε αυτήν τη Δ. Συζήτηση: Δεν υπάρχουν εγγεγραμμένα μέλη και 1 επισκέπτης