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

Ankündigung in allen Kategorien!

Recommended Posts

So sieht die Umfrage übrigens in allen Foren gleich aus und hat immer die Trennlinie (Ankündigung und Topics). Zu bearbeiten in Forums.php:

  //--- global announce mod start

  if ($topic['announcement'] == 1)  

  {

  	$topic['prefix']     = $ibforums->vars['pre_announce'];

  	$topic['topic_icon'] = "<{B_PIN}>";

  	

  	if ($this->announce_print == 0)

  	{

    // we've an announcement topic, but we've not printed the announce

    // starter row, so..

    

    $p_start = $this->html->render_announce_start();

    

    $this->announce_print = 1;

  	}

  	

  	return $p_start . $this->html->render_pinned_row( $topic );

  }//--- global announce mod end

  else if ($topic['pinned'] == 1) // Bis hier ++++++

  {

  	$topic['prefix']     = $ibforums->vars['pre_pinned'];

  	$topic['topic_icon'] = "<{B_PIN}>";

  	

  	if ($this->pinned_print == 0)

  	{

    // we've a pinned topic, but we've not printed the pinned

    // starter row, so..

    

    $p_start = $this->html->render_pinned_start();

    

    $this->pinned_print = 1;

    $this->announce_print = 0;

  	}

  	

  	return $p_start . $this->html->render_pinned_row( $topic );

  }

  else

  {

  	// This is not a pinned topic, so lets check to see if we've

  	// printed the footer yet.

  	

  	if (($this->pinned_print == 1) OR ($this->announce_print == 1))

  	{

    // Nope, so..

    $p_end = $this->html->render_pinned_end();

    

    $this->pinned_print = 0;

    $this->announce_print = 0;

  	}

  	

  	return $p_end . $this->html->RenderRow( $topic );

  }

@ Rigo... stimmt, hatte ich vorher gelesen, aber dann auch schon wieder vergessen. Naja, nun stehts hier für Leute wie mich noch einmal. :D

Edited by MatneX

Share this post


Link to post

Noch ein Geschenk für Euch.

Die Mod-Options haben ja beide Einträge. Einfach folgende Änderung in der Topics.php machen:

Suchen:

    function append_link( $key="" ) {

        global $ibforums;


        if ($key == "") return "";


        if ($this->topic['state'] == 'open'   and $key == 'OPEN_TOPIC') return "";

        if ($this->topic['state'] == 'closed' and $key == 'CLOSE_TOPIC') return "";

        if ($this->topic['state'] == 'moved'  and ($key == 'CLOSE_TOPIC' or $key == 'MOVE_TOPIC')) return "";

        if ($this->topic['pinned'] == 1 and $key == 'PIN_TOPIC')   return "";

        if ($this->topic['pinned'] == 0 and $key == 'UNPIN_TOPIC') return "";
Darunter einfügen:
        if ($this->topic['announcement'] == 1 and $key == 'START_ANNOUNCE')   return "";

        if ($this->topic['announcement'] == 0 and $key == 'END_ANNOUNCE') return "";
Oder habe ich das auch überlesen? :) ------------------------------- ------------------------------ ad_groups.php Suchen:
$ADMIN->html .= $SKIN->start_table( "Moderation Permissions", "Allow or deny this group moderation abilities" );
Darunter einfügen:
        $ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow User to make global announce?" ,

                                                  $SKIN->form_yes_no("g_can_announce", $group['g_can_announce'] )

                                         )      );
Suchen:
  $db_string = array(

        'g_ad_boxes'     => $g_ad_boxes,

        'g_view_board'         => $IN['g_view_board'],

        'g_mem_info'           => $IN['g_mem_info'],

        'g_other_topics'       => $IN['g_other_topics'],
Irgendwo dort einfügen:
'g_can_announce'       => $IN['g_can_announce'],

Nun kann man die Gruppe über das ACP festlegen und muss nicht direkt die DB bearbeiten :D

Hoffe es hilft jemanden.

Edited by MatneX

Share this post


Link to post

Beta 2:

Status:

  • In dem Forum in dem sie gestartet wurden, haben sie keinen besonderen status (es empfiehlt sich ein extra Forum dafür einzurichten)

  • In allen anderen Foren erscheinen die globalen Ankündigungen optisch gleich der Abgrenzung der gepinnten Beiträge, jedoch darüber

Also bei mir (v1.3) hat der entsprechende Thread auch im Forum in dem er gestartet wurde einen "besonderen Status".

dumdidum :D :P

Share this post


Link to post

Beta 2:

Status:

  • In dem Forum in dem sie gestartet wurden, haben sie keinen besonderen status (es empfiehlt sich ein extra Forum dafür einzurichten)


  • In allen anderen Foren erscheinen die globalen Ankündigungen optisch gleich der Abgrenzung der gepinnten Beiträge, jedoch darüber

Also bei mir (v1.3) hat der entsprechende Thread auch im Forum in dem er gestartet wurde einen "besonderen Status".

dumdidum :D:P

Das ist kein Fehler, sondern ein Feature das Christian bisher nicht aufgefallen ist. :P ;)

Share this post


Link to post
Guest
This topic is now closed to further replies.
Sign in to follow this  

×