[3.1][3.2][RC] Right Random Image

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Ideas Centre
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3984
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

[3.1][3.2][RC] Right Random Image

Post by HiFiKabin » Thu Sep 24, 2015 3:42 pm

Extension Name: Right Random Image Image
Author: HiFiKabin

Extension Description: Adds images to the RHS of your forum header (LHS for RTL language packs) Each image is randomly loaded and can direct to its own URL. You can set the links to open in a the same or new tab.

Notes:
  • Random in this instance means a random selection at each page load. There is no reference to any previously loaded images so there will be times when the same image is loaded several times in succession.
  • The image must be a standard image extension eg .jpg .gif .png etc
  • If you host the images on your own server, create a directory in the [highlight=yellow]images[/highlight] folder in your forum root (where config.php is) called right_random_images in which to upload them. To ensure the image appears on all pages the URL for the image will then be http://myforum.com/images/right_random_images/image.gif
  • You can adjust the maximum size for images which shrink large images but not affect smaller ones
  • Compatible with my Google Search Extension
Language:
  • EN
Extension Version: 3.1.2-RC1/3.2.2-RC1

IMPORTANT NOTE: Versions 3.1.2/3.2.2 is written in a totally different way to the previous versions meaning you can have as many or as few images as you wish. If you are moving from 3.1.1/3.2.1 YOU MUST disable and delete the data from the existing extension before installing version 3.1.2/3.2.2 .

Supported Styles:
  • prosilver
Screenshots:

Image

Live Demo: HERE

Installation:
  • Download the latest release and unzip it.
  • Upload the the folder hifikabin to root/ext/ and enable it in the ACP
Support:

The contact us link at the bottom of this Forum or This Topic
Last edited by HiFiKabin on Mon Apr 10, 2017 5:41 pm, edited 8 times in total.

User avatar
david63
Registered User
Posts: 16168
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [RC] Right Random Image

Post by david63 » Fri Sep 25, 2015 7:38 am

HiFiKabin wrote:create a directory in the forum root (where config.php is) called right_random_images
Not sure that is necessarily the best place to put the files due to people deleting files/folders when there is an update/upgrade. I would suggest that they go in the store folder - and a nice touch would be if you created that folder for them when you install the extension.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3984
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [RC] Right Random Image

Post by HiFiKabin » Fri Sep 25, 2015 8:33 am

david63 wrote:
HiFiKabin wrote:create a directory in the forum root (where config.php is) called right_random_images
Not sure that is necessarily the best place to put the files due to people deleting files/folders when there is an update/upgrade. I would suggest that they go in the store folder - and a nice touch would be if you created that folder for them when you install the extension.
Good point David. I'll have a play and see what I can do

scorpiors
Registered User
Posts: 127
Joined: Fri Sep 09, 2011 6:14 am

Re: [RC] Right Random Image

Post by scorpiors » Mon Oct 05, 2015 1:31 pm

Live demo is not working.

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3984
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [RC] Right Random Image

Post by HiFiKabin » Mon Oct 05, 2015 2:51 pm

Oh bother (or some such)

I'll fix it now
Last edited by HiFiKabin on Mon Oct 05, 2015 3:02 pm, edited 1 time in total.

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3984
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [RC] Right Random Image

Post by HiFiKabin » Mon Oct 05, 2015 3:02 pm

Fixed!

Tom49er
Registered User
Posts: 133
Joined: Sat Jun 07, 2014 4:51 am

Re: [RC] Right Random Image

Post by Tom49er » Wed Nov 18, 2015 6:17 am

Hi,
I install this extension, but it's not working. Can you tell me what I do wrong? Thank You
http://www.swapvn.com/

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3984
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [RC] Right Random Image

Post by HiFiKabin » Wed Nov 18, 2015 11:17 am

The image path is wrong.

http://www.swapvn/random_images/phuong.gif

should be

http://www.swapvn.com/random_images/phuong.gif

User avatar
noth
Registered User
Posts: 2472
Joined: Fri Jan 07, 2005 7:10 pm
Location: North Surrey
Contact:

Re: [RC] Right Random Image

Post by noth » Thu Nov 19, 2015 7:34 pm


•If you host the images on your own server, create a directory in the store folder in your forum root (where config.php is) called right_random_images in which to upload them. The URL for the image will then be store/right_random_images/image.gif without the need for http:// etc in front
is this still the case? I am getting a cross where the image should be (failed img)

Tom49er
Registered User
Posts: 133
Joined: Sat Jun 07, 2014 4:51 am

Re: [RC] Right Random Image

Post by Tom49er » Fri Nov 20, 2015 5:57 am

Hi,

It's still not working. Thanks

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3984
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [RC] Right Random Image

Post by HiFiKabin » Fri Nov 20, 2015 10:21 am

Tom49er wrote:Hi,

It's still not working. Thanks
The image is not where you think it is. There is nothing at:-

http://www.swapvn.com/random_images/phuong.gif

try

http://www.swapvn.com/right_random_images/phuong.gif

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3984
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [RC] Right Random Image

Post by HiFiKabin » Fri Nov 20, 2015 10:30 am

noth wrote:

•If you host the images on your own server, create a directory in the store folder in your forum root (where config.php is) called right_random_images in which to upload them. The URL for the image will then be store/right_random_images/image.gif without the need for http:// etc in front
is this still the case? I am getting a cross where the image should be (failed img)
Try putting the right_random_images folder in images

so the path would be

images/right_random_images/image.gif

User avatar
noth
Registered User
Posts: 2472
Joined: Fri Jan 07, 2005 7:10 pm
Location: North Surrey
Contact:

Re: [RC] Right Random Image

Post by noth » Fri Nov 20, 2015 6:03 pm

this works

HOWEVER

if you use the shortened (without the need for http:// etc in front) e.g images/right_random_images/image1.gif this stops working as soon as you click onto any other ext e.g

app.php/video or app.php/quotes or app.php/directory

going to any other ext immediately gives you a failed image

apart from that IT WORKS!!! :D very nice

another thing is, it pushes the site logo and site title right to the top, would be nice to have that vertically centred but I am sure that will come in the next release :P NICE EXT anyway !!

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3984
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [RC] Right Random Image

Post by HiFiKabin » Fri Nov 20, 2015 6:26 pm

OK, I didn't think about any conflict with other extensions.

Yes, Images wider than 200px cause the logo etc to go out of alignment. It is certainly something I will look at for future releases

User avatar
noth
Registered User
Posts: 2472
Joined: Fri Jan 07, 2005 7:10 pm
Location: North Surrey
Contact:

Re: [RC] Right Random Image

Post by noth » Fri Nov 20, 2015 8:23 pm

I was talking about images of 200 width

the title and phpBB logo go straight to the top and if there was a vertical centre with the right random image would be slick, but OK as it is

with styles that inherit from prosilver e.g. aero, Allan Style subSilver you might think that the right random image would inherit through but sadly it does not, is there anything we can do to fix that? :P

very good ext, I found that the best images to use are 200 wide and around 100-200 high

Post Reply

Return to “Extensions in Development”