Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11325
Latest: l3anne25
New This Month: 17
New This Week: 8
New Today: 2
Stats
Total Posts: 35539
Total Topics: 6275
Most Online Today: 73
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 0
Guests: 48
Total: 48

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

installation fails by nightware
July 06, 2015, 10:37:08 pm

Resizing avatar on "user galleries" page by BuddahBoy
July 06, 2015, 10:06:06 am

Give All Members Credits by SMFHacks
July 06, 2015, 09:50:28 am

Reset all users credits? by SMFHacks
July 06, 2015, 08:46:26 am

300 credit for sing in by pasqualino77
July 06, 2015, 06:23:48 am

Banned!!! by SMFHacks
July 03, 2015, 12:01:08 pm

No option to ad picture to Members Galleries in drop down list. by vmstek
July 02, 2015, 08:47:41 am

suggestion picture upload by exit
July 02, 2015, 02:30:08 am

"Bulk Add Pictures" doesn't work | Version 7.0.4 by lakestclair
July 01, 2015, 10:57:05 am

Slideshow ends after 50 pics by SMFHacks
June 30, 2015, 10:01:30 pm

Powered by EzPortal