Page 1 of 1

cant change the simpal portal php

Posted: 24 Apr 2010, 01:20
by DannyG
Ok.. for some reason I can not change the welcome messagon on the php file. When I add my new welcome content and save and upload and refresh the template the portal page wont load.

Any ideas why?

simple portal php file when edited.

Code: Select all

<?php
/**
*
* @package Portal page English language
* @version 1.0.0 of 15.05.2009
* @copyright (c) By Stoker ~ http://www.phpbb3bbcodes.com/
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* DO NOT CHANGE!
*/
if (!defined('IN_PHPBB'))
{
  exit;
}

if (empty($lang) || !is_array($lang))
{
  $lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine

// Portal page
$lang = array_merge($lang, array(
   'PORTAL_HEADLINE'			=> 'Portal',
   'START_DATE'					=> 'Board start date',
   'PORTAL_REMEMBER'			=> 'Remember me',
   'PORTAL_WELCOME'				=> 'Welcome to',
   'PORTAL_MANAGEMENT'			=> 'The Management',
   'PORTALAFF'					=> 'Affiliates',
   'PORTAL_USERMENU'			=> 'User Menu',
   'PORTAL_WELCOME_CONTENT'		=> 'Welcome to Music Mix DJs, your online DJ resource center and acapella pool. Here you will find a gambit of tools to meet your DJing needs – from Acapellas (both DIY and Studio), samples, VSTi, to the lastest applications to get your mixes to the pro level. Whether you mix for fun or professionally, you will find what you need here. We cater to all styles of music and DJ’s, from the bedroom to the microwave to the turntabelist – we have what you are looking for.

Sign-up is free to access many great benefits that MMDJs can offer you; but why not take it a step further! Become a VIP and have access to endless amounts of samples, studio acapellas, software, and technique tutorials to get your next mix floor ready. Included in your membership are chances to win prizes through one of many remixing competitions – show off your skills with the gear you find here and hear what other esteemed members have to say!

Music Mix DJs is your final stop for your musical needs – let’s not waste anymore of your time; get signed up; it's fast, easy and take a look around! Don’t forget to add your artist intro and listen to some hot mixes from your peers. And welcome to the Music Mix DJ's community!',

));

// Top Five by Richard McGirr
$lang = array_merge($lang, array(
	'TOP_FIVE_ACTIVE'	=> 'Top Posters',
    'TOP_FIVE_NEWEST'	=> 'Newest Users',
));

// Activity Stats by Highway of Life
$lang = array_merge($lang, array(
	'USERS_24HOUR_TOTAL'	=> '<strong>%d</strong> members active over the last 24 hours',
	'24HOUR_TOPICS'			=> 'New Topics <strong>%d</strong>',
	'24HOUR_POSTS'			=> 'New Posts <strong>%d</strong>',
	'24HOUR_USERS'			=> 'New members <strong>%d</strong>',
	'24HOUR_STATS'			=> 'Activity over the last 24 hours',
));

// Welcome Mod by Richard McGirr
$lang = array_merge($lang, array(
    'UP_LATE'    => 'You\'re up late %1$s, Shouldn\'t you be sleeping?',
    'UP_EARLY'    => 'Good Morning %1$s, You\'re up early today',
    'GOOD_MORNING'        => 'Good Morning %1$s, What a lovely morning it is',
    'GOOD_AFTERNOON'    => 'Good Afternoon %1$s, Finally you are here',
    'GOOD_EVENING'        => 'Good Evening %1$s, Nice to see you here',
    'WELCOME_GUEST'        => 'Guest',
));

// Statistics
$lang = array_merge($lang, array(
	'POSTS_PER_DAY_OTHER'	=> 'Posts per day <strong>%.2f</strong>',
	'POSTS_PER_DAY_ZERO'	=> 'Posts per day <strong>None</strong>',
	'POSTS_PER_TOPIC_OTHER'	=> 'Posts per topic <strong>%.2f</strong>',
	'POSTS_PER_YEAR_OTHER'	=> 'Posts per year <strong>%s</strong>',
	'POSTS_PER_YEAR_ZERO'	=> 'Posts per year <strong>None</strong>',
	'POSTS_PER_TOPIC_ZERO'	=> 'Posts per topic <strong>None</strong>',
	'POSTS_PER_USER_OTHER'	=> 'Posts per member <strong>%.2f</strong>',
	'POSTS_PER_USER_ZERO'	=> 'Posts per member <strong>None</strong>',
	'TOPICS_PER_DAY_OTHER'	=> 'Topics per day <strong>%.2f</strong>',
	'TOPICS_PER_DAY_ZERO'	=> 'Topics per day <strong>None</strong>',
	'TOPICS_PER_YEAR_OTHER'	=> 'Topics per year <strong>%s</strong>',
	'TOPICS_PER_YEAR_ZERO'	=> 'Topics per year <strong>None</strong>',
	'TOPICS_PER_USER_OTHER'	=> 'Topics per member <strong>%.2f</strong>',
	'TOPICS_PER_USER_ZERO'	=> 'Topics per member <strong>None</strong>',
	'USERS_PER_DAY_OTHER'	=> 'Members per day <strong>%.2f</strong>',
	'USERS_PER_DAY_ZERO'	=> 'Members per day <strong>None</strong>',
	'USERS_PER_YEAR_OTHER'	=> 'Members per year <strong>%s</strong>',
	'USERS_PER_YEAR_ZERO'	=> 'Members per year <strong>None</strong>',
	'TOTAL_POSTS_OTHER'		=> 'Total posts <strong>%s</strong>',
	'TOTAL_POSTS_ZERO'		=> 'Total posts <strong>0</strong>',
	'TOTAL_TOPICS_OTHER'	=> 'Total topics <strong>%s</strong>',
	'TOTAL_TOPICS_ZERO'		=> 'Total topics <strong>0</strong>',
	'TOTAL_USERS_OTHER'		=> 'Total members <strong>%s</strong>',
	'TOTAL_USERS_ZERO'		=> 'Total members <strong>0</strong>',
	'TOTAL_FILES_OTHER'		=> 'Total attachments <strong>%s</strong>',
	'TOTAL_FILES_ZERO'		=> 'Total attachments <strong>0</strong>',
	'FILES_PER_DAY_OTHER'	=> 'Attachments per day <strong>%.2f</strong>',
	'FILES_PER_DAY_ZERO'	=> 'Attachments per day <strong>None</strong>',
	'FILES_PER_YEAR_OTHER'	=> 'Attachments per year <strong>%s</strong>',
	'FILES_PER_YEAR_ZERO'	=> 'Attachments per year <strong>None</strong>',
	'FILES_PER_USER_OTHER'	=> 'Attachments per member <strong>%.2f</strong>',
	'FILES_PER_USER_ZERO'	=> 'Attachments per member <strong>None</strong>',
));

?>
Before edit (current)

Code: Select all

<?php
/**
*
* @package Portal page English language
* @version 1.0.0 of 15.05.2009
* @copyright (c) By Stoker ~ http://www.phpbb3bbcodes.com/
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* DO NOT CHANGE!
*/
if (!defined('IN_PHPBB'))
{
  exit;
}

if (empty($lang) || !is_array($lang))
{
  $lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine

// Portal page
$lang = array_merge($lang, array(
   'PORTAL_HEADLINE'			=> 'Portal',
   'START_DATE'					=> 'Board start date',
   'PORTAL_REMEMBER'			=> 'Remember me',
   'PORTAL_WELCOME'				=> 'Welcome to',
   'PORTAL_MANAGEMENT'			=> 'The Management',
   'PORTALAFF'					=> 'Affiliates',
   'PORTAL_USERMENU'			=> 'User Menu',
   'PORTAL_WELCOME_CONTENT'		=> 'We are growing Dj resources community that provides all members with the essential tools for music production. With good contacts, we continuously keep our resources up to date so your music productions keep up with the current genres of music. As always, we encourage members to help out where they can, whether its giving general music advice or uploading files in our resources sections, making a friendly atmosphere for all.<br /><br /> Love producing music? 
If you like to spin or use producing software ie.. Ableton, Fruity Loops, Reason or even a simple mixing program, we would love to hear what tracks and mixsets you have. Please feel free to upload them to the "Members Production" section of the forum for feedback & comments.
',
));

// Top Five by Richard McGirr
$lang = array_merge($lang, array(
	'TOP_FIVE_ACTIVE'	=> 'Top Posters',
    'TOP_FIVE_NEWEST'	=> 'Newest Users',
));

// Activity Stats by Highway of Life
$lang = array_merge($lang, array(
	'USERS_24HOUR_TOTAL'	=> '<strong>%d</strong> members active over the last 24 hours',
	'24HOUR_TOPICS'			=> 'New Topics <strong>%d</strong>',
	'24HOUR_POSTS'			=> 'New Posts <strong>%d</strong>',
	'24HOUR_USERS'			=> 'New members <strong>%d</strong>',
	'24HOUR_STATS'			=> 'Activity over the last 24 hours',
));

// Welcome Mod by Richard McGirr
$lang = array_merge($lang, array(
    'UP_LATE'    => 'You\'re up late %1$s, Shouldn\'t you be sleeping?',
    'UP_EARLY'    => 'Good Morning %1$s, You\'re up early today',
    'GOOD_MORNING'        => 'Good Morning %1$s, What a lovely morning it is',
    'GOOD_AFTERNOON'    => 'Good Afternoon %1$s, Finally you are here',
    'GOOD_EVENING'        => 'Good Evening %1$s, Nice to see you here',
    'WELCOME_GUEST'        => 'Guest',
));

// Statistics
$lang = array_merge($lang, array(
	'POSTS_PER_DAY_OTHER'	=> 'Posts per day <strong>%.2f</strong>',
	'POSTS_PER_DAY_ZERO'	=> 'Posts per day <strong>None</strong>',
	'POSTS_PER_TOPIC_OTHER'	=> 'Posts per topic <strong>%.2f</strong>',
	'POSTS_PER_YEAR_OTHER'	=> 'Posts per year <strong>%s</strong>',
	'POSTS_PER_YEAR_ZERO'	=> 'Posts per year <strong>None</strong>',
	'POSTS_PER_TOPIC_ZERO'	=> 'Posts per topic <strong>None</strong>',
	'POSTS_PER_USER_OTHER'	=> 'Posts per member <strong>%.2f</strong>',
	'POSTS_PER_USER_ZERO'	=> 'Posts per member <strong>None</strong>',
	'TOPICS_PER_DAY_OTHER'	=> 'Topics per day <strong>%.2f</strong>',
	'TOPICS_PER_DAY_ZERO'	=> 'Topics per day <strong>None</strong>',
	'TOPICS_PER_YEAR_OTHER'	=> 'Topics per year <strong>%s</strong>',
	'TOPICS_PER_YEAR_ZERO'	=> 'Topics per year <strong>None</strong>',
	'TOPICS_PER_USER_OTHER'	=> 'Topics per member <strong>%.2f</strong>',
	'TOPICS_PER_USER_ZERO'	=> 'Topics per member <strong>None</strong>',
	'USERS_PER_DAY_OTHER'	=> 'Members per day <strong>%.2f</strong>',
	'USERS_PER_DAY_ZERO'	=> 'Members per day <strong>None</strong>',
	'USERS_PER_YEAR_OTHER'	=> 'Members per year <strong>%s</strong>',
	'USERS_PER_YEAR_ZERO'	=> 'Members per year <strong>None</strong>',
	'TOTAL_POSTS_OTHER'		=> 'Total posts <strong>%s</strong>',
	'TOTAL_POSTS_ZERO'		=> 'Total posts <strong>0</strong>',
	'TOTAL_TOPICS_OTHER'	=> 'Total topics <strong>%s</strong>',
	'TOTAL_TOPICS_ZERO'		=> 'Total topics <strong>0</strong>',
	'TOTAL_USERS_OTHER'		=> 'Total members <strong>%s</strong>',
	'TOTAL_USERS_ZERO'		=> 'Total members <strong>0</strong>',
	'TOTAL_FILES_OTHER'		=> 'Total attachments <strong>%s</strong>',
	'TOTAL_FILES_ZERO'		=> 'Total attachments <strong>0</strong>',
	'FILES_PER_DAY_OTHER'	=> 'Attachments per day <strong>%.2f</strong>',
	'FILES_PER_DAY_ZERO'	=> 'Attachments per day <strong>None</strong>',
	'FILES_PER_YEAR_OTHER'	=> 'Attachments per year <strong>%s</strong>',
	'FILES_PER_YEAR_ZERO'	=> 'Attachments per year <strong>None</strong>',
	'FILES_PER_USER_OTHER'	=> 'Attachments per member <strong>%.2f</strong>',
	'FILES_PER_USER_ZERO'	=> 'Attachments per member <strong>None</strong>',
));

?>

Re: cant change the simpal portal php

Posted: 24 Apr 2010, 01:25
by cisco007
so how did you originally get it to show what is showing on your portal welcome message now?

Re: cant change the simpal portal php

Posted: 24 Apr 2010, 01:48
by DannyG
The way the mod said, Edit welcome message in simpal portal php

EDIT:

Could it be cos Ive added extra areas in the simpal portal html file?

Re: cant change the simpal portal php

Posted: 24 Apr 2010, 01:56
by cisco007
not unless you messed with the portal welcome block!

Re: cant change the simpal portal php

Posted: 24 Apr 2010, 06:40
by Stoker
Unfortunately I dont know the name of the little sign used here: it's
You are using it two places and you are not allowed to use that sign in the language files.
If you are going to use it, you should do it like this instead: it\'s