Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11878
Latest: Web Presence Consulting
New This Month: 15
New This Week: 5
New Today: 0
Stats
Total Posts: 37633
Total Topics: 6623
Most Online Today: 101
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 1
Guests: 68
Total: 69

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

+- Recent Topics

Is there an option to remake all images that weren't made in medium? by shuban
February 21, 2017, 03:13:26 pm

What is JPEG Compression Percent? by shuban
February 21, 2017, 01:03:32 pm

Questions about Watermarking by shuban
February 21, 2017, 01:38:38 am

Strange SMF Behaviour when dealing with PHP classes by SMFHacks
February 21, 2017, 12:37:13 am

Why is it when I upload a transparent image, the transparent part appears black? by shuban
February 21, 2017, 12:19:56 am

Going from Aeva Media to SMF GPro by SMFHacks
February 20, 2017, 05:46:07 pm

Size of Image inserted into Forum Topic by scalesusa
February 18, 2017, 07:28:38 pm

Is it possible to not send email notification on sendpm function? by SMFHacks
February 16, 2017, 12:46:02 pm

Create One New Forum Topic with Batch Upload by SMFHacks
February 15, 2017, 09:46:26 pm

Looking for a mod that helps use include image in the post by DenDen60
February 13, 2017, 02:04:07 pm

Powered by EzPortal