1 a_shane Mar 02, 2005 07:37
3 milktoast Apr 01, 2005 19:25
I'm trying to use this code to get a random image in my blog side block.
I don't write code so I'm probably missing something... sorry
Can you help?
Jason
I'm using b2evolution and the wpc_outback skin
I put this code in my _main.php file but the block doesn't show up.
Here is the code I use
I tried this
<!--#include virtual="/gallery/block-random-enhanced.php?album=The-Greenes" -->
and this
<!--#include
virtual="../../../gallery/block-random-enhanced.php?album=The-Greenes" -->
and this
here is my directory structure
htdocs
htdocs/blogs
htdocs/blogs/skins/
htdocs/blogs/skins/wpc_outback
htdocs/blogs/skins/wpc_outback/_main.php
htdocs/gallery
htdocs/gallery/albums -> htdocs/albums
htdocs/gallery/block-random-enhanced.php
Any Ideas?
4 personman Apr 01, 2005 21:20
I used a php include and used the absolute web path.
<? include("http://www.personman.com/gallery/block-random-enhanced.php?album=fergusons") ?>
5 milktoast Apr 01, 2005 21:33
Awesome... thanks... one more question...
Take a look... http://www.meatblog.com
how do I get that font size to be smaller under the photos?
Thanks again
6 personman Apr 01, 2005 21:44
Add this code to your style.css file:
.caption { font-size: 8pt }
7 milktoast Apr 01, 2005 22:13
Kewl... thanks man... that did the trick
8 personman Apr 01, 2005 22:16
No problem.
You could use block-random-enhanced.php. Get it [url=http://www.barcahall.com/gallery-block-random.html]here[/url]. You tell it which album to pull from like this:
block-random-enhanced.php?album=youralbum
It also has a slightly nicer layout. Your caption and album name will all be closer together.
But I don't think it will let you exclude albums. You just have to move the sub-albums you want to pull from into an album. If you find a way to just exclude two albums, I'd be interested in it, too.