+ Antworten
Ergebnis 1 bis 5 von 5

Thema: Was muss ich hier ändern damit es links in einem neuen Tab werden?

  1. #1
    Neu an Board Avatar von Kumpel-Blase
    Registriert seit
    30.03.2010
    Beiträge
    74
    Bedankte sich
    15
    Erhielt 3 Danksagungen
    in 3 Beiträgen

    Frage Was muss ich hier ändern damit es links in einem neuen Tab werden?

    PHP-Code:
    <?php 
    /**
     * @version    $Id: default.php 2047 2007-10-02 00:42:56Z rhuk $ 
     * @package RokBridge - phpBB3 edition
     * @copyright Copyright (C) 2009 RocketTheme. All rights reserved. Based on code from Ron Severdia & BrandWorkspace.com
     * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
     * @author RocketTheme, LLC
     */
    // no direct access
    defined('_JEXEC') or die('Restricted access'); ?>
    <?php 
    if($list)
    {
        foreach(
    $list as $item)
        {
            
    $forum_id         $item->forum_id;
            
    $topic_id         $item->topic_id;
            
    $topic_title    $item->topic_title;
            
    $poster_id        $item->poster_id;
            
    $post_id        $item->post_id;

            
    /* Start Build Link URL */
            
    $showprofilelink trim$params->get'showprofilelink',0) );
            
    $showcreated trim$params->get'showcreated',) );
            
    $directpost trim$params->get'directpost',) );
            
    $posttargetwin trim$params->get'posttargetwin','_top' ) );
            
    $profiletargetwin trim$params->get'profiletargetwin','_top' ) );
            
    $timezone trim$params->get'timezone','' ) );
            
    $showre trim$params->get'showre',) );
            
            if (
    $link_format=='bridged') :
                
    $url JURI::base().$bridge_path."/index.php?f=".$forum_id."&amp;t=".$topic_id."&amp;rb_v=viewtopic";
                
    $posturl JURI::base().$bridge_path."/index.php?f=".$forum_id."&amp;t=".$topic_id."&amp;rb_v=viewtopic#p".$post_id;
                
    $profileurl JURI::base().$bridge_path."/index.php?mode=viewprofile"."&amp;u=".$poster_id."&amp;rb_v=memberlist";
            
    /* End Build Link URL */
            
    else:
                
    $url JURI::base().$phpbb_path."/viewtopic.php?f=".$forum_id."&amp;t=".$topic_id;
                
    $posturl JURI::base().$phpbb_path."/viewtopic.php?f=".$forum_id."&amp;t=".$topic_id."#p".$post_id;
                
    $profileurl JURI::base().$phpbb_path."/memberlist.php?mode=viewprofile"."&amp;u=".$poster_id;        
            endif;
        
            
    /* Start Building Time */
            
    $formatdate trim$params->get'formatdate' ) );
            
    $date = &JFactory::getDate($item->post_time);
            
    $post_time $date->toFormat($formatdate);
            
    /* End Building Time */
            
            /* Start Building Username */
                
    if($item->username
                    
    $username $item->username;
                else 
                    
    $username $item->post_username;
            
    /* Stop Building Username */
            
            /* Check for reply or not */
            
    if ($showre && $topic_id != $post_id)
                
    $topic_title "Re: ".$topic_title;
            
            
    /* Start Output */
            
    echo "<div class='latest_posts'>";
                    
            if (
    $showcreated == 1) {
            
    /* Output latest posts created */
                
    echo "<div class='latest_posts_subject'><a href=\"".$url."\" target=\"".$posttargetwin."\" >".$topic_title."</a></div>";
                if (
    $showprofilelink == && $profiletype==1) {
                
    /* Output latest posts created with phpBB link on profile name */
                    
    echo "<div class='latest_posts_date'><a href=\"".$profileurl."\" target=\"".$profiletargetwin."\" ><strong>".$username."</strong></a> - ".$post_time." ".$timezone."</div>";
                } else if (
    $showprofilelink == && $profiletype==2) {
                
    /* Output latest posts created with CB link on profile name */
                    
    echo "<div class='latest_posts_date'> <a href=\"".$profilecburl."\" target=\"".$profiletargetwin."\" ><strong>".$username."</strong></a> - ".$post_time." ".$timezone."</div>";
                } else {
                
    /* Output latest posts created with no link on profile name */
                    
    echo "<div class='latest_posts_date'> <strong>".$username."</strong> - ".$post_time." ".$timezone."</div>";    
                }
            
            } else {
            
    /* Output latest active posts */
                
    if ($directpost == 1) {
                
    /* Output latest active posts with direct link to last post */
                    
    echo "<div class='latest_posts_subject'><a href=\"".$posturl."\" target=\"".$posttargetwin."\" >".$topic_title."</a></div>";
                } else {
                
    /* Output latest active posts with link to thread */
                    
    echo "<div class='latest_posts_subject'><a href=\"".$url."\" target=\"".$posttargetwin."\" >".$topic_title."</a></div>";
                }
                if (
    $showprofilelink == 1) {
                
    /* Output latest active posts with link to thread and link to phpBB profile */
                    
    echo "<div class='latest_posts_date'> <a href=\"".$profileurl."\" target=\"".$profiletargetwin."\" ><strong>".$username."</strong></a> - ".$post_time." ".$timezone."</div>";
                } else {
                
    /* Output latest active posts with link to thread */
                    
    echo "<div class='latest_posts_date'> <strong>".$username."</strong> - ".$post_time." ".$timezone."</div>";    
                }
            }
            echo 
    "</div>";
            
        }
    }
    ?>
    Also ich möchte das die neuen Forenposts wenn man dort drauf klickt das man dann in einem neuen Tab dort hingelenkt wird.
    Ich freue michs chon über eure antworten.

    MFG
    Blase

  2. #2
    Neu an Board
    Registriert seit
    09.12.2007
    Ort
    Mainz
    Beiträge
    53
    Bedankte sich
    2
    Erhielt 20 Danksagungen
    in 20 Beiträgen

    Standard

    Hi Kumpel-Blase.

    Du musst das Target ändern.

    Zitat Zitat von Kumpel-Blase Beitrag anzeigen
    PHP-Code:
    [...]

            
    $posttargetwin trim$params->get'posttargetwin','_blank' ) );

    [...] 
    Das '_blank' müsste es eigentlich tun.

    -uw

  3. #3
    Neu an Board Avatar von Kumpel-Blase
    Registriert seit
    30.03.2010
    Beiträge
    74
    Bedankte sich
    15
    Erhielt 3 Danksagungen
    in 3 Beiträgen

    Standard

    Hm neine das Blank bringt leider nicht das geringste.
    Hat noch wer eine Idee?

  4. #4
    Neu an Board Avatar von Kumpel-Blase
    Registriert seit
    30.03.2010
    Beiträge
    74
    Bedankte sich
    15
    Erhielt 3 Danksagungen
    in 3 Beiträgen

    Standard

    wirklich keiner eine Idee?

  5. #5
    Hat hier eine Zweitwohnung Avatar von Some1new
    Registriert seit
    18.05.2005
    Ort
    Buest nich unt 'n Norden is dat schwer to verstohn.
    Beiträge
    1.424
    Bedankte sich
    259
    Erhielt 301 Danksagungen
    in 250 Beiträgen

    Standard

    Versuch mal

    target="_newtab"


    Gruß
    Some1new
    SUCHEN ist keine Stadt in Deutschland, sondern eine TOLLE Funktion in diesem Forum.
    Fahren Sie mich irgendwohin, ich werde überall gebraucht, denn "Es iss ja, wie´s iss!".
    Woher kommt mein Nickname? - some1new by escobar

+ Antworten

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein