Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 175
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 180
Total: 180

Author Topic: Force search words  (Read 7643 times)

0 Members and 1 Guest are viewing this topic.

Offline Adamzon

  • SMF Gallery Pro Customer
  • Member
  • *****
  • 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: 16452
    • 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!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Adamzon

  • SMF Gallery Pro Customer
  • Member
  • *****
  • 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: 16452
    • 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!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Adamzon

  • SMF Gallery Pro Customer
  • Member
  • *****
  • 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
5525 Views
Last post November 04, 2014, 02:00:10 am
by elbeer
2 Replies
4816 Views
Last post March 01, 2010, 12:49:14 pm
by SMFHacks
4 Replies
4128 Views
Last post August 19, 2010, 06:46:48 pm
by jacci
0 Replies
2910 Views
Last post January 17, 2011, 12:19:31 pm
by redpotato
2 Replies
2783 Views
Last post February 12, 2013, 08:58:25 pm
by tekgik

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal