Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4220
Latest: agolac
New This Month: 1
New This Week: 1
New Today: 0
Stats
Total Posts: 42854
Total Topics: 7464
Most Online Today: 86
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 57
Total: 57

Author Topic: Keywords required  (Read 3903 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: 16257
    • 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: 16257
    • 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
3819 Views
Last post April 27, 2009, 09:04:09 pm
by Senkusha
0 Replies
23772 Views
Last post June 12, 2011, 12:31:57 am
by marcbkk
1 Replies
3593 Views
Last post November 24, 2013, 11:10:20 am
by SMFHacks
8 Replies
6116 Views
Last post April 26, 2015, 10:32:37 am
by SMFHacks
1 Replies
2188 Views
Last post February 12, 2016, 10:02:46 am
by SMFHacks

+- Recent Topics

Is the PayPal Sandbox still working? by Nicole
June 02, 2023, 06:51:18 am

Question on Completed Listing & Reserve Price by Nicole
June 01, 2023, 06:06:12 pm

[Mod]GDPR Helper by Nicole
May 29, 2023, 11:58:49 pm

RSS Feed Poster Database Error by SMFHacks
May 22, 2023, 06:26:18 pm

Errors With Older Version. by Ken.
May 09, 2023, 05:35:40 pm

Pretty Urls SEO Pro by SMFHacks
May 06, 2023, 03:30:11 pm

New Post Image Upload Error by Mike66
April 28, 2023, 07:30:28 am

Copyright Removal Key by SMFHacks
April 03, 2023, 02:44:28 pm

Converting from Aeva Media by sudhakar
April 02, 2023, 11:09:54 am

Using SMF's Built-in Search Algorithm by shuban
March 27, 2023, 09:15:10 am

Powered by EzPortal