151

Re: [Release] Portal by Daris

Ooops oops oops. I meant 'forum' instead of category..
Still pretty cool. But work your magic so it shows the different forums please and thankyou smile

152 (edited by Nonante 2010-12-09 03:13)

Re: [Release] Portal by Daris

kiejr wrote:

Ooops oops oops. I meant 'forum' instead of category..
Still pretty cool. But work your magic so it shows the different forums please and thankyou smile

Ok, no problem wink

So if you just want to see the forum name, you must modified as follows:

// Fetch list of topics
$query = array(
    'SELECT'    => 't.id, t.poster, t.subject, t.posted, t.first_post_id, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to, f.forum_name',
    'FROM'        => 'topics AS t',
    'JOINS'        => array(
        array(
            'LEFT JOIN'         => 'forums as f',
            'ON'            => 't.forum_id=f.id'
        ),
        array(
            'LEFT JOIN'        => 'forum_perms AS fp',
            'ON'            => '(fp.forum_id=t.forum_id AND fp.group_id='.$forum_user['g_id'].')'
        )
    ),
    'WHERE'        => '(fp.read_forum IS NULL OR fp.read_forum=1) AND t.moved_to IS NULL',
    'ORDER BY'    => 't.last_post DESC',
    'LIMIT'        => '0, '.$count
);

and change your link to

$forum_page['item_title']['link'] = forum_htmlencode($cur_topic['forum_name']).' - <a href="'.forum_link($forum_url['topic'], array($cur_topic['id'], sef_friendly($cur_topic['subject']))).'">'.forum_htmlencode($cur_topic['subject']).'</a>';

If you cons want the forum name, and more when moving the mouse over the name of the forum category name appears,
just change it like this:

// Fetch list of topics
$query = array(
    'SELECT'    => 't.id, t.poster, t.subject, t.posted, t.first_post_id, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to, f.forum_name, c.cat_name',
    'FROM'        => 'topics AS t',
    'JOINS'        => array(
        array(
            'LEFT JOIN'         => 'forums as f',
            'ON'            => 't.forum_id=f.id'
        ),
        array(
            'LEFT JOIN'        => 'forum_perms AS fp',
            'ON'            => '(fp.forum_id=t.forum_id AND fp.group_id='.$forum_user['g_id'].')'
        ),
        array(
            'LEFT JOIN'        => 'categories AS c',
            'ON'            => '(f.cat_id=c.id)'
        )

    ),
    'WHERE'        => '(fp.read_forum IS NULL OR fp.read_forum=1) AND t.moved_to IS NULL',
    'ORDER BY'    => 't.last_post DESC',
    'LIMIT'        => '0, '.$count
);

and change your link to

$forum_page['item_title']['link'] = '<span title="'.forum_htmlencode($cur_topic['cat_name']).'">'.forum_htmlencode($cur_topic['forum_name']).'</span> - <a href="'.forum_link($forum_url['topic'], array($cur_topic['id'], sef_friendly($cur_topic['subject']))).'">'.forum_htmlencode($cur_topic['subject']).'</a>';

Regards.

Edit: Adding color so you better change lanes

I don't speak English, but Google Translate is doing pretty good.

153

Re: [Release] Portal by Daris

yes. Thankyou so much smile

154

Re: [Release] Portal by Daris

ok glad it is resolved wink

I don't speak English, but Google Translate is doing pretty good.

155

Re: [Release] Portal by Daris

Would anyone know what php code I could put in a panel for it to show the list of forums the user has access to? (linked ofcourse)  smile

156 (edited by Eretz 2011-03-09 10:43)

Re: [Release] Portal by Daris

Hello there,

I'm trying to instert a central top panel with the former "index.php" page (list of categories and forums).

It doesn't work of course.

It says :

"Parse error: syntax error, unexpected '<' in /home/www/c23ee494339f4673173c93ff37a3a87a/web/forum-scpo/extensions/portal_by_daris/panels.php(51) : eval()'d code on line 297"

Does someone has an idea on how to do this ?

Thank you !

157

Re: [Release] Portal by Daris

Hi. First, thanks for the portal. Works ok with v1.3.3.
Now, is there a way to have "sticky active topic" ?
What i mean is that one topic would always be in first place in active topics list, also even if some other topic has been more active. roll

Thanks in advance!

158

Re: [Release] Portal by Daris

This extension has not been supported for many months.
If any other extension developer wants to improve and re-relase: feel free....

159

Re: [Release] Portal by Daris

run in punbb 1.4?

160

Re: [Release] Portal by Daris

thank you for release

161

Re: [Release] Portal by Daris

Jaizu wrote:

run in punbb 1.4?

yes

162

Re: [Release] Portal by Daris

daris wrote:

Thanks for reporting, fixed and new version released

Changes:
- fixed undefined variable $id in active topics panel
- fixed sql injection in admin pages

Download

the reference doesn't work

163

Re: [Release] Portal by Daris

Your link is wrong, use the one in first post

>>> http://punbb.wiiem.pl/download_extensio … _2.4.3.zip

164 (edited by Ran_Tun 2012-08-25 17:39)

Re: [Release] Portal by Daris

Hey Folks...

I can't install Portal by Daris 2.4.3 on punBB 1.4.2 
Get Forum Message  => "This extension is not compatible with your PunBB version."

Is there a workaround?


edit:  Solved!

165

Re: [Release] Portal by Daris

Ran_Tun wrote:

Hey Folks...

I can't install Portal by Daris 2.4.3 on punBB 1.4.2 
Get Forum Message  => "This extension is not compatible with your PunBB version."

Is there a workaround?


edit:  Solved!

How big_smile I'm getting the same..

166

Re: [Release] Portal by Daris

Think im going to give this a go.......wish me luck.

Re: [Release] Portal by Daris

dikka wrote:
Ran_Tun wrote:

Hey Folks...

I can't install Portal by Daris 2.4.3 on punBB 1.4.2 
Get Forum Message  => "This extension is not compatible with your PunBB version."

Is there a workaround?


edit:  Solved!

How big_smile I'm getting the same..


Lemme see here...
"install Portal by Daris 2.4.3 on punBB 1.4.2"
and this is posted in the "1.3" section tongue
Think you'll get better support if you post it in the 1.4 section

tongue tongue

I even think (haven't the the energy to read up) that version 1.3x is OUT!!! of official support.

168

Re: [Release] Portal by Daris

Dear Daris,
I have problem with your extension, please help smile
After installed, show like this (check below) :

1. Who Is Online
http://tasupdate.com/imghost/images/640whoisonline.png
Problem : How to remove that error (on red circle)?

2. Recent Post
http://tasupdate.com/imghost/images/789recentpost.png
Problem : How to make the title on the left is seen as a whole?

I'm installed on PunBB v1.4.2
If you want direct check, klik here
Thanks before for any help smile

Re: [Release] Portal by Daris

This extension hasn't "moved" since 2009, don't think it will move any more

Re: [Release] Portal by Daris

can some one help me...
I´m using punbb 1.3 and i get this:

Notice: Undefined index: avatar in index.php on line 1105 
Notice: Use of undefined constant FORUM_AVATAR_GIF - assumed 'FORUM_AVATAR_GIF' in index.php on line 1107 
Notice: Use of undefined constant FORUM_AVATAR_JPG - assumed 'FORUM_AVATAR_JPG' in index.php on line 1111 
Notice: Use of undefined constant FORUM_AVATAR_PNG - assumed 'FORUM_AVATAR_PNG' in index.php on line 1115 
Notice: Use of undefined constant FORUM_AVATAR_NONE - assumed 'FORUM_AVATAR_NONE' in index.php on line 1119

It´s here i get the error:

switch ($forum_user['avatar'])
    {
        case FORUM_AVATAR_GIF:
            $avatar_filename = $forum_user['id'].'.gif';
            break;

        case FORUM_AVATAR_JPG:
            $avatar_filename = $forum_user['id'].'.jpg';
            break;

        case FORUM_AVATAR_PNG:
            $avatar_filename = $forum_user['id'].'.png';
            break;

        case FORUM_AVATAR_NONE:
            $noavatar = TRUE;
            break;
        default:
            $noavatar = TRUE;
            break;
    }
?>
<?php echo $lang_portal['Welcome'] ?>: <strong><?php echo forum_htmlencode($forum_user['username']) ?></strong>

<?php if(!isset($noavatar)) { ?>
<p style="text-align: center"><img src="<?php echo($base_url); ?>/<?php echo($forum_config['o_avatars_dir']); ?>/<?php echo($avatar_filename); ?>" id="whoavatar"/></p>
<?php }
?>

Re: [Release] Portal by Daris

I use the portal software in my main forum, so have about 4 panels down the right side. Is there any way to put them down the left side of the forum?