Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • ditiswijk Friend
    #171888

    We’re using joomla 1.7.3. and JaTeline IV.

    When I want to register en push on the button in the topmega menu I don’t see the form to fill in.
    The same issue is when I hit the links to show the last posts on the forum on the right site on the frontpage.

    This website

    Edit.
    I solved the issue that the form wasn’t shown up to register.

    altijd als eerste met het laatste lokale nieuws

    gray Friend
    #430069

    The discussions module points to a link:
    http://www.ditiswijk.nl/jong/component/discussions/8/18-nog-geen-16-alcohol-drinken-of-niet.html?Itemid=
    the correct variant of which is:
    http://www.ditiswijk.nl/jong/forumdiscussiejong/8/18-nog-geen-16-alcohol-drinken-of-niet.html

    If you’ve changed the main menu links, and module is showing old link, just clean the cache (Joomla and T3F plugin). Also check if you don’t have several menu items with different name but pointing to the same forum component’s page.

    Finally, check the module if it renders the links correctly.

    ditiswijk Friend
    #430114

    Thanx.

    With my knowledge I come to the conclusion that the module incorrect renders. The cache is clean and I have one link to the component page.

    How can I check that the module correct renders?

    This is the code module[PHP]<?php
    $_number = $params->get( ‘number’, 5 );
    $_length = $params->get( ‘length’, 25 );
    $_show_poweredby = $params->get( ‘show_poweredby’, 1 );
    $_more = $params->get( ‘more’, ‘>’ );
    $_replies = $params->get( ‘replies’, ‘Replies’ );
    $_topic = $params->get( ‘topic’, ‘Topic’ );
    $_show_history = $params->get( ‘show_history’, 1 );
    $_history = $params->get( ‘history’, ‘History’ );
    $_hours = $params->get( ‘hours’, ‘h’ );

    $db =& JFactory::getDBO();

    $posts = null;

    $query = ‘SELECT m.id as msg_id, m.alias, m.cat_id, c.id, c.alias, c.name, m.thread, m.subject,’ .
    ‘ CASE WHEN CHAR_LENGTH(m.alias) THEN CONCAT_WS(‘:’, m.thread, m.alias) ELSE m.thread END as mslug,’ .
    ‘ CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(‘:’, c.id, c.alias) ELSE c.id END as cslug,’ .
    ‘ DATE_FORMAT( m.last_entry_date, “%d.%m.%Y %k:%i”) AS createdate’ .
    ‘ FROM #__discussions_messages m, #__discussions_categories c’ .
    ‘ WHERE m.parent_id=0 AND m.cat_id=c.id AND m.published=1 AND c.private = 0’ .
    ‘ ORDER BY m.last_entry_date DESC LIMIT ‘ . $_number;

    $db->setQuery($query);
    $posts = $db->loadObjectList();

    if ($db->getErrorNum()) {
    JError::raiseWarning( 500, $db->stderr() );
    }

    echo “<div class=’cofiRecentHeaderText’>”;
    echo “<b>”;
    echo $_replies;
    echo ” “;
    echo $_topic;
    echo “</b>”;
    echo “</div>”;

    if (count($posts)) {

    foreach ($posts as $post) {

    // get Discussions Itemid
    $sqlitemid = “SELECT id FROM “.$db->nameQuote( ‘#__menu’).” WHERE link LIKE ‘%com_discussions%’ AND parent = ‘0’ AND published = ‘1’”;
    $db->setQuery( $sqlitemid);
    $itemid = $db->loadResult();

    // get # of replies for this thread
    $sql = “SELECT count(*) FROM “.$db->nameQuote( ‘#__discussions_messages’).” WHERE thread='”.$post->msg_id.”‘ AND parent_id != ‘0’ AND published = ‘1’”;
    $db->setQuery( $sql);
    $replies = $db->loadResult();

    echo “<div class=’cofiRecentRow’>”;

    echo “<div class=’cofiRecentReplies’>”;
    echo $replies;
    echo “</div>”;

    echo “<div class=’cofiRecentText’>”;

    echo “<div class=’cofiRecentSubjectText’>”;

    $link = JRoute::_(‘index.php?option=com_discussions&view=thread&catid=’ . $post->cslug . ‘&thread=’ . $post->mslug . ‘&Itemid=’ . $itemid);

    $longsubject = strip_tags( $post->subject);
    $i_longsubjectlength = strlen( $longsubject);
    $shortsubject = substr( strip_tags( $longsubject), 0, $_length);

    echo “<a href='”.$link.”‘ title=””.$longsubject.”” >”;
    echo $shortsubject;
    if ( $i_longsubjectlength > $_length) { // display ‘more’
    echo $_more;
    }
    echo “</a>”;
    echo “</div>”;

    echo “<div class=’cofiRecentDateForumText’>”;

    echo $post->createdate;

    echo ”  “;

    $forum_link = JRoute::_(‘index.php?option=com_discussions&view=category&catid=’ . $post->cslug . ‘&Itemid=’ . $itemid);
    echo “<a href='” . $forum_link . “‘ title=”” . $post->name . “” style=’color: #777777;’ >”;
    echo $post->name;
    echo “</a>”;

    echo “</div>”;

    echo “</div>”;
    echo “<br style=’clear:left;’/>”;

    echo “</div>”;

    }
    }

    if ( $_show_history == 1) {
    echo “<div class=’cofiRecentHistory’>”;

    $_linkTime4h = JRoute::_( ‘index.php?option=com_discussions&view=recent&task=recent&time=4h&Itemid=’ . $itemid);
    $_linkTime8h = JRoute::_( ‘index.php?option=com_discussions&view=recent&task=recent&time=8h&Itemid=’ . $itemid);
    $_linkTime12h = JRoute::_( ‘index.php?option=com_discussions&view=recent&task=recent&time=12h&Itemid=’ . $itemid);
    $_linkTime24h = JRoute::_( ‘index.php?option=com_discussions&view=recent&task=recent&time=24h&Itemid=’ . $itemid);

    echo $_history . “:   “;

    echo “<a href='” . $_linkTime4h . “‘ title=’4″ . $_hours .”‘ >4” . $_hours . “</a>   “;
    echo “<a href='” . $_linkTime8h . “‘ title=’8″ . $_hours .”‘ >8” . $_hours . “</a>   “;
    echo “<a href='” . $_linkTime12h . “‘ title=’12” . $_hours .”‘ >12″ . $_hours . “</a>   “;
    echo “<a href='” . $_linkTime24h . “‘ title=’24” . $_hours .”‘ >24″ . $_hours . “</a>”;
    echo “</div>”;
    }

    if ( $_show_poweredby == 1) {
    echo “<div class=’cofiRecentPoweredByText’>”;
    echo “Powered by <a href=’http://www.codingfish.com/products/discussions’ target=’_blank’ title=’Discussions’ >Discussions</a>”;
    echo “</div>”;
    }
    [/PHP]

    altijd als eerste met het laatste lokale nieuws

    gray Friend
    #430244

    Yes, it seems to be the problem in the module. For instance, Itemid usually is not used whit JRoute, but it this module it’s present in all links. I’m not familiar with the component, but try to remove Itemid from the links. Like instead of [PHP]$link = JRoute::_(‘index.php?option=com_discussions&view=thread&catid=’ . $post->cslug . ‘&thread=’ . $post->mslug . ‘&Itemid=’ . $itemid);[/PHP] to write [PHP]$link = JRoute::_(‘index.php?option=com_discussions&view=thread&catid=’ . $post->cslug . ‘&thread=’ . $post->mslug);[/PHP] (including in all others appearances of JRoute in the module) and check what happens.

    Finally, I think rout.php of the component is responsable for this. Try asking developers.

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  gray 12 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum