<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.phpgedview.net/en/index.php?action=history&amp;feed=atom&amp;title=Alter_default_menus</id>
	<title>Alter default menus - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.phpgedview.net/en/index.php?action=history&amp;feed=atom&amp;title=Alter_default_menus"/>
	<link rel="alternate" type="text/html" href="https://wiki.phpgedview.net/en/index.php?title=Alter_default_menus&amp;action=history"/>
	<updated>2026-05-15T12:36:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.phpgedview.net/en/index.php?title=Alter_default_menus&amp;diff=9595&amp;oldid=prev</id>
		<title>Nathanhaigh: How To:Alter default menus moved to Alter default menus: removed invalid namespace</title>
		<link rel="alternate" type="text/html" href="https://wiki.phpgedview.net/en/index.php?title=Alter_default_menus&amp;diff=9595&amp;oldid=prev"/>
		<updated>2008-01-11T10:00:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/en/index.php/How_To:Alter_default_menus&quot; class=&quot;mw-redirect&quot; title=&quot;How To:Alter default menus&quot;&gt;How To:Alter default menus&lt;/a&gt; moved to &lt;a href=&quot;/en/index.php/Alter_default_menus&quot; title=&quot;Alter default menus&quot;&gt;Alter default menus&lt;/a&gt;: removed invalid namespace&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Every time I install a new PhpGedView version, I have to go in and change the menus so they make sense to web and PhpGedView newbies. Menu 1 &amp;quot;Welcome Page&amp;quot; --&amp;gt; &amp;quot;Family Trees&amp;quot; Menu 2 &amp;quot;MyGedView Portal&amp;quot; --&amp;gt; &amp;quot;My Pages&amp;quot; Menu 2.1 &amp;quot;MyGedView&amp;quot; --&amp;gt; &amp;quot;My Start Page&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change these in the LANG extras file and you won't have to change with each CVS change or version upgrade.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For those unfamiliar with php, this is every bit as easy as it sounds.&lt;br /&gt;
&lt;br /&gt;
Simply add a new file in your languages folder named extra.en.php then place the following short script in the file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
&lt;br /&gt;
if (stristr($_SERVER[&amp;quot;SCRIPT_NAME&amp;quot;], basename(__FILE__))!==false) {&lt;br /&gt;
&lt;br /&gt;
	print &amp;quot;You cannot access a language file directly.&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
	exit;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
$pgv_lang[&amp;quot;welcome_page&amp;quot;]			= &amp;quot;Family Trees&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
$pgv_lang[&amp;quot;mgv&amp;quot;]					= &amp;quot;My Pages&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
$pgv_lang[&amp;quot;mygedview&amp;quot;]				= &amp;quot;My Start Page&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That is all you have to do to make the menu changes given in the example above.&lt;br /&gt;
&lt;br /&gt;
To rename other menu items, just search for the appropriate item in the lang.en.php and copy it to the extra.en.php file, then change the page title to whatever you like.&lt;br /&gt;
&lt;br /&gt;
Although these examples are for English, the same can be done in any language by working with the appropriate &amp;quot;lang&amp;quot; file and making an &amp;quot;extra&amp;quot; file for that language.&lt;br /&gt;
&lt;br /&gt;
[[Category:How To]]&lt;/div&gt;</summary>
		<author><name>Nathanhaigh</name></author>
		
	</entry>
</feed>