MyXoops Forum

Aw:: block recent topics newbb 4.03 [NON-German-Forum] - myXOOPS German Support

beduino

"myXOOPs"-Neuling
Gepostet am:17.09.2010 21:44
beduino
beduino Offline (Show more)
"myXOOPs"-Neuling
Posts: 7
Since: 14.09.2010
#13

Aw:: block recent topics newbb 4.03

Thank you Bleekk!
All the best

Bleekk

Co-Administrator
Gepostet am:17.09.2010 14:43
Bleekk
Bleekk Offline (Show more)
Co-Administrator
Posts: 1506
Since: 16.12.2002
#12

Aw:: block recent topics newbb 4.03

here is my complete file

Datei anhängen:


Link nur für registrierte Benutzer

Advertisement

Gepostet am:0
Advertisement (Show more)
Posts: 0
Since: 0


Hier könnten Sie Ihre Anzeige aufgeben!
Bitte kontaktieren Sie uns, um mehr darüber zu erfahren.

beduino

"myXOOPs"-Neuling
Gepostet am:17.09.2010 14:03
beduino
beduino Offline (Show more)
"myXOOPs"-Neuling
Posts: 7
Since: 14.09.2010
#11

Aw:: block recent topics newbb 4.03

Hello Bleekk first: thank you ! But the first columm [name of forum] still blank I edit the newbb_block.php. Only to confirm [maybe I made something wrong ...] I comment the old lines 1. 262
$query 'SELECT'.
        
'  t.topic_id, t.topic_replies, t.forum_id, t.topic_title, t.topic_views, t.type_id, t.topic_time, t.topic_poster, t.poster_name,'.
       
//'  f.forum_name'.
       
'   f.forum_name, f.forum_last_post_id'.
      
'  FROM ' $GLOBALS["xoopsDB"]->prefix('bb_topics') . ' AS t '.
        
'  LEFT JOIN ' $GLOBALS["xoopsDB"]->prefix('bb_forums') . ' AS f ON f.forum_id=t.forum_id'.
       
'  WHERE 1=1 ' .
2. 297
foreach ($rows as $arr) {
        
$topic_page_jump '';
    
$topic['topic_subject'] = empty($type_list[$arr["type_id"]])?"":"[".$type_list[$arr["type_id"]]."] ";
        
$topic['forum_id'] = $arr['forum_id'];
        
//$topic['forum_name'] = $myts->htmlSpecialChars($arr['forum_name']);
        //$topic['id'] = $arr['topic_id'];
$topic['forum_name'] = $myts->htmlSpecialChars($arr['forum_name']); 
$topic['forum_last_post_id'] = $arr['forum_last_post_id'];
3. 322
// $seo_forum_url = '<a href="'.XOOPS_URL.'/modules/newbb/viewforum.php?forum='.$topic['forum_id'].'">'.$topic['forum_name'].'</a>';
    
$seo_url '<a href="'.XOOPS_URL.'/modules/newbb/viewtopic.php?post_id='.$topic['forum_last_post_id'].'">'.$topic['title'].'</a>';
Thank you again

Bleekk

Co-Administrator
Gepostet am:17.09.2010 10:28
Bleekk
Bleekk Offline (Show more)
Co-Administrator
Posts: 1506
Since: 16.12.2002
#10

Aw:: block recent topics newbb 4.03

hi,

the block on my site is displaying all columns. please update your module.

beduino

"myXOOPs"-Neuling
Gepostet am:17.09.2010 03:35
beduino
beduino Offline (Show more)
"myXOOPs"-Neuling
Posts: 7
Since: 14.09.2010
#9

Aw:: block recent topics newbb 4.03

Hi Bleekk!
Working now. I will make more tests and report here

Only a little issue: the first columm of this block [forums] is empty now. But links point the right way

thank you

Bleekk

Co-Administrator
Gepostet am:16.09.2010 18:39
Bleekk
Bleekk Offline (Show more)
Co-Administrator
Posts: 1506
Since: 16.12.2002
#8

Aw:: block recent topics newbb 4.03

hi, sorry for my late anwser. please open "newbb/blocks/newbb_block.php" and change following lines: line 262: after f.forum_name add ",forum_last_post_id" the line should look like
'    f.forum_name, f.forum_last_post_id'.
line 300: afer this line add following line, lines 300 and 301 should look like this:
$topic['forum_name'] = $myts->htmlSpecialChars($arr['forum_name']);
$topic['forum_last_post_id'] = $arr['forum_last_post_id'];
line 319: change the line too look like this:
$seo_url '<a href="'.XOOPS_URL.'/modules/newbb/viewtopic.php?post_id='.$topic['forum_last_post_id'].'">'.$topic['title'].'</a>';
It should work now

beduino

"myXOOPs"-Neuling
Gepostet am:15.09.2010 02:12
beduino
beduino Offline (Show more)
"myXOOPs"-Neuling
Posts: 7
Since: 14.09.2010
#7

Aw:: block recent topics newbb 4.03

Hello Bleekk,

In fact the block with trouble [recent topics, not recent posts] is the original block

Setup below

 

 

Thank you - again

 

Bleekk

Co-Administrator
Gepostet am:14.09.2010 18:55
Bleekk
Bleekk Offline (Show more)
Co-Administrator
Posts: 1506
Since: 16.12.2002
#6

Aw:: block recent topics newbb 4.03

I have cloned the recent topics block 3 times. but I can't reproduce the bug.
can you tell me how ofter you have cloned the block. which preferences have you set for this block?

beduino

"myXOOPs"-Neuling
Gepostet am:14.09.2010 13:03
beduino
beduino Offline (Show more)
"myXOOPs"-Neuling
Posts: 7
Since: 14.09.2010
#5

Aw:: block recent topics newbb 4.03

Hello Bleekk,

 

I download from here

http://svn.myxoops.org/wsvn/cbb/trunk/?op=dl&rev=0&isdir=1

 

Any other download link?

Thank you!

Bleekk

Co-Administrator
Gepostet am:14.09.2010 12:24
Bleekk
Bleekk Offline (Show more)
Co-Administrator
Posts: 1506
Since: 16.12.2002
#4

Aw:: block recent topics newbb 4.03

oh ok, now I see the bug. do you use 3 times the same recent topics block?

can you provide me the download link where you have downloaded the module

Zitat:
beduino ** BTW - your theme is a wonderful work!


thanks
Diesen Thread durchsuchen:  1 Anonyme Benutzer

Aktuell aus dem Forum

Forum Thema Antworten Views Letzter Beitrag
OffOffTopic [Wichtig] Übernahme myXOOPS 0 491 11.12.2023 18:57
alfred Gehe zum letzten Beitrag
Die Installation und Administration von XOOPS 2.5.X [Offen] Upgrade 2.5.11 3 2202 07.05.2023 07:03
Goffy Gehe zum letzten Beitrag