Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 10988
Latest: jnefrdmns01
New This Month: 27
New This Week: 11
New Today: 3
Stats
Total Posts: 34112
Total Topics: 6077
Most Online Today: 117
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 1
Guests: 88
Total: 89

Author Topic: Force search words  (Read 3963 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: 12487
    • 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: 12487
    • 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

Is there a specific setting where you can search only a single member's personal by Jonas1975
Today at 08:08:57 am

SMF 2.1 by testJL
Today at 01:34:30 am

Double Store Paypal Address Lines by SMFHacks
December 18, 2014, 09:43:08 pm

pagination in category overview by fondlyPiranha
December 18, 2014, 09:09:01 am

Unable to load the 'Gallery2.1' template by SMFHacks
December 15, 2014, 03:33:51 pm

Member Group Space Limits by Post count based groups by Jonas1975
December 15, 2014, 10:18:16 am

Manual uninstall? by SMFHacks
December 15, 2014, 08:42:04 am

Error when installing, by Empire
December 15, 2014, 12:08:11 am

FaceBook App Canvas URLs- by SMFHacks
December 14, 2014, 07:26:05 pm

PHP Strict Standards: In Error Log by elbeer
December 12, 2014, 10:44:27 am

Powered by EzPortal