Intechnic
Users Developers
Home / Forums / In-Portal CMS / General In-Portal Discussions / Custom template for category and banners / Topic Posts

In-Portal Forum

This is a place for users of In-Portal to ask questions, discuss various topics, and interact with other members of the In-Portal Community. Please report bugs through the Bugs Team (not the Forum). If you are interested in contributing or joining one of the many Teams for In-Portal, please check out the Contribute section of the website.
 

In-Portal Forum

Custom template for category and banners (30)


Posted: 06/20/2005 3:27:32 PM

Reply Quoted  


Dmitry wrote:06/20/2005 11:31:30 AM
linkit.ch wrote:06/17/2005 4:22:45 PM
linkit.ch wrote:06/14/2005 4:22:43 PM
I have to input some php-code like...

include(„http://james.adbutler.de/poplink.php?pid=8725&tid=96501&bid=38902&uid=132255“);

or

include(„http://james.adbutler.de/poplink.php?pid=8787&tid=96501&bid=38581&uid=132255“);

Do I have to create for each "include" an own tag or is there another way?

Thanks

Roland


Would be great, if anybody could give me an answer on this question. Thanks.


Sorry for delay Roland, I just missed this topic.

You can create one new tag and pass actual file/URL you want to include as an attribute, so your template would look like this after you added the tag itself:

<inp:m_include_file _File="http://james.adbutler.de/poplink.php?pid=8725&tid=96501&bid=38902&uid=132255" />

I hope this make sense.

Thanks,


[Edited By Dmitry on 06/20/05 11:41:41 AM]

[Edited By Dmitry on 06/21/05 6:21:08 AM]



Hi Dimitry

Tried to create a new function, but doesn't work...
I integrated the following function to parser.php:

function m_include_file($attribs = array())
{
// $file = getArrayValue($attribs,'_file');

$ret = include($file);

return $ret;
}

Maybe you can help me to create the "working" function.

Thanks

Roland

Posted: 06/20/2005 3:45:13 PM

Reply Quoted  


Dmitry wrote:06/20/2005 11:31:30 AM
linkit.ch wrote:06/17/2005 4:22:45 PM
linkit.ch wrote:06/14/2005 4:22:43 PM
I have to input some php-code like...

include(„http://james.adbutler.de/poplink.php?pid=8725&tid=96501&bid=38902&uid=132255“);

or

include(„http://james.adbutler.de/poplink.php?pid=8787&tid=96501&bid=38581&uid=132255“);

Do I have to create for each "include" an own tag or is there another way?

Thanks

Roland


Would be great, if anybody could give me an answer on this question. Thanks.


Sorry for delay Roland, I just missed this topic.

You can create one new tag and pass actual file/URL you want to include as an attribute, so your template would look like this after you added the tag itself:

<inp:m_include_file _File="http://james.adbutler.de/poplink.php?pid=8725&tid=96501&bid=38902&uid=132255" />

I hope this make sense.

Thanks,


[Edited By Dmitry on 06/20/05 11:41:41 AM]

[Edited By Dmitry on 06/21/05 6:21:08 AM]



Hi Dimitry

Tried to create a new function, but doesn't work...
I integrated the following function to parser.php:

function m_include_file($attribs = array())
{
// $file = getArrayValue($attribs,'_file');

$ret = include($file);

return $ret;
}

Maybe you can help me to create the "working" function.

Thanks

Roland

Posted: 06/20/2005 5:10:29 PM

Reply Quoted  


Dmitry wrote:06/20/2005 11:31:30 AM
linkit.ch wrote:06/17/2005 4:22:45 PM
linkit.ch wrote:06/14/2005 4:22:43 PM
I have to input some php-code like...

include(„http://james.adbutler.de/poplink.php?pid=8725&tid=96501&bid=38902&uid=132255“);

or

include(„http://james.adbutler.de/poplink.php?pid=8787&tid=96501&bid=38581&uid=132255“);

Do I have to create for each "include" an own tag or is there another way?

Thanks

Roland


Would be great, if anybody could give me an answer on this question. Thanks.


Sorry for delay Roland, I just missed this topic.

You can create one new tag and pass actual file/URL you want to include as an attribute, so your template would look like this after you added the tag itself:

<inp:m_include_file _File="http://james.adbutler.de/poplink.php?pid=8725&tid=96501&bid=38902&uid=132255" />

I hope this make sense.

Thanks,


[Edited By Dmitry on 06/20/05 11:41:41 AM]

[Edited By Dmitry on 06/21/05 6:21:08 AM]



Hi Dimitry

Tried to create a new function, but doesn't work...
I integrated the following function to parser.php:

function m_include_file($attribs = array())
{
// $file = getArrayValue($attribs,'_file');

$ret = include($file);

return $ret;
}

Maybe you can help me to create the "working" function.

Thanks

Roland

Posted: 06/20/2005 5:45:47 PM

Reply Quoted  


wrote:06/20/2005 5:10:29 PM
Dmitry wrote:06/20/2005 11:31:30 AM
linkit.ch wrote:06/17/2005 4:22:45 PM
linkit.ch wrote:06/14/2005 4:22:43 PM
I have to input some php-code like...

include(„http://james.adbutler.de/poplink.php?pid=8725&tid=96501&bid=38902&uid=132255“);

or

include(„http://james.adbutler.de/poplink.php?pid=8787&tid=96501&bid=38581&uid=132255“);

Do I have to create for each "include" an own tag or is there another way?

Thanks

Roland


Would be great, if anybody could give me an answer on this question. Thanks.


Sorry for delay Roland, I just missed this topic.

You can create one new tag and pass actual file/URL you want to include as an attribute, so your template would look like this after you added the tag itself:

<inp:m_include_file _File="http://james.adbutler.de/poplink.php?pid=8725&tid=96501&bid=38902&uid=132255" />

I hope this make sense.

Thanks,


[Edited By Dmitry on 06/20/05 11:41:41 AM]

[Edited By Dmitry on 06/21/05 6:21:08 AM]



Hi Dimitry

Tried to create a new function, but doesn't work...
I integrated the following function to parser.php:

function m_include_file($attribs = array())
{
// $file = getArrayValue($attribs,'_file');

$ret = include($file);

return $ret;
}

Maybe you can help me to create the "working" function.

Thanks

Roland


Hello,

Remove "//" from the beginning of

// $file = getArrayValue($attribs,'_file');

line

Thanks.

Posted: 06/21/2005 2:12:30 AM

Reply Quoted  


Hi Dimitry

Still doesn't work. In the template I wrote...

<inp:m_include_file _File="http://james.adbutler.de/poplink.php?pid=8725&tid=96501&bid=38902&uid=132255" />

Do you have another idea to get the function working?

Thanks

Roland

Posted: 06/21/2005 11:37:49 AM

Reply Quoted  


linkit.ch wrote:06/21/2005 2:12:30 AM
Hi Dimitry

Still doesn't work. In the template I wrote...

<inp:m_include_file _File="http://james.adbutler.de/poplink.php?pid=8725&tid=96501&bid=38902&uid=132255" />

Do you have another idea to get the function working?

Thanks

Roland


Roland,

What is the page/template of your site (need URL and template name) you are using this tag on?

Thanks.

Posted: 06/21/2005 4:10:46 PM

Reply Quoted  


Hi Dimitry

I wrote the tag to the template "navigation.tpl". That's a template, which I created by my own (inlink2-template). It will be displayed on all pages (left side below "weiterempfehlen&quot.

Kind regards

Roland

Posted: 06/22/2005 10:17:33 AM

Reply Quoted  


linkit.ch wrote:06/21/2005 4:10:46 PM
Hi Dimitry

I wrote the tag to the template "navigation.tpl". That's a template, which I created by my own (inlink2-template). It will be displayed on all pages (left side below "weiterempfehlen&quot.

Kind regards

Roland


Hello Roland,

I just tested this tag on my In-portal and it work fine. Try to create some test.php file and place that the

<?php include("yourURL" ?>

and see if it will return anything. May be your server has a limitation for this.

Thank you.

Posted: 06/22/2005 3:44:29 PM

Reply Quoted  


Hi Dimitry

I created a file named index2.php with the following content...

<?php include("http://james.adbutler.de/poplink.php?pid=8725&tid=96501&bid=38902&uid=132255" ?>

On my webserver it is possible to execute this script and it will show the right content.

I will write you again my changes...

In template "navigation.tpl"...
<inp:m_include_file _File="http://james.adbutler.de/poplink.php?pid=8725&tid=96501&bid=38902&uid=132255" />

In parser.php...
function m_include_file($attribs = array())
{
$file = getArrayValue($attribs,'_file');

$ret = include(array());

return $ret;
}

If you would like to check anything, I will send the datas to access my server by mail.

Thanks

Roland

Posted: 06/22/2005 4:33:18 PM

Reply Quoted  


linkit.ch wrote:06/22/2005 3:44:29 PM
Hi Dimitry

I created a file named index2.php with the following content...

<?php include("http://james.adbutler.de/poplink.php?pid=8725&tid=96501&bid=38902&uid=132255" ?>

On my webserver it is possible to execute this script and it will show the right content.

I will write you again my changes...

In template "navigation.tpl"...
<inp:m_include_file _File="http://james.adbutler.de/poplink.php?pid=8725&tid=96501&bid=38902&uid=132255" />

In parser.php...
function m_include_file($attribs = array())
{
$file = getArrayValue($attribs,'_file');

$ret = include(array());

return $ret;
}

If you would like to check anything, I will send the datas to access my server by mail.

Thanks

Roland


Hello Roland,

IT should look like this:

function m_include_file($attribs = array())
{
   $file = getArrayValue($attribs,'_file');

   $ret = include($file);
     
     return $ret;
}



Thanks

Page:     1 2 3