Support Forums

Old 10-05-2007, 10:17 AM   #1
Member
 
Join Date: Oct 2007
Posts: 36
Rep Power: 7
whoazone is on a distinguished road
Lightbulb Pedigree Field Needed

I need to incorporate a pedigree format (family tree type of table layout) for some extra field options for my ad input and display on the 68C I am running.

I have the appearance and formatting code, but need someone to make it interact and appear in the listing on an ad page.

If anyone is interested in doing this, I would like it done ASAP. I am good to pay online (references) and am good to work with and for.

PLEASE - I'm in a hurry!! (for an idea of what I'm after, see my static version of apedigree at the blottom of the page at this link http://www.whoazone.com/STALLION%20P...stadorwhiz.htm

NOTE: In a perfect world, I would also like to incorporate an image viewer I found as my site is based upon a large quantity of images per listing. We can talk more on that once we get the pedigree set up. Thanks.
whoazone is offline   Reply With Quote
Old 10-05-2007, 10:31 AM   #2
Moderator
 
 
Join Date: Mar 2006
Posts: 4,095
Rep Power: 99
Lhotch is just really niceLhotch is just really nice
Default

Ive done something similar in the past but dont have time to do it anytime real soon.

What you want to do is create extra fields, one for each horse in the lineage that you want to have shown. Then in the template use smarty logic to not display those extra fields as they would normally be displayed when viewing the listing. Then farther down in the template where you want the pedigree to appear, build the html table and populate it accordingly with the extra fields.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 10-05-2007, 03:00 PM   #3
Member
 
Join Date: Oct 2007
Posts: 36
Rep Power: 7
whoazone is on a distinguished road
Default

thanks - I'll work on it. it sounds so simple :-) appreciate it.
whoazone is offline   Reply With Quote
Old 10-14-2007, 01:12 PM   #4
Member
 
Join Date: Oct 2007
Posts: 36
Rep Power: 7
whoazone is on a distinguished road
Question "write out" fields

In trying to formulate this pedigree thing, I have researched other field modifications and always see the term "write out". What does that mean precisely (as in exact code). Will I be writing out the extra field code or cutting/copying and pasting to my table cells? It seems I have gotten into wrecks by rearranging your default order of fields.... Can you give me an exact example like "do this here" then "put this here"? I don't mean to be a pest but this is my 5th test version of 68C and I am SO close to getting things perfect - I don't want to mess everything up - again :-) I'm sure I can do this if I have an example to follow.... Thanks.
whoazone is offline   Reply With Quote
Old 10-16-2007, 06:26 PM   #5
Member
 
Join Date: Oct 2007
Posts: 36
Rep Power: 7
whoazone is on a distinguished road
Unhappy Help!!!

can anyone PLEEEEEASE tell me where the extra fields I create are located? Like which exact file and how do I make them appear where I want them to appear (like in a table format on a user checkout page so a user can fill out info in a certain presentation and have it show up on the listing that way).

PLEASE.... I have had no answer for THREE days and I am losing confidence in this program.
whoazone is offline   Reply With Quote
Old 10-16-2007, 06:40 PM   #6
Senior Member
 
calaf6's Avatar
 
Join Date: Mar 2006
Location: UK
Posts: 334
Rep Power: 19
calaf6 is on a distinguished road
Default

In the admin area, there is a tab for categories, and under that extra fields. Just open for example 6 extra text fields called Sire, Grandsire, Granddam. Dam, Grandsire Granddam. That would cover the first 2 generations.

I can't help with the layout in a table though, thats beyond my knowledge!
calaf6 is offline   Reply With Quote
Old 10-16-2007, 06:57 PM   #7
Member
 
Join Date: Oct 2007
Posts: 36
Rep Power: 7
whoazone is on a distinguished road
Default thank you

thank thank THANK you. I will do this and see if I can figure it out. I know how to get it to layout beautifully, just can't get the data from the user entry to listing display. Are you available for more help on that point? Intereated in helping me develop this? I pay....
whoazone is offline   Reply With Quote
Old 10-16-2007, 07:23 PM   #8
Member
 
Join Date: Oct 2007
Posts: 36
Rep Power: 7
whoazone is on a distinguished road
Default sorry but nope

QUOTE: "In the admin area, there is a tab for categories, and under that extra fields. Just open for example 6 extra text fields called Sire, Grandsire, Granddam. Dam, Grandsire Granddam. That would cover the first 2 generations."

Well I go to admin, open categories, and find FIEIDS, but no EXTRA fields. The fields is just the language to make the fields work.

I see a "fields" folder under templates, but still not the fields that I sset up on my admin site.

I see listing setting, categories, and on and on, but not MY custom fields.
I even went into my original zip file and found no "extra listings" file. (My version is 3.1.9) Ugh!
whoazone is offline   Reply With Quote
Old 10-16-2007, 09:57 PM   #9
Moderator
 
 
Join Date: Mar 2006
Posts: 4,095
Rep Power: 99
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by whoazone View Post
can anyone PLEEEEEASE tell me where the extra fields I create are located? Like which exact file and how do I make them appear where I want them to appear (like in a table format on a user checkout page so a user can fill out info in a certain presentation and have it show up on the listing that way).

PLEASE.... I have had no answer for THREE days and I am losing confidence in this program.
Your extra fields are in the database. When you view an ad a query is done against the database and the extra fields table is checked to see if any extra fields are defined and if they are it gathers the field names and the data entered for these fields. It loops through them and places them in an array and then the viewlisting template loops through the array and prints out the field names and the field values as entered when the ad was placed.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 10-17-2007, 06:10 PM   #10
Senior Member
 
calaf6's Avatar
 
Join Date: Mar 2006
Location: UK
Posts: 334
Rep Power: 19
calaf6 is on a distinguished road
Default

From what I remember - and someone will probably have to correct bits of this - you need to associate the extra pedigree fields to the category or categories that are going to show the pedigree (thats the easy part) then in the template that shows the listing you have to do an if statement so that if the category is one where the pedigree is wanted the table is built and the values are put in it. If its only one category (e.g. stallions at stud) that has the pedigree table it may be easier than if its a lot of them, but I don't know anything about that side of things.

All I know about the extra fields is that there is a loop thing that goes through them and shows them in the order they are numbered, so I would think you would need to have things like age, height, breed at the top of the fields and the sire grandsire etc lower down so they are all together and at some point the loop can be directed to the pedigree table instead of putting the data into single boxes.

The loop bit in viewlistings seems to be
PHP Code:
    {* Extra Fields *}
            {foreach 
from=$extra item=extras}
            <
tr>
                <
td><strong>{$extras.title}:</strong></td>
                <
td>
                    {if isset(
$extras.value)}
                      {foreach 
key=key item=item from=$extras.value}
                        {
$item}<br />
                      {/foreach}
                     {/if}
                </
td>
            </
tr>
            {/foreach}
            {* 
End Extra Fields *} 
but I have no idea how you would get it to show in the table as I am no good with php so I cannot be any more help, hope you manage to get it sorted though, it will look great on the site.

Last edited by calaf6; 10-17-2007 at 06:17 PM.
calaf6 is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding extra field to search.php... abkeller v3.1 Modules & Modifications 4 06-05-2007 12:15 AM
listing extra field value when it is an array? Mike-N-Tosh v3.1 Modules & Modifications 13 04-21-2007 09:31 AM
Duplicating City Field GSP v3.1 Questions & Support 0 11-21-2006 11:22 AM
Displaying extra field in Search and category listings Bucketman v3.0 Questions & Support 3 04-26-2006 09:48 AM


All times are GMT -4. The time now is 12:48 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0