Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11242
Latest: SlyBaldGuys
New This Month: 29
New This Week: 8
New Today: 1
Stats
Total Posts: 33770
Total Topics: 6024
Most Online Today: 86
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 3
Guests: 56
Total: 59

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

Ads below posts by SMFHacks
Today at 07:26:00 am

Ad locations screenshot by SMFHacks
Today at 07:22:21 am

Upgrading from Ad Management 3.2 to Ad Seller Pro 2.1 on SMF 2.09 by SMFHacks
October 30, 2014, 06:31:21 pm

Ajax Continuous Page Scrolling (Facebook Styles) by SMFHacks
October 29, 2014, 04:31:28 pm

Some Problems by m.ehm
October 29, 2014, 04:49:05 am

if you edit a picture that didn't have a custom field applied to it, the opportu by SMFHacks
October 28, 2014, 08:46:32 pm

Core Theme by SMFHacks
October 27, 2014, 08:09:12 pm

Display gallery inside the forum page by SMFHacks
October 27, 2014, 04:19:02 pm

The future of Badge awards by GenesisMUGEN
October 27, 2014, 02:44:05 pm

radio player and chat box by crazyminx
October 26, 2014, 12:41:48 pm

Powered by EzPortal