cotonti.com : [Help] Craigslist https://www.cotonti.com Last topic posts Cotonti en Tue, 02 Dec 2025 09:46:10 -0000 ven7ura Thu, 14 Oct 2010 03:21:28 -0000 GHengeveld


The courses.php file only contains a switch() statement which decides what file to include from the 'inc' folder. The files in 'inc' contain code similar to what you posted above.

There's no use in looking to download this plugin, it's something I built for a client, so it's private.]]>
Thu, 14 Oct 2010 01:27:30 -0000
ven7ura
I remember reading that article a long time ago, but since I never wanted to have different tpls I guess I didn't care.

I have to:
$tpl1 = new XTemplate(sed_skinfile('pluginname', true));
Make some TAGS
$tpl1->parse('MAIN');
$tpl1->out('MAIN');

$tpl2 = new XTemplate(sed_skinfile('pluginname.second', true));
Make some TAGS
$tpl2->parse('SECOND');
$tpl2->out('SECOND');

and so on

This all goes in plugin.php, right? (just making sure :) )]]>
Thu, 14 Oct 2010 01:02:27 -0000
GHengeveld As for the plugin templates, you should have a look at this article.]]> Wed, 13 Oct 2010 16:47:40 -0000 ven7ura
I want to create a craigslist type plugin, but I have some stuff that I would like some help with. Here are some of the issues that I think will stop me from finishing this work:

    1. How can I include the plugin with search. Any pointers on where to look would be great.
    2. I would like to have different TPLs on the plugin, I have yet to see a example on any of the plugin code that are here on Cotonti. I looked at the shopsystem plugin and it has an $output variable with the html (for example when you want to add an item), but I would like to have different TPLs so that editing in the future is more flexible.

These are only some of the issues that come to my mind. If I have more I will post them up :)

I plan on releasing it here once its finished.

Thanks in advance!]]>
Wed, 13 Oct 2010 13:24:26 -0000