Plugin: Random Background main page

aperryz / 2008-10-05 15:32:15   

purf,

Thanks! That did it!

DBlackman / 2008-12-03 04:14:56   

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 / 2008-12-03 04:21:20   

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

DBlackman / 2008-12-03 04:40:48   

NM problem solved

kekefan / 2009-02-02 03:04:33   

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 / 2009-02-02 03:29:26   

Doesn't matter, solved the problem.

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

paucc A / 2009-02-02 14:58:05   

Thanks a lot for the plugin!

jublin / 2009-03-23 20:03:00   

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 / 2009-03-24 15:30:43   

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 / 2009-03-24 15:37:14   

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 / 2009-03-24 18:12:29   

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 / 2009-03-24 18:13:01   

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 / 2009-03-24 18:14:22   

sorry for the dubble post!

Vaska A / 2009-03-24 18:25:15   

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 / 2009-03-24 18:27:16   

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 / 2009-03-24 18:44:46   

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 / 2009-03-24 20:04:29   

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

graphsic / 2009-03-25 10:06:06   

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

Vaska A / 2009-03-25 10:56:14   

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 / 2009-03-25 20:20:41   

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 / 2009-03-25 20:25:14   

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 / 2009-03-25 20:28:38   

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 / 2009-03-25 21:03:17   

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 / 2009-03-28 13:33:15   

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 / 2009-03-28 13:51:52   

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 / 2009-03-28 19:07:25   

that seems to be it. thank you so much.

abs / 2009-04-06 22:19:31   

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 / 2009-04-06 22:33:24   

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

abs / 2009-04-07 07:42:25   

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 / 2009-04-07 08:06:42   

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 / 2009-04-07 11:56:46   

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 / 2009-04-14 16:53:59   

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 / 2009-04-14 19:44:12   

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.

rowstyles / 2009-04-21 16:05:05   

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

rowstyles / 2009-04-21 16:31:58   

Aha! Thankyou!

rowstyles / 2009-04-21 16:37:17   

Hmm...didn't work.

www.whoacoolawesome.com

rudy / 2009-04-24 12:06:00   

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

arsondpi / 2009-04-24 13:05:39   

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

Hyaku / 2009-04-25 17:18:30   

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 / 2009-04-30 06:57:11   

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 / 2009-04-30 09:06:14   

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 / 2009-04-30 09:34:19   

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

ad / 2009-05-15 13:37:21   

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 / 2009-05-15 13:46:41   


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 / 2009-05-15 13:49:43   

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 / 2009-05-15 17:02:37   

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 / 2009-05-16 09:39:32   

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?

lemathieu A / 2009-05-16 10:01:09   

ad,
tu dois ouvrir ton index.php avec un vrai editeur de code (j'utilise smultron, gratuit sur mac).
en utilisant text edit ou un truc comme ça, tu ne verra que ton "• Built with Indexhibit"

ad / 2009-05-17 10:56:49   

D'accord… j'aurais encore pu chercher longtemps !
Merci pour l'info, ça marche nickel.

lemathieu A / 2009-05-17 13:59:12   

faut qu'on mette ce truc dans les "usefull thread"…
;)

This thread has been closed, thank you.