Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11291
Latest: Yestwiz
New This Month: 48
New This Week: 15
New Today: 3
Stats
Total Posts: 33976
Total Topics: 6054
Most Online Today: 88
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 1
Guests: 84
Total: 85

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

Description not carried over from downloads area to release thread by Itchigo69
November 27, 2014, 08:40:25 am

Member not able to upload by Itchigo69
November 27, 2014, 08:29:26 am

will work on SMF 2.1? by SMFHacks
November 26, 2014, 04:19:21 pm

Upgraded forum to SMF2.0 - Problems by amwebby
November 26, 2014, 10:43:01 am

Uploading GIF with animation loses animation by SMFHacks
November 26, 2014, 01:22:53 am

question by SMFHacks
November 25, 2014, 03:42:13 pm

help with index template for custom theme on add seller pro community suite by apache
November 25, 2014, 11:18:37 am

ad seller pro execute modification test failed by SMFHacks
November 25, 2014, 08:40:06 am

Adding check all to display.template.php by shuban
November 24, 2014, 09:32:17 pm

Tapatalk... by SMFHacks
November 24, 2014, 10:33:56 am

Powered by EzPortal