[Solved]: call category from front page [Solved]: call category from front page
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[Solved]: call category from front page

Started by Halfhidden, July 07, 2008, 07:38:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Halfhidden

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

Nibbler

Depends what you mean by internally.

Halfhidden

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

Halfhidden

doesn't work that way I guess?
Oh well thanks for the help anyway.
Regards,
steff

Nibbler

#4
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']);

Halfhidden

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

Halfhidden

Just to let you know that worked a treat thanks.
Regards,
Steff