Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11278
Latest: kjellkamp
New This Month: 35
New This Week: 2
New Today: 2
Stats
Total Posts: 33940
Total Topics: 6046
Most Online Today: 118
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 1
Guests: 114
Total: 115

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

Combining Board Index Top and Overall Header by petlv
Today at 02:44:55 pm

not able to upload(admin and guests) by kjellkamp
Today at 02:19:31 pm

Black Friday Sales Week! Big Savings on Products by SMFHacks
November 22, 2014, 11:29:17 am

Download Menu Editor Pro by SMFHacks
November 21, 2014, 11:31:08 pm

Tapatalk... by HDB
November 21, 2014, 02:27:17 pm

Am I just being stupid? by 420connect
November 21, 2014, 10:27:20 am

[Mod] SMF Articles by elbeer
November 21, 2014, 07:15:36 am

Problem with ad seller pro after upgrade to SMF 2.0 by amwebby
November 20, 2014, 11:39:04 pm

MOD Request: Sort / Order by 420connect
November 19, 2014, 07:22:46 am

New fields for the Tweet photos feature by Jonas1975
November 19, 2014, 03:21:23 am

Powered by EzPortal