1
afghanhound
Where oh where do i edit templates

I have a few simple tasks i would like to do on my site
http://www.ahpedigrees.com

I know how to change them but where oh where do i find the files i need to edit

1. So simple all i want to do is change Add a Afghan Hound to proper english Add an Afghan Hound

2. http://www.ahpedigrees.com/modules/animal/latest.php
I would like to change the text from 500 Afghan Hounds match your request. Showing 1-500 (1 pages)
to
1000 Afghan Hounds match your request. Showing 1-1000 (1 page)
as it does list 1000 not 500!

3. Where do i find the file so i can edit the top menu links

AHI Website | AHI Main Menu | Afghan Hound Photo Galleries | AHI Photography Blog | Afghan Hound Links

Pedigree Database Info | AHI Pedigree Blog | AHI Facebook Fanpage | Donations | Email

Many thanks in advance for your help
Pam

2
pulapol
Re: Where oh where do i edit templates
  • 2010/2/18 14:34

  • pulapol

  • Just popping in

  • Posts: 55

  • Since: 2008/4/6 1


for the top menu it is maybe define in block or in the theme itself

try search in

a. XOOPS admin panel - blocks administration -
b. themes/xmt/theme.html

for the text try
a. modules/animal/language/
b. module/animal/templates/


nice site btw


3
afghanhound
Re: Where oh where do i edit templates

Hi thanks for the reply and glad you like the site, it would be so much better if i knew how to do things though!

The developer left us and i have no one to ask help from and apart from a few minor things i am not able to do much

I have looked everywhere for the text i want to change but cannot find the correct files anywhere, have looked in the admin and also looked at all the files via ftp

When i look in the files eg templates, modules i can only see small snippets of code not what is shown on the site so the files i need must be hidden somewhere else

I give up for a while until i get my brain unscrambled!

Pam
btw i do not get any notifications of posts from here although i have the option ticked

4
Peekay
Re: Where oh where do i edit templates
  • 2010/2/19 1:18

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


It varies according to the module, but most modules involve interaction with 3 files, for example:

module/article.php

module/templates/article.html

module/language/english/main.php

So...

article.php might extract the name of an author (e.g. 'Fred') from the database and put it into a variable called $authorname.

It then passes this data to a target 'placeholder' in the page template with the command:

$xoopsTpl->assign('author'$authorname);


In article.html, you will find the placeholder:


<{$author}>


which is often preceded by a reference to the module's language file:

<{$smarty.const._NW_AUTHOR_NAME}> <{$author}>


In module/language/english/main.php you'll find the matching language definition:

define("_NW_AUTHOR_NAME""The Author is");


The result would be (in English)

Quote:
The Author is Fred


Simples!

5
ghia
Re: Where oh where do i edit templates
  • 2010/2/19 2:00

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


For this module, some of the texts are defined in the 'webmaster tools'. See preferences and language options.

For the Add texts see /blocks/menu_block.php (search for animalType).
(These texts should be taken from the language files)

2) It is showing the number of records found/selected.
Do you think there are 1000 items in the list, while only 500 reported in this total?
Is this consistent when you add a dog?

6
afghanhound
Re: Where oh where do i edit templates

Thanks everyone for your ideas but i have found someone who has helped me find the correct places to edit in our pedigree program and will share the answers here in case they may help anyone else in the future. He sent me the editied files and i just uploaded them, but now i know where they are hiding i hope to be able to do some edits myself

Pam

Issue 1:
you find the standard webtexts in the file modules/animal/language/english/templates.php.

Line 212 changed

New file attached

Issue 2:
The correct number was caused by a program issue in the file modules/animal/latest.php

Line 45 changed

New file attached

Issue 3:

The menus are found in the file \themes\xmt\theme.html

From line 72 to 82

7
Peekay
Re: Where oh where do i edit templates
  • 2010/2/20 12:36

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Glad you solved it.

Login

Who's Online

312 user(s) are online (237 user(s) are browsing Support Forums)


Members: 0


Guests: 312


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits