Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11215
Latest: Ottohanjames9
New This Month: 38
New This Week: 4
New Today: 2
Stats
Total Posts: 35232
Total Topics: 6224
Most Online Today: 73
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 1
Guests: 43
Total: 44

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

Quotes produce double spaces... by shuban
April 26, 2015, 08:23:55 pm

Seeing Double by Empire
April 26, 2015, 08:00:49 pm

Subject Required Error by SMFHacks
April 26, 2015, 09:32:37 am

Thumbs Up Picture Vote System by SMFHacks
April 26, 2015, 09:31:54 am

[Mod] SEO Microdata Breadcrumbs by ingleslenobel
April 24, 2015, 10:17:10 am

Pro 5 Image Effects - How? by HAL9000
April 23, 2015, 02:10:16 pm

Full gallery RSS feeds by SMFHacks
April 20, 2015, 11:45:49 am

Before I buy this...questions.... by DragonLady
April 17, 2015, 02:06:57 pm

Option for opening links in a new window by SMFHacks
April 13, 2015, 03:26:13 pm

Subscription page error by Saftek
April 13, 2015, 11:11:00 am

Powered by EzPortal