embedding doesn't like plugins/comments

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
ppalazzo
Regular
Posts: 10
Joined: Sun Sep 26, 2004 5:38 am

embedding doesn't like plugins/comments

Post by ppalazzo »

I switched serendipity to embedded at my website:
http://www.palazzo.arq.br
and suddenly no plugins worked, and nothing would happen when I tried to post comments, read the extendet text of a post, and check out trackbacks. The code I have on my layout.php is exactly what garvin suggested on this topic:
http://www.s9y.org/forums/viewtopic.php?t=417

My index.php looks like this:
<div id="titulo">
<a href="http://www.palazzo.arq.br/">
<img src="images/titulo.png" alt="Imago Mundi" width="420" height="60">
</a>
</div>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr height="0">
<td colspan="2">
</td>
<td id="central" rowspan="2">
<?php
include 'layout.php';
?>
</td>
<td></td>
</tr>
<tr>
<td id="filletleft" nowrap>
 
</td>
<td id="esquerda">
<img src="images/nav_portfolio.gif" alt="" width="135" height="18" border="0">
<br>
Imagens do portfólio
<hr>
<img src="images/nav_temas.gif" alt="" width="135" height="18" border="0">
<br>
<?php
$title = '';
$plugin =& serendipity_plugin_api::load_plugin('@serendipity_categories_plugin:8767b80eeedf225c166358f3c5ee141c');
$plugin->generate_content($title);
?>
<hr>
<img src="images/nav_arquivo.gif" alt="" width="135" height="18" border="0">
<br>
<?php
$title = '';
$plugin =& serendipity_plugin_api::load_plugin('@serendipity_archives_plugin:7758b163c90fb9aa4adb8b6612edfccf');
$plugin->generate_content($title);
?>
<hr>
</td>

<td id="direita">
<img src="images/nav_about.gif" alt="" width="135" height="18" border="0">
<br>
<?php
include 'about.php';
?>
<hr>
<img src="images/nav_artigos.gif" alt="" width="135" height="18" border="0">
<br>
<?php
$title = '';
$plugin =& serendipity_plugin_api::load_plugin('serendipity_plugin_history:286b4cc8f59822e2bbcbb4ee1809eb55');
$plugin->generate_content($title);
?>
<hr>
<?php
$title = '';
$plugin =& serendipity_plugin_api::load_plugin('@serendipity_superuser_plugin:ec841afae989ea1b8ef7a6a5fc70e564');
$plugin->generate_content($title);
?>
<hr>
<div align="center">
Powered by
<br>
<?php
$title = '';
$plugin =& serendipity_plugin_api::load_plugin('@serendipity_plug_plugin:0cc03090fd05cc6682a3095d59d90dc8');
$plugin->generate_content($title);
?>
<br>
O conteúdo deste site não é de domínio público; favor respeitar a licença de uso.
<br>
<!-- Licença Creative Commons -->
<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/2.0/br/" target="_blank">
<img alt="Licença Creative Commons" border="0" src="http://creativecommons.org/images/publi ... s20.pt.gif">
</a>
<hr>
</div>
</td>
</tr>
<tr>

</tr>
</table>
All the elements show up correctly, they are clickable, but nothing happens when I click except reload the same page. The recent posts from the "history" plugin don't show up either. I'm quite at loss here since everything works fine in standalone.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: embedding doesn't like plugins/comments

Post by garvinhicking »

Hi!

You didn't replace your serendipity index.php, right? :)

You need to retain your default index.php, and *only* modify the layout.php file. You seem to have modified index.php and included the layout.php...

Regards,
Garvin.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ppalazzo
Regular
Posts: 10
Joined: Sun Sep 26, 2004 5:38 am

Post by ppalazzo »

Gotcha. Thanks for the answer!
Post Reply