Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 297
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 278
Total: 279

Author Topic: Keywords required  (Read 4477 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: 16436
    • 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: 16436
    • 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
4461 Views
Last post April 27, 2009, 09:04:09 pm
by Senkusha
0 Replies
24223 Views
Last post June 12, 2011, 12:31:57 am
by marcbkk
1 Replies
4052 Views
Last post November 24, 2013, 11:10:20 am
by SMFHacks
8 Replies
7001 Views
Last post April 26, 2015, 10:32:37 am
by SMFHacks
1 Replies
2584 Views
Last post February 12, 2016, 10:02:46 am
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

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

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal