This is a discussion on large image w/ surrounding thumbnails in viewlisting page within the v3.1 Questions & Support forums, part of the v3.1 Legacy Help & Support category; This goes in the viewlisting template file....
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
#11
|
||||
|
||||
|
This goes in the viewlisting template file.
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
|
#12
|
|||
|
|||
|
so the viewlisting.php file? where exactly in the code do i insert this?
|
|
#13
|
|||
|
|||
|
i'm sorry - i see you said template - i am using a modified version of 68 green - i see layout and css files, but no viewlisting template file.
|
|
#14
|
|||
|
|||
|
it goes in the file found here:
templates > default > viewlistings.tpl.php |
|
#15
|
|||
|
|||
|
So From what I am reading you just copy and paste the code into the templates>default>viewlistings.tp.php
That is what has been posted. Is that correct? Or does the code actually go into a specific spot in the code? Cause if that is the case, no one has really answered the question. Correct me if I am wrong Please. |
|
#16
|
||||
|
||||
|
It 'replaces' this code in viewlisting.tpl.php
So 'cut' out this code below ... Quote:
__________________
Chaslie V3.1.10 dev mods.auscity.com AUSCITY 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals HTML Help W3 Schools |
|
#17
|
|||
|
|||
|
Thanks alot I know your trying hard to help me, but It still dosn't work for me could it because I am using a Red-auto template?
|
|
#18
|
|||
|
|||
|
Got it to work, now I just need to make my images bigger. Thanks everyone for your patients.
|
|
#19
|
|||
|
|||
|
OK - I have the default template, version 3.1.9.
I have replaced the code {if $viewphotos=="Y"} {foreach from=$data item=image} <p><a href="#" onMouseOver="window.status='View Large Image';return true" onMouseOut="window.status='';return true" onClick="window.open('{$smarty.const.URL}/viewimage.php?photo={$image.id}','_popup','width=4 50,height=500,directories=no,location=no,menubar=n o,scrollbars=yes,status=no,toolbar=no,resizable=no ,left=0,top=0,screenx=50,screeny=50');return false"> <img src="thumbs/small_{$image.image}" hspace="5" vspace="5" class="image" border="0" /></a><br />{$image.title}</p> {foreachelse} <img src="images/nophoto.gif" width="100" hspace="5" vspace="5" border="1" /> {/foreach} {/if} with the following code {* This the image display portion *} <script type="text/javascript" language="javascript"> {literal} function showPic (whichpic) { if (document.getElementById) { document.getElementById('placeholder').src = whichpic.href; if (whichpic.title) { document.getElementById('desc').childNodes[0].nodeValue = whichpic.title; } else { document.getElementById('desc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue; } return false; } else { return true; } } {/literal} </script> {if $viewphotos=="Y"} {if $data<>""} <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="80%"> {section name=image loop=$data max=1} <p align="center"><img id="placeholder" src="photos/{$data[image].image}" alt="" class="imageborder" /></p> <strong><p align="center" id="desc">{$data[image].title}</p></strong> {/section}</td> <td> <DIV STYLE="height:320px; width:170px;overflow:auto"> <div align="center"> {foreach from=$data item="entry"} <a onclick="return showPic(this)" href="photos/{$entry.image}" title="{$entry.title}"><img src="thumbs/small_{$entry.image}" hspace="5" vspace="5" border="0" class="imageborder" /></a> {/foreach} </div> </div> </td> </tr> </table> {/if} {/if} {* This ends the image display portion *} on pages veiwlisting.tpl.php AND viewlisting2.tpl.php both alternately, and together, and do not get ANY respsonse whatsoever. My web developer who is helping me did this also and got no repsonse. I can see the change in the code and preview mode, but it refuses to affect the look of tha page. I have refreshed, deleted temp files and cookies, logged out and back in. I have made the changes through the admin window and the files through ftp. Why won't this change reflect on my page? Can you PLEASE help me? This should not be so hard to do! Thanks a million in advance.... Connie |
|
#20
|
||||
|
||||
|
Sorry but just realised there is additional code to add.
In viewlisting.tpl.php and viewlisting2.tpl.php just above {* Display the breadcrumb *} , add the following code: Quote:
__________________
Chaslie V3.1.10 dev mods.auscity.com AUSCITY 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals HTML Help W3 Schools |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Replacing the categories on home page with an image map.. | margaretm | HTML, CSS, and Design Help | 1 | 08-07-2007 09:00 PM |
| Disable image on Table Page | barrysmith | v3.1 Questions & Support | 16 | 09-30-2006 12:46 PM |
| Show image #1 large on viewlisting page | macagent | v3.1 Modules & Modifications | 4 | 07-12-2006 05:56 PM |
| more large image errors | frosty | v3.1 Questions & Support | 2 | 05-17-2006 12:28 PM |
| view large image error | frosty | v3.1 Questions & Support | 8 | 05-16-2006 10:39 PM |