Indexhibit
Index + Exhibit

Login:

Created by
Daniel Eatock
Jeffery Vaska
And You

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

Main Page background only

 

Indexhibit version: Legacy
Thread is resolved.

jhmcknight
UNITED STATES
7 year(s) ago
Permalink Post

Hey,

So I want an image to only show up on my main page when the clients first type in jhmcknight.com So I upload my background image to main under my admin pane and it shows a red X like the image is missing but When I upload the image to contacts the image shows up perfect, but on all the pages when I only want it on the 'main' page.

How do I make it so just the image works on the main page and no other pages....

This is frustrating the crap out of me.

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

I see the background image on both pages...this sounds like a browser caching issue. Make liberal use of shift + browser refresh to see these kinds of things.

jhmcknight
UNITED STATES
7 year(s) ago
Permalink Post

Well what I mean is I only want it on the one page, the main page (jhmcknight.com)

When you click on any of my other things, contacts, keni kae, carmen, the background image is there too, I dont want it there....

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

I think the problem here is that you have loaded up a plugin that is intended for all pages of the site - not just one. You would need to edit the plugin to only show on the 'main' page.

You could specify it simply with something like:

  1. if ($rs['url'] == '/') { ...
  2. // or even
  3. if ($rs['id'] == 1) { ...

Would work just fine.

jhmcknight
UNITED STATES
7 year(s) ago
Permalink Post

vaska... im so lost... where would I put this at?

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

You know, it's not my place to say much about peoples designs...but weren't you the one asking how to do that effect from another persons site? I have to wonder if it would be a good idea that you do something to make it not as close to theirs...

Just my two cents...for whatever it's worth (not much). ;)

jhmcknight
UNITED STATES
7 year(s) ago
Permalink Post

well I am new to this whole thing and I figured that if I did it this way I could learn and then do it myself another way.

Thanks for you help.

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

Yes, and that is cool too (and I did suggest that). I learned the same way...10 years ago now...eek!

But, right now, I could easily mistake it for his site...you know what I mean.

Anyways, keep us posted on resolving the background issue...just take it one thing at a time...slowly you will go far.

Reza_Aramesh
UNITED KINGDOM
4 year(s) ago
Permalink Post

I am hoping to add a background image to cover the whole background when visitors first write in rezaaramesh.com. Just the background image and the menu to the left of the page.
Kind of like this site fore example, only much simpler of course.
martinruegg.com/

But all the all references I can find in the forum mentions a 'main' page. Is this for the previous version?

arsondpi
GREECE
4 year(s) ago
Permalink Post

Hello - check out this thread, which I think is what you're after: indexhibit.org/forum/thread/16431/

Reza_Aramesh
UNITED KINGDOM
4 year(s) ago
Permalink Post

Thanks, that link is very relevant I really appreciate your fast response arsondpi.

I will post another question to you in that thread shortly.

Reza_Aramesh
UNITED KINGDOM
4 year(s) ago
Permalink Post

Hi,
changed to:
$style .= ($OBJ->vars->exhibit['bgimg'] != '') ? "nbackground: url(" . $OBJ->baseurl . "/files/" . $OBJ->vars->exhibit['bgimg'] . ") no-repeat center center fixed;n-moz-background-size: cover;n-webkit-background-size: cover;n-o-background-size: cover;nbackground-size: cover;n" : '';

And very happy to see image appear on first page then removed when you start navigating the menu. But it doesn't seem to want to go full page?
Something wrong with my code or something wrong with the image I am using?
See: rezaaramesh.com

Reza_Aramesh
UNITED KINGDOM
4 year(s) ago
Permalink Post

Ah, I am starting to figure out the CSS here....

It seems your hack sets background size as 'cover'

Which is indeed what I want. But it doesn't respond? I'd be extremely grateful for any assistance here.

arsondpi
GREECE
4 year(s) ago
Permalink Post

Simply export your media filenames using web friendly names. No spaces or weird characters.
It will work then just fine.

Reza_Aramesh
UNITED KINGDOM
4 year(s) ago
Permalink Post

Thanks,
Reuploaded the image removing all spaces and characters. No change.

Essentially it seems that whatever I do, the settings funder 'Exhibit Options' overrules whatever I set in the "plugin.backgrounder.php". I tried tweaking the code a bit more under assets just to see what would happen, but essentially the 'Exhibit Options' seems to determine it.

arsondpi
GREECE
4 year(s) ago
Permalink Post

I'm not sure what you mean.

IMG_0276 - 150 dpi.jpg is not a web friendly name.
Make it something like img_0276-150dpi.jpg or if your are a Photoshop user then select/use the Save for Web&Devices.

Upload the image as a background image in your exhibit - no need to upload it as an image as well.

Reza_Aramesh
UNITED KINGDOM
4 year(s) ago
Permalink Post

OK, now I understand my own confusion for the last question. I essentially added both a background image and the same image as an image in the text body itself. Hence why the image I was looking at only responded to 'Exhbit Option' commands.

Here is my new and renamed background image:
..../files/WebsiteMenuBackground.jpg

Also, used PS 'save for 'web and devices' as per your recommendation.

Problem solved. Thanks for your patience arsondpi

Showing 1 - 17 of 17 posts in Forum » Installation » Main Page background only
 

This thread has been closed, thank you.