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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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