Fork me on GitHub

modulestylesheet plugin in pnForum centerblock issue  Bottom

  • I get this message "You can safely remove the modulestylesheet plugin from your theme."

    through experimentation, I have deduced that the call is coming from my pnForum centerblock on the main page. I've read the other posts in the forum about this issue and could hack the code of pnForum if required, but I am looking for a more elegant solution (template override doesn't work because there are no calls in the template I am using). So - anyone have any better ideas?
  • Either hack the code or do a SVN pull of Dizkus from Cozi.

    --
    Home Page | Find on Facebook | Follow on Twitter
  • Is the SVN of Dizkus ready for primetime? if it is, why do they not release it?
  • Usable and ready for release are not the same thing Craig. :)

    --
    Home Page | Find on Facebook | Follow on Twitter
  • craigh,
    to hack the code you only have to edit the file /modules/Dizkus/pntemplates/dizkus_centerblock_displayN.htm which are using and delete the line including the modulestylesheet tag.
  • rufo - I thought of that (see ref to template override above). But here is the code of the template you mention. Do you see something I don't? I don't see a call to a stylesheet.

    Code

    <!--[*  $Id: pnforum_centerblock_display2.html 503 2006-03-11 13:56:52Z landseer $  *]-->

    <!--[ readlastposts forum_id=$forum_id maxposts=$maxposts ]-->
    <!--[ if $lastpostcount >
    0 ]-->
    <table width="100%" border="0" cellpadding="3" cellspacing="1">
        <tr>
            <td colspan="4" bgcolor="<!--[ $bgcolor2 ]-->">
                <strong><!--[ $lastpostcount ]-->&nbsp;<!--[ pnml name='_PNFORUM_CB_RECENTPOSTS' ]--></strong>
            </td>
        </tr>
        <!--[ foreach item=lastpost from=$lastposts ]-->
        <tr>
            <td bgcolor="<!--[ $bgcolor1 ]-->
    ">
                <a href="<!--[ pnmodurl modname=pnForum type=user func=viewforum forum=$lastpost.forum_id ]-->"><!--[ $lastpost.forum_name ]--></a>
            </td>
            <td bgcolor="<!--[ $bgcolor1 ]-->
    ">
                <a href="<!--[ $lastpost.last_post_url_anchor ]-->"><!--[ $lastpost.topic_title ]--></a>
            </td>
            <td bgcolor="<!--[ $bgcolor1 ]-->
    ">
                <!--[ $lastpost.posted_time ]--><br />
            </td>
            <td bgcolor="<!--[ $bgcolor1 ]-->">
                <!--[ $lastpost.poster_name|profilelink ]-->
            </td>
        </tr>
        <!--[ /foreach ]-->
    </table>
    <!--[ /if ]-->
    <br /><br />
  • I had to hack center.php

    Code

    function pnForum_centerblock_display($row)
    {
        [...]

        if(pnModGetName() <> 'pnForum') {
            // add the pnForum stylesheet file to the addtional_header array
            //pnf_add_stylesheet_header(); <-- Commented out this line
        }
  • Rufo, Craigh,

    I have downloaded Zikula 1.1.2 and cannot find the file you mention: /modules/Dizkus/pntemplates/dizkus_centerblock_displayN.htm

    How can I get rid off that message?
    Thanks
  • since my original post was in February, I'm thinking it was before I upgraded to Dizkus. I would assume that it is fixed in the latest version of Zikula and Dizkus.

    Your issue may not be related to Dizkus - you may have other old modules installed. what else do you have? have you UNinstalled pnForum?
  • Craigh,

    I have installed the latest stabled version: 1.1.2. The message appeared when I installed the Funky_corporate Zikula theme from http://www.zikulathemes.com/gallery/Funky_corporate/

    How do know if I have installed pnForum and how do I uninstall it?

    Cheers,
    Marco
  • Older themes have that code in them, best thing to do, get the theme from the extensions database here, all the ZIkulaThemes.com themes are in there, and edited to remove that code.
    The Funky Corporate Theme that shoudl work fine can be found here.

    --
    Home Page | Find on Facebook | Follow on Twitter

This list is based on users active over the last 60 minutes.