Jump to content
InvisionCommunity.de - Der Deutsche Invision Community Support
Sign in to follow this  
nO-FaCe

Frage zum MKPortal

Recommended Posts

ich habe das mkportal installiert und bin zufrieden damit. nur 2 sachen quälen mich und ich weiß nicht wo und wie ich die umschreiben sollte.

1.sache siehe angefügtem bild ich habe den block in die mitte genommen und das wird so dargestellt, kann man das nicht so ändern, das links der beitrag , daneben von wem und daneben das datum ? sieht besser aus.

und 2. hab ich ein problem wenn ich news erstelle und einen hyperlink einfügen will. das popup kommt ich geb alles ein und geh auf ok aber nix passiert ?? wasn da los :(

acxhso, zu dem pic vielleicht noch, wäre es nicht schlecht, wenn dort jemand drauf geantwortet hat, das es wieder nach oben rutscht. zur zeit wird nur angezeigt wenn jemand ein neues thema erstellt hat

Edited by nO-FaCe

Share this post


Link to post

hier ist mal der code, was muss ich ändern, damit auf den pic die sachen nebeneinander dargestellt werden und was müsste ich ändern, damit noch angezeigt wird wer drauf geantwortet hat ???

weil ja nur angezeigt wird wer das thema erstellt hat ?

$content = "";



  $limit = 10;

  $taglio = 17;


  $DB->query("SELECT id, read_perms FROM ibf_forums");

  while( $f = $DB->fetch_row() ) {

 	 if ( $std->check_perms($f['read_perms']) != TRUE ) {

          $bad[] = $f['id'];

       	 }	else {

          $good[] = $f['id'];

       	 }

        }


 	 if ( count($bad) > 0 ) {

      $qe = " AND forum_id NOT IN(".implode(',', $bad ).") ";

   	 }


 	 $DB->query("SELECT tid, title, posts, starter_id as member_id, starter_name as member_name, last_post as post_date, views

               FROM ibf_topics

               WHERE state!='closed' AND approved=1 AND (moved_to IS NULL or moved_to='') $qe

               ORDER BY last_post DESC LIMIT 0,$limit");


 	 while ( $post = $DB->fetch_row() ) {

  $post['title'] = strip_tags($post['title']);

  $post['title'] = str_replace( "!" , "!" , $post['title'] );

  $post['title'] = str_replace( """, "\"", $post['title'] );

 	 if (strlen($post['title']) > $taglio) {

    $post['title'] = substr( $post['title'],0,($taglio - 3) ) . "...";

    $post['title'] = preg_replace( '/&(#(\d+;?)?)?(\.\.\.)?$/', '...',$post['title'] );

 	 }


         $tid = $post['tid'];

  $title = $post['title'];

  $mid = $post['member_id'];

  $mname = $post['member_name'];

  

          

        global $mklib;

  $date = $this->get_date($post['post_date'],"SHORT");


  $content .= "

 	 <tr><td width=\"100%\" id=\"tdblock\">

     	 <a class=\"uno\" href='{$ibforums->base_url}showtopic=$tid&view=getlastpost'>$title</a>

 	 </td></tr>

 	 <tr><td id='tdglobal'>

        <a class=\"uno\" href='{$ibforums->base_url}showuser=$mid'>{$this->lang['from']}: $mname</a><br /> {$this->lang['in_date']}: $date

 	 </td></tr>

  ";

 	 }


        unset($good);

        unset($bad);

        unset($ge);

        unset($post);

        unset($title);

        unset($mname);

        unset($date);



?>

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×