Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#33 2006-03-09 22:13:26

Manfre
Plugin Author
From: North Carolina
Registered: 2004-05-22
Posts: 588
Website

Re: mem_randimg: Random Image from category

lee wrote:

Many thanks for this plugin.

You’re welcome.

Offline

#34 2006-05-04 19:14:30

vittorio
Member
From: Roma caput mundi
Registered: 2006-02-01
Posts: 122
Website

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

#35 2006-05-04 21:34:27

vittorio
Member
From: Roma caput mundi
Registered: 2006-02-01
Posts: 122
Website

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

#37 2006-06-04 03:44:08

visualpeople
Member
From: Corvallis, Oregon - USA
Registered: 2005-11-16
Posts: 73
Website

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

#38 2006-09-17 21:15:58

lukepermsn
Member
From: london
Registered: 2004-07-15
Posts: 57
Website

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

#40 2014-02-14 07:23:27

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,252
Website Mastodon

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

#41 2014-02-14 07:41:34

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,368
Website GitHub Mastodon Twitter

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

#42 2014-02-15 00:58:44

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,252
Website Mastodon

Re: mem_randimg: Random Image from category

colak wrote #278950:

<txp:images category="image_category" sort="rand()" limit="6">...

cool. thanks!


…. texted postive

Offline

Board footer

Powered by FluxBB