coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Halfhidden on July 07, 2008, 07:38:38 PM

Title: [Solved]: call category from front page
Post by: Halfhidden on July 07, 2008, 07:38:38 PM
Hi, I need to be able to call several categories from the front page of Coppermine a buttons. Fore instance, I wrote this in bbcode and placed it in the category description.
[[url=picturepenzance.co.uk/index.php?cat=65/]Fishing Vessels[/url] This works ok but I really need to to call pages internally is it possible to do this please?

Regards,
Steff
Title: Re: call category from front page
Post by: Nibbler on July 07, 2008, 07:53:48 PM
Depends what you mean by internally.
Title: Re: call category from front page
Post by: Halfhidden on July 07, 2008, 07:57:11 PM
Hi Nibbler, I just want to call the categories without calling the full url... I was rather hoping that I could get away with something like [page][\page] or something like that but that's not supported I think.
Regards,
Steff
Title: Re: call category from front page
Post by: Halfhidden on July 08, 2008, 01:43:53 AM
doesn't work that way I guess?
Oh well thanks for the help anyway.
Regards,
steff
Title: Re: call category from front page
Post by: Nibbler on July 08, 2008, 09:36:40 AM
What's wrong with just this?

[url=index.php?cat=65/]Fishing Vessels[/url]

Oh.

include/functions.inc.php

find

$bbcode_tpl['url4'] = str_replace('{URL}', 'http://\\1', $bbcode_tpl['url']);

Change to

$bbcode_tpl['url4'] = str_replace('{URL}', '\\1', $bbcode_tpl['url']);
Title: Re: call category from front page
Post by: Halfhidden on July 08, 2008, 11:43:27 AM
Thanks... I'll give that a go. The reason is that I'm looking to an iframe in the future for an external site but if I call an external url whilst in an iframe the results will be a site within a site.... does that make sense?

Thanks again for your help.
Regards,
Steff
Title: Re: call category from front page
Post by: Halfhidden on July 08, 2008, 04:38:21 PM
Just to let you know that worked a treat thanks.
Regards,
Steff