Support Forums

How do I add a close window link?

This is a discussion on How do I add a close window link? within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Hi, Does anyone know how to add "click photo to close" under the picture? After some user testing i found ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 08-13-2008, 05:03 AM   #1
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 935
Rep Power: 25
bowers01 is on a distinguished road
Lightbulb How do I add a close window link?

Hi,
Does anyone know how to add "click photo to close" under the picture?
After some user testing i found that people were clicking browser back button.
Any help would be great.
Cheers
__________________
Nick Bowers
68c v4.09 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 08-13-2008, 06:09 PM   #2
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,733
Rep Power: 51
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Quote:
Originally Posted by bowers01
Hi,
Does anyone know how to add "click photo to close" under the picture?
After some user testing i found that people were clicking browser back button.
Any help would be great.
Cheers
This really should be in it's own thread, so I created one and moved it.

PHP Code:
<input type="button" value="Close Window" onclick="window.close()" /> 
-Mike
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified)
Sandbox (v3.1.10, v4.0.9, 4.1.5)
Visit My blog for tips, tricks, tutorials, reviews for 68 Classifieds as well as my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out

Last edited by Mike-N-Tosh; 08-13-2008 at 06:11 PM.
Mike-N-Tosh is offline   Reply With Quote
Old 08-13-2008, 06:34 PM   #3
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 935
Rep Power: 25
bowers01 is on a distinguished road
Default

Hi,
It was in Image and Thumbnail Display Changes because if you go to www.truckandmachinery.com.au find a listing and click on a picture, you will see the photo pops up with a black background. I need "Click picture to close" under the pic.
Any Ideas?
Cheers
__________________
Nick Bowers
68c v4.09 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 08-13-2008, 07:22 PM   #4
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,733
Rep Power: 51
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Since you are using some custom javascript (I'm assuming it's javascript) and not the standard 68c popup window, I'm not sure if anyone is going to be able to help you without your code.

You should include all of the information regarding your request when you post, especially when you are using something completely different than the standard 68c stuff.

-Mike
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified)
Sandbox (v3.1.10, v4.0.9, 4.1.5)
Visit My blog for tips, tricks, tutorials, reviews for 68 Classifieds as well as my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 08-14-2008, 02:55 AM   #5
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 935
Rep Power: 25
bowers01 is on a distinguished road
Default

Hi,
The code i used is here Image and Thumbnail Display Changes
Cheers,
Nick
__________________
Nick Bowers
68c v4.09 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 08-14-2008, 09:07 AM   #6
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,303
Rep Power: 125
Eric Barnes is a jewel in the rough
Default

I have integrated that code here:
http://preloved-motorcycles.com/list...e____4000.html

For me it has a close "X" image and if I click anywhere it closes the window.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 08-14-2008, 09:31 AM   #7
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 935
Rep Power: 25
bowers01 is on a distinguished road
Default

Hi,
Any idea how to add the comments "Click image to close" under the picture?
Cheers
__________________
Nick Bowers
68c v4.09 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 08-14-2008, 09:37 AM   #8
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,303
Rep Power: 125
Eric Barnes is a jewel in the rough
Default

Honestly no. However you could integrate this instead which has a close link:
http://www.68classifieds.com/blog/ho...photo-gallery/
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 08-15-2008, 09:24 AM   #9
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 935
Rep Power: 25
bowers01 is on a distinguished road
Default

Hi,
Thanks, the code on that tutorial is totally different to the code in viewlistings2.tpl I had to do quite a few changes to get it to work this far.
Code:
		 {* This the image display portion *}
	{if $viewphotos=="Y"}
		{if $data<>""}
			{html_table_adv loop=$data cols=$cols table_attr='width="100%"'}
<a href="photos/[[image]]" title="{$image.title}" class="thickbox" rel="gallery"><img src="thumbs/small_[[image]]" alt="{$image.title}" /></a><br />
			{/html_table_adv}
		{else}
			<img src="templates/{$smarty.const.MAIN_TEMPLATE}/images/nophoto.gif" width="100" hspace="5" vspace="5" border="1" />
		{/if}
	{/if}
	{* This ends the image display portion *}
and the calling of scripts up the top.
Now this loads the thumbnails fine, but when you click on them it takes you to the picture url and doesnt load the "gallery" or "Picture viewer" any ideas why?
Cheers,
Nick
__________________
Nick Bowers
68c v4.09 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 08-16-2008, 07:02 AM   #10
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 935
Rep Power: 25
bowers01 is on a distinguished road
Default

Hi,
The code i am using at the top of the viewlisting2.tpl is
Code:
<script type="text/javascript" src="javascript/thickbox/jquery.js"></script>
<script type="text/javascript" src="javascript/thickbox/thickbox-compressed.js"></script>
<link rel="stylesheet" href="javascript/thickbox/javascript/thickbox/thickbox.css" type="text/css" media="screen" />
__________________
Nick Bowers
68c v4.09 Developer Custom Template

Last edited by bowers01; 08-16-2008 at 07:04 AM.
bowers01 is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove Price and Need View Profile Link dexignz Technical Support 0 06-29-2008 09:55 AM
Javascript - maximize browser window objelland v3.1 Questions & Support 0 04-26-2008 05:34 AM
Anchor text link in viewlisting.tpl SkGold v3.1 Modules & Modifications 4 04-11-2007 12:05 AM
Display link in only 2 cats midi510 v3.1 Modules & Modifications 8 04-09-2007 06:20 PM
ad is about to expire link garysmith v3.1 Questions & Support 3 06-14-2006 07:27 PM


All times are GMT -4. The time now is 01:56 AM.


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