Content Management System - CMS : eXV2 
Home
News
Forum
Downloads
Download Module
Sitemap
Partnerseiten
RSS News
Kontakt/Info
Sprache
EnglishFrench
Suchen
Login
Nickname
Passwort

Registrieren?
Passwort?
Navigation
 Home News  Forum Neueste Beiträge  Downloads Download Module eXV² Themes  Weblinks Tutorial Changelog 2.3.1 Jobcenter Gebrauchtmarkt OSMap  Sponsor Kalendersystem Sitemap Partnerseiten RSS News Kontakt/Info Webseiten Wetter
Willkommen im Free Web CMS : eXV² Forum!
  Forenarchiv
     eXV2 Module
  Link entfernen

Forum : eXV2 Module

Titel : Link entfernen

© 2004-2012 www.exv2.de
http://www.exv2.de

URL dieser Diskussion
http://www.exv2.de/modules/newbb_plus/viewtopic.php?topic_id=3960&forum=7


 Ephram :

01.12.2007 22:56
 Hi,ich würde gern den link(zurück zum bereichsindex enfernen,da ich diesen nicht brauch und meine mitglieder immer leicht verwirrt sind wenn sie aufeinmal alles zusammengelascht vorsich haben da jede section übers Haubtmenu einzeln erreichbar ist.gibs da ne möchlichkeit?
danke im vorraus

 bama :

02.12.2007 11:17
 ich gehe mal davon aus, du meinst das Modul Tutorials (nsections)

in der /modules/nsections/index.php musst du die Zeile 226:

Code:
echo "<center><br />[ <a href='./index.php'>"._NSEC_RETURN2INDEX."</a> ]<br /> $navbar </center>";


durch:

Code:
echo "<center><br /> $navbar </center>";


ersetzen. Zeilennummer kann etwas abweichen. Beachte, dass die Datei bei einem Update evtl. ersetzt werden kann.

 Ephram :

02.12.2007 18:49
 danke für die schnelle antwort hab die zeile nicht gefunden
hier mal die index.php
Code:
<?php
// $Id: index.php,v 1.3 2005/02/18 18:28:42 Nobse Exp $
// ------------------------------------------------------------------------- //
// ExV2: Content Management System //
// < http://www.exv2.de > //
// ------------------------------------------------------------------------- //
// Original Author: Francisco Burzi
// Author Website : http://www.phpnuke.org
// Licence Type : GPL
// ------------------------------------------------------------------------- //

include_once("./header.php");

function listsections() {
global $db, $myts, $mytree, $xoopsModule, $xoopsUser, $xoopsConfig;

include_once("../../header.php");

kopfTheme(_NSEC_KOPF, 0);
if($xoopsConfig['nsec_show_intro'] == 1){
OpenTable();
$myts->setType('admin');
echo $myts->makeTareaData4Show($xoopsConfig['nsec_intro'], 1, 1, 1)."<br /><br />";
CloseTable();
echo "<br />";
}

OpenTable();

if ($xoopsConfig['nsec_rss_enable']) {
echo "<div align='right'><a href='./cache/sections.xml'><img src='./images/xml.gif' border='0' alt='' /></a></div><br />";
}

$mytree = new XoopsTree($db->prefix(_MI_NSECTIONS_TABLE), "secid", "sepid");
$result = $db->query("SELECT secid, groupid, title, image FROM ".$db->prefix(_MI_NSECTIONS_TABLE)." WHERE sepid=0 ORDER BY title");
$isgroup = usergruppesec();
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
$count = 0;

while (list($secid, $groupid, $title, $image) = $db->fetch_row($result)) {

$totalsec = getTotalItemsSEC($secid, 1);
$title = $myts->makeTboxData4Show($title);
$arr = array();
$arr = $mytree->getFirstChild($secid, "title");
$space = 0;
$chcount = 0;

echo "<td width='50%' align='center'>";
if (iszugriffsec($isgroup,$groupid) ) {
if ( !empty($image) ) {
echo "<a href='./index.php?op=listarticles&amp;secid=$secid'><img src='".formatURL(XOOPS_URL. "/modules/".$xoopsModule->dirname()."/cache/images/", $image)."' border='0' alt='$title' /></a><br />";
}
echo "<font class='title'><a href='./index.php?op=listarticles&amp;secid=$secid'>$title ($totalsec)</a></font><br />";
}else{
if ( !empty($image) ) {
echo "<img src='".formatURL(XOOPS_URL. "/modules/".$xoopsModule->dirname()."/cache/images/", $image)."' border='0' alt='$title' /><br />";
}
echo "<font class='title'>$title ($totalsec)</font><br />";

}
foreach($arr as $ele) {
$chtitle = $myts->makeTboxData4Show($ele['title']);
if ($chcount > 5) {
echo "...";
break;
}
if ($space>0) {
echo ", ";
}
if (iszugriffsec($isgroup,$ele['groupid']) ) {
echo "<a href='".XOOPS_URL."/modules/nsections/index.php?op=listarticles&amp;secid=".$ele['secid']."'>".$chtitle."</a>";
}
$space++;
$chcount++;
}
if ($count < 1) {
echo "<br /><br /></td>";
}
$count++;
if ($count == 2) {
echo "<br /><br /></td></tr><tr>";
$count = 0;
}
} // END WHILE
echo "<td></td></tr></table>";


echo
"<br /><center><b>"._NSEC_THENEW."</b></center><br />
<table border='0' width='100%' class='bg4' cellspacing='1' cellpadding='3'><tr>
<td nowrap='nowrap'>"._NSEC_ARTICLE."</td>
<td nowrap='nowrap'>"._NSEC_BY."</td>
<td nowrap='nowrap'>"._NSEC_ON."</td>
<td nowrap='nowrap'>"._NSEC_READS."</td>
<td>&amp;nbsp;</td>
</tr>";

$limit = $xoopsConfig['nsec_article_limit'];

$result = $db->query("SELECT artid, groupid, title, byline, author, content, counter, date, status FROM ".$db->prefix(_MI_NSECCONT_TABLE)." WHERE status>0 ORDER by date DESC", $limit);
while (list($artid, $groupid, $title, $byline, $author, $content, $counter, $date, $status) = $db->fetch_row($result)) {
if (iszugriffsec($isgroup,$groupid) ) {
$title = $myts->makeTboxData4Show($title);
$byline = $myts->makeTboxData4Show($byline);

$content = $myts->makeTareaData4Show($content);
$thisUser = new XoopsUser($author);
if (!$thisUser->isActive()) { $name = _NSEC_UNKNOWN; } else { $name = $thisUser->uname(); }
include("include/view.php");
}
}
echo "</table><br />";


CloseTable();
include_once("../../footer.php");
}
//**************************************************
function listarticles($secid) {
include_once(XOOPS_ROOT_PATH.'/class/xoopspagenav.php');
global $xoopsUser, $xoopsModule, $db, $myts, $_GET, $mytree, $xoopsConfig;

$isgroup = usergruppesec();
$secidart = $secid;
$result = $db->query("SELECT title, groupid, image FROM ".$db->prefix(_MI_NSECTIONS_TABLE)." WHERE secid=$secid");
list($title, $groupidkat, $image) = $db->fetch_row($result);
$title = $myts->makeTboxData4Show($title);

if ( !iszugriffsec($isgroup,$groupidkat) ) {
redirect_header("javascript:history.go(-1)", 3, _NOPERM);
exit();
}

//$subcat = $db->query("SELECT secid, title, groupid, image FROM ".$db->prefix(_MI_NSECTIONS_TABLE)." WHERE sepid=$secid");


include_once("../../header.php");
kopfTheme(_NSEC_KOPF, 0);
OpenTable();

echo "<center><b>"._NSEC_THISISSECTION."</b><br />";
if ( !empty($image) ) {
echo "<img src='".formatURL(XOOPS_URL. "/modules/".$xoopsModule->dirname()."/cache/images/", $image)."' border='0' alt='$title' /><br /><br />";
}else{
echo "<b>$title</b>";
}
echo "</center>";

$mytree = new XoopsTree($db->prefix(_MI_NSECTIONS_TABLE), "secid", "sepid");
$arr = array();
$arr = $mytree->getFirstChild($secid, "title", "image", "groupid");
$count = 0;
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";

//while (list($secidsub, $titlesub, $groupidsub, $image) = $db->fetch_row($subcat)) {
foreach($arr as $ele) {
$title = $myts->makeTboxData4Show($ele['title']);
$secid = $ele['secid'];
$image = $ele['image'];
$totalsub = getTotalItemsSEC($secid, 1);
echo "<td width='33%' align='center'>";
if (iszugriffsec($isgroup,$ele['groupid']) ) {
if ( !empty($image) ) {
echo "<a href='./index.php?op=listarticles&amp;secid=$secid'><img src='".formatURL(XOOPS_URL. "/modules/".$xoopsModule->dirname()."/cache/images/", $image)."' border='0' alt='$title' /></a><br />";
}
echo "<font class='title'><a href='./index.php?op=listarticles&amp;secid=$secid'>$title ($totalsub)</a></font><br />";
}else{
if ( !empty($image) ) {
echo "<img src='".formatURL(XOOPS_URL. "/modules/".$xoopsModule->dirname()."/cache/images/", $image)."' border='0' alt='$title' /><br />";
}
echo "<font class='title'>$title </font><br />";
}
if ($count < 2) {
echo "<br /><br /></td>";
}
$count++;
if ($count == 3) {
echo "<br /><br /></td></tr><tr>";
$count = 0;
}
}
echo "<td></td></tr></table><br /><center>";

$result = $db->query("SELECT COUNT(*) FROM ".$db->prefix(_MI_NSECCONT_TABLE)." WHERE secid=$secidart AND status>0");
list($numrows) = $db->fetch_row($result);

if ($numrows > 0) {
echo
"<br /><br />"._NSEC_THEFOLLOWING."<br /><br />
<table border='0' width='100%' class='bg4' cellspacing='1' cellpadding='3'><tr>
<td nowrap='nowrap'>"._NSEC_ARTICLE."</td>
<td nowrap='nowrap'>"._NSEC_BY."</td>
<td nowrap='nowrap'>"._NSEC_ON."</td>
<td nowrap='nowrap'>"._NSEC_READS."</td>
<td>&amp;nbsp;</td>
</tr>";

isset($_GET['show']) ? $show = $_GET['show'] : $show = 0;
$limit = $xoopsConfig['nsec_article_limit'];

$result = $db->query("SELECT artid, groupid, title, byline, author, content, counter, date, status FROM ".$db->prefix(_MI_NSECCONT_TABLE)." WHERE secid=$secidart AND status>0 ORDER by title ASC", $limit, $show);
while (list($artid, $groupid, $title, $byline, $author, $content, $counter, $date, $status) = $db->fetch_row($result)) {
if (iszugriffsec($isgroup,$groupid) ) {
$title = $myts->makeTboxData4Show($title);
$byline = $myts->makeTboxData4Show($byline);
$content = $myts->makeTareaData4Show($content);
$thisUser = new XoopsUser($author);
if (!$thisUser->isActive()) { $name = _NSEC_UNKNOWN; } else { $name = $thisUser->uname(); }
include("include/view.php");
}
} // END WHILE
echo "</table></center><br />";
} // END NUMROWS

if ($numrows > 0) {
$nav = new XoopsPageNav($numrows, $limit, $show, "show", "op=listarticles&amp;secid=$secid");
if ( $nav ) {
$navbar = $nav->renderNav(3,3);
}
}else{$navbar = "";}


CloseTable();
include_once("../../footer.php");
}
//*****************************************

function viewarticle($artid) {
include_once(XOOPS_ROOT_PATH.'/class/xoopspagenav.php');
global $xoopsUser, $xoopsModule, $db, $myts, $xoopsConfig, $meta, $page;

$isgroup = usergruppesec();
$result = $db->query("SELECT artid, groupid, secid, title, author, date, content, counter, status FROM ".$db->prefix(_MI_NSECCONT_TABLE)." WHERE artid=$artid AND status>0");
list($artid, $groupid, $secid, $title, $author, $date, $content, $counter, $status) = $db->fetch_row($result);
$title = $myts->makeTboxData4Show($title);

if (!iszugriffsec($isgroup,$groupid)) {
redirect_header("javascript:history.go(-1)", 3, _NOACTION);
exit();
}

if ( !isset($page) ) {
$db->query("UPDATE ".$db->prefix(_MI_NSECCONT_TABLE)." SET counter=counter+1 WHERE artid='$artid'");
}

$myts->setType('admin');
$content = $myts->makeTareaData4Show($content, 1, 1, 1);
$thisUser = new XoopsUser($author);

if (!$thisUser->isActive()) {
$name = _NSEC_UNKNOWN;
} else {
$name = $thisUser->uname();
$uid = $thisUser->uid();
}

$result2 = $db->query("SELECT secid, title FROM ".$db->prefix(_MI_NSECTIONS_TABLE)." WHERE secid=$secid");
list($secid, $titlekat) = $db->fetch_row($result2);
$titlekat = $myts->makeTboxData4Show($titlekat);
$contentpages = explode( "[pagebreak]", $content );
$pages = count($contentpages);

if ( !isset($page) || !is_numeric($page) ) {
$page = "0";
}

if ($page > $pages) {
$page = $pages;
}
include_once("../../header.php");

if ($pages > 1) {
$nav = new XoopsPageNav($pages, 1, $page, "page", "op=viewarticle&amp;artid=$artid");
$navbar = $nav->renderNav(3,3);
}else{$navbar = "";}


kopfTheme(_NSEC_KOPF, 0);
OpenTable();
include_once("include/viewart.php");
CloseTable();
include_once("../../footer.php");
}


//---------------------------------------------------------------------------------------//
$op = isset($op) ? $op : "";
switch($op) {
case "viewarticle":
viewarticle($artid);
break;
case "listarticles":
listarticles($secid);
break;
default:
listsections();
break;
}
?>

 Nobse :

02.12.2007 20:01
 ist bei dir auch nicht drinne
auch würde die seitennavigation nicht angezeigt werden

gib doch mal einen link zu deiner seite

 bama :

02.12.2007 22:54
 was habt ihr denn da für eine Version, im Orginal Download von 2.0.5 enthalten

ich habe dir die /modules/nsections/index.php geändert

alte Zeile ist nur mit // versehen
Partnerseiten
http://service.bama-webdesign.de/

Vote für eXV2
php
Kontakt/Info
  Kontakt
  Impressum
  Link zu uns
  AGB
  Datenschutzhinweis
Downloads
  eXV² Core
  Core Sprachfiles
eXV² Filecenter
  Downloads
  Download Module
  eXV² Themes
  Multilanguage Module
  Sprachfiles eXV² Module
eXV² Support
  France