4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: HelpMeNow on May 06, 2003, 12:15:11 AM
-
In the admin panel, under category settings, I have set view images permission to "private".
I have altered the thumbnail_bit.html so that when someone click on it, it actually will go to the "download" URL for that thumbnail.
Since the category settings are set to private, the hits are not counted for images. Is there a way that I could alter/hack something so that hits can be registered for this type of senario?
-
doesnt it count as "downloads" instead of hits?
-
Also keep in mind that hits are not counted for admin users
-
doesnt it count as "downloads" instead of hits?
No, because in order to turn the thumbnail into a hyperlink, I had to add the following to get it to download:
<a href="{image_download_url}" target="_blank">{thumbnail}<br />
</a> <b>{image_name}</b> {if image_is_new}<sup class="new">{lang_new}</sup>{endif
image_is_new}
<br />
{lightbox_button} <br />
(Also, I'm aware that admin doesn't count.) It's not counting for anyone.
-
see, this was very usefull information! ;)
in /includes/functions.php find: "image_download_url" => $image_row['image_download_url'],
replace with: "image_download_url" => $site_sess->url(ROOT_PATH."download.php?".URL_IMAGE_ID."=".$image_row['image_id']),
-
see, this was very usefull information! ;)
in /includes/functions.php find: "image_download_url" => $image_row['image_download_url'],
replace with: "image_download_url" => $site_sess->url(ROOT_PATH."download.php?".URL_IMAGE_ID."=".$image_row['image_id']),
V@no,
In this case, should I reverse my thumbnail_bit to original?
Let me tell you what I'm trying to acheive with this:
I want to use this as a "Links Page" for internet magazines. So, all I need are for users to only view the thumbnails for each internet-magazine site....and when they click on it, they will go to the home page of that internet-magazine site. (In a pop-up new browser window)
I'm putting the URL address of each internet-magazine site in the "Download URL" of 4images for each image added...in my case for each magazine-site added.
-
In this case, should I reverse my thumbnail_bit to original?
no, keep it as it is now.
it will count downloads though...
this is the easiest way to do, because the hits counting in the details.php...
-
Thanks V@no,
Works like a charm. :D