Posted on: 04/14/09 07:46am
By: Pushkar
Please help me, how to make the static page is displayed in the articles?
it's possible?
thank you
Re: Static page in article
Posted on: 04/15/09 03:45am
By: Dirk
You can use the autotag.
bye, Dirk
Re: Static page in article
Posted on: 04/15/09 10:06am
By: Pushkar
Thanks, but can I use it in all articles? For example set in article.thtml?
or can I make the static page is displayed in the blocks?
Thank you
Re: Static page in article
Posted on: 04/15/09 10:20am
By: Dirk
Well, that's a different question now ...
It would probably help if you could tell us what you want to accomplish.
bye, Dirk
Re: Static page in article
Posted on: 04/15/09 11:10am
By: Pushkar
I need to use php-code in each article in a block or in a content.
This code can be automated through which to sell text link ads.
To be able to display hypertext links to those pages that you wish to connect to the system, it is necessary at the beginning of the source code of these pages, do the following php-box:
Text Formatted Code
<? php
if (! defined ( '_SAPE_USER')) (
define ( '_SAPE_USER', 'ea1c5ae7cd4d0f8bb2006efca54aabea');
)
require_once ($ _SERVER [ 'DOCUMENT_ROOT'].'/'._ SAPE_USER.' / sape.php ');
$ sape = new SAPE_client ();
>
Further, in those places the page where you want to display links, you must insert the following code:
Text Formatted Code
<? echo $ sape-> return_links ($ n);?>
where $ n - number of links that you would like to take this place pages. The last call of this function in the document must take place without any parameters.
I know that this code can be displayed using the function and then put in phpblock. but how to do it, I do not know
Re: Static page in article
Posted on: 04/15/09 03:13pm
By: Dirk
You can define your own template variables in a CUSTOM_templateSetVars function. Would that help?
You could have a {my_ad} variable that would be available in all the story templates.
See lib-custom.php for an example. It only mentions header.html there, but it's also being called for the 'storytext', 'featuredstorytext', and 'archivestorytext' templates (and a few others).
bye, Dirk