angrymarra Posted May 3, 2012 Share Posted May 3, 2012 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 Quote Link to comment Share on other sites More sharing options...
MMDE Posted May 3, 2012 Share Posted May 3, 2012 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 Quote Link to comment Share on other sites More sharing options...
angrymarra Posted May 3, 2012 Author Share Posted May 3, 2012 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) Quote Link to comment Share on other sites More sharing options...
Mahngiel Posted May 3, 2012 Share Posted May 3, 2012 MMDE's guiding you where to learn about the various methods available to you so you may chose whichever you feel like implementing. Use one of those functions to "include" a banner on your pages. Quote Link to comment Share on other sites More sharing options...
angrymarra Posted May 3, 2012 Author Share Posted May 3, 2012 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 Quote Link to comment Share on other sites More sharing options...
litebearer Posted May 3, 2012 Share Posted May 3, 2012 The most obvious solution is to contact the creator of the script and ask her/him to you can achieve your objective. Quote Link to comment Share on other sites More sharing options...
Mahngiel Posted May 3, 2012 Share Posted May 3, 2012 check your logs for errors man. if you're unable to get a simple image call, then your logs will likely tell you why. Quote Link to comment Share on other sites More sharing options...
angrymarra Posted May 3, 2012 Author Share Posted May 3, 2012 the reason im asking is because it appears the guy who made this is no longer available for support Quote Link to comment Share on other sites More sharing options...
angrymarra Posted May 3, 2012 Author Share Posted May 3, 2012 simple image call Theres my favourite word 'SIMPLE' and this is not for me lol tried the include thing didnt have a clue where to put the string to call it and it didn't work Quote Link to comment Share on other sites More sharing options...
litebearer Posted May 3, 2012 Share Posted May 3, 2012 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 Quote Link to comment Share on other sites More sharing options...
angrymarra Posted May 3, 2012 Author Share Posted May 3, 2012 the styling is contained within the php file so should i go and ask this same question in there?? :-\ Quote Link to comment Share on other sites More sharing options...
sanchez77 Posted May 3, 2012 Share Posted May 3, 2012 maybe slap this in line 1894, replacing banner.jpg with your image name/location "<div align='center'><img src='banner.jpg'></div>" Quote Link to comment Share on other sites More sharing options...
angrymarra Posted May 3, 2012 Author Share Posted May 3, 2012 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 Quote Link to comment Share on other sites More sharing options...
sanchez77 Posted May 3, 2012 Share Posted May 3, 2012 not the best approach, but try changing the css tag to drop the gallery overlay line 1798 top:200; repalce 200 with the image height Quote Link to comment Share on other sites More sharing options...
litebearer Posted May 3, 2012 Share Posted May 3, 2012 find this in the script... .box_gallery { text-align:center; position:absolute; top:0; right:0; z-index:1000; overflow:auto; } and change top:o; to top:whatever height of banner is plus 10 pxs Quote Link to comment Share on other sites More sharing options...
angrymarra Posted May 3, 2012 Author Share Posted May 3, 2012 just tried both of those changes and it changed nothing tried them seperately and together and nothing changed Quote Link to comment Share on other sites More sharing options...
angrymarra Posted May 3, 2012 Author Share Posted May 3, 2012 well thats that then its been moved to third party scripts and i think the people who could have helped cant see it now lol oh well then again reading the description of this forum maybe ill get more help (fingers crossed) Quote Link to comment Share on other sites More sharing options...
angrymarra Posted May 3, 2012 Author Share Posted May 3, 2012 thanks for the help you did give guys ive managed to sort it just needed to specify px at the end of the change to "top" code lol Quote Link to comment Share on other sites More sharing options...
sanchez77 Posted May 3, 2012 Share Posted May 3, 2012 you tried changing line 1838? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.