why do you make make three threads with nearly the same content? Isn't one thread enough...

TRIPLE POST !!
Joachim
ok, that works.phalancs wrote:@gent:
In the meantime try the following, to have a structure to be only visible when logged in (for me it worked only like that):
found something for you:gent wrote:
but (yes there is a but), i need to set two logins on my page.
one login for 10 ppl and the other login for 20 other ppl.
one of the first group dont have to login to the 2. login.
and finaly into the loginareas there is different content.
i guess the only way to do so, is to set the rights for the menustructure.
but this dont work with this hack at the moment.
Code: Select all
$data[$row["acat_id"]] = array( "acat_id" => $row["acat_id"],
"acat_name" => $row["acat_name"],
"acat_info" => $row["acat_info"],
"acat_struct" => $row["acat_struct"],
"acat_sort" => $row["acat_sort"],
"acat_hidden" => $row["acat_hidden"],
"acat_regonly" => $row["acat_regonly"],
"acat_ssl" => $row["acat_ssl"],
"acat_template" => $row["acat_template"],
"acat_alias" => $row["acat_alias"],
"acat_topcount" => $row["acat_topcount"],
"acat_redirect" => $row["acat_redirect"],
"acat_order" => $row["acat_order"],
"acat_timeout" => $row["acat_cache"],
"acat_nosearch" => $row["acat_nosearch"],
"acat_nositemap"=> $row["acat_nositemap"],
"acat_permit" => !empty($row["acat_permit"]) ? explode(',', $row["acat_permit"]) : array()
);
Code: Select all
//PWmod
$permissioncheck = !$row["acat_permit"] ? 1 : 0;
if (isset($_SESSION["wcs_user_id"]) AND $row["acat_permit"]) {
$temparray = explode(',', $row["acat_permit"]);
foreach($temparray as $value) {
if ($_SESSION["wcs_user_id"] == $value) {
$permissioncheck = 1;
break;
}
}
}
if ($permissioncheck == 1) {
$data[$row["acat_id"]] = array( "acat_id" => $row["acat_id"],
"acat_name" => $row["acat_name"],
"acat_info" => $row["acat_info"],
"acat_struct" => $row["acat_struct"],
"acat_sort" => $row["acat_sort"],
"acat_hidden" => $row["acat_hidden"],
"acat_regonly" => $row["acat_regonly"],
"acat_ssl" => $row["acat_ssl"],
"acat_template" => $row["acat_template"],
"acat_alias" => $row["acat_alias"],
"acat_topcount" => $row["acat_topcount"],
"acat_redirect" => $row["acat_redirect"],
"acat_order" => $row["acat_order"],
"acat_timeout" => $row["acat_cache"],
"acat_nosearch" => $row["acat_nosearch"],
"acat_nositemap"=> $row["acat_nositemap"],
"acat_permit" => !empty($row["acat_permit"]) ? explode(',', $row["acat_permit"]) : array()
);
}
//End PWmod
it is workingmarkoehl wrote: this way the whole permission thing is working for the frontend too. But only for the strukture level and the Sitemap.
Check it out...
You keep me busygent wrote: in ur example u have the structur-level "Test" with the login-contentpart.
is there a way, to only show this login-form if the user is not loged in?
and if the user is loged in, there will be a other text?
Code: Select all
error while getting link article list: SELECT article_id, article_title, article_cid FROM phpwcms_article WHERE article_id =18;
Code: Select all
Notice: Undefined index: wcs_user_fe in /var/www/vhosts/qs-letten.ch/httpdocs/schule/cms/index.php on line 85
Zip File herunterladen und inc_front/ ersetzen. Habe kleine Modifikation eingefügt. Es gab vermutlich einen Konflikt weil du die GLOBAL_VARS ausgeschaltet hast. Habe Zeile 198 angepasst.Notice: Undefined index: wcs_user_fe in /var/www/vhosts/qs-letten.ch/httpdocs/schule/cms/index.php on line 85
- in der Struktur einen Menüpunkt Logout erstellen (sichtbar, nicht öffentlich)Ich weiss (trotz Anleitung) nicht, wie das Auslogen funktioniert.
Code: Select all
Notice: Undefined index: form_loginname in /var/www/vhosts/qs-letten.ch/httpdocs/schule/cms/include/inc_front/content/cnt203.article.inc.php on line 198
sehe da keine Möglichkeit... Das Bild ist über die Vorlage definiert. Dort kannst du keinen Code einbauen und somit auch keine Funktionialität nutzen. Aber ich denke es ist in der Fusszeile gut verpackt und stört dort nicht...bw wrote: Ich habe unten rechts einen Login-Link. Gäbe es eine Möglichkeit diesen in einen Logout-Link zu verwandeln, wenn man sich eingelogt hat?