Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Random Content Plugin
#1
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.
Reply
#2
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]
Reply
#3
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
Reply
#4
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.
Reply
#5
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 ?
Reply
#6
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.
Reply
#7
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.
Reply
#8
can you add the code to a page instead of adding it to the template.
Reply
#9
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?
Reply
#10
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
Reply
#11
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?
Reply
#12
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
Reply
#13
any help please ,,,
Reply
#14
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
Reply
#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'
}) 
Reply




Users browsing this thread: 2 Guest(s)