Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11362
Latest: deezy2596
New This Month: 54
New This Week: 5
New Today: 1
Stats
Total Posts: 35743
Total Topics: 6305
Most Online Today: 61
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 2
Guests: 64
Total: 66

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

NOOB Question - General Photo attachment Give random Error - NOTHING IN THE LOGS by SMFHacks
July 28, 2015, 09:22:35 am

SIMPLE AUDIO VIDEO EMBEDDER - Problem Does not work by SMFHacks
July 27, 2015, 10:24:10 pm

AEVA to SMF Gallery Pro by SMFHacks
July 27, 2015, 07:04:49 pm

putting link to a forum topic in a newsletter? by SMFHacks
July 27, 2015, 02:05:25 pm

TROUBLE in Classified upon deleting items from classified Please Help by SMFHacks
July 26, 2015, 07:01:43 pm

Chrome different than IE by SMFHacks
July 26, 2015, 06:42:20 pm

Video resized 480x640 Mirror by Michel68
July 26, 2015, 12:27:16 pm

Ad location - Inside Last Post? by SMFHacks
July 26, 2015, 10:34:29 am

NOOB Question - Problem... Even though i have credits.. by SMFHacks
July 25, 2015, 09:14:22 pm

Badges not displaying by SMFHacks
July 25, 2015, 07:40:29 pm

Powered by EzPortal