Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#31 2006-03-01 17:42:26
- frederik
- Member
- From: Denmark
- Registered: 2004-12-08
- Posts: 17
Re: mem_randimg: Random Image from category
okay – i solved the problem by changing the $siteurl to ‘http://’.$siteurl.
Great plugin by the way!
/Frederik
Offline
#32 2006-03-09 22:01:44
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: mem_randimg: Random Image from category
Many thanks for this plugin.
Offline
Re: mem_randimg: Random Image from category
lee wrote:
Many thanks for this plugin.
You’re welcome.
Offline
Re: mem_randimg: Random Image from category
Hi everybody,
I’ve got a problem with this plugin: my images folder, as shown in the advanced preferences, is simply ‘images’, but to get the random pics visible i’ve got to change it in ‘txp/images’. I’m having trouble because if i act this way all the other images uploaded in my txp don’t show up, as their path result incorrect. What can i do?
Thanks
Vittorio
Happily served with Txp: Strampelli.net, Brain Essence, NicolaTranfaglia.com…
Offline
Re: mem_randimg: Random Image from category
Solved. Just used $siteurl but without de ‘http://’. as Frederik
Happily served with Txp: Strampelli.net, Brain Essence, NicolaTranfaglia.com…
Offline
#36 2006-05-19 21:23:17
- saccade
- Plugin Author

- From: Neubeuern, Germany
- Registered: 2004-11-05
- Posts: 521
Re: mem_randimg: Random Image from category
@Boogenstein
I don’t know if your question regarding CSS-background-images has been answered meanwhile, but since I needed the same thing, I found the following solution:
Add an additional style setting within the page template, and after the css-tag, which simply defines the background image for any element you need.
I did it like this (replace [selector] by your selector, e.g. div):
<code><style type=“text/css”>
<!—
[selector]
{
background: #eee url(<txp:mem_randimg form=“background” category=“background” />) top left no-repeat;
}
—>
</style>
</code>
with the form “background” simply containing this tag:
<code>
<txp:mem_img_url />
</code>
Last edited by saccade (2006-05-19 21:37:01)
Offline
Re: mem_randimg: Random Image from category
This is a great plugin — anyone have any tips for adding more than one random image?
I’d love to have it display three random images, for instance. Obviously, I can call the form three times, but I don’t have enough images to ensure that they aren’t repeated (ie three random images that are all the same isn’t very random).
I thought it would be easy, but after playing around with the plugin code a bit, I think I’m just a bit too green to make it work.
-Ryan
Offline
Re: mem_randimg: Random Image from category
hi manfre
another good plug-in :-)
however, it doesn’t work with image category ‘parents’ – i.e. i would like to be able to show random images from all child categories…
is this functionality even possible in textpattern?
L.
“Absorb what is useful, Discard what is not, Add what is uniquely your own” – Bruce Lee
Offline
#39 2006-11-27 15:08:35
- hachi
- Member
- From: switzerland
- Registered: 2004-04-24
- Posts: 25
Re: mem_randimg: Random Image from category
does this work with the newest release 4.0.4.?
Thanks. Oliver
Offline
Re: mem_randimg: Random Image from category
Is this plugin still valid with the latest version 4.5.5?
Or is there another way?
…. texted postive
Offline
Re: mem_randimg: Random Image from category
bici wrote #278948:
Is this plugin still valid with the latest version 4.5.5?
Or is there another way?
<txp:images category="image_category" sort="rand()" limit="6">
<txp:image />
</txp:images>
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: mem_randimg: Random Image from category
colak wrote #278950:
<txp:images category="image_category" sort="rand()" limit="6">...
cool. thanks!
…. texted postive
Offline