instal.xml opent niet

Hulp nodig bij een modificaties of op zoek naar een MOD?
Forumregels

LEES: Richtlijnen voor Support. Vul de support template in!
phpBB3.0.x
Verschaf iemand geen servertoegang tenzij het niet anders kan. Maak altijd eerst een volledige backup en verander de inloggevens na afloop. Eigen risico.
Plaats reactie
Gebruikersavatar
odil
Berichten: 710
Lid geworden op: 26 jan 2009, 19:23
Locatie: belgië
Contacteer:

instal.xml opent niet

Bericht door odil » 22 sep 2009, 15:05

Hoi,

Na het downloaden en het uitpakken kan ik de instal.xml niet openen, zowel met IE als met Firefox?
Iemand een idee wat het probleem kan zijn.

Ik krijg bij het openen enkel een broncode te zien (zie spoiler)

Code: Selecteer alles

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<?xml-stylesheet type="text/xsl" href="modx.prosilver.en.xsl"?><!-- MODX by the phpBB MOD Team XSL file v1.2.0 copyright 2005-2008 the phpBB MOD Team.
	$Id: modx_body.xml 494 2008-07-13 20:57:22Z Handyman $ -->
<!--For security purposes, please check: http://www.phpbb.com/mods/ for the latest version of this MOD. Although MODs are checked before being allowed in the MODs Database there is no guarantee that there are no security problems within the MOD. No support will be given for MODs not found within the MODs Database which can be found at http://www.phpbb.com/mods/-->
<mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.2.0.xsd">
	<header>
		<license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license>
					<title lang="en">Welcome Mod</title>
					<description lang="en"><![CDATA[Adds a personalized welcome message at the top of your index page according to time of day with logged in username in their group color base on users timezone placed in a new table at the top of your forums. 
- Displays a welcome message with logged in username.
- Messages will change according to time of day.
- Special welcome message for registerd users.
- Special welcome message for guests with your site name.
- Displays logged in username in color.
- Messages are based upon users timezone.
- Messages can be configured in the ACP.]]></description>
					<author-notes lang="en"><![CDATA[]]></author-notes>
				<author-group>
			<author>
				<realname>stitch626</realname>
				<email>northernlight@northerncountrymorels.com</email>
				<username>stitch626</username>
				<homepage>http://www.northerncountrymorels.com</homepage>
							</author>
		</author-group>
		<mod-version>
			<major>2</major>
			<minor>0</minor>
			<revision>0</revision>
			<release></release>
		</mod-version>
		<installation>
			<level>easy</level>
			<time>600</time>
			<target-version>
				<target-primary>3.0.2</target-primary>
				<target-major allow="exact">3</target-major>
				<target-minor allow="exact">0</target-minor>
				<target-revision allow="exact"></target-revision>
			</target-version>
		</installation>
		<history>
							<entry>
					<date>2008-8-5</date>
					<rev-version>
						<major>2</major>
						<minor>0</minor>
						<revision>0</revision>
						<release></release>
					</rev-version>
									</entry>
								<changelog lang="en">
							<change>Initial Release
</change>
						</changelog>
					
					<entry>
						<date>2007-07-17</date>
						<rev-version>
							<major>2</major>
							<minor>0</minor>
							<revision>0</revision>
							<release>Beta</release>
						</rev-version>
						<changelog lang="en">
							<change>Gave the Welcome mod a whole new look on both subsilver and prosilver.
</change>
											
						</changelog>
					</entry>
				</history>	
									
									
									
					
	</header>
	<action-group>
						<sql dbms="mysqli"><![CDATA[INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('time_afternoon', 'Good Afternoon');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('time_early', 'Good morning, you\'re up early');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('time_evening', 'Good evening');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('time_late', 'Good gosh you\'re up late ');
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('time_morning', 'Well good morning');]]></sql>
							<open src="language/en/acp/board.php">
											<edit>
							<find><![CDATA['SYSTEM_TIMEZONE'				=> 'System timezone',]]></find>
															<action type="after-add"><![CDATA[//Welcome_Mod language settings_->
      'TIME_OF_DAY_MESSAGE'               => 'Time of day Messages',
      'TIME_AFTERNOON'                    => 'Time afternoon',
      'TIME_AFTERNOON_EXPLAIN'		  => 'Message to be displayed to users between the hours of 12:00PM ~ 5:59PM',
      'TIME_EARLY'                        => 'Time Early',
      'TIME_EARLY_EXPLAIN'		  => 'Message to be displayed to users between the hours of 5:00AM ~ 7:59AM',
      'TIME_EVENING'                      => 'Time Evening',
      'TIME_EVENING_EXPLAIN'              => 'Message to be displayed to users between the hours of 6:00PM ~ 11:59PM',
      'TIME_LATE'                         => 'Time Late',
      'TIME_LATE_EXPLAIN'                 => 'Message to be displayed to users between the hours of 12:00AM ~ 4:59AM',
      'TIME_MORNING'                      => 'Time Morning',
      'TIME_MORNING_EXPLAIN'              => 'Message to be displayed to users between the hours of 8:00AM ~ 11:59AM',
//End-Welcome_Mod language settings-->]]></action>
													</edit>
									</open>
							<open src="language/en/common.php">
											<edit>
							<find><![CDATA['SUBMIT'					=> 'Submit',]]></find>
															<action type="after-add"><![CDATA['S_TIME'                            => '%',]]></action>
													</edit>
											<edit>
							<find><![CDATA['WEBSITE'			=> 'Website',]]></find>
															<action type="after-add"><![CDATA['WELCOME_REGISTERED'   => '%1$s, Welcome Back!', 
'WELCOME_GUEST'        => '<strong><span style="color: red;">Guest</strong></span>, Welcome to %1$s<br /><a href="%2$s" title="Click here to Register">Click here to Register</a>',]]></action>
													</edit>
											<edit>
							<find><![CDATA['YOU_LAST_VISIT'	=> 'Last visit was: %s',]]></find>
															<action type="after-add"><![CDATA['YOU_LAST_VISIT'	=> ' Your Last visit was: %s',]]></action>
													</edit>
									</open>
							<open src="includes/acp/acp_board.php">
											<edit>
							<find><![CDATA['warnings_expire_days'	=> array('lang' => 'WARNINGS_EXPIRE',		'validate' => 'int',	'type' => 'text:3:4', 'explain' => true, 'append' => ' ' . $user->lang['DAYS']),]]></find>
															<action type="after-add"><![CDATA[//If other mods are installed you may have to change legend3 to the next available legend number.
//--Welcome_Mod Legend-->
'legend3'                                     => 'TIME_OF_DAY_MESSAGE',
'time_afternoon'			      => array('lang' => 'TIME_AFTERNOON',			'validate' => 'string',	'type' => 'text:40:255', 'explain' => true),
'time_early'				      => array('lang' => 'TIME_EARLY',				'validate' => 'string',	'type' => 'text:40:255', 'explain' => true),
'time_evening'				      => array('lang' => 'TIME_EVENING',				'validate' => 'string',	'type' => 'text:40:255', 'explain' => true),
'time_late'				      => array('lang' => 'TIME_LATE',				'validate' => 'string',	'type' => 'text:40:255', 'explain' => true),
'time_morning'				      => array('lang' => 'TIME_MORNING',				'validate' => 'string',	'type' => 'text:40:255', 'explain' => true),
//--End-Welcome_Mod Legend-->

]]></action>
													</edit>
									</open>
							<open src="includes/functions.php">
											<edit>
							<find><![CDATA[// The following assigns all _common_ variables that may be used at any point in a template.]]></find>
															<action type="before-add"><![CDATA[//--Welcome_Mod--get the hour number-->

$date = $user->format_date(time(), 'H');

switch (true)
    {
        case ($date == 0):
            // If the hour is '0' it is midnight
            $s_welcome = $config['time_late'];
        break;
        
        case ($date < 4):
            // if the hour is 1-3 am 
            $s_welcome = $config['time_late'];
        break;
        
        case ($date < 8):
            // if the hour is 4-7 am
            $s_welcome = $config['time_early'];
        break;
        
        case ($date < 12):
            // if the hour is 8-11 am
            $s_welcome = $config['time_morning'];
        break;
        
        case ($date < 18):
            // if the hour is 12-5pm (12-17)
            $s_welcome = $config['time_afternoon'];
        break;
        
        case ($date < 24):
            // if the hour is 6pm-11pm (18-23_
            $s_welcome = $config['time_evening'];
        break;

//--Get the userdata & time of day message-->

}
if ($user->data['is_registered'])
{
    $l_welcome_registered = 'WELCOME_REGISTERED';
    $u_welcome_url = get_username_string('full', $user->data['user_id'], $user->data['username'],               $user->data['user_colour']);
}   
else
{
    $l_welcome_guest = 'WELCOME_GUEST';
    $u_welcome_url = append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=register');
}

$template->assign_vars(array(
    'S_WELCOME'    => $s_welcome,
    'WELCOME_REGISTERED'    => sprintf($user->lang['WELCOME_REGISTERED'], $u_welcome_url),
    'WELCOME_GUEST'         => sprintf($user->lang['WELCOME_GUEST'], $config['sitename'], append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=register')),


));

//--End-Welcome_Mod-->]]></action>
													</edit>
											<edit>
							<find><![CDATA['PRIVATE_MESSAGE_INFO_UNREAD'	=> $l_privmsgs_text_unread,

]]></find>
															<action type="after-add"><![CDATA[//Welcome_Mod Variables-->
            'TIME_AFTERNOON'                           => $config['time_afternoon'],
            'TIME_EARLY'                               => $config['time_early'],
            'TIME_EVENING'                             => $config['time_evening'],
            'TIME_LATE'                                => $config['time_late'],
            'TIME_MORNING'                             => $config['time_morning'],
//--End-Welcome_Mod-->]]></action>
													</edit>
									</open>
							<open src="styles/prosilver/template/overall_header.html">
											<edit>
							<find><![CDATA[                <!-- IF U_PRINT_PM --><li class="rightside"><a href="{U_PRINT_PM}" title="{L_PRINT_PM}" accesskey="p" class="print">{L_PRINT_PM}</a></li><!-- ENDIF -->
             </ul>]]></find>
															<action type="after-add"><![CDATA[             <ul class="linklist navlinks">
                <!-- IF S_USER_LOGGED_IN -->
                <li class="leftside">&nbsp;{S_WELCOME} {WELCOME_REGISTERED}</li><li class="rightside">{LAST_VISIT_DATE}&nbsp;|&nbsp;{CURRENT_TIME}</li>
                <!-- ELSE -->
                <li class="leftside">&nbsp;{S_WELCOME} {WELCOME_GUEST}</li><li class="rightside">{CURRENT_TIME}</li>
                <!-- ENDIF -->
             </ul>]]></action>
													</edit>
									</open>
							<open src="styles/subsilver2/template/overall_header.html">
											<edit>
							<find><![CDATA[<div id="datebar">
		<table width="100%" cellspacing="0">
		<tr>
			<td class="gensmall"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ENDIF --></td>
			<td class="gensmall" align="{S_CONTENT_FLOW_END}">{CURRENT_TIME}<br /></td>
		</tr>
		</table>
	</div>

</div>]]></find>
															<action type="replace-with"><![CDATA[<div id="datebar">
<table class="tablebg" width="100%" cellspacing="1">
<tr>
<td class="cat" colspan="2"><h4>{L_WELCOME}</h4></td>
</tr>
<tr>
<td class="row1" width="100%"><div style="float:right;">
<!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}</strong><!-- ELSE --></strong>{CURRENT_TIME}<!-- ENDIF --> 
<!-- IF S_USER_LOGGED_IN --><br />{CURRENT_TIME}<!-- ENDIF --></span></div>
<!-- IF not S_IS_BOT and S_USER_LOGGED_IN -->
<span class="gensmall">
<strong>{S_WELCOME} {WELCOME_REGISTERED}</strong>
<!-- ELSE -->
<strong>{S_WELCOME} {WELCOME_GUEST}</strong>
</span>
<!-- ENDIF -->
</div>
</td>
</tr>
</table>
</div>]]></action>
													</edit>
									</open>
							<diy-instructions lang="en"><![CDATA[Save all files then go to ACP and clear out your templates cache.
Make sure you run the SQL before you clear the cache or you will have header errors.]]></diy-instructions>
				</action-group>
</mod>

Gebruikersavatar
Paul
Beheerder
Beheerder
Berichten: 20316
Lid geworden op: 23 okt 2003, 11:38
Locatie: Utrecht
Contacteer:

Re: instal.xml opent niet

Bericht door Paul » 22 sep 2009, 15:58

Heb je alle files, inclusief de xsl file, uitgepakt?

Gebruikersavatar
odil
Berichten: 710
Lid geworden op: 26 jan 2009, 19:23
Locatie: belgië
Contacteer:

Re: instal.xml opent niet

Bericht door odil » 22 sep 2009, 16:28

Ja na het uitpakken krijg ik een mapje met daarin alle files.
In dit mapje klik ik met rechts op instal.xml en kies dan voor openen met IE of FF
Dubbelklikken op instal.xml helpt ook niet.

Gebruikersavatar
Jeroen
Berichten: 3639
Lid geworden op: 10 mei 2008, 21:22

Re: instal.xml opent niet

Bericht door Jeroen » 22 sep 2009, 16:35

Heb je dat bij ieder MOD pakket of alleen die bepaalde die je nu probeerd te doen?
Jeroen

Gebruikersavatar
odil
Berichten: 710
Lid geworden op: 26 jan 2009, 19:23
Locatie: belgië
Contacteer:

Re: instal.xml opent niet

Bericht door odil » 22 sep 2009, 18:09

Nu bij de 2de MOD

primelinks en de welcome MOD

Plaats reactie