________________________________ From: Francesco <f18m_cpp217...@yahoo.it> To: wxcode-users@lists.sourceforge.net Sent: Wed, May 12, 2010 2:13:15 PM Subject: Re: [wxCode-users] Next issue Hi, well, I've now fixed the setup of the mmwx website so that if you want to see immediate updates of mmwx website you don't need to rely on me anymore: 1) commit changes to mmwx's SVN repo 2) log into wxcode/htdocs/components/mmwx (I use Putty from Windows) 3) run "svn update" ;) That's great, many thanks. >>you can turn it back >> on manually but some other method of display >> would have to be better. > yes, other display methods would be better and I'd gladly accept > patches for that (an easy solution which comes to my mind is to place > a "index.php" file inside all subfolders of the screenshots folder -- > and make that index.php nicely format the .png and .jpeg files present > in that same folder) :) > > OK, I'll see what I can come up with. I've created a solution for this. You can see it in action If you click on the mmwx screenshots link. You'll notice there's a new index.php in mmwx's screenshots directory. It uses the existing facilities to create a wxCode page and displays any png and jpg images found in the directory. If one image is found, it will create one img tag to display the image. If more than one is found, it creates a Slimbox2 link block so you get the nice display. I couldn't see the point in forcing the user to click on the image to view the same image in Slimbox, if there was just the one, so that's why that case gets the single img tag. I borrowed some images from keybinder to make the demo more interesting. To make it site wide, we just need to move the js and css to a global location and adjust the links. Users will need to enter their component's name into the code as they do for the website, unless there's a way to automate that, which would be preferable. Actually, we could just adjust the link to send it via GET or pull it out of the session. I'd like to adjust the writeScreenshotLink() function to use Slimbox, too, if you approve, but we should get this one in place and working so that it suits you first. My only question now is why the website link is still inactive. ;-) Did you have any thoughts as to why the build script is still failing? Cheers, Gary.
------------------------------------------------------------------------------
_______________________________________________ wxCode-users mailing list wxCode-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxcode-users