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
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
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
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
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
Derrick Farnell wrote:
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.
Those lines are errors. giving out what they said would be very helpful to diagnose it. Although if what you were including didn't begin with <?php, it's probably that.
That works - thanks!
Derrick
On Sat, May 31, 2008 at 10:27 PM, Platonides Platonides@gmail.com wrote:
Derrick Farnell wrote:
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.
Those lines are errors. giving out what they said would be very helpful to diagnose it. Although if what you were including didn't begin with <?php, it's probably that.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Hi,
Is there a way to do a custom upload form which would replace the native one?
Ludo
You should be able to change the upload form using http://www.mediawiki.org/wiki/Manual:Hooks/UploadForm:initial the UploadForm:initial hook. You can check the extensions that use that hook for examples.
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of LeLorrain Sent: Sunday, June 01, 2008 11:32 AM To: MediaWiki announcements and site admin list Subject: [Mediawiki-l] upload form
Hi,
Is there a way to do a custom upload form which would replace the native
one?
Ludo
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Alternatively, if you just want to customize some of the form text you use some of the entries at yourwiki.org/Special:Allmessages, such as http://www.appropedia.org/MediaWiki:Uploadtext.
Enjoy, Lonny
On Mon, Jun 2, 2008 at 3:51 PM, Christensen, Courtney < ChristensenC@battelle.org> wrote:
You should be able to change the upload form using http://www.mediawiki.org/wiki/Manual:Hooks/UploadForm:initial the UploadForm:initial hook. You can check the extensions that use that hook for examples.
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of LeLorrain Sent: Sunday, June 01, 2008 11:32 AM To: MediaWiki announcements and site admin list Subject: [Mediawiki-l] upload form
Hi,
Is there a way to do a custom upload form which would replace the native
one?
Ludo
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@lists.wikimedia.org