Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
July 28, 2014, 03:28:57 pm

Login with username, password and session length
Members
Total Members: 11298
Latest: qs12345
Stats
Total Posts: 35191
Total Topics: 5894
Online Today: 80
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 1
Guests: 61
Total: 62
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
| | | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Force search words  (Read 3865 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: 12017


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


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:10:30 pm]

[Today at 12:58:26 pm]

[Today at 10:43:03 am]

[Today at 08:17:38 am]

[July 24, 2014, 03:15:32 pm]

[July 24, 2014, 01:07:19 pm]

[July 23, 2014, 07:52:40 am]

[July 22, 2014, 09:55:50 pm]

by donk
[July 22, 2014, 12:25:04 am]

[July 20, 2014, 11:37:03 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.201 seconds with 20 queries.