Hallo, Gast! (Registrieren)

Wir wünschen allen Besuchern frohe Ostern!

Letzte Ankündigung: MyBB 1.8.37 veröffentlicht (04.11.23)


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste
News plugin
#11
http://www.mybbcoder.info/wiki/portal-ei...ungen.html
[Bild: banner.png]

Bitte die Foren-Regeln beachten und im Profil die verwendete MyBB-Version angeben.
Zitieren
#12
ok habe es nach der Anleitung gemacht, aber auf der Portal Seite steht zwar die news aus dem forum aber links in einer box.

und och wollte die News in der mitte von der portalseite haben.

wie geht das den ???
Zitieren
#13
Kannst du einen Link posten? Das sollte doch so aussehen: https://www.mybb.de/forum/portal.php
[Bild: banner.png]

Bitte die Foren-Regeln beachten und im Profil die verwendete MyBB-Version angeben.
Zitieren
#14
link kann ich noch net posten, da ich es erst zuhause auf dem rechner testen und desing alles einrichten will.
dann will ich es auf den root hochladen ..
aber os wie auf dem links sieht es mal bei mir nicht aus.
Links die boxen habe ich
aber die in der mitte nicht ...
Zitieren
#15
Hast du die richtigen Foren-IDs angegeben?
[Bild: banner.png]

Bitte die Foren-Regeln beachten und im Profil die verwendete MyBB-Version angeben.
Zitieren
#16
jetzt geht es.
aber so wie es aussieht nicht übers news plugin, sondern bei portal einstellungen
Foren-IDs für Ankündigungen
hatte vorher die id 10 drin die für die kategorie news war.
und jetzt sind id 11 und 12 drin die für games und web news sind.
das newsplugin zeigt dies auf der Portal seite news oder im forum ?
Zitieren
#17
Was für ein News-Plugin?
[Bild: banner.png]

Bitte die Foren-Regeln beachten und im Profil die verwendete MyBB-Version angeben.
Zitieren
#18
das Site News Plugin

wo man hier bekommt.

http://mods.mybboard.net/view/site-news-...ned-for-14
Zitieren
#19
Ich habe bei mir das site news plug in drauf Blos irgend wie komme ich da net so richtig klar mit der Read me .



1) Upload inc/plugins/newsplugins.php to your plugins directory (usually inc/plugins/)
2) Use the code in news.php in your site, and change the $directory_to_forum variable to the directory to the forum you are using this plugin on.
3) Activate the plugin

In order to style your news box, you can use the following css classes: box-border, box-header, box-content, box-footer. Here is some example css:

.box-border {
background: #1e567d;
width: 500px;
padding: 1px;
}

.box-header {
background: #2a79af;
padding: 3px;
font-family: Verdana;
color: #ffffff;
text-align: left;
font-size: 18px;
border-bottom: 1px solid #1e567d;
}

.box-header a:link,
.box-header a:visited,
.box-header a:active {
color: #ffffff;
text-decoration: none;
}

.box-header a:hover {
color: #ffffff;
text-decoration: underline;
}

.box-content {
padding: 5px;
font-size: 13px;
text-align: left;
background: #ffffff;
vertical-align: top;
}

.box-footer {
background: #52abe7;
padding: 3px;
padding-right: 5px;
font-family: Verdana;
color: #ffffff;
text-align: right;
font-size: 11px;
border-top: 1px solid #1e567d;
}

.box-footer a:link,
.box-footer a:visited,
.box-footer a:active {
color: #ffffff;
text-decoration: none;
}

.box-footer a:hover {
color: #ffffff;
text-decoration: underline;
}


You can also change the template under "Global Templates" -> newsplugin_main OR news_avatar_bit

Enjoy Smile

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.





Punkt 1 habe ich gemacht .

blos punkt 2

Use the code in news.php in your site, and change the $directory_to_forum variable to the directory to the forum you are using this plugin on.


Wie soll ich den code der News.php in meiner seite benutzen ? und vorallen
$directory_to_forum was muss ich da eintragen ?

wenn ich mybb im ordner mybb habe ?


Hier mal der Code der News.php

<?php

define("IN_MYBB", 1);
define("KILL_GLOBALS", 1);
define("NO_ONLINE", 1);

// The Directory to the forum you are using this on.
// You do not need a beggining or trailing slash
$directory_to_forum = "";

require dirname(__FILE__)."/".$directory_to_forum."/global.php";

$plugins->run_hooks("site_news_plugin_run");

?>
Zitieren
#20
Du kannst das Plugin nicht im Forum benutzen! Siehe: https://www.mybb.de/forum/thread-19452-p...#pid138491
[Bild: banner.png]

Bitte die Foren-Regeln beachten und im Profil die verwendete MyBB-Version angeben.
Zitieren