My old site contains simple html files everyone knew
how to deal with. PGV impress users but it also
scares them, well at least some of them. I asked a
less than average site visitor to try to upload a
picture. She gave up after some attempts.
I decided to help but how? The FAQ is not suitable to
include a demo with pics etc., so I hacked Darrel
Damon's modification to add a custom-Popup-help link
at the Help menu.
====================================
At menu.php
Before //-- searchhelp sub menu,
I added Darrel's mod. Note different file name:
//-- modification
$filename = "themes/custom_welcome_menu.php";
if (file_exists($filename)) {
include $filename;
}
//-- end of modification
====================================
My sample_custom_help_menu.php:
* - Help menu customizations
*/
$menu->addSeperator();
$submenu = new Menu("Custom Menu Item 1", "#");
$submenu->addClass
("submenuitem$ff", "submenuitem_hover$ff");
$submenu->addOnclick("window.open('custom link
#1', '_blank', 'top=50,left=10,width=600,height=500,scr
ollbars=1,resizable=1');");
$menu->addSubmenu($submenu);
$menu->addSeperator();
$submenu = new Menu("Custom Menu Item 2", "#");
$submenu->addClass
("submenuitem$ff", "submenuitem_hover$ff");
$submenu->addOnclick("window.open('custom link
#2', '_blank', 'top=50,left=10,width=600,height=500,scr
ollbars=1,resizable=1');");
$menu->addSubmenu($submenu);
?>
====================================
That's all. As you may appreciate almost all code
already exist at PGV. Just pure hack!
Logged In: YES
user_id=1600375
The custom help page:
====================================
*
*/
require "config.php";
require($factsfile["english"]);
if (file_exists( $factsfile[$LANGUAGE])) require $factsfile
[$LANGUAGE];
require $helptextfile["english"];
if (file_exists($helptextfile[$LANGUAGE])) require
$helptextfile[$LANGUAGE];
if (file_exists
('modules/research_assistant/languages/ra_lang.en.php'))
require 'modules/research_assistant/languages/ra_lang.en.php
';
print_simple_header($pgv_lang["help_header"]);
print "<a name=\"top\"></a><span
class=\"helpheader\">".$pgv_lang
["help_header"]."</span><br /><br />\n<div
class=\"helptext\">\n";
?>
<h2>SubTitle here</h2>
<p>content</p>
some pics, video, audio or whatever.
<?php
print "<a href=\"#top\" title=\"".$pgv_lang
["move_up"]."\">$UpArrow</a><br />";
print "<a href=\"javascript:;\" onclick=\"window.close
();\"><b>".$pgv_lang["close_window"]."</b></a>";
print_simple_footer();
?>
====================================
I included the language files require in case you need to
add some help vars.