Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11196
Latest: DragonLady
New This Month: 19
New This Week: 6
New Today: 1
Stats
Total Posts: 35207
Total Topics: 6221
Most Online Today: 73
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 0
Guests: 60
Total: 60

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

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

Subject Required Error by Saftek
April 13, 2015, 11:19:04 am

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

Pre sale question by SMFHacks
April 13, 2015, 07:44:06 am

Display different ads based on IP adress by SMFHacks
April 13, 2015, 07:17:11 am

From Ad Management to Ad Seller Pro by SMFHacks
April 10, 2015, 06:57:02 am

Profile, members files/gallery by SMFHacks
April 09, 2015, 05:27:12 pm

Do you design custom mods? by SMFHacks
April 09, 2015, 08:09:25 am

close label URL... by Empire
April 08, 2015, 08:22:48 pm

Powered by EzPortal