Thanks, Clear as mud. But I guess I can work with it when I get around to opening up the relevant local config, editing it, then opening my ftp program, etc, etc. Then to make it workable for all my sites, I'll have to do the same to about 5 or 10 other local configs.
I've been out of the programming loop for quite some time. It is a lot of trouble to make this into a backgroundpage cookbook recipe that one might easily add to one's cookbook folders and then just add a single line to local config? Hans wrote: > Thursday, November 22, 2007, 9:00:20 PM, Dr Fred C wrote: > > >> I just want something simple like a having a directive/command of >> (:backgroundpage mybackground.jpg:) that, when put into the main >> section, would override the skin and set the background of the page to >> mybackground.jpg, or at least the main section to mybackground.jpg. I >> suppose there might be a use for (:backgroundsection mybackground.jpg:) >> > > Add this to config.php to define a > (:backgroundpage http://path/to/image/image.jpg :) > markup, which you then can use on any page: > > Markup('backgroundpage', 'directives', > '/\\(:backgroundpage\\s(.*?):\\)/e', > "PageBackground(\$pagename, PSS('$1'))"); > > function PageBackground ($pagename, $arg) { > global $HTMLStylesFmt; > $HTMLStylesFmt[] = " body { background:url($arg);} \n > #wikibody { background:transparent; } \n"; > return ''; > }; > > This should work for the pmwiki default skin. Other skins differ. > You may still have the odd control like the searchbox without > background image. To get a background image applied to eveything one > needs to search out various elements and set their backgrounds to > transparent. You could add these to the function's $HTMLStylesFmt. > > > ~Hans > > > > -- Always, Dr Fred C [EMAIL PROTECTED] _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
