Posts: 661
Threads: 52
Joined: Feb 2011
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:
Add New Ad:
Manage Categories:
Help:
Any suggestions to improve usability/functionality are appreciated.
Posts: 1
Threads: 0
Joined: Feb 2012
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.
Posts: 661
Threads: 52
Joined: Feb 2011
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.
It is not a bug, I did not include the image browser in but will in the next version
Posts: 1,129
Threads: 137
Joined: Feb 2012
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.
Posts: 1,129
Threads: 137
Joined: Feb 2012
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 < 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 ?
Posts: 1,129
Threads: 137
Joined: Feb 2012
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="\"Header" height:="" src="\" style="\"width:" /></p>
Mad. Maddening too.
Posts: 661
Threads: 52
Joined: Feb 2011
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="\"Header" height:="" src="\" style="\"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.
Posts: 2
Threads: 1
Joined: Jun 2012
can you add the code to a page instead of adding it to the template.
Posts: 346
Threads: 27
Joined: Sep 2010
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?
Posts: 28
Threads: 4
Joined: Jul 2012
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
Posts: 6
Threads: 2
Joined: May 2012
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?
Posts: 11
Threads: 0
Joined: Jan 2013
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
Posts: 11
Threads: 0
Joined: Jan 2013
Posts: 6
Threads: 2
Joined: Apr 2013
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
Posts: 1,247
Threads: 82
Joined: Feb 2011
2014-12-15, 07:37:04
(This post was last modified: 2014-12-15, 09:00:43 by datiswous.)
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' })
|