Advanced search  

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]

Pages: [1]   Go Down

Author Topic: [Solved]: call category from front page  (Read 3060 times)

0 Members and 1 Guest are viewing this topic.

Halfhidden

  • Guest
[Solved]: call category from front page
« 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.
Code: [Select]
[[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
« Last Edit: July 08, 2008, 05:11:21 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: call category from front page
« Reply #1 on: July 07, 2008, 07:53:48 pm »

Depends what you mean by internally.
Logged

Halfhidden

  • Guest
Re: call category from front page
« Reply #2 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
Logged

Halfhidden

  • Guest
Re: call category from front page
« Reply #3 on: July 08, 2008, 01:43:53 am »

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

Nibbler

  • Guest
Re: call category from front page
« Reply #4 on: July 08, 2008, 09:36:40 am »

What's wrong with just this?

Code: [Select]
[url=index.php?cat=65/]Fishing Vessels[/url]
Oh.

include/functions.inc.php

find

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

Code: [Select]
$bbcode_tpl['url4'] = str_replace('{URL}', '\\1', $bbcode_tpl['url']);
« Last Edit: July 08, 2008, 09:43:34 am by Nibbler »
Logged

Halfhidden

  • Guest
Re: call category from front page
« Reply #5 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
Logged

Halfhidden

  • Guest
Re: call category from front page
« Reply #6 on: July 08, 2008, 04:38:21 pm »

Just to let you know that worked a treat thanks.
Regards,
Steff
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 17 queries.