Members   Search      Help    Register    Login    Home
Home » Support Forums for PMBT 2.X » General Help for 2.X » Formatting the Help Popup window
Formatting the Help Popup window [message #4697] Sun, 08 August 2010 06:07 Go to next message
watermolecule is currently offline watermolecule  United States
Messages: 109
Registered: July 2010
Super-Seeder
I figured out that the Help Popup window is controlled in /themes/mytheme/main.php but there is a problem. I see how I can change the icon at the top of the help window and I see how I can change the color of the main section of the window, but I don't see how I can change the color of the top bar of the help window.

The code in main.php is as follows:


function help($name,$help,$title = "") {
echo "<span onmouseover=\"return overlib('".addslashes(str_replace(Array("\n","\""),Array( "","'"),$help)),"'";
if ($title != "") echo ",CAPTION, '".addslashes(str_replace(Array("\n","\""),Array("","' "),$title))."'";
echo " ,FGCOLOR,'#ffffff',CAPICON,'themes/pmbt/pics/help.png',SHADO W,SHADOWOPACITY,40,SHADOWCOLOR,'#000000',SHADOWX,2,SHADOWY,2 ,HAUTO,VAUTO);\ " onmouseout=\"return nd();\" style=\"cursor:help\">".$name."</span>";
}


So how can I change the top bar color? I also attached a picture to make things totally clear.
Re: Formatting the Help Popup window [message #4698 is a reply to message #4697] Sun, 08 August 2010 07:07 Go to previous messageGo to next message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
change this
function help($name,$help,$title = "") {
echo "<span onmouseover=\"return overlib('".addslashes(str_replace(Array("\n","\""),Array( "","'"),$help)),"'";
if ($title != "") echo ",CAPTION, '".addslashes(str_replace(Array("\n","\""),Array("","' "),$title))."'";
echo " ,FGCOLOR,'#ffffff',CAPICON,'themes/pmbt/pics/help.png',SHADO W,SHADOWOPACITY,40,SHADOWCOLOR,'#000000',SHADOWX,2,SHADOWY,2 ,HAUTO,VAUTO);\ " onmouseout=\"return nd();\" style=\"cursor:help\">".$name."</span>";
}

to
function help($name,$help,$title = "") {
echo "<span onmouseover=\"return overlib('".addslashes(str_replace(Array("\n","\""),Array( "","'"),$help)),"'";
if ($title != "") echo ",CAPTION, '".addslashes(str_replace(Array("\n","\""),Array("","' "),$title))."'";
echo " ,FGCOLOR,'#ffffff',BGCOLOR,'#0000CC',CAPICON,'themes/pmbt/pics/help.png',SHADO W,SHADOWOPACITY,40,SHADOWCOLOR,'#000000',SHADOWX,2,SHADOWY,2 ,HAUTO,VAUTO);\ " onmouseout=\"return nd();\" style=\"cursor:help\">".$name."</span>";
}

this and then make
,FGCOLOR,'#ffffff',BGCOLOR,'#0000CC'

the color you want


http://a.imageshack.us/img831/5562/mybikes.png
Re: Formatting the Help Popup window [message #4699 is a reply to message #4697] Sun, 08 August 2010 07:37 Go to previous message
watermolecule is currently offline watermolecule  United States
Messages: 109
Registered: July 2010
Super-Seeder
Worked - Thanks!

BTW:
For those who may stumble upon this later: the syntax is a bit broken (i.e. 'SHADO W'should be 'SHADOW', etc.), but the code is correct!
Previous Topic:Duplicate Torrent Error Message
Next Topic:Modifying the Torrent Description
Goto Forum:
  


Current Time: Wed Feb 08 11:41:55 GMT 2012

Total time taken to generate the page: 0.00736 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software