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: 43294
Total Topics: 7523
Most Online Today: 124
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 2
Guests: 107
Total: 109

Author Topic: place text in the description box  (Read 5533 times)

0 Members and 1 Guest are viewing this topic.

Offline clive

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
place text in the description box
« on: March 18, 2008, 01:17:24 pm »
Hi all,

Is there a way to add some pre determined text into the description box on the upload an image screen?

My members seem to be forgetting to place good descriptions so I want to place a few lines there to remind them of the gallery rules with the idea that they delete that text and write their description.

Thanks.

Clive

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
Re: place text in the description box
« Reply #1 on: March 18, 2008, 06:54:55 pm »
Yeah you would need to edit Gallery.template.php and find other the template_add_picture function and search for the textarea that contains description. Then just add it between the textarea tags.
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 clive

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Re: place text in the description box
« Reply #2 on: March 19, 2008, 03:03:04 am »
Thanks very much for the reply.

I located the code but am unsure of the syntax needed to add text to the description box.


<td align="right"><b>' . $txt['gallery_form_description'] . '</b>&nbsp;</td>
     <td><textarea name="description" rows="6" cols="55"></textarea>';

Thanks for the help and advice.

Clive

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
Re: place text in the description box
« Reply #3 on: March 19, 2008, 07:29:08 pm »
Code: [Select]
<td align="right"><b>' . $txt['gallery_form_description'] . '</b>&nbsp;</td>
     <td><textarea name="description" rows="6" cols="55">Your Text Here</textarea>';

You are just inserting text in the middle of the textarea tags.
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
0 Replies
2937 Views
Last post September 03, 2009, 06:16:45 pm
by Bar Nuthin
4 Replies
5432 Views
Last post January 20, 2010, 04:28:43 am
by petesky
2 Replies
3244 Views
Last post November 21, 2010, 03:35:56 am
by wandawill
5 Replies
4187 Views
Last post January 27, 2013, 09:41:30 am
by amwebby
12 Replies
6555 Views
Last post July 25, 2015, 01:23:44 pm
by SMFHacks

+- Recent Topics

Please Help! by fmofmpls
Today at 01:47:09 pm

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