Support Forums

V4 Extra fields

This is a discussion on V4 Extra fields within the Technical Support forums, part of the Technical Support Forums category; As I can insert extra fields, in viewlisting2.tpl.php as I have already made in version 3.17? Thanks...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 05-07-2007, 06:05 PM   #1
Member
 
Join Date: Apr 2006
Posts: 76
Rep Power: 21
gppromano is on a distinguished road
Default V4 Extra fields

As I can insert extra fields, in viewlisting2.tpl.php as I have already made in version 3.17?
Thanks
gppromano is offline  
Old 05-08-2007, 09:56 AM   #2
Member
 
Join Date: Apr 2006
Posts: 76
Rep Power: 21
gppromano is on a distinguished road
Default

Help me !!!!!!!!!!!!!!
gppromano is offline  
Old 05-08-2007, 10:05 AM   #3
Moderator
 
juven14's Avatar
 
Join Date: Mar 2006
Location: Texas
Posts: 1,999
Rep Power: 62
juven14 is a jewel in the rough
Default

Are you talking about an upgrade to v4 rc2? Your fields didn't upgrade or you are having problems recreating them on a fresh install. Can you be more specific?
__________________
John Snyder
PHP Developer
juven14 is offline  
Old 05-08-2007, 02:20 PM   #4
Member
 
Join Date: Apr 2006
Posts: 76
Rep Power: 21
gppromano is on a distinguished road
Default

I use 4 rc2, but my extra fields after upgrade to the version 3.17, not appear in viewlisting2.tpl.php, search.tpl.php, and toplisting.

Thanks
gppromano is offline  
Old 05-09-2007, 12:04 AM   #5
Moderator
 
juven14's Avatar
 
Join Date: Mar 2006
Location: Texas
Posts: 1,999
Rep Power: 62
juven14 is a jewel in the rough
Default

So you ran the upgrade on rc2 to achieve 3.1.7? I can't imagine what kind of problems that gave you. You shouldn't be going backward, likely the table names changed between the two versions and it simply created a blank table. Take a look at your database and see if you have valid data. I'll have to take a look and see if there are any db changes between the two versions that effect extra fields.
__________________
John Snyder
PHP Developer
juven14 is offline  
Old 05-09-2007, 05:11 AM   #6
Member
 
Join Date: Apr 2006
Posts: 76
Rep Power: 21
gppromano is on a distinguished road
Default

I in version 3,17 used this code for extra fileds:


<!-- template extra 11 -->
{* Extra Fields *} {foreach from=$extra item=extras} {if $extras.fID=="11"} </tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF"><span class="linknormale_gr">Cellulare</span><span class="linknormale">:</span> <span class="linknormale">{$extras.value}</span></td>
{else} {/if} {/foreach} {* End Extra Fields *} </tr>



but this code I do not work in the V4 the and theextras fieds, not appear in viewlistings.tpl.php

Thanks-
gppromano is offline  
Old 05-09-2007, 02:53 PM   #7
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,497
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Going off memory the extra fields are sent to the template differently in v4 so you may need to use the smarty debug console to see they are set up.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 05-09-2007, 06:36 PM   #8
Member
 
Join Date: Apr 2006
Posts: 76
Rep Power: 21
gppromano is on a distinguished road
Default

As I can make to activate use the smarty debug console?

Thanks.
gppromano is offline  
Old 05-10-2007, 05:00 AM   #9
Senior Member
 
midi510's Avatar
 
Join Date: Mar 2007
Location: Mammoth Lakes, Ca
Posts: 131
Rep Power: 19
midi510 is a jewel in the rough
Default

Just put {debug} (in v3) in your layout.tpl.php file (and upload). V4 might require {debug="TRUE"} (I've seen that in posts). I put it between the head and body. Then just go to the page that's an issue and the console will pop up.
__________________
Kirk
V3.1.7 Developer
May you & your loved ones be blessed with
Grace, Peace, Forgiveness, Love, Wisdom, & Joy
midi510 is offline  
Old 05-10-2007, 10:37 PM   #10
Moderator
 
juven14's Avatar
 
Join Date: Mar 2006
Location: Texas
Posts: 1,999
Rep Power: 62
juven14 is a jewel in the rough
Default

You can also prepend debug to the url unless using the seo module.

viewlisting.php?view=1&debug=true should also activate the debug console.
__________________
John Snyder
PHP Developer
juven14 is offline  
Closed Thread

Thread Tools
Display Modes



All times are GMT -4. The time now is 02:48 PM.


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