Script-solution.de » Community » Support-Board » Foren » Boardsolution » Boardsolution v1.4x » Mod-Anleitungen » Positionsanzeige vor Boardname bringen (Browsertitelleiste)
  • Willkommen, Gast!
  • Samstag, 25. Mai 2013, 00:49:16
 
Thema: "Positionsanzeige vor Boardname bringen (Browsertitelleiste)" [ Seite 1 ]

Kein neuer Beitrag Rafioso , 19.11.2009, 03:00
Beitrag #1   

IP: n/a
Rang: * * * * * * *
Registrierung: 30.08.2006, 22:31
Homepage: http://HomepageStarter.de
Wohnort: O-BW
 

Forum-Gott mit 1594 Punkte, 1420 Beiträge
Hallo,

oft findet man in Google Ergebnisse von anderen Boards, wo nicht der Boardname inklusive Foren im
Vordergrund stehen, sondern der Name des jeweiligen Threads allein. Da ich das für sinnvoll halte,
gerade bei langen Boardnamen, habe ich etwas modifiziert.

Beispiel:
Aus "Script-solution Support-Board >> Boardsolution >> Boardsolution v1.3x >>
Mod-Anleitungen>>
Positio - Mozilla Firefox
"

wird "Positionsanzeige vor Boardname bringen (Browsertitelleiste) - Script-solution Support-Board -
Mozilla Firefox
"


Kompatibel und getestet mit:
  • Boardsolution 1.41
  • Boardsolution 1.42
  • Boardsolution 1.43


#### Installation

Öffne die fws/document/renderer/html/base.php und füge in der Methode set_title Z.77 vor
PHP:
1
$this->_title = (string)$title;

folgendes ein:
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
    $seperator = '»';
    
    $current_pos = '';
    $forum_title = '';
    
    $cfg = FWS_Props::get()->cfg();
    
    $title2 = strstr($title$seperator);
    $explode = explode($seperator$title2);
    $count = count($explode);
    $current_pos = $explode[$count-1];
    $forum_title_lenght = strlen($cfg['forum_title']);
    $forum_title = substr($title0$forum_title_lenght);
    
    if($current_pos)
      $title = $current_pos.' - '.$forum_title;
    else
      $title = $forum_title;


##############################################

Das wars.

Viel Spaß damit


//Edit
Kompatibilitätsliste aktualisiert.

//Edit 2
Die Zeilennummern können in Boardsolution 1.43 etwas abweichen.

MfG
Rafioso
Dieser Beitrag wurde insgesamt 2 mal editiert. Das letzte mal 05.04.2011, 23:30 von Rafioso.

n/a n/a 1     ( Anzeige: 1 - 1 , Gesamt: 1 ) n/a n/a
User in diesem Thema: 0 Registrierte, 0 Versteckte, 1 Gast, 0 Bots
Keine
Thema-Aktionen:

  • 0.080205 Sek., 10 DB-Zugriffe, 6.160 MiB
  • Boardsolution v1.43 | © Nils Asmussen 2003-2009
Valid XHTML and CSS © 2003 - 2013 script-solution.de, Powered by Joomla!