1 proprietor Jan 19, 2009 01:09
3 edb Jan 19, 2009 02:53
Try moving the included file up one level, else see if the included file is capable of finding the image from where it is currently located. Personally I'll go with the second - the current location is unable to access the image.
4 yabba Jan 19, 2009 09:23
Your comic images are here http://www.barstoolentertainment.com/images/comicstrip/20090114bagboy10.gif so teh chances are that you need to add "../../" to the urls in gallery.php ;)
¥
5 proprietor Jan 20, 2009 01:44
I put the code into my <div id=comic></div> and then I dropped the comicgallery.php file into the folder with the index.main.php, but I still don't see anything.
In the comicgallery file there is this line of code:
// Your images directory, relative to the page calling this script
$imagedir="images/comicstrip";
I put the "../../" in front of the images/comicstrip and it is still not working.
I even put the full url: http://www.barstoolentertainment.com/images/comicstrip in and it didn't respond.
Sorry, I am not real good with PHP and thanks for helping. I would love to get this working so I can move forward with other plans for my site. b2evolution is wonderful blogging software and I am hoping to use my site as an example for other web comics.
6 proprietor Jan 21, 2009 03:43
When I remove the comicgallery.php, I get an error message that indicates the php is not there, so my guess is the problem exists within the comicgallery.php itself trying to locate the images. Any help?
7 edb Jan 21, 2009 03:52
One, but it's not a very good one.
So you know which comic should be called right? Meaning when you go to a page it should have, for example, "comic #254" but it doesn't. So far it seems we know that the include is working but it is not finding the file.
So my idea is for you to throw an image into a folder that matches the dimensions and very simply says what the path to that image is. One in /skins/yourskin/, and another in /skins/ and another in just for the heck of it "root". This way IF you actually see one of the images you will know where the included file is expecting to find the image it should be displaying. Once you have that ... IF you have that information you could then modify your included page to find the correct path.
Shot in the dark here, but it's how I do debugging stuff. "Well if this doesn't work the way I want then what the heck *is* it doing" until I can get the goods I'm after. (like a total noob would do eh?)
8 proprietor Jan 21, 2009 04:26
tried a url path directly to the folder containing images in the comicgallery.php before and it didn't work. When I removed the direct url path and only had images/comicstrip, then I put an images/comicstrip folder into the skins folder with the comicgallery.php and index. An image showed up, but when I tried to cycle though the gallery, I got the following error:
http://www.barstoolentertainment.com/skins/barstool/?p=1
Forbidden
You don't have permission to access /skins/barstool/ on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.33 Server at www.barstoolentertainment.com Port 80
I am trying to get things to sync up and have the images folder in the main directory and not the skins directory that way someone should be able to cycle through the gallery and not have to go to the skins folder. I hope this makes sense. Thanks.
9 edb Jan 21, 2009 05:10
Wait a minute - what *exactly* is the problem here? See when I allowed javascript from your domain I saw a comic that changed when I followed the menu made of images (first, previous, next, last).
So what is the issue you need to resolve?
10 proprietor Jan 22, 2009 01:32
I apologize for the confusion. When I test and tinker with my site, it is at night when the traffic is the slowest. Once I am done or if something is not working the way I would like, I go back to the version that works.
What I am trying to do, is to move the gallery from a high maintenance javascript gallery, to a more low maintenance php gallery and make it all work with my page.
The comicgallery.php generates a separate pages:
http://www.barstoolentertainment.com/test/?p=11,
http://www.barstoolentertainment.com/test/?p=10,
etc.
for each image, but uses the cached information in the browser to create a more seamless transition.
From my testing, the comicgallery.php works well when it is in the root directory with an index.php or in a folder, like my [url=http://www.barstoolentertainment.com/test]test folder[/url]. The problem is, the blog, calender archive sidebar and anything else found on the index.main.php in my skins folder disappears.
When I place the comicgallery.php into the my skins folder with the index.main.php, css, and images, I get a blank spot where the gallery should appear. I did some tinkering and an image with the buttons appeared, but when I tried cycled through the image, I received the error I had pasted into my previous post.
My questions:
Is it possible to get the comicgallery to synch up with and work effectively with myskin?
Or, can I set up everything I need in my root directory and direct/include all the blog, sidebar, etc. into the index.php in my root directory?
I appreciate all the help. I am not very good with PHP, I am a graphic/web designer who knows HTML, Javascript and CSS well.
11 edb Jan 22, 2009 04:58
PM me? I'm thinking this is fixable but I'll need your files. What I'm thinking is that if you zip up what you are trying to get online (paths, the include file, a handful of images) I will probably be able to make it happen although I admit up front I can make no promises regarding the timing of any efforts. So if you're okay with a highly-qualified 'maybe' then please PM me with a URL to a .zip file and some explanatory info so I can tinker on my domain name and see about making it so.
12 proprietor Jan 23, 2009 00:59
PM'd you. Please contact me if you need any files, thank you very much.
13 edb Jan 27, 2009 02:47
Okay this got resolved. The php script that includes the images is pretty cool, but junk on my server. http_get_vars is deprecated on my server. So I hacked it a wee bit and gave up because after getting one image it tried to use the base tag to make the next. Which isn't a good idea in b2evo right?
Anyway I bagged it and suggested to proprietor that the hackage I did might work in an iframe. As it turns out propietor's server is okay with the deprecated bit ... and apparently suppresses errors, so it is now working.
Closed?
14 proprietor Jan 29, 2009 01:21
Thanks for all the help. The php seems to work well. I had to take the main php, include it into a stub file that also contained CSS, then bring the stub file into an iframe. I just posted a new comic and it imported it into the correct sequence. Thanks again.
do not forget to put the comicgallery.php file into your .../skins/myskin directory