Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11129
Latest: Swatt
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 34793
Total Topics: 6164
Most Online Today: 96
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 2
Guests: 84
Total: 86

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

Image resize issue by SMFHacks
Today at 08:52:16 am

How to contact support privately? by SMFHacks
February 28, 2015, 10:09:08 pm

Mutiple ads on right side, header, footer, etc. by SMFHacks
February 28, 2015, 04:14:50 pm

Classifieds & Store Upgrade by SMFHacks
February 28, 2015, 11:49:47 am

Unable to load the 'main' template. by SMFHacks
February 28, 2015, 12:26:11 am

Enotify - assistance by SMFHacks
February 27, 2015, 09:58:20 am

post topic in a forum board when a picture is uploaded by donk
February 27, 2015, 12:39:10 am

TopMessageIndex by rickk
February 26, 2015, 04:33:50 am

Problem Leaving Feedback in Trader System Mod. by mrnuke7175
February 25, 2015, 09:58:45 pm

Addthis linking for Facebook incorrect link .. by SMFHacks
February 25, 2015, 09:34:14 pm

Powered by EzPortal