Warning: include_once(/www/templates/gt/parts/blogs/carptips/first.php) [function.include-once]: failed to open stream: No such file or directory in /www/gt/docs/carp/tips/2004_09_01_archive.php on line 20

Warning: include_once() [function.include]: Failed opening '/www/templates/gt/parts/blogs/carptips/first.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/gt/docs/carp/tips/2004_09_01_archive.php on line 20

Saturday, September 11, 2004

Opening links in a new window 

CaRP gives you two ways to make links open in a new window, one of which lets you control the size of the window. The first method, which doesn't allow you to control the window size is to add the following code to the page in which you are displaying the feed:

CarpConf('linktarget',1);

The second, which allows you to control the window size is a little trickier. First, you need some JavaScript to handle the creation of a new window with a specified size (put this in the <head> section of your webpage if possible):

<script type="text/javascript">
function OpenNewsWindow(url) {
theWindow = window.open(url, "News", "directories=no, menubar=no, scrollbars=yes, status=no, toolbar=no, resizable=yes, width=600, height=400");
if (window.focus) theWindow.focus();
}
</script>


Then, use the following configuration settings to get CaRP to trigger the JavaScript when someone clicks a link (note that "image" and "date" in the first line below require CaRP Koi or CaRP Evolution, but won't hurt anything when used with CaRP GPL):

CarpConf('iorder','image,url,title,author,date,desc');
CarpConf('biurl','<a href="#" onClick="OpenNewsWindow(\'');
CarpConf('aiurl','\'); return false;">');
CarpConf('ailink','</a><br />');

// posted by Antone Roundy @ 5:15 PM
(1) comments
http://carp.docs.geckotribe.com/tips/2004/09/opening-links-in-new-window.php

Wednesday, September 01, 2004

Welcome to the CaRP Help Weblog 

Welcome to the CaRP Help Weblog. From time to time, I'll post articles here outlining useful tips and tricks for making the most of CaRP. Stay on top of new articles easily by subscribing to the RSS feed using the orange XML button near the top of the page.
// posted by Antone Roundy @ 9:24 AM
(1) comments
http://carp.docs.geckotribe.com/tips/2004/09/welcome-to-carp-help-weblog.php

This page is powered by Blogger. Isn't yours?


Warning: include_once(/www/templates/gt/parts/blogs/carptips/second.php) [function.include-once]: failed to open stream: No such file or directory in /www/gt/docs/carp/tips/2004_09_01_archive.php on line 68

Warning: include_once() [function.include]: Failed opening '/www/templates/gt/parts/blogs/carptips/second.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/gt/docs/carp/tips/2004_09_01_archive.php on line 68
ARCHIVES

Warning: include_once(/www/templates/gt/parts/blogs/carptips/third.php) [function.include-once]: failed to open stream: No such file or directory in /www/gt/docs/carp/tips/2004_09_01_archive.php on line 75

Warning: include_once() [function.include]: Failed opening '/www/templates/gt/parts/blogs/carptips/third.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/gt/docs/carp/tips/2004_09_01_archive.php on line 75