Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11805
Latest: DebT
New This Month: 1
New This Week: 1
New Today: 1
Stats
Total Posts: 41608
Total Topics: 7274
Most Online Today: 65
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 53
Total: 54

Author Topic: place text in the description box  (Read 4689 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: 15753
    • 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: 15753
    • 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
2284 Views
Last post September 03, 2009, 06:16:45 pm
by Bar Nuthin
4 Replies
4761 Views
Last post January 20, 2010, 04:28:43 am
by petesky
2 Replies
2386 Views
Last post November 21, 2010, 03:35:56 am
by wandawill
5 Replies
2992 Views
Last post January 27, 2013, 09:41:30 am
by amwebby
12 Replies
3801 Views
Last post July 25, 2015, 01:23:44 pm
by SMFHacks

+- Recent Topics

Thanks mod SMF 2.1 by Monocero
November 27, 2021, 01:13:01 pm

How to change the font on a photo in SMF Gallery Pro? by SMFHacks
November 18, 2021, 09:28:11 am

Bulk Upload Many Pictures - File Name by SMFHacks
November 17, 2021, 08:58:50 am

Schedule or direct download link by SMFHacks
November 16, 2021, 10:57:33 am

Download Expire by Vincent Volmer
November 16, 2021, 02:40:47 am

prettyurls - TroubleShooting.wiki by SMFHacks
November 14, 2021, 02:18:59 pm

Error With Delete Download by mickjav
November 10, 2021, 04:49:12 pm

No ads on left or right by coyote
November 08, 2021, 04:57:13 pm

Now accepting Cryptocurrency by SMFHacks
November 05, 2021, 05:33:27 pm

Latest Version Pretty Urls SEO Pro by SMFHacks
November 04, 2021, 03:46:53 pm

Powered by EzPortal