Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11705
Latest: iranwater
New This Month: 25
New This Week: 3
New Today: 1
Stats
Total Posts: 36920
Total Topics: 6493
Most Online Today: 63
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 0
Guests: 39
Total: 39

Author Topic: Force search words  (Read 4483 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: 13629
    • 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: 13629
    • 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..

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
3407 Views
Last post November 04, 2014, 02:00:10 am
by elbeer
2 Replies
2132 Views
Last post March 01, 2010, 12:49:14 pm
by SMFHacks
4 Replies
1800 Views
Last post August 19, 2010, 05:46:48 pm
by jacci
0 Replies
1311 Views
Last post January 17, 2011, 12:19:31 pm
by redpotato
2 Replies
1218 Views
Last post February 12, 2013, 08:58:25 pm
by tekgik

+- Recent Topics

Simple Portal Block - Classifieds by dan4ever
May 20, 2016, 02:15:37 pm

Release date? by SMFHacks
May 17, 2016, 06:41:15 am

No alerts when I need to aprove a ad by dan4ever
May 16, 2016, 07:32:36 am

how to find my code by SMFHacks
May 15, 2016, 08:51:25 am

anti adblock by SMFHacks
May 12, 2016, 08:36:28 pm

Audio player and profile tab? by SMFHacks
May 06, 2016, 01:02:40 pm

Additional Membergroups by SMFHacks
May 03, 2016, 01:24:46 pm

Menu Editor Pro with Simple Portal Home Page by Labradoodle-360
April 28, 2016, 01:55:16 pm

Menu Editor not functioning properly by Labradoodle-360
April 28, 2016, 01:53:14 pm

I'm lost in the stacks here. :( by SMFHacks
April 27, 2016, 11:37:30 am

Powered by EzPortal