68 Classifieds Forums

large image w/ surrounding thumbnails in viewlisting page

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....


Go Back   68 Classifieds Forums > v3.1 Legacy Help & Support > v3.1 Questions & Support

Reply
 
LinkBack Thread Tools Display Modes
  #11  
Old 10-04-2007, 01:29 PM
Eric Barnes's Avatar
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,305
Rep Power: 99
Eric Barnes is a jewel in the rough
Default

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
Reply With Quote
  #12  
Old 10-04-2007, 07:43 PM
Member
 
Join Date: Oct 2007
Posts: 36
Rep Power: 6
whoazone is on a distinguished road
Default

so the viewlisting.php file? where exactly in the code do i insert this?
Reply With Quote
  #13  
Old 10-04-2007, 07:47 PM
Member
 
Join Date: Oct 2007
Posts: 36
Rep Power: 6
whoazone is on a distinguished road
Default

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.
Reply With Quote
  #14  
Old 10-04-2007, 10:22 PM
Senior Member
 
Join Date: Aug 2006
Posts: 129
Rep Power: 12
spaceboy is on a distinguished road
Default

it goes in the file found here:

templates > default > viewlistings.tpl.php
__________________
Lindsay

developer v3.1.5 and v4
abletrader.com
Reply With Quote
  #15  
Old 10-05-2007, 01:12 AM
Member
 
Join Date: Sep 2007
Posts: 58
Rep Power: 7
Jessej is on a distinguished road
Default

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.
Reply With Quote
  #16  
Old 10-05-2007, 02:14 AM
Chaslie's Avatar
Moderator
 
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 697
Rep Power: 25
Chaslie is on a distinguished road
Default

It 'replaces' this code in viewlisting.tpl.php

So 'cut' out this code below ...

Quote:
{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}
.... and then paste in the new code wherever you wish to have it displayed on your page. Are you familiar with 'HTML tables'?
__________________
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
Reply With Quote
  #17  
Old 10-05-2007, 12:22 PM
Member
 
Join Date: Sep 2007
Posts: 58
Rep Power: 7
Jessej is on a distinguished road
Default Template

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?
Reply With Quote
  #18  
Old 10-05-2007, 12:27 PM
Member
 
Join Date: Sep 2007
Posts: 58
Rep Power: 7
Jessej is on a distinguished road
Default Got it

Got it to work, now I just need to make my images bigger. Thanks everyone for your patients.
Reply With Quote
  #19  
Old 10-10-2007, 08:19 PM
Member
 
Join Date: Oct 2007
Posts: 36
Rep Power: 6
whoazone is on a distinguished road
Question trouble with making this work

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
Reply With Quote
  #20  
Old 10-10-2007, 09:17 PM
Chaslie's Avatar
Moderator
 
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 697
Rep Power: 25
Chaslie is on a distinguished road
Default

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:
<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>
__________________
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
Reply With Quote
Reply

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
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


All times are GMT -4. The time now is 01:35 PM.


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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22