Page 1 of 1

phpbb portal block

Posted: 22. May 2009 15:09
by A1m
Hi,
ich würde gerne einen block aus dem phpbb portal in mein board3 importieren.

der block ist hier zu finden:
http://www.phpbb3portal.com/viewtopic.php?f=45&t=1663

Ich habe soweit alles gemacht was in der Install stand (Ein wenig improvisiert weil ich nicht alles so gefunden hab), aber leider passiert nun nichts, alles genau wie vorher.

Gibts irgendwo eine Erklärung wie man sowas hinbekommt?


Danke schonmal!

Re: phpbb portal block

Posted: 22. May 2009 19:00
by cromatics
jup würde mich auch mal interessieren, suche so was schon seit langem.

hier mal die install, ich hoffe uns kann wer helfen, wäre echt supi!!!!!!!

Code: Select all

**********************************************************************
**           WoW Recruitment Block w/ACP for phpbb3portal 
** 
**           Author: Sheepy (http://www.phpbb3portal.com/memberlist.php?mode=viewprofile&u=142)
**
**           Version History:
**
**           v2.2 - 30/04/09
**           Updated images
**           Added missing code from recruitment.html <br style="clear:both" />
**           Added install.txt
**
**           v2.1 - 02/04/09 
**           Fixed recruitment.html file. (2 typos)
**
**           v2.0 - 18/03/09
**           Major revamp of code
**           Added show/hide options for all classes.
**           Added color option for class status.
**
**           v1.1 - 12/03/09 
**           Added colors to classes.
**
**********************************************************************
**********************************************************************
**
**	     Version: 2.2
**	     Install Difficulty: Easy 
**	     Install Time: 5 mins
**
**********************************************************************
**********************************************************************
**
**
** Included Files
******************
install.txt
images/wow/dk.png
images/wow/druid.png
images/wow/hunter.png
images/wow/mage.png
images/wow/paladin.png
images/wow/priest.png
images/wow/rogue.png
images/wow/shaman.png
images/wow/warlock.png
images/wow/warrior.png
portal/block/recruitment.php
styles/prosilver/template/portal/block/recruitment.html

** File to edit
******************
portal.php
includes/acp/acp_portal.php
includes/acp/info/acp_portal.php
language/en/acp/portal.php
styles/prosilver/template/portal/portal_body.html

If your using a differant style other than prosilver. 
Replace Prosilver with your style

**********************************************************************
**
** BE SURE TO BACKUP ALL FILES BEFORE PROCEEDING! 
**             
**********************************************************************
** 
** Upload all the included files to your server.
**********************************************************************
** Open portal.php
** Find:
**********************************************************************

//  include($portal_root_path . '/block/change_style.'.$phpEx); // stil seçince hata veriyor
//}

**********************************************************************
** On a new line after add:
**********************************************************************

    if ($config['portal_recruitment'])
{
    include($portal_root_path . '/block/recruitment.'.$phpEx);
	$template->assign_vars(array(
		'S_DISPLAY_PORTAL_RECRUITMENT' 	=> true,
		'PORTAL_RECRUITMENT'	=> $config['portal_recruitment'],
        'PORTAL_LEFT_COLLUMN' 	=> $config['portal_left_collumn_width'],
     	'PORTAL_RIGHT_COLLUMN' 	=> $config['portal_right_collumn_width'],
	));
}

**********************************************************************
** Open includes/acp/acp_portal.php
** Find:
**********************************************************************

'portal_minicalendar_day_link_color'  => array('lang' => 'PORTAL_MINICALENDAR_DAY_LINK_COLOR' ,   'validate' => 'string',  'type' => 'text:10:10',     'explain' => true),

               )
            );
         break;

**********************************************************************
** On a new line after add:
**********************************************************************

case 'recruitment':
            $display_vars = array(
               'title'   => 'ACP_RECRUITMENT_SETTINGS',
               'vars'   => array(
	              'legend1'                     		=> 'ACP_RECRUITMENT_BLOCK_SETTINGS',
								    'portal_recruitment'          		             	=> array('lang' => 'PORTAL_RECRUITMENT'                            ,   'validate' => 'bool',   	'type' => 'radio:yes_no',   'explain' => true),
									'portal_recruitment_link'					    	=> array('lang' => 'PORTAL_RECRUITMENT_LINK'					   ,   'validate' => 'string',  'type' => 'text:50:100',   'explain' => true),
                  'legend2'                     		=> 'PORTAL_RECRUITMENT_DISPLAY',
                                    'portal_display_dk' 	                            => array('lang' => 'PORTAL_RECRUITMENT_DK_DISPLAY'                 ,   'validate' => 'bool',   	'type' => 'radio:yes_no',   'explain' => false),
                                    'portal_display_dru' 	                            => array('lang' => 'PORTAL_RECRUITMENT_DRU_DISPLAY'                ,   'validate' => 'bool',   	'type' => 'radio:yes_no',   'explain' => false),
                                    'portal_display_hun' 	                            => array('lang' => 'PORTAL_RECRUITMENT_HUN_DISPLAY'                ,   'validate' => 'bool',   	'type' => 'radio:yes_no',   'explain' => false),
                                    'portal_display_mag' 	                            => array('lang' => 'PORTAL_RECRUITMENT_MAG_DISPLAY'                ,   'validate' => 'bool',   	'type' => 'radio:yes_no',   'explain' => false),
                                    'portal_display_pal' 	                            => array('lang' => 'PORTAL_RECRUITMENT_PAL_DISPLAY'                ,   'validate' => 'bool',   	'type' => 'radio:yes_no',   'explain' => false),
                                    'portal_display_pri' 	                            => array('lang' => 'PORTAL_RECRUITMENT_PRI_DISPLAY'                ,   'validate' => 'bool',   	'type' => 'radio:yes_no',   'explain' => false),
                                    'portal_display_rog' 	                            => array('lang' => 'PORTAL_RECRUITMENT_ROG_DISPLAY'                ,   'validate' => 'bool',   	'type' => 'radio:yes_no',   'explain' => false),
                                    'portal_display_sha' 	                            => array('lang' => 'PORTAL_RECRUITMENT_SHA_DISPLAY'                ,   'validate' => 'bool',   	'type' => 'radio:yes_no',   'explain' => false),
                                    'portal_display_lock' 	                            => array('lang' => 'PORTAL_RECRUITMENT_LOCK_DISPLAY'               ,   'validate' => 'bool',   	'type' => 'radio:yes_no',   'explain' => false),
                                    'portal_display_war' 	                            => array('lang' => 'PORTAL_RECRUITMENT_WAR_DISPLAY'                ,   'validate' => 'bool',   	'type' => 'radio:yes_no',   'explain' => false),
                  'legend3'                     		=> 'PORTAL_RECRUITMENT_STATUS_TEXT',
                                    'portal_recruitment_death_knight'              	    => array('lang' => 'PORTAL_RECRUITMENT_DEATH_KNIGHT'               ,   'validate' => 'string',   'type' => 'text:12:12',    'explain' => false),
									'portal_recruitment_druid'              	    	=> array('lang' => 'PORTAL_RECRUITMENT_DRUID'                      ,   'validate' => 'string',   'type' => 'text:12:12',    'explain' => false),
                                    'portal_recruitment_hunter'          	    		=> array('lang' => 'PORTAL_RECRUITMENT_HUNTER'                     ,   'validate' => 'string',   'type' => 'text:12:12',    'explain' => false),
                                    'portal_recruitment_mage'          		        	=> array('lang' => 'PORTAL_RECRUITMENT_MAGE'                       ,   'validate' => 'string',   'type' => 'text:12:12',    'explain' => false),
                                    'portal_recruitment_paladin'          	    		=> array('lang' => 'PORTAL_RECRUITMENT_PALADIN'                    ,   'validate' => 'string',   'type' => 'text:12:12',    'explain' => false),
                                    'portal_recruitment_priest'          	    		=> array('lang' => 'PORTAL_RECRUITMENT_PRIEST'                     ,   'validate' => 'string',   'type' => 'text:12:12',    'explain' => false),
                                    'portal_recruitment_rogue'              			=> array('lang' => 'PORTAL_RECRUITMENT_ROGUE'                      ,   'validate' => 'string',   'type' => 'text:12:12',    'explain' => false),
                                    'portal_recruitment_shaman'          	    		=> array('lang' => 'PORTAL_RECRUITMENT_SHAMAN'                     ,   'validate' => 'string',   'type' => 'text:12:12',    'explain' => false),
                                    'portal_recruitment_warlock'          		     	=> array('lang' => 'PORTAL_RECRUITMENT_WARLOCK'                    ,   'validate' => 'string',   'type' => 'text:12:12',    'explain' => false),
                                    'portal_recruitment_warrior'          			    => array('lang' => 'PORTAL_RECRUITMENT_WARRIOR'                    ,   'validate' => 'string',   'type' => 'text:12:12',    'explain' => false),
                  'legend4'                     		=> 'PORTAL_RECRUITMENT_STATUS_TEXT_COLOR',
                                    'portal_recruitment_font_dk'                        => array('lang' => 'PORTAL_RECRUITMENT_FONT_DK'                    ,   'validate' => 'string',   'type' => 'text:6:6',      'explain' => false),
                                    'portal_recruitment_font_dru'                       => array('lang' => 'PORTAL_RECRUITMENT_FONT_DRU'                   ,   'validate' => 'string',   'type' => 'text:6:6',      'explain' => false),
                                    'portal_recruitment_font_hun'                       => array('lang' => 'PORTAL_RECRUITMENT_FONT_HUN'                   ,   'validate' => 'string',   'type' => 'text:6:6',      'explain' => false),
                                    'portal_recruitment_font_mag'                       => array('lang' => 'PORTAL_RECRUITMENT_FONT_MAG'                   ,   'validate' => 'string',   'type' => 'text:6:6',      'explain' => false),
                                    'portal_recruitment_font_pal'                       => array('lang' => 'PORTAL_RECRUITMENT_FONT_PAL'                   ,   'validate' => 'string',   'type' => 'text:6:6',      'explain' => false),
                                    'portal_recruitment_font_pri'                       => array('lang' => 'PORTAL_RECRUITMENT_FONT_PRI'                   ,   'validate' => 'string',   'type' => 'text:6:6',      'explain' => false),
                                    'portal_recruitment_font_rog'                       => array('lang' => 'PORTAL_RECRUITMENT_FONT_ROG'                   ,   'validate' => 'string',   'type' => 'text:6:6',      'explain' => false),
                                    'portal_recruitment_font_sha'                       => array('lang' => 'PORTAL_RECRUITMENT_FONT_SHA'                   ,   'validate' => 'string',   'type' => 'text:6:6',      'explain' => false),
                                    'portal_recruitment_font_lock'                      => array('lang' => 'PORTAL_RECRUITMENT_FONT_LOCK'                  ,   'validate' => 'string',   'type' => 'text:6:6',      'explain' => false),
                                    'portal_recruitment_font_war'                       => array('lang' => 'PORTAL_RECRUITMENT_FONT_WAR'                   ,   'validate' => 'string',   'type' => 'text:6:6',      'explain' => false),
                  'legend5'                     		=> 'Save',
                )
            );
         break;

**********************************************************************
** Open includes/acp/info/acp_portal.php
** Find:
**********************************************************************

'minicalendar'	=> array('title' => 'ACP_PORTAL_MINICALENDAR_INFO', 'auth' => 'acl_a_board', 'cat' => array('ACP_BOARD_CONFIGURATION')),

**********************************************************************
** On a new line after add:
**********************************************************************

'recruitment'	=> array('title' => 'ACP_PORTAL_RECRUITMENT_INFO', 'auth' => 'acl_a_board', 'cat' => array('ACP_BOARD_CONFIGURATION')),

**********************************************************************
** Open language/en/acp/acp_portal.php
** Find:
**********************************************************************

'ACP_PORTAL_SETTINGS_EXPLAIN'		=> 'Thank you for choosing phpBB3 Portal. On this page you can manage the portal of your board. The screens in here will give you a quick overview of all the various portal settings. The links on the left hand side of this screen allow you to control every aspect of your portal experience.',

**********************************************************************
** On a new line after add:
**********************************************************************

    //ACP Logs
	'LOG_CONFIG_GENERAL'			=> '<strong>Portal: Altered general settings</strong>',
	'LOG_CONFIG_NEWS'			=> '<strong>Portal: Altered news settings</strong>',
	'LOG_CONFIG_ANNOUNCEMENTS'		=> '<strong>Portal: Altered announcements settings</strong>',
	'LOG_CONFIG_WELCOME'			=> '<strong>Portal: Altered welcome message settings</strong>',
	'LOG_CONFIG_RECENT'			=> '<strong>Portal: Altered recent topics settings</strong>',
	'LOG_CONFIG_WORDGRAPH'			=> '<strong>Portal: Altered wordgraph settings</strong>',
	'LOG_CONFIG_PAYPAL'			=> '<strong>Portal: Altered paypal donations settings</strong>',
	'LOG_CONFIG_ATTACHMENTS'		=> '<strong>Portal: Altered attachments settings</strong>',
	'LOG_CONFIG_MEMBERS'			=> '<strong>Portal: Altered latest members settings</strong>',
	'LOG_CONFIG_POLLS'			=> '<strong>Portal: Altered poll settings</strong>',
	'LOG_CONFIG_BOTS'			=> '<strong>Portal: Altered last visited bots settings</strong>',
	'LOG_CONFIG_POSTER'			=> '<strong>Portal: Altered most posters settings</strong>',
	'LOG_CONFIG_MINICALENDAR'		=> '<strong>Portal: Altered mini calendar settings</strong>',
	'LOG_CONFIG_CUSTOMBLOCK'		=> '<strong>Portal: Altered custom block settings</strong>',
	'LOG_CONFIG_LINKS'			=> '<strong>Portal: Altered links block settings</strong>',
        'LOG_CONFIG_RECRUITMENT'		=> '<strong>Portal: Altered recruitment block settings</strong>',

**********************************************************************
** Find:
**********************************************************************

'PORTAL_MINICALENDAR_DAY_LINK_COLOR_EXPLAIN'=> 'HEX or named colors are allowed such as #FFFFFF for white, or color names like vilolet.',

**********************************************************************
** On a new line after add:
**********************************************************************

// recruitment block by Axxo@theory-guild.net
    //General Options
    'ACP_PORTAL_RECRUITMENT_INFO'               => 'Recruitment',
	'ACP_RECRUITMENT_SETTINGS'			        => 'Recruitment block settings',
	'ACP_RECRUITMENT_SETTINGS_EXPLAIN'	        => 'Here you can change the status of recruitment block.',
    'ACP_RECRUITMENT_BLOCK_SETTINGS'            => 'Recruitment block display settings',
	'PORTAL_RECRUITMENT'			            => 'Display the recruitment block',
	'PORTAL_RECRUITMENT_EXPLAIN'				=> 'Display the recruitment block on your portal',
	'PORTAL_RECRUITMENT_LINK'					=> 'Status Link url',
	'PORTAL_RECRUITMENT_LINK_EXPLAIN'			=> 'Enter the link to your recruitment forums or application form here.',
    'RECRUITMENT_CLASS_SETTINGS'                => 'Recruitment class status settings',
    'PORTAL_RECRUITMENT_DISPLAY'                => 'Class display settings',
    'PORTAL_RECRUITMENT_STATUS_TEXT'            => 'Class status text',
    'PORTAL_RECRUITMENT_STATUS_TEXT_COLOR'      => 'Class status text color',
    'SAVE'										=> 'Save Changes',
    //Deathknight Options
    'PORTAL_RECRUITMENT_DK_DISPLAY'         => 'Display Death Knight status?',
    'PORTAL_RECRUITMENT_DEATH_KNIGHT'       => 'Death Knight status text',
    'PORTAL_RECRUITMENT_FONT_DK'            => 'Death Knight status Font color',
    //Druid Options
    'PORTAL_RECRUITMENT_DRU_DISPLAY'        => 'Display Druid status?',
	'PORTAL_RECRUITMENT_DRUID'		   	    => 'Druid status text',
    'PORTAL_RECRUITMENT_FONT_DRU'           => 'Druid status font color',
    //Hunter Options
    'PORTAL_RECRUITMENT_HUN_DISPLAY'        => 'Display Hunter status?',
	'PORTAL_RECRUITMENT_HUNTER'			    => 'Hunter status text',
    'PORTAL_RECRUITMENT_FONT_HUN'           => 'Hunter status font color',
    //Mage Options
    'PORTAL_RECRUITMENT_MAG_DISPLAY'        => 'Display Mage status?',
    'PORTAL_RECRUITMENT_MAGE'			    => 'Mage status text',
    'PORTAL_RECRUITMENT_FONT_MAG'           => 'Mage status font color',
    //Paladin Options
    'PORTAL_RECRUITMENT_PAL_DISPLAY'        => 'Display Paladin status?',
	'PORTAL_RECRUITMENT_PALADIN'	        => 'Paladin status text',
    'PORTAL_RECRUITMENT_FONT_PAL'           => 'Paladin status font color',
    //Priest Options
    'PORTAL_RECRUITMENT_PRI_DISPLAY'        => 'Display Priest status?',
	'PORTAL_RECRUITMENT_PRIEST'			    => 'Priest status text',
    'PORTAL_RECRUITMENT_FONT_PRI'           => 'Priest status font color',
    //Rogue Options
    'PORTAL_RECRUITMENT_ROG_DISPLAY'        => 'Display Rogue status?',
	'PORTAL_RECRUITMENT_ROGUE'		   	    => 'Rogue status text',
    'PORTAL_RECRUITMENT_FONT_ROG'           => 'Rogue status font color',
    //Shaman Options
    'PORTAL_RECRUITMENT_SHA_DISPLAY'        => 'Display Shaman status?',
	'PORTAL_RECRUITMENT_SHAMAN'			    => 'Shaman status text',
    'PORTAL_RECRUITMENT_FONT_SHA'           => 'Shaman status font color',
    //Warlock Options
    'PORTAL_RECRUITMENT_LOCK_DISPLAY'       => 'Display Warlock status?',
	'PORTAL_RECRUITMENT_WARLOCK'	        => 'Warlock status text',
    'PORTAL_RECRUITMENT_FONT_LOCK'          => 'Warlock font color',
    //Warrior Options
    'PORTAL_RECRUITMENT_WAR_DISPLAY'        => 'Display Warrior status?',
	'PORTAL_RECRUITMENT_WARRIOR'		    => 'Warrior status text',
    'PORTAL_RECRUITMENT_FONT_WAR'           => 'Warrior status font color',


**********************************************************************
** Open styles/prosilver/template/portal/portal_body.html     
**********************************************************************
** If you want your recruitment block on the left
** Find:
**********************************************************************

<!-- [+] left block area --> 

**********************************************************************
After it, on a new line add:
**********************************************************************

	<!-- IF S_DISPLAY_PORTAL_RECRUITMENT -->
			<!-- INCLUDE portal/block/recruitment.html -->
		<!-- ENDIF -->

**********************************************************************
** If you want your recruitment block on the right
** Find:
**********************************************************************

<!-- [+] right block area -->

**********************************************************************
After it, on a new line add:
**********************************************************************

	<!-- IF S_DISPLAY_PORTAL_RECRUITMENT -->
			<!-- INCLUDE portal/block/recruitment.html -->
		<!-- ENDIF -->


**********************************************************************
** Save an Upload all files
**********************************************************************
Visit the address below for instructions to enable the ACP Features.
http://www.phpbb3portal.com/viewtopic.php?f=45&t=1663&st=0&sk=t&sd=a