SMFHacks.com

SMF Gallery Pro => Support => Feature Requests => Topic started by: Adamzon on July 22, 2007, 12:29:00 pm

Title: Force search words
Post by: Adamzon on July 22, 2007, 12:29:00 pm
Is there any way to make my forum/gallery users to force them to enter seach words on gallery upload pictures?

/Adam
www.glidarhoj.se
Title: Re: Force search words
Post by: SMFHacks on July 22, 2007, 06:45:31 pm
Yes it would require a code change
Open Sources/Gallery.php
Find this code located in at least two spots
Code: [Select]
$keywords = htmlspecialchars($_REQUEST['keywords'],ENT_QUOTES);
Add after
Code: [Select]
if(empty($_REQUEST['keywords']))
fatal_error('Keywords are required');
Title: Re: Force search words
Post by: Adamzon on August 27, 2007, 03:40:32 am
Parse error: syntax error, unexpected T_STRING in /home/g/glidarhoj/glidarhoj/glidarhoj.se/www/Sources/Gallery.php on line 944

hmm ?
Title: Re: Force search words
Post by: SMFHacks on August 27, 2007, 07:45:07 am
Change
if(empty($_REQUEST['keywords'])
to
if(empty($_REQUEST['keywords']))
Title: Re: Force search words
Post by: Adamzon on August 29, 2007, 03:08:44 am
Thanx That worked better..