Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11795
Latest: Davis33
New This Month: 13
New This Week: 0
New Today: 0
Stats
Total Posts: 37109
Total Topics: 6538
Most Online Today: 113
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 1
Guests: 104
Total: 105

Author Topic: Force search words  (Read 4732 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: 13705
    • 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: 13705
    • 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
3694 Views
Last post November 04, 2014, 02:00:10 am
by elbeer
2 Replies
2238 Views
Last post March 01, 2010, 12:49:14 pm
by SMFHacks
4 Replies
1920 Views
Last post August 19, 2010, 05:46:48 pm
by jacci
0 Replies
1368 Views
Last post January 17, 2011, 12:19:31 pm
by redpotato
2 Replies
1288 Views
Last post February 12, 2013, 08:58:25 pm
by tekgik

+- Recent Topics

Any plan on introducing new payment gateways to the store? by SMFHacks
September 20, 2016, 05:12:15 pm

WHY? by Snuffy
September 10, 2016, 10:56:33 pm

replacing a category thumbnail with another - what am I doing wrong? by SMFHacks
September 03, 2016, 07:16:30 pm

Feature Requests by madfiddler
September 02, 2016, 03:21:18 pm

Next / Previous Image by bulldogfever
September 02, 2016, 09:25:56 am

Categories / Galleries by SMFHacks
September 01, 2016, 05:57:00 pm

Awesome Post Ratings - New Product by oskaaay
August 31, 2016, 12:24:38 am

Responsive Themes by SMFHacks
August 26, 2016, 08:08:05 am

Topic: Serious issue and Fatal Error with CountryFlags, Help! by niknik
August 25, 2016, 01:57:44 am

Custom Fields in Gallery by bknapp
August 22, 2016, 06:47:48 pm

Powered by EzPortal