Welcome to Geeklog, Anonymous Friday, July 11 2025 @ 05:37 pm EDT
Geeklog Forums
Static page in article
Status: offline
Forum User
Regular Poster
Registered: 04/14/09
Posts: 99
Please help me, how to make the static page is displayed in the articles?
it's possible?
thank you
it's possible?
thank you
17
14
Quote
Status: offline
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
You can use the [staticpage_content:] autotag.
bye, Dirk
bye, Dirk
12
10
Quote
Status: offline
Forum User
Regular Poster
Registered: 04/14/09
Posts: 99
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
or can I make the static page is displayed in the blocks?
Thank you
15
14
Quote
Status: offline
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Well, that's a different question now ...
It would probably help if you could tell us what you want to accomplish.
bye, Dirk
It would probably help if you could tell us what you want to accomplish.
bye, Dirk
13
14
Quote
Status: offline
Forum User
Regular Poster
Registered: 04/14/09
Posts: 99
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:
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:
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
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
<? phpif (! 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

18
11
Quote
Status: offline
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
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
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
13
11
Quote
All times are EDT. The time is now 05:37 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content