Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 11213
Latest: Letourbillon
New This Month: 24
New This Week: 2
New Today: 0
Stats
Total Posts: 33536
Total Topics: 5979
Most Online Today: 104
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 0
Guests: 68
Total: 68

Author Topic: Force search words  (Read 3899 times)

0 Members and 1 Guest are viewing this topic.

Offline Adamzon

  • SMF Gallery Pro Customer
  • Newbie
  • *****
  • Posts: 23
    • View Profile
Force search words
« on: July 22, 2007, 11:29:00 am »
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

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 12239
    • View Profile
Re: Force search words
« Reply #1 on: July 22, 2007, 05: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');
« Last Edit: August 27, 2007, 06:45:14 am by SMFHacks »
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.

Offline Adamzon

  • SMF Gallery Pro Customer
  • Newbie
  • *****
  • Posts: 23
    • View Profile
Re: Force search words
« Reply #2 on: August 27, 2007, 02: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 ?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 12239
    • View Profile
Re: Force search words
« Reply #3 on: August 27, 2007, 06:45:07 am »
Change
if(empty($_REQUEST['keywords'])
to
if(empty($_REQUEST['keywords']))
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.

Offline Adamzon

  • SMF Gallery Pro Customer
  • Newbie
  • *****
  • Posts: 23
    • View Profile
Re: Force search words
« Reply #4 on: August 29, 2007, 02:08:44 am »
Thanx That worked better..

 

+- Recent Topics

SMFHacks.com updated to SMF 2.0! by SMFHacks
Today at 12:46:21 pm

Download Menu Editor Pro by Labradoodle-360
Today at 09:01:56 am

Add an area where individual members can view all the gallery comments they made by shuban
Today at 06:21:29 am

Tapatalk... by dan4ever
September 29, 2014, 04:42:36 pm

Upgrade problem... by dan4ever
September 29, 2014, 04:41:41 pm

Photo Tagging collor by SMFHacks
September 27, 2014, 11:29:30 am

Search function should have filters by Jonas1975
September 26, 2014, 11:41:17 am

Is mysql_real_escape_string Deprecated? by shuban
September 26, 2014, 07:19:39 am

Can someone tell me what I'm doing wrong here? by shuban
September 25, 2014, 08:07:01 pm

Sending an email to only part of a group. by SMFHacks
September 25, 2014, 09:20:12 am

Powered by EzPortal