Indexhibit
Index + Exhibit

Login:

Created by
Daniel Eatock
Jeffery Vaska
And You

Indexhibit was updated to version 2.1.4 on April 10, 2017.

Plugin: Random Background main page

 

Indexhibit version: Legacy
Thread is not resolved.

aperryz
UNITED STATES
9 year(s) ago
Permalink Post

purf,

Thanks! That did it!

DBlackman
UNITED STATES
9 year(s) ago
Permalink Post

I recently installed the plugin and it works great. The only problem is the whole Tiling thing that was previously mentioned.. So i fixed it by going into the plugin file and changing everything to false.
www.dblackman.com
this is what Im dealing with now.
My images won't place from the top left corner.
can anyone help?

DBlackman
UNITED STATES
9 year(s) ago
Permalink Post

Until I can fix this I'm gonna change it back to tiled.

DBlackman
UNITED STATES
9 year(s) ago
Permalink Post

NM problem solved

kekefan
UNITED KINGDOM
9 year(s) ago
Permalink Post

I am having a problem with this.

I believe I have followed all the steps but i can't get it to work!

I'm guessing I've gone wrong somewhere but i'm stumped as to where and could use some help.

Thanks in advance.

MatthewNottMatt.co.uk

kekefan
UNITED KINGDOM
9 year(s) ago
Permalink Post

Doesn't matter, solved the problem.

Maybe I'm not as thick as i think, no I probably am actually!

paucc A
SPAIN
9 year(s) ago
Permalink Post

Thanks a lot for the plugin!

jublin
UNITED STATES
9 year(s) ago
Permalink Post

great plugin! thanks for that. But now i'm wondering how large is too large for a website's background. (in kbs) I don't want it to take forever and a half to load.

Seeing as I just have one large tiling pattern, the only reason I wanted to use this plugin was to get different placings of the same large pattern. Would it be difficult to make something like this? A plugin that randomly changes the starting position of a background? And more importantly, once the image is loaded into one's browser cache would loading just a new position be faster than having to load an entirely new image?

ha does my question even make sense?

graphsic
NETHERLANDS
9 year(s) ago
Permalink Post

Hi!

I installed the plugin also and everything is working fine!
But why does it only change the picture on the main page?
Can I edit the plugin in such a way that it changes the bg piture in all menus?
Any help or advice would be appreciated!

Vaska A
UNITED STATES
9 year(s) ago
Permalink Post

Well, it was only intended to work with the main page...so it's working right.

In the plugin it has a switch soemthing like...

  1. if ($rs['url'] != '/') return;

I think you can take that out...or comment it out and the background thing will work on all pages.

graphsic
NETHERLANDS
9 year(s) ago
Permalink Post

thanks for the quick reply!
If I comment it out nothing will work anymore...

I did this:

if ($rs['url'] == '/') then comment it out like this: //if ($rs['url'] == '/')

and I tested it also with this: //if ($rs['url'] == '/') {

but the only thing i get is a blank page!

can you please help me out!

graphsic
NETHERLANDS
9 year(s) ago
Permalink Post

thanks for the quick reply!
If I comment it out nothing will work anymore...

I did this:

if ($rs['url'] == '/') then comment it out like this: //if ($rs['url'] == '/')

and I tested it also with this: //if ($rs['url'] == '/') {

but the only thing i get is a blank page!

can you please help me out?

graphsic
NETHERLANDS
9 year(s) ago
Permalink Post

sorry for the dubble post!

Vaska A
UNITED STATES
9 year(s) ago
Permalink Post

The logic of this is that it's checking if the page url equals '/' - which is the main page. So, if you wanted this to work for any page then you need to change the logic...

I don't really have time to dig things out and rewrite this so just rewrite the logic (because I don't think you know about programming)...something like...

  1. if (true) {

This will work...

Vaska A
UNITED STATES
9 year(s) ago
Permalink Post

The logic of this is that it's checking if the page url equals '/' - which is the main page. So, if you wanted this to work for any page then you need to change the logic...

I don't really have time to dig things out and rewrite this so just rewrite the logic (because I don't think you know about programming)...something like...

  1. if (true) {

This will work...

graphsic
NETHERLANDS
9 year(s) ago
Permalink Post

It worked! Great thanks!

But now if browse my site the bg changes with every click on the menu.
Is the following also possible?
- the bg loades radomly when entering my website. But whithin that period of browsing my site the bg stays the same. With other words: the bg only changes when entering the website (and stays the same while browsing other menus).

Is that possible?

Vaska A
UNITED STATES
9 year(s) ago
Permalink Post

That's not how the plugin works at all...you're having some other kind of issue.

graphsic
NETHERLANDS
9 year(s) ago
Permalink Post

okay. then I'll leave it as it is for the time being... Thanks for the help!

Vaska A
UNITED STATES
9 year(s) ago
Permalink Post

You could do this if you know how to set a cookie via php or even javascript...and then use that cookie to display the background. Only update the cookie every day...or when the front page is loaded...every 12 minutes...etc...

graphsic
NETHERLANDS
9 year(s) ago
Permalink Post

Thanks for your reply! But that is too much for me..!
It is okay now also!

But what I do like is setting the background image full screen.
So, if I have a long page with much text and image the background image must reach from top to bottom and left to right. That the quality becomes low doesn't matter.

Is that do-able with the random plugin?
I've searched for css full screen bg image codes but that doesn't work since the css part for the bg image is embedded in the php random plugin file...

Sorry for asking stuff again and again but I hope you have some time to help me out a little bit! Great thanks in advance!!

Vaska A
UNITED STATES
9 year(s) ago
Permalink Post

This requires alot of changes to your template...in a nutshell you have to take your existing template and elevate it using z-index...etc. And then, in a layer underneath you can use some javascript and css to deal with scaling of the image. It's not easy...

The inherent issue is that you can't really control the scaling of an image when it's used as a background - unless you use javascript to crop and resize the image based upon browser dimensions...page length...etc.

graphsic
NETHERLANDS
9 year(s) ago
Permalink Post

well I found this java code:

var img = document.getElementById('bgimg');
img.onload = function() {
var ratio = document.body.offsetWidth / img.width;
if (ratio < 1) {
img.height = img.height * ratio;
img.width = img.width * ratio;
}
}

The only problem is that it calls the img by the ID and the random plugin gives the bg image no ID. Would that be a solution? Or is this jave code code completely useless?

Vaska A
UNITED STATES
9 year(s) ago
Permalink Post

But, the image is a background image...which is not the same as an image on the page. This won't work. It goes back to what I said previously...you can't resize a background image without alot of other work.

jonstanleyaustin
UK
9 year(s) ago
Permalink Post

hello. sorry if i missed this. someone seemed to have the same problem on the 1st page of this forum, but then solved it. i dont know how to.

my background images are coming up randomly. But every now and again i just get no image - a blank background.

could someone help me with this in simple terms. Im not too good with all this. cheers.

check it here:

www.jonstanleyaustin.com

Vaska A
UNITED STATES
9 year(s) ago
Permalink Post

What is in your random image folder? Are all the names of your images latin characters with no spaces?

It's probably one of these two issues...

jonstanleyaustin
UK
9 year(s) ago
Permalink Post

that seems to be it. thank you so much.

abs
UNITED KINGDOM
9 year(s) ago
Permalink Post

hi Vaska
i think i have followed the instructions correctly... i changed the index.php file as you instructed:

but now my site won't show at all, i just have 'built with indexhibit' come up on my page. I have now tried to revert back to the old index php that i had backed up. but it has not gone back to before. it still only show 'build with indexhibit.'

im really not sure i should have started experimenting. and am now very concerned i have messed my site up entirely now...

abs
UNITED KINGDOM
9 year(s) ago
Permalink Post

sorry my site is:http://www.abbiestephens.co.uk/

abs
UNITED KINGDOM
9 year(s) ago
Permalink Post

oh i think i know what i've done... now i have replaced all the index.php files with the original index.php in the folder your-site-whatever-it-is.com/ndxz-studio/site/sample/index.php

but i believe they should be different should't they?

how do i get hold of the other php again

abs
UNITED KINGDOM
9 year(s) ago
Permalink Post

is the best thing to do upgrade?, so i can get the files back? will i have to start the site over again however?

abs
UNITED KINGDOM
9 year(s) ago
Permalink Post

can anyone help at all i am completely stuck, i have been reading tutorials for hours now but can't suss what i am supposed to do. i read the forum entry that tells you how to recreate a lost index page, but im not sure if this is what i need to do and i can't get onto my indexhibit anyway as it just says 'built with indexhibit'

AECROFT
UNITED KINGDOM
9 year(s) ago
Permalink Post

Website: amycroft.co.uk

Ok so I have read through many posts about this plug in as well as generally about changing the background image size but cannot find my solution.

I have installed the random image plug in and it is working brilliantly, however the images I have uploaded are 1024px by 768px (which I read somewhere was the idea size for most browsers and they are being cut off. Can anyone show me where to edit the display size?

Thanks!

Vaska A
UNITED STATES
9 year(s) ago
Permalink Post

Display size of the background images?

It shows them at whatever size you upload them...you change the size via Photoshop or Fireworks or whatever editor you use.

ilferroud
ITALY
9 year(s) ago
Permalink Post

hello!

I used this plugin in my website just to have a random logo
in the upper part of the webpage.
Is it possible to let this plugin be used in everypage of the website?

thank you so much for your precious help.

fed
http://www.thisisfed.com

ilferroud
ITALY
9 year(s) ago
Permalink Post

I just read this:

"The logic of this is that it's checking if the page url equals '/' - which is the main page. So, if you wanted this to work for any page then you need to change the logic...

I don't really have time to dig things out and rewrite this so just rewrite the logic (because I don't think you know about programming)...something like...

if (true) {

This will work..."

but I don't know where I have to write that thing
inside the index.php

rowstyles
UNITED STATES
9 year(s) ago
Permalink Post

Is there a way to extend the background image over the entire page, including the menu bar? That would be cool.

ilferroud
ITALY
9 year(s) ago
Permalink Post

I did it if you surf on my website using firefox.
www.thisisfed.com

I just modify to 0px that 215px setted as standard

// this 215px setting may need to be adjusted if you have altered your Index in the template
        $style = "body { background: url($show) $tile;\nbackground-position: 215px 0; }\n";
        return $style;

rowstyles
UNITED STATES
9 year(s) ago
Permalink Post

Aha! Thankyou!

rowstyles
UNITED STATES
9 year(s) ago
Permalink Post

Hmm...didn't work.

www.whoacoolawesome.com

rudy
CANADA
9 year(s) ago
Permalink Post

I can't seem to download the zip file for this plugin. Is it still available?

arsondpi
GREECE
9 year(s) ago
Permalink Post

of course it is...
You can find it in the dowload page.

Hyaku
FRANCE
9 year(s) ago
Permalink Post

Salut Rudy
Dans la rubrique "Download" à gauche, cliques sur "Proceed to downloads" et là tu auras la liste des plugins.

By the way, Thanks Vaska for this plugin.
Appreciable like always !

phil
AUSTRALIA
9 year(s) ago
Permalink Post

hi,
i'm currently building a site - not near finished - though am wanting the random background image to be displayed at the upper left corner and not right of the menu.

is there something in the plugin i should be changing?

thanks.

--> the site: http://www.yangli.eu/portfolio/

cruz
PORTUGAL
9 year(s) ago
Permalink Post

The answer is a few posts up. Did you even bother to read the thread?
Tip: it has numbers on it ;)
ps. you'll have to make your menu background: transparent; as well.

phil
AUSTRALIA
9 year(s) ago
Permalink Post

Whoops, i was sure i had been through it all.
Cheers.

ad
FRANCE
9 year(s) ago
Permalink Post

Hi there,

I don't know what to do with the code

I had understood that it was to place this code in the file my_site.com>ndxz-studio>site>sample>index.php.
This file has already a code : "• Built with Indexhibit"

So I tried :

• Built with Indexhibit

and :

and still nothing.

My image folder is placed on my 'files' folder and is named "backg_folder"

Any ideas would be greatly appreciated.

Thanks,
Ad

ad
FRANCE
9 year(s) ago
Permalink Post


Hi there,

I don't know what to do with the code
I had understood that it was to place this code in the file my_site.com>ndxz-studio>site>sample>index.php.
This file has already a code : "• Built with Indexhibit"

So I tried :

• Built with Indexhibit
()

and :

()

and still nothing.

My image folder is placed on my 'files' folder and is named "backg_folder"

Any ideas would be greatly appreciated.

Thanks,
Ad

edit : sorry… don't understand how to add code.

ad
FRANCE
9 year(s) ago
Permalink Post

Hi there,

I don't know what to do with the code
I had understood that it was to place this code in the file my_site.com>ndxz-studio>site>sample>index.php.
This file has already a code : "• Built with Indexhibit"

So I tried :

• Built with Indexhibit
(plug:ndxz_rand_bg 'files/backg_folder',false /)

and :

(plug:ndxz_rand_bg 'files/backg_folder',false /)

and still nothing.

My image folder is placed on my 'files' folder and is named "backg_folder"

Any ideas would be greatly appreciated.

Thanks,
Ad

edit : sorry… +1

arsondpi
GREECE
9 year(s) ago
Permalink Post

huh?

no no no... find line:

  1. <plug:backgrounder color='<%color%>', img='<%bgimg%>', tile='<%tiling%>' />

and change it with

  1. <plug:ndxz_rand_bg folder_name, false />

don't forget your folder should be on root level....

ad
FRANCE
9 year(s) ago
Permalink Post

Thank you…

It looks like I have the same problem as Axel in front page.
According to all the explanations, I understand that I have to edit the file which is located on mysite.com>www>ndxz-studio>site>sample>index.php
The code contained in this file is "• Built with Indexhibit"

In what file do you find the code about which you speak?

Showing 1 - 50 of 218 posts in Forum » Announcements » Plugin: Random Background main page
 

This thread has been closed, thank you.