GetSimple Support Forum
Random Content Plugin - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13)
+--- Thread: Random Content Plugin (/showthread.php?tid=2672)



Random Content Plugin - mikeh - 2012-01-29

Random Content Plugin - Extend

This is a simple and easy to use plugin for displaying random content (ads, images, quotes, etc..) on your website.

Features:
  • Create, edit & delete categories
  • Create, edit & delete content for categories
  • Choose number of ads to display at a time for each categories
  • Place the random content in your template files

This plugin was formally known as Random Ads
It has many updates and changes from the original and is geared towards all content rather then just ads.

Installation:
  • Drag the RandomContent.php file to your plugins directory and navigate to 'pages->Random Content' in your Admin Panel.
  • There is a help page within the admin panel to explain how to include the random ads in your template.


Screenshots:

View All Ads:

[Image: view.jpg]


Add New Ad:

[Image: add.jpg]


Manage Categories:

[Image: categories.jpg]


Help:

[Image: help.jpg]


Any suggestions to improve usability/functionality are appreciated.


Random Content Plugin - biggeorgian - 2012-02-05

Hi There, I've Just downloaded this plugin, but when I need insert image into random category post it doesn't works correctly. As you can see on image below, the "browse" button dissapeared. please fix this bug.

Also this plugin doesn't works with I18N plugin. It would be good to see I18N support in next release.

[Image: capturetrv.jpg]


Random Content Plugin - mikeh - 2012-02-05

biggeorgian Wrote:Hi There, I've Just downloaded this plugin, but when I need insert image into random category post it doesn't works correctly. As you can see on image below, the "browse" button dissapeared. please fix this bug.

Also this plugin doesn't works with I18N plugin. It would be good to see I18N support in next release.

[Image: capturetrv.jpg]
It is not a bug, I did not include the image browser in but will in the next version


Random Content Plugin - Timbow - 2012-05-11

This is a really neat plugin. IMHO a website that changes is far more interesting and engaging than a set of static pages to the same template. Previously I experimented with a couple of php scripts for displaying random images and texts but this one does the job better.

Problems I experienced:
  • It needs a nice clear explanation of its functions and setup
  • Relative paths to my files just didn't seem to work
  • The editor caused grief by putting my images in paragraph tags, I had to alter the css to make them display as blocks

But good job! Thanks Mike. I will show you what I have done with it when I am finished. If I find some time I might write some user notes for you.


Random Content Plugin - Timbow - 2012-05-25

I am trying to use a random selection of images and the html editor is mangling the code every time. I unchecked the 'enable html editor' tickbox but it is still permanently on. So I paste in < and it turns it into &lt; How can I fix this?

Having got the code mangled I can't then edit it - in the Edit Content window the button which should say 'Save' says 'Submit Query'. don't know what that means. anyway I am having to delete everything and reenter all the data from scratch because I couldn't edit the urls to make them relative. Phew!

Any help ?


Random Content Plugin - Timbow - 2012-05-29

Struggling with this one again today. My random images in my header work fine locally on wamp but when I upload the site it all goes haywire.

If I delete all the random content then start adding content, entering

<p> <img alt="Header image001" src="http://www.coleridgeway.com/data/uploads/001.jpg" style="width: 304px; height: 140px;" /></p>

then I save it and come back to it and it has been changed to complete bilge

<p> <img alt="\&quot;Header" height:="" src="\" style="\&quot;width:" /></p>

Mad. Maddening too.


Random Content Plugin - mikeh - 2012-06-01

Timbow Wrote:Struggling with this one again today. My random images in my header work fine locally on wamp but when I upload the site it all goes haywire.

If I delete all the random content then start adding content, entering

<p> <img alt="Header image001" src="http://www.coleridgeway.com/data/uploads/001.jpg" style="width: 304px; height: 140px;" /></p>

then I save it and come back to it and it has been changed to complete bilge

<p> <img alt="\&quot;Header" height:="" src="\" style="\&quot;width:" /></p>

Mad. Maddening too.

It seems your server has a bit of an out of norm setup. I will look into this and let you know my solution.


Random Content Plugin - nixxs - 2012-06-06

can you add the code to a page instead of adding it to the template.


Random Content Plugin - Angryboy - 2012-06-07

Links don't seem to be saved properly with this plugin, i.e. if I put a link in the content, after I save the query then go back to edit the content, the url becomes just a \ slash. Is this to do with content in quotations?


Random Content Plugin - david.matthewson - 2012-07-04

Hmm.. I agree it's a shame this does not work with I18N.. and it also seems that the author's web site & domain has expired...

David


Random Content Plugin - trilbo - 2012-10-15

I'd like to be able to use components as Random Content category contents, in order to avoid duplicating content. (Or vice versa; have RC contents treated as categories.)

I'm using the DynPages plugin for shortcodes, and it would be very useful to reference RC content within my pages, e.g.

Code:
{% rc_content_item_name %}

That way, you could have RC items as random and fixed content, and you'd only have to edit them in one place.

This could either be via DynPages or RC-specific shortcode.

What do you think - could that feature be implemented?


RE: Random Content Plugin - SteveSy - 2013-01-29

hi mikeh , its very useful plugin actually i'm trying to intgreate it with your GS blog , i want to show last three post one per one and switch between them randomly ! so how can i show blog contact inside this plugin ? i tried to write <? show_blog_recent_posts(true, null, true, true); ?> but it dosen't work , please your help


RE: Random Content Plugin - SteveSy - 2013-01-30

any help please ,,,


RE: Random Content Plugin - sbollaerts - 2013-04-15

Hello,

I've struggling too! Finally I think I addressed 2 issues:
- Url are malformed: I added some str_replace to remove those "\"
- And changed the instanciation of CKEditor so that you can now browse your server

Hope this works for you too!
Serge


RE: Random Content Plugin - datiswous - 2014-12-15

Does not have browse server support, when adding link file, or image.
With this quick edit, it can be added to the plugin:

In RandomContent.php on line 423, you see:

PHP Code:
<?php echo $EDOPTIONS?>
}) 

Edit this, so it shows this:

PHP Code:
<?php echo $EDOPTIONS?>,
        filebrowserBrowseUrl : 'filebrowser.php?type=all',
        filebrowserImageBrowseUrl : 'filebrowser.php?type=images'
}) 

For editing see line 469:
PHP Code:
<?php echo $EDOPTIONS?>
}) 
Change that in:
PHP Code:
<?php echo $EDOPTIONS?>,
        filebrowserBrowseUrl : 'filebrowser.php?type=all',
        filebrowserImageBrowseUrl : 'filebrowser.php?type=images'
})