Announcement

#1 2009-04-22 03:51:04

MJ80
Member
2009-04-19
56

How do I put normal html text into the homepage?

Two things I need to do.

1. Find out how to add text to the frontpage. Direclty on the Sylvia part where the categories thumbnail is. Just to explain a few things.

2. I need to add text to the upload part when it says the dimensions of the picture etc. I need to add that you cannot upload files with spaces in the name. Users shouls use underscores like so....

picture_of_galaxy.jpg


How can I do that?

cheers guys.

Offline

 

#2 2009-04-22 07:15:47

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: How do I put normal html text into the homepage?

Thank you for not asking a question by post to ease the search for other users

MJ80 wrote:

1. Find out how to add text to the frontpage. Direclty on the Sylvia part where the categories thumbnail is. Just to explain a few things.

With [extension by plg] PWG Stuffs
- add a module
- add Personnal block (selected the options you are)

MJ80 wrote:

2. I need to add text to the upload part when it says the dimensions of the picture etc. I need to add that you cannot upload files with spaces in the name. Users shouls use underscores like so....

You can use the templates-extension

Administration -> Configuration -> Templates (read http://piwigo.org/demo/admin/template/goto/icon/help.png)

Model to adapt your personal use [extension by Piwigo Team] LocalFiles Editor
- >tabsheet template
- > Create new file
- > created from a template model
- > Adds the elements, following your need


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Online

 

#3 2009-04-22 10:53:14

MJ80
Member
2009-04-19
56

Re: How do I put normal html text into the homepage?

Thanks for that.

But how do I add to this list on the upload page?

    * the filesize of the picture must not exceed : 1524 KB
    * the width of the picture must not exceed : 1350 px
    * the height of the picture must not exceed : 1350 px
    * the picture must be to the fileformat jpg, gif or png

I want to add

    * Note: make sure the pictures name has no spaces in it. example: farmname_1.jpg

Offline

 

#4 2009-04-22 12:28:50

MJ80
Member
2009-04-19
56

Re: How do I put normal html text into the homepage?

I resolved this by adding these lines

Code:

<div style="text-align:center;">
<b>* NOTE:</b> Make sure the files name you are uploading doesnt contain spaces in it. <b>[Rename it before uploading]</b>
<br /><br />
<b>Correct Format:</b> farm_name_1.jpg <b>OR</b> farmname1.jpg
<br /><br />
<b>Incorrect Format:</b> farm name 1.jpg 
<br />
<br />
</div>

Into this file

template>yoga>upload.tpl

Placed it just under the submit button which starts at line 112 and ends at line 114

Code:

112  {if isset($SHOW_FORM_FIELDS) and $SHOW_FORM_FIELDS}
113  <div style="text-align:left; margin-left:20px;"><span style="color:red;">*</span> : {'mandatory'|@translate}</div>
114  {/if}
115
116 <div style="text-align:center;">
117 <b>* NOTE:</b> Make sure the files name you are uploading doesnt contain spaces in it. <b>[Rename it before uploading]</b>
118 <br /><br />
119 <b>Correct Format:</b> name_1.jpg <b>OR</b> name1.jpg
120 <br /><br />
121 <b>Incorrect Format:</b> name 1.jpg
122 <br />
123 <br />
124 </div>

Thanks for all your help dude.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact