Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - V@no

Pages: 1 ... 5 6 7 8 [9] 10 11 12 13 ... 741
121
Programming / Re: Error404 page
« on: October 15, 2011, 07:37:41 PM »
maybe your server administrator could answer this...it's working as it should on my server.

122
Mods & Plugins (Requests & Discussions) / Re: keyboard support
« on: October 15, 2011, 07:30:29 PM »
yeah, just put this in details.html , after {header}

A little modified version which doesn't redirect to home page if no prev/next image and allows use cursor keys on html elements that might require them (text fields, dropdown, radio buttons)

Code: [Select]
<script type="text/javascript">
document.onkeyup = function (e)
{
e = window.event || e
if (["TEXTAREA", "SELECT"].indexOf(e.target.tagName) != -1
|| (e.target.tagName == "INPUT" && ["radio", "text"].indexOf(e.target.type) != -1))
return;
switch(e.keyCode)
{
case 37:
if ("{prev_image_url}" != "&nbsp;")
window.location = "{prev_image_url}";
break;
case 39:
if ("{next_image_url}" != "&nbsp;")
window.location = "{next_image_url}";
break;
}
}
</script>

123
Programming / Re: Error404 page
« on: October 14, 2011, 01:59:05 PM »
You are using / at the beginning of your error document path, which means "root", so perhaps you should try add the directory:
Code: [Select]
ErrorDocument 404 /gallery/error.html
Note, since you want have two different error pages, this line should go into .htaccess in your gallery root directory (/gallery/.htaccess)

124
after this change or it was happening before?

Are you sure these tags are not between some conditional tags {if blah} ... {endif blah}?

125
Not sure why would you want to do this, since 4images already provide a way view all photos uploaded by a user (search.php?search_user=name)
Anyway, in details.php find:
Code: [Select]
          WHERE image_active = 1 AND cat_id = $cat_id

Replace it with:
Code: [Select]
          WHERE image_active = 1 AND user_id = " . $image_row['user_id'] . "

126
In includes/functions.php find:
    "image_hits" => $image_row['image_hits'],

Insert below:
    "image_hits_day" => number_format($image_row['image_hits'] / ((time() - $image_row['image_date']) / 86400), 1"."""),


In details.html and/or thumbnail_bit.html use {image_hits_day}

127
mmmm what about step 10?

128
Programming / Re: Error404 page
« on: October 09, 2011, 05:18:11 PM »
I've tried dding the line below to my top level .htaccess without any luck

Code: [Select]
ErrorDocument 404 /error.html

That looks correct. http://www.jeyjoo.com/error.html shows the same page as any other random entered address.

129
thanks for edit but no replay
yeah, your post format hurt my brain


Please post links to the mods you are using (bbcode/smiles) and if it's not the original code, then link to the exact post with the code.

130
Then search for
Code: [Select]
WHERE image_active = 1 AND cat_id > $cat_id

131
Hello and welcome to 4images forum.

Can you confirm that images can be opened directly, for example
http://example.com/4images/templates/default/images/header_logo.gif

132
Replace
Code: [Select]
          WHERE image_active = 1 AND image_id > $image_id

with:
Code: [Select]
          WHERE image_active = 1 AND cat_id = $cat_id

133
Espaņol / Castellano / Re: Me da este error
« on: October 05, 2011, 03:48:23 AM »
Welcome to 4images forum.

If I understood you correctly this error showed after update from 1.7.3 to 1.7.10, in that case, it seem you didn't upload all file from v1.7.10 package.
Make sure that all .php files from v1.7.10 package are present on your server.

134
You forgot attach the file (tophits3.php) or show first 50 lines from that file.

135
Discussion & Troubleshooting / Re: Download Button URL not working
« on: October 02, 2011, 05:23:30 PM »
There must be some server limitations. Try to remove @ from this line in download.php:
  @readfile($file_path);
And check error logs again.

My guess is allow_url_fopen is disabled in php.ini (check phpinfo()) If so, you'll need enable it or contact your server's administrator to do so for you.

Pages: 1 ... 5 6 7 8 [9] 10 11 12 13 ... 741