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: 212
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 193
Total: 193

Author Topic: Titles - how to make optional  (Read 3716 times)

0 Members and 1 Guest are viewing this topic.

Offline landyvlad

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Titles - how to make optional
« on: January 24, 2017, 06:26:47 am »
It seems that anyone wanting to upload a picture MUST include a title for each photo when they do so.
This is silly and unnecessary.
How do I adjust things so no title needs be nominated?

Thanks

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Titles - how to make optional
« Reply #1 on: January 24, 2017, 06:53:45 am »
Currently there is no setting for that. Would require a change.
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 landyvlad

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: Titles - how to make optional
« Reply #2 on: January 24, 2017, 07:22:43 am »
I have people screaming for it!

Or , more precisely screaming at me because of it.

Any code changes I can make to tell it that it doesn't need a title?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Titles - how to make optional
« Reply #3 on: January 24, 2017, 07:51:05 am »
Open sources/gallery2.php

Around line 2327
Find and remove
Code: [Select]
if ($title == '')
    {
        $errors[] = $txt['gallery_error_no_title'];
        //fatal_error($txt['gallery_error_no_title'],false);
    }


Around line 3142
Find and remove
Code: [Select]
if ($title == '')
fatal_error($txt['gallery_error_no_title'],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 landyvlad

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: Titles - how to make optional
« Reply #4 on: January 24, 2017, 02:37:26 pm »
can I comment them out rather than remove them?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Titles - how to make optional
« Reply #5 on: January 24, 2017, 02:48:39 pm »
yes you can
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 landyvlad

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: Titles - how to make optional
« Reply #6 on: February 06, 2017, 04:41:50 pm »
OK so this is exactly what I have now:

Code: [Select]
/*
if ($title == '')
    {
        $errors[] = $txt['gallery_error_no_title'];
        //fatal_error($txt['gallery_error_no_title'],false);
    }
*/
if ($title == '')
fatal_error($txt['gallery_error_no_title'],false);

But if I try to upload a pic it still gives me an error if no title is given.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Titles - how to make optional
« Reply #7 on: February 06, 2017, 04:59:20 pm »
You have to take out
if ($title == '')
         fatal_error($txt['gallery_error_no_title'],false);

This as well
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 landyvlad

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: Titles - how to make optional
« Reply #8 on: February 07, 2017, 02:25:52 am »
D'oh !  Must read instructions properly !  CHeers

I replaced one with the other !  LOL

edit: works perfectly. Thank you !
« Last Edit: February 07, 2017, 02:34:44 am by landyvlad »

 

Related Topics

  Subject / Started by Replies Last post
12 Replies
12904 Views
Last post November 22, 2006, 08:35:51 pm
by wannabee
1 Replies
4300 Views
Last post December 16, 2006, 04:40:44 pm
by SelArom
2 Replies
5933 Views
Last post February 03, 2008, 12:56:31 pm
by cralor
0 Replies
3824 Views
Last post April 09, 2008, 07:14:00 am
by matthen
0 Replies
3279 Views
Last post May 16, 2009, 04:19:12 am
by just4dosti.com

+- 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