Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
August 21, 2014, 06:56:16 pm

Login with username, password and session length
Members
Total Members: 11323
Latest: pmootrey
Stats
Total Posts: 35292
Total Topics: 5912
Online Today: 95
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 52
Total: 52
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
| | | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Force search words  (Read 3877 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: 12060


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: 12060


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
[August 20, 2014, 11:38:43 am]

[August 19, 2014, 08:30:52 am]

[August 19, 2014, 04:50:50 am]

[August 18, 2014, 03:53:35 pm]

[August 18, 2014, 03:21:52 pm]

[August 18, 2014, 12:59:11 pm]

[August 17, 2014, 08:07:16 pm]

[August 16, 2014, 05:59:49 pm]

[August 16, 2014, 09:08:51 am]

[August 15, 2014, 11:17:36 pm]
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.186 seconds with 19 queries.