Jump to content

Recommended Posts

Hi,

I have managed to work many things out for myself, I was reluctant to ask for help as any man would be lol HOWEVER i have got a script which is a single file gallery i want to use on my site I have tried at least 20 combinations to SIMPLY display a banner at the top in the center of every page of the gallery, below is the php file for the single page gallery could someone PLEASE PLEASE tell me how i can get it to display my site banner at the top, this is driving me nuts and I apologise if this has been discussed else where but the searchs i have done have not turned up a simple answer of any kind for me :(

18284_.php

Link to comment
https://forums.phpfreaks.com/topic/262028-php-single-file-help/
Share on other sites

Hi,

I have managed to work many things out for myself, I was reluctant to ask for help as any man would be lol HOWEVER i have got a script which is a single file gallery i want to use on my site I have tried at least 20 combinations to SIMPLY display a banner at the top in the center of every page of the gallery, below is the php file for the single page gallery could someone PLEASE PLEASE tell me how i can get it to display my site banner at the top, this is driving me nuts and I apologise if this has been discussed else where but the searchs i have done have not turned up a simple answer of any kind for me :(

 

You could include a file in every file.

include

require

require_once

I'm afraid I am a total newbie at php coding and i don't understand how to do this or how it would work or where it should go within the index.php file, just let me clarify that the single file i attached is the ONLY file in the directory for the gallery other than pictures for display it works alone and does not use any other files it works perfectly but i just need to put a banner at the top (the reason im asking is because it appears the guy who made this is no longer available for support)

wow... i think i might have come to the wrong site for help lol, i read the include info and i have tried it as one of the many methods i read about whilst searching both here and google (who's supposed to be my friend lol) but it changes nothing and doesn't display the banner anywhere this is melting my mind and although i do see that it says you aren't here to write code for me in your signature if anyone has got what i'm sure will be 2 minutes to alter the file i attached to simply display a banner 1192x140 at the top regardless of what's happening within the script i would be eternally greatful if thats not the case and its simply not that easy then tell me as I just don't understand

IMHO from perusing the script, you will need to make adjustment(s) to the formatting class(es) the script uses, allowing for a div above the image content (which div will contain your banner). This is beyond my capabilites. I would suggest posting this in the CSS section of phpfreaks

thanks sanchez and that is one step closer i've been there before i think but i don't know how lol i've just tried it and it displays the banner in the right place HOWEVER the thumbnails for the gallery directorys then display over the top of it as per the image attached, maybe need some padding for the main section to stop it encroaching on the banner i dunno

 

gallery.jpg

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.