Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
April 24, 2014, 09:52:33 pm

Login with username, password and session length
Members
Total Members: 11197
Latest: besherh
Stats
Total Posts: 34819
Total Topics: 5839
Online Today: 89
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 49
Total: 49
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
| | | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Force search words  (Read 3787 times)
Adamzon
SMF Gallery Pro Customer
Newbie
*****
Offline Offline

Posts: 23


View Profile
« on: July 22, 2007, 12:29:00 pm »

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
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11874


View Profile
« Reply #1 on: July 22, 2007, 06:45:31 pm »

Yes it would require a code change
Open Sources/Gallery.php
Find this code located in at least two spots
Code:
$keywords = htmlspecialchars($_REQUEST['keywords'],ENT_QUOTES);
Add after
Code:
if(empty($_REQUEST['keywords']))
fatal_error('Keywords are required');
« Last Edit: August 27, 2007, 07:45:14 am by SMFHacks » Logged
Adamzon
SMF Gallery Pro Customer
Newbie
*****
Offline Offline

Posts: 23


View Profile
« Reply #2 on: August 27, 2007, 03: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 ?
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11874


View Profile
« Reply #3 on: August 27, 2007, 07:45:07 am »

Change
if(empty($_REQUEST['keywords'])
to
if(empty($_REQUEST['keywords']))
Logged
Adamzon
SMF Gallery Pro Customer
Newbie
*****
Offline Offline

Posts: 23


View Profile
« Reply #4 on: August 29, 2007, 03:08:44 am »

Thanx That worked better..
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 03:11:57 pm]

[April 22, 2014, 11:06:21 am]

[April 17, 2014, 06:35:33 pm]

[April 17, 2014, 05:44:48 pm]

[April 17, 2014, 04:01:58 pm]

[April 15, 2014, 10:58:02 am]

[April 13, 2014, 11:12:24 am]

[April 11, 2014, 09:39:48 am]

[April 11, 2014, 08:48:03 am]

[April 10, 2014, 08:20:58 am]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.19 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.248 seconds with 20 queries.