Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4214
Latest: thatsjustit
New This Month: 5
New This Week: 3
New Today: 1
Stats
Total Posts: 42791
Total Topics: 7455
Most Online Today: 60
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 56
Total: 56

Author Topic: Keywords required  (Read 3898 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: 16233
    • 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: 16233
    • 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
3809 Views
Last post April 27, 2009, 09:04:09 pm
by Senkusha
0 Replies
23759 Views
Last post June 12, 2011, 12:31:57 am
by marcbkk
1 Replies
3586 Views
Last post November 24, 2013, 11:10:20 am
by SMFHacks
8 Replies
6065 Views
Last post April 26, 2015, 10:32:37 am
by SMFHacks
1 Replies
2186 Views
Last post February 12, 2016, 10:02:46 am
by SMFHacks

+- Recent Topics

prettyurls - TroubleShooting.wiki by thatsjustit
March 24, 2023, 07:56:39 pm

Download Gallery Option by SMFHacks
March 23, 2023, 09:34:02 am

Lost attachments by pete
March 22, 2023, 10:24:17 am

Additional Permissions by mickjav
March 18, 2023, 05:21:23 am

[Mod]Discord Web Hooks by SMFHacks
March 17, 2023, 08:48:30 am

Site upgrade to 2.1 by SMFHacks
March 12, 2023, 08:51:19 am

Theme/CSS design wanted by mickjav
March 11, 2023, 12:10:11 pm

Category Images by Anmer
March 10, 2023, 06:20:04 am

DownloadsPro - Topic Link by Anmer
March 08, 2023, 03:18:05 pm

Bulk File Import by SMFHacks
March 08, 2023, 07:56:23 am

Powered by EzPortal