How to: Change / Remove text in gallery- Intro on text edito

Kommercial
Kommercial's picture

Joined: 2002-08-19
Posts: 38
Posted: Thu, 2002-08-22 07:49

This is for beginners.
I've seen alot of questions about how to change different text in the gallery on here and in the mailing archives, so this should cover it all.

The easiest way i can reccomend to you is to download an editor (you should have one already if your trying to alter gallery)and run searches in the whole gallery directory for results of the same words you want to remove using the editor, then go to the file and see if its the right thing you want removed. Example; i use "crimson editor" which is available free from tucows.com. After you start it up, hit "Search" then "Find in files". Make sure it will be searching the entire gallery directory (if not browse to the main gallery directory), then you would enter "last changed" in the 'find what' box if you wanted to find those words. It will find any occurances of it like this:

---------- Find in Files ----------
Searching for 'last changed'...
E:galleryalbums.php(292,4): Last changed on <?=$gallery->album>getLastModificationDate()?>.
1 occurence(s) have been found.

As you can see that is the exact thing you want and you can double click on it, or just go to albums.php and go to line 292. Once there delete just the "last changed on" text and it wont be displayed anymore (or you could rewrite it to suit your needs.)
Remember- never use MS frontpage to alter php files, it can/will automagically screw them up royally. Use a text editor, such as crimson or your windows notepad etc. Of course if you save and upload the file and you see gallery is messed up because you deleted something you shouldn't have, just go back to the still open editor and click Undo and then re-up the file. Experimentation will be the key if you are a begginer but as you can see its fairly easy.

Editors are also good if you get more advanced and decide you want to delete or alter the name of a file- you can do searches the same way, but search for a file name like slideshow.php and it would show all the other files that call on the slideshow.php file, so you can make them stop.
hope this helps some of you
-Komm

 
grantiago

Joined: 2002-08-23
Posts: 78
Posted: Sat, 2002-08-24 18:46

How about changing the header and bg color on the first page?

grant

 
bpd@darb.net

Joined: 2002-08-20
Posts: 101
Posted: Sun, 2002-09-08 15:35

edit standalone_style.css and change it as you desire it'll be in ./css/

http://gallery.darb.net/

on mine ive also editied albums.php to include a background image that I use ...

 
lovelife

Joined: 2002-10-15
Posts: 11
Posted: Wed, 2002-10-16 22:07

What if you want to delete where it says Album: *album name*? I want the *album name* but I don't want it to say Album in front of it.

 
athwyna

Joined: 2002-10-17
Posts: 11
Posted: Thu, 2002-10-17 16:34

Hi, I noticed it looks different when it's used in Post Nuke, can you tell me which files to edit if I use mine with Postnuke and I dont want the url link to be shown beside the album? It's kinda long and messy. What folders are used when it is shown in Postnuke and what is used when it is used stand alone?

 
Lwd_Squashman

Joined: 2002-11-27
Posts: 2
Posted: Thu, 2002-11-28 06:25
Quote:
edit standalone_style.css and change it as you desire it'll be in ./css/

http://gallery.darb.net/

on mine ive also editied albums.php to include a background image that I use ...

I was wondering how you got the graphic at the top that says Brad's Gallery. The brads-gallery.gif file that is nicely centered. I am looking at the source and trying to figure out which file you edited to do that.

 
Gaile

Joined: 2002-07-20
Posts: 1301
Posted: Fri, 2002-11-29 20:03

Hi

The Brad's Gallery gif was most likely added to the header for the album. You'll find that in the html_wrap folder. Because of all the bits that come together to make a page it isn't always obvious what was edited to add something, but it's a safe bet that many of the customizations for standalone Galleries were added into the header/footer files in the html_wrap folder.

Regards,

Gaile

 
bpd@darb.net

Joined: 2002-08-20
Posts: 101
Posted: Sun, 2002-12-01 05:43
Quote:
Hi

The Brad's Gallery gif was most likely added to the header for the album. You'll find that in the html_wrap folder. Because of all the bits that come together to make a page it isn't always obvious what was edited to add something, but it's a safe bet that many of the customizations for standalone Galleries were added into the header/footer files in the html_wrap folder.

Regards,

Gaile

well thats how i should have done it! ... not sure if you can though. basically i didnt realise html_wrap existed so i hacked around with albums.php and added a string in there ... http://photos.darb.net/photos/stuff/albums.txt (txt copy of my php file) ... you can probably do it in the album.header file in html_wrap far more easily, i just havent tried.

 
caffeine
caffeine's picture

Joined: 2002-12-08
Posts: 3
Posted: Wed, 2002-12-18 19:06

dang..treied to post and got this:

Warning: Unknown modifier '' in /usr/www/website/gallery.menalto.com/modules/phpBB_14/functions.php on line 1220

Warning: Cannot add header information - headers already sent by (output started at /usr/www/website/gallery.menalto.com/modules/phpBB_14/functions.php:1220) in /usr/www/website/gallery.menalto.com/modules/phpBB_14/editpost.php on line 145

 
winkypicker
winkypicker's picture

Joined: 2003-01-21
Posts: 117
Posted: Wed, 2003-01-22 12:41

How do I get rid of the lines - other than making them the same colour as the background???

 
dtdgoomba

Joined: 2002-11-04
Posts: 185
Posted: Thu, 2003-01-30 16:52
Quote:
What if you want to delete where it says Album: *album name*? I want the *album name* but I don't want it to say Album in front of it.

I'm not sure if anyone answered this for the person, but I just went to do this for my album and found it in the view_album.php

<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE>
$buf = $buf."<b>Album: ".$myAlbum->fields[title]."</b>";
</TD></TR></TABLE><!-- BBCode End -->

my line numbers are different so just search for Album: like I did. People weren't really reading the "Album" so they thought I just had one picture in places when it was a friggin folder (yeah, reading is fundamental, but not for everyone). I replaced Album with a folder icon I made hoping it will be more apparent.

http://www.goombalooza.com/gallery/

 
D-Iivil
D-Iivil's picture

Joined: 2003-01-18
Posts: 12
Posted: Sat, 2003-02-08 00:07

Ok, I've translated this gallery into Finnish pretty far...but I have a little problem. How to remove those (s) letters what code adds if there's more than 1 item? For example:
"This album contains 1 item" versus "This album contains 2 items"

In finnish language we don't have that "s" after...

HELP!

 
Kommercial
Kommercial's picture

Joined: 2002-08-19
Posts: 38
Posted: Mon, 2003-02-24 21:20

This thread has been locked. If you still have questions, please post them as a new subject in the forums.
Thanks

 
yolise

Joined: 2005-09-27
Posts: 24
Posted: Tue, 2005-10-25 11:09
Quote:
I'm not sure if anyone answered this for the person, but I just went to do this for my album and found it in the view_album.php

Can someone point me towards this file's location? I did a search and couldn't find album_view in my gallery directory.

 
divyar100

Joined: 2005-10-31
Posts: 1
Posted: Mon, 2005-10-31 09:08

Hi!!

i wanna remove "Powered By Gallery V1" from my Gallery can any one help me and tell me name of that html file where i can change????

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2005-11-10 20:59
yolise wrote:
Can someone point me towards this file's location? I did a search and couldn't find album_view in my gallery directory.

It's there, I bet you are not using G1.

divyar100 wrote:
i wanna remove "Powered By Gallery V1" from my Gallery can any one help me and tell me name of that html file where i can change????

Find <?php print poweredBy() ?>

 
ri0tdorque

Joined: 2005-12-09
Posts: 5
Posted: Fri, 2005-12-09 06:39

i went into view_album.php and looked for that area but what i am finding is:

if ($gallery->album->isAlbum($index)) {
$albumName = $gallery->album->getAlbumName($index);
print "<td><a href=\n".
makeAlbumUrl($albumName). ">\n";
$myAlbum = new Album();
$myAlbum->load($albumName);
print sprintf(_("Album: %s"), $myAlbum->fields['title']);
print "</a></td></tr>\n";
} else {
print "<td><a href=\n".
makeAlbumUrl($gallery->session->albumName, $id);
print ">\n";
$desc = $gallery->album->getCaption($index);
if (trim($desc) == "") {
$desc=$gallery->album->getPhotoId($index);
}
print $desc;
print "</a></td></tr>\n";
}
}
print "</table>\n";

i'm assuming that i need to change: <b>print sprintf(_("Album: %s"), $myAlbum->fields['title']);</b> and i took out Album: in there but it did nothing

any help on this would be great thanks

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2005-12-10 02:44

ri0tdorque,
What is it you want to do?

 
TrickyDisco

Joined: 2005-08-10
Posts: 8
Posted: Sun, 2006-02-26 18:46
D-Iivil wrote:
Ok, I've translated this gallery into Finnish pretty far...but I have a little problem. How to remove those (s) letters what code adds if there's more than 1 item? For example:
"This album contains 1 item" versus "This album contains 2 items"

In finnish language we don't have that "s" after...

HELP!

I am pretty much in the same boat. I know it has something to do with the "pluralize" command in the code, but I have no clue how to remove it or singularize it without getting errors.

 
sleepless

Joined: 2006-09-22
Posts: 1
Posted: Fri, 2006-09-22 05:41

All the above tells me nothing on how to put a back to home link or alter the gallery main page. Maybe others understand, but I have searched, as stated for files, but cannot find and php or file that contains reference to, for example, "This is the main page of your Gallery" or the graphic/link on bottom left of page (Gallery 2) with hyperlink to http://gallery.sourceforge.net

I simply wish to alter the home page to have return links, if at all possible, get rid of the space to the left of gallery and have looked at most of the files in the folders and cannot seem to find any files that reference the look or contain the links.

Where are the files that represent the layout, as well as the links, including graphic links?

I've messed with PHP some, and usually can find the files, but in Gallery, it's appears like it's nothing but jibber, without any html references at all.

(I am using, at the moment a classic template)

NEED HELP!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2006-09-23 06:54
sleepless wrote:
All the above tells me nothing on how to put a back to home link

This thread is for G1 so will not work with G2 as G2 is differnet.

Quote:
or alter the gallery main page. Maybe others understand, but I have searched, as stated for files, but cannot find and php or file that contains reference to....

Did you read any documantation of the template files:
http://codex.gallery2.org/index.php/Gallery2:How_to_visually_embed_Gallery_in_your_own_website_by_editing_theme_templates

Quote:
"This is the main page of your Gallery" or the graphic/link on bottom left of page (Gallery 2) with hyperlink to http://gallery.sourceforge.net

http://gallery.menalto.com/node/28597

Quote:
NEED HELP!

do those and then post back in the G2 cusomization forum with one Q at a time as not to get other confused.

Dave

____________________________________________________
Blog with G2 || Gallery Frames / Mods || G1 Test Gallery

 
DeeAnn.

Joined: 2007-07-12
Posts: 4
Posted: Tue, 2007-07-17 16:07

Hi i would like to know how i go about changing the welcome to my gallery on my front page of my gallery its called momaz.net i would like to add more info but don't know how to do it i had some one do this for me and was not showed how to change it can you help. where it says welcome to my gallery want to add more thanks

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2007-07-17 16:18

DeeAnn,
Please start a new thread giving a version and URL if possible.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
DeeAnn.

Joined: 2007-07-12
Posts: 4
Posted: Tue, 2007-07-17 16:39

i am sorry i should have gave this two you i think this is what you need i am new at this so if i am wrong please help
http://www.momaz.net/main.php I had some one put this together for me and before i could figure out how to learn everything changed now i am on my own and i dont want to mess up anything because i love this gallery just would love to change the welcome text but i was told being this person used a program that theres now way i can do anything am i stuck or is there a different way i can change it i love everything this person done we just dont talk now please help if you can thanks

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2007-07-17 20:52

DeeAnn,
Have you considered using punctuation when typing?
This thread is for G1 and is from 2002.
http://codex.gallery2.org/Gallery2:Quick_Start_Guide#Configure_the_Root_Album Should help in editing things that you can change with the user interface. Your gallery is now called "My Gallery" and the directions will not reflect that, it mentions gallery as the default name of the root album.
So edit album (after you log in) and select the 'general' tab. Their you will be able to change the description of you album.

If you get stuck please start a new thread in the G2 forums.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
DeeAnn.

Joined: 2007-07-12
Posts: 4
Posted: Wed, 2007-07-18 00:28

thank you so much it was so easy yet so hard because i did not know what i was doing i am at awe thanks again

 
DeeAnn.

Joined: 2007-07-12
Posts: 4
Posted: Wed, 2007-07-18 14:52

DeeAnn how can i bring more traffic to my gallery http://www.momaz.net/main.php am i doing somthing wrong with key words or dicriptions what can i do to make things better and should i put this is my gallery and if so where please explain for i am new
and don't know a lot yet but trying hard thanks

<!-- Meta Tags by TrafficZap.com -->
<TITLE>graphics, fractal, animals, abstract, pictures, photography, zoo, momaz.net, scenery, ocean, designs, art, wildlife </TITLE>
<META NAME="DESCRIPTION" CONTENT="graphics, art, fractal, abstract, animals, wildlife, photography, new links, web, gallery, photo manipulation, pictures, momaz.net, designs, ">
<META NAME="KEYWORDS" CONTENT="graphic design, abstract art, web site, traffic, momaz.net, wildlife, ocean scenery, photo manipulation, zoo animals, photography, web links, ">
<META NAME="RATING" CONTENT="General">
<META NAME="ROBOTS" CONTENT="index, follow">
<META NAME="REVISIT-AFTER" CONTENT="6 Months">
<!-- Meta Tags by TrafficZap.com -->

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2007-07-18 23:06

DeeAnn,
How is your question related to G1? This is a G1 forum.
How is this question related this this thread? "How to: Change / Remove text in gallery"
Have you considered using punctuation when typing?

Please start a new thread in the correct forum.
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
kiti

Joined: 2010-08-06
Posts: 2
Posted: Tue, 2010-08-10 20:32

un favor si alguien me puede ayudar... lo unico k kiero es k me digan como puedo cambiar la bienbenida de mi pagina
http://www.teologiaupeu.com/fotos/main.php, kiero cambiar donde dice:"Esta es la página principal de tu Galería
" gracias... contestar aki o a mi correo: