Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12000
Latest: Suz
New This Month: 12
New This Week: 0
New Today: 0
Stats
Total Posts: 38203
Total Topics: 6732
Most Online Today: 105
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 47
Total: 47

Author Topic: Force search words  (Read 5222 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, 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

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14159
    • View Profile
Re: Force search words
« 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: [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, 07:45:14 am by SMFHacks »
Get your Forum Ranked! at https://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, 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 ?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14159
    • View Profile
Re: Force search words
« Reply #3 on: August 27, 2007, 07:45:07 am »
Change
if(empty($_REQUEST['keywords'])
to
if(empty($_REQUEST['keywords']))
Get your Forum Ranked! at https://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, 03:08:44 am »
Thanx That worked better..

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
4106 Views
Last post November 04, 2014, 02:00:10 am
by elbeer
2 Replies
2487 Views
Last post March 01, 2010, 12:49:14 pm
by SMFHacks
4 Replies
2161 Views
Last post August 19, 2010, 06:46:48 pm
by jacci
0 Replies
1498 Views
Last post January 17, 2011, 12:19:31 pm
by redpotato
2 Replies
1505 Views
Last post February 12, 2013, 08:58:25 pm
by tekgik

+- Recent Topics

403 error by SMFHacks
September 23, 2017, 12:21:30 am

Purchase Notification Email to Store Admins by scso1502
September 19, 2017, 06:00:12 pm

Can't save ad code and errors in log. by SMFHacks
September 15, 2017, 12:40:15 pm

After migrating from http to https I started getting these errors by ApplianceJunk
September 14, 2017, 10:58:38 pm

SMF Gallery and https green padlock? by ApplianceJunk
September 14, 2017, 10:02:46 pm

AudioVideoEmbedder: attached files by SMFHacks
September 14, 2017, 10:58:51 am

Contact Page Version 4.0 by Binkie
September 10, 2017, 11:26:19 am

Can Generated Threads Display The Thumbnail Instead Of The Full Size Image? by Sockratease
September 09, 2017, 06:40:12 pm

Double purchase membergroup fix by SMFHacks
September 09, 2017, 12:30:06 pm

How do I prevent "moved" topic notifications on bulk movement of topics? by shuban
September 09, 2017, 11:25:25 am

Powered by EzPortal