Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4260
Latest: Verrick
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 43323
Total Topics: 7527
Most Online Today: 262
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 270
Total: 270

Author Topic: Keywords required  (Read 4602 times)

0 Members and 1 Guest are viewing this topic.

Offline Wajalot

  • Member
  • *
  • Posts: 31
    • View Profile
Keywords required
« on: November 06, 2009, 06:40:28 am »
Is it posible to change the option or code to make compulsory write down at least a keyword when a picture is uploading??. Like title image is required, also at least one keyword.
« Last Edit: November 06, 2009, 07:09:32 am by Wajalot »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16464
    • View Profile
Re: Keywords required
« Reply #1 on: November 08, 2009, 06:18:04 pm »
Possible to do requires a little edit

Open Sources/Gallery.php
Find
Code: [Select]
if ($title == '')
fatal_error($txt['gallery_error_no_title'],false);
Add After
Code: [Select]
if (empty($keywords))
fatal_error('A keyword is required to be entered',false);
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 Wajalot

  • Member
  • *
  • Posts: 31
    • View Profile
Re: Keywords required
« Reply #2 on: November 09, 2009, 01:31:47 am »
Thanks. It works great. I created a variable, $txt['keyword_required'] and also edited the Gallery.language.php files. Now works in english and spanish. Thanks a lot again.

In addition, is it possible to create some default keywords. And, also, if the answer is YES, is it possible to hide those default keywords so the users can't see them and then they have to write down some more to add to the default?
« Last Edit: November 09, 2009, 01:38:53 am by Wajalot »

Offline Wajalot

  • Member
  • *
  • Posts: 31
    • View Profile
Re: Keywords required
« Reply #3 on: November 17, 2009, 05:14:53 am »
When I upload pictures with the bulk mode I miss the field where to insert the keywords for each file. How can I add that field? And, also,  is it possible to create some default keywords?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16464
    • View Profile
Re: Keywords required
« Reply #4 on: November 18, 2009, 08:06:22 am »
Keywords field does not exist in the bulk mode mainly didn't want to clutter it up with too many options and fields that are required to upload a couple pictures quickly.


Generating keywords on the fly would be some difficult. If you have the same keywords for every picture you could modify the gallery.template.php and find the keywords textbox and enter a default value.
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/

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
4517 Views
Last post April 27, 2009, 09:04:09 pm
by Senkusha
0 Replies
24282 Views
Last post June 12, 2011, 12:31:57 am
by marcbkk
1 Replies
4106 Views
Last post November 24, 2013, 11:10:20 am
by SMFHacks
8 Replies
7106 Views
Last post April 26, 2015, 10:32:37 am
by SMFHacks
1 Replies
2611 Views
Last post February 12, 2016, 10:02:46 am
by SMFHacks

+- Recent Topics

Failed to open stream: File name too long by Randem
June 21, 2024, 10:40:41 am

Attachment images Upsidedown or Sideways by SMFHacks
June 18, 2024, 10:53:24 am

JSON decode error: The maximum stack depth has been exceeded by SMFHacks
June 14, 2024, 10:15:16 pm

“Insert from Gallery” by donk
June 10, 2024, 01:26:57 pm

Pretty Urls extras by SMFHacks
May 13, 2024, 10:28:54 am

Mod question by Verrick
May 11, 2024, 02:42:50 pm

i have paid but cant download ad pro. by SMFHacks
May 02, 2024, 11:29:38 pm

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

Powered by EzPortal