Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
September 16, 2014, 08:26:40 am

Login with username, password and session length
Members
Total Members: 11330
Latest: DAProgs
Stats
Total Posts: 35588
Total Topics: 5957
Online Today: 73
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 2
Guests: 60
Total: 62
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
| | | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Force search words  (Read 3892 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: 12197


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

Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.
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: 12197


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

Change
if(empty($_REQUEST['keywords'])
to
if(empty($_REQUEST['keywords']))
Logged

Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.
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 08:16:29 am]

[Today at 08:02:29 am]

[September 14, 2014, 07:19:50 pm]

[September 14, 2014, 02:57:10 pm]

[September 14, 2014, 11:17:58 am]

[September 14, 2014, 11:05:10 am]

[September 14, 2014, 11:04:35 am]

[September 14, 2014, 09:46:47 am]

[September 13, 2014, 06:56:02 pm]

[September 13, 2014, 03:06: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.264 seconds with 19 queries.