Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11229
Latest: mriganka
New This Month: 16
New This Week: 2
New Today: 2
Stats
Total Posts: 33681
Total Topics: 6006
Most Online Today: 89
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 1
Guests: 85
Total: 86

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

No thumbnail coming from this Youtube video by shuban
October 19, 2014, 12:05:59 pm

Member not able to upload by SMFHacks
October 18, 2014, 11:20:38 pm

Gallery block spitting out errors. by shuban
October 18, 2014, 11:55:28 am

Zoom support by Michel68
October 15, 2014, 11:58:42 am

Problem in uploading videos by SMFHacks
October 14, 2014, 10:46:56 am

This is an interesting mode. by Labradoodle-360
October 14, 2014, 08:35:43 am

Convert phpbb Gallery? by SMFHacks
October 13, 2014, 05:47:24 am

My Listings by SMFHacks
October 12, 2014, 01:40:43 pm

Gallery Pro 6.5 - undefined index by Saftek
October 12, 2014, 01:02:21 pm

upgrading SMF Advanced Profile Fields to include lists and then linking with,,, by DenDen60
October 12, 2014, 04:09:29 am

Powered by EzPortal