Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11251
Latest: maur3en58
New This Month: 32
New This Week: 0
New Today: 0
Stats
Total Posts: 35296
Total Topics: 6238
Most Online Today: 57
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 1
Guests: 56
Total: 57

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

Mark all as Viewed by lonewood
May 23, 2015, 08:52:20 pm

Modify "Wrapper" by uhav2laf
May 23, 2015, 04:30:46 pm

Full gallery RSS feeds by SMFHacks
May 23, 2015, 01:19:26 pm

Listing, more than one product... by SMFHacks
May 22, 2015, 10:40:34 pm

Increase max size of article by SMFHacks
May 22, 2015, 10:28:07 am

Zoom support by Michel68
May 20, 2015, 01:29:13 am

Icons appearing off center to menu item text by PapaTango
May 18, 2015, 02:41:47 pm

Problem pagament paypal by SMFHacks
May 18, 2015, 01:59:21 pm

Using same Mod twice in the same Forum by SMFHacks
May 16, 2015, 10:40:12 am

[Mod] Post Scheduler by SMFHacks
May 14, 2015, 12:05:33 pm

Powered by EzPortal