Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 02:55 pm EST

Geeklog Forums

autotags in headers


Status: offline

geiss

Forum User
Full Member
Registered: 02/10/04
Posts: 176
Location:Boise, Idaho
We are discussing using autotags to generate a MediaGallery slideshow in a site header at gllabs.org.

(The idea is to have rotating images in the site header.) but we are not sure if the header code is run through the PLG_replaceTags() function in Geeklog. Can anyone confirm this?

Also, if this is the case, could one place code into the themes functions.php file, or in lib-custom that would enable autotags in header.thtml?

:pray:

Synergy - Stability - Style --- Visit us at glfusion.org
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
It's a bit like with static pages (see discussion elsewhere in the forum): You can use PHP in header.htmtl. So why do you need autotags on top of that?

bye, Dirk
 Quote

Status: offline

geiss

Forum User
Full Member
Registered: 02/10/04
Posts: 176
Location:Boise, Idaho
Thanks Dirk for your quick reply!

The idea was to easily drop images into a photo gallery (using MediaGallery for example) and then use the javascript slideshow or flash slideshow autotag feature to have rotating images in the header.

If I understand you correctly though, I should be able to call a function directly in header.thtml that lives in lib-custom.php or the themes functions.php file, correct? For ie:

Text Formatted Code

<body dir="{direction}">
<div class="container">

<div class="titleblock"><h1><a class="headerlink" href="{site_url}/">{site_name}</a></h1><p>{site_slogan}</p></div>
<div class="titleblock-image">
<?php
rotating_image()
?>
</div>
 


I am an absolute beginner with PHP code. Oops! Am I on the right track?

Thx!
Synergy - Stability - Style --- Visit us at glfusion.org
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Assuming rotating_image() returns the HTML for the image to be displayed, you'll need a "print" in front of it.

bye, Dirk
 Quote

Status: offline

koalasoft

Forum User
Full Member
Registered: 03/09/05
Posts: 242
Location:Mexico
it is possible to use autotag in header.thtml .. por exmaple content to staticpage

in header-thtml .....
Text Formatted Code
<div id="top">[staticpage_content:bloque]</div>


but, do not view my staticpage "bloque" in my top page...

what is wrong ???
**Cuando el Alumno esta listo, el Maestro Aparece **
::Geeklog support in Spanish::
 Quote

All times are EST. The time is now 02:55 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