Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11585
Latest: srba12340
New This Month: 11
New This Week: 1
New Today: 0
Stats
Total Posts: 36540
Total Topics: 6417
Most Online Today: 64
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 0
Guests: 45
Total: 45

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

Possible to make keywords required by Puppeteer
February 09, 2016, 10:48:38 pm

Moderation of files, option to message uploader by Puppeteer
February 09, 2016, 10:47:00 pm

[Mod]Open Embed by nend
February 08, 2016, 07:40:25 am

Copyright Removal Key Fail - EzPortal by HDB
February 07, 2016, 04:41:59 pm

I need totorial how to place ad codes outsite smf on blogspot by SMFHacks
February 07, 2016, 03:07:46 pm

Link user categories to profiles? by Dragon41673
February 07, 2016, 08:38:58 am

Horizontal Banner within post by northview
February 06, 2016, 11:50:48 pm

Open Embed 0.4 by nend
February 04, 2016, 09:50:05 pm

Sort by custom field by SMFHacks
February 04, 2016, 07:37:39 am

Issuing Monthly credits - possible with SQL by Puppeteer
February 03, 2016, 10:24:55 pm

Powered by EzPortal