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 - placuti

Pages: [1]
1
Hello,
I need to link the page displaying the result of a search (by Keyword).

However, after performing a search, I see the result page has Url like this: mywebsite/search.php , so I can't link this page.
I need something similar to: mywebsite/search.php?keyword=myKeyword .

Is that possible? Is there a way to link result page of a search?

Thanks

2
Discussion & Troubleshooting / In desperately need to stop Hotlinking
« on: March 10, 2008, 03:22:09 PM »
Hello,
browsing this forum I can't find the solution for the major problem affecting my usage of 4images: how to prevent hotlinking.

I read various threads, however many were in German. I would like to read something explaining in English, step by step, a very basic solution to prevent other websites to link my images (and consume my bandwith).

I tried a remedy with the following .htaccess file:
Code: [Select]
RewriteEngine On
RewriteBase/
RewriteCond %{HTTP_REFERER} !^http://www.example.com/data/media/images_folder/ [NC,OR]
RewriteCond %{HTTP_REFERER} !^http://example.com/data/media/images_folder/ [NC]
RewriteRule [^/]+.(gif|jpg)$ - [NC,F,L]

I uploaded the .htaccess file via FTP in ASCII mode and placed in any of the images_folder (categories) including the photos.
However, this remedy prevents hotlinking but also prevents to view the image in 'details.php?image_id=...' . So it proves to be useless.  Am I putting .htaccess files in the wrong foders?

Could anybody suggest me a solution working with 4images1.7.4 release?
For me this is crucial in keeping to use 4image.
Thanks a lot.

3
Obviously I tried first the quick guide included in the thread you suggested me.
However that doesn't fix the problem, because what is suggested there is NOT ok to import 'description' and 'keywords' of the images.  Based on what is suggested in your thread, I should add manually in ControlPanel 'description' and 'keywords' of the images. That is the real problem and the real pain!!

I have already 'description' and 'keywords' included in a mysql file I am using to import images attributes in the database.
I wrote above a line of this file, I am repeating it below:

INSERT INTO `4images_images` VALUES ('image_id', 'cat_id user_id', 'image_name', 'image_description', 'image_keywords', etc...);

Please focus on that is written in bold, because that is the advantage of this method. It enables you to avoid the very consuming time method to add description and keywords in the ControlPanel. And that is also the regular way to import data for any script I know. However that fails in '4images' because the images added with this method are not displayed when I perform a search for it.

4
Problem: the images I upload through FTP are not being found when I perform a search. I get message "Your search resulted in no matching records."

I have uploaded the images through FTP (to proper folders: 'media' and 'thumbnail') first.
At the same time I uploaded the proper database table using in PhpMyAdmin the following:
INSERT INTO `4images_images` VALUES ('image_id', 'cat_id user_id', 'image_name', 'image_description', 'image_keywords', etc...);

Is there a way to fix this search bug? Or could you suggest me an alternative and quick way when you have a large number of photos to upload?
(on my server I have PHP 4.4.7  -  I run 4images1.7.4)

Thanks

Pages: [1]