Thanks very much - I'll give it a go in the morning. Derrick
On Sat, May 31, 2008 at 9:26 PM, DanTMan dan_the_man@telus.net wrote:
The ?> is not needed at the end of any file. Just start the .php file off with the <?php
~Daniel Friesen(Dantman) of: -The Gaiapedia (http://gaia.wikia.com) -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG) -and Wiki-Tools.com (http://wiki-tools.com)
Derrick Farnell wrote:
Thanks - LocalSettings.php doesn't end in a ?>, but I notice that the extension code does not begin <?php. Should I therefore just add this to
the
start of the MyVariables.php file - or should I also add ?> to the end of the file?
On Sat, May 31, 2008 at 8:51 PM, DanTMan dan_the_man@telus.net wrote:
Make sure that the MyVariables.php file starts with a <?php And that the LocalSettings.php does *not* have a ?> at the end.
~Daniel Friesen(Dantman) of: -The Gaiapedia (http://gaia.wikia.com) -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG) -and Wiki-Tools.com (http://wiki-tools.com)
Derrick Farnell wrote:
Hi
I've tried posting about this problem on the extension's talk page, but
to
no avail.
I'm using the 'Variables' extension: http://www.mediawiki.org/wiki/Extension:Variables
which creates the variable {{CURRENTUSER}}.
When I simply insert all of the code provided into LocalSettings.php,
it
works fine. However, if, as suggested, I instead only insert the line:
require_once( "$IP/extensions/MyVariables/MyVariables.php" );
at the bottom of the LocalSettings.php file, and place the code in the
file
'MyVariables.php' in the folder 'MyVariables' in the folder
'extensions',
then it doesn't work - the layout of the wiki pages just becomes a bit broken-up and there are several lines of code superimposed along the
top
of
every page.
I've double-checked every step of the process and can't find any
errors.
Can anyone see why the extension would work the first way but not the second?
Thanks in advance for any help.
Derrick _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l