Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11414
Latest: Kacer
New This Month: 4
New This Week: 4
New Today: 4
Stats
Total Posts: 35902
Total Topics: 6328
Most Online Today: 51
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 2
Guests: 54
Total: 56

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

which on you set of shoes or boots could possibly personal many capabilities by crtt208
Today at 02:06:58 am

Nike Hyperdunk Meant for Footwear are favorite these days by crtt208
Today at 02:05:51 am

Restrict Member Galleries viewing to only one membergroup by SMFHacks
August 31, 2015, 03:45:49 pm

Ad placement question by SMFHacks
August 31, 2015, 06:53:56 am

Nowhere to input copyright removal key by mygsmnaira
August 29, 2015, 05:19:51 pm

Exclude Actions by SMFHacks
August 28, 2015, 03:59:34 pm

[Theme] SMF : Facebook Theme Beta Test by ilookpair14
August 28, 2015, 04:09:28 am

Download content RSS feed by SMFHacks
August 25, 2015, 11:58:40 am

E Arcade Game Packs by SMFHacks
August 23, 2015, 08:16:30 am

Test Directory by SMFHacks
August 21, 2015, 12:40:01 pm

Powered by EzPortal