Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Kosse
Posts: 1066 Joined: Thu 9. Sep 2004, 12:08
Location: Brussels, Belgium
Contact:
Post
by Kosse » Mon 6. Mar 2006, 12:24
Hi phalancs,
you know this one?
http://www.phpwcms.de/forum/viewtopic.php?t=10262
it's the perfect complement for your script too, it allows "editing" from frontend, if u are logged in backend, when u look at your site a little "edit" button appears and open the backend to edit the article.
Some little bugs still but you two should speak, then it will be..
~a little step for you but a giant step for phpwcms~
Cheers
phalancs
Posts: 793 Joined: Thu 19. Feb 2004, 05:09
Location: Germany
Post
by phalancs » Mon 6. Mar 2006, 14:37
Hi Kosse, you are right, this is a nice thing.
For my pages I usually use something similar that rather fits into my layout. Nevertheless I thought about implementing such functions, but just because the panel is an own content part it would only allow to edit the panels article... :O
Hmm no solution yet.
2008
StudioZ
Posts: 802 Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:
Post
by StudioZ » Tue 7. Mar 2006, 23:42
Hi Phalancs
I tweaked a bit some HTML in your great coding in:
include/inc_front/content/cnt203.article.inc.php
I had to make the Login Form more space savy.
So you can put this Login Form in a column if needed.
In this image you will see the
Before (in Greys)
and the
New :
(hope you can integrate these tweaks to your distro):roll:
Note : I swapped your message's icon
for this one, so it fits everyone (blinking envelope):
img/symbole/new_mail.gif
Keep up the Great Work,
Cheers,
Last edited by
StudioZ on Tue 7. Mar 2006, 23:51, edited 3 times in total.
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2 , r354 -> Great Version!!!!
StudioZ
Posts: 802 Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:
Post
by StudioZ » Tue 7. Mar 2006, 23:44
include/inc_front/content/cnt203.article.inc.php
edited code:
Code: Select all
<?php
/*************************************************************************************
Copyright notice
(c) 2002-2005 Oliver Georgi (oliver@phpwcms.de) // All rights reserved.
This script is part of PHPWCMS. The PHPWCMS web content management system 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 2 of the License, or (at your option) any later version.
The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html
A copy is found in the textfile GPL.txt and important notices to the license
from the author is found in LICENSE.txt distributed with these scripts.
This script 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.
This copyright notice MUST APPEAR in all copies of the script!
*************************************************************************************/
//login ctn
$CNT_TMP .= headline($crow["acontent_title"], $crow["acontent_subtitle"], $template_default["article"]);
$cform = explode("#:#", $crow["acontent_form"]);
$clogin["cbreite"] = $cform[0];
$clogin["clang"] = $cform[1];
$clogin["calink"] = $cform[2];
$clogin["cuser"] = stripslashes($cform[3]);
$clogin["cpasswort"] = stripslashes($cform[4]);
$clogin["clogout_title"] = stripslashes($cform[5]);
$clogin["clogout_ident"] = stripslashes($cform[6]);
$clogin["clogout_btn"] = stripslashes($cform[7]);
$clogin["clogout_status"] = stripslashes($cform[8]);
$clogin["clogout_inbox"] = stripslashes($cform[9]);
$clogin["clogout_vts"] = stripslashes($cform[10]);
$clogin["clogout_admin"] = stripslashes($cform[11]);
$clogin["clogout_mess"] = stripslashes($cform[12]);
$clogin["clogout_newmess"] = stripslashes($cform[13]);
$clogin["clogintitle"] = stripslashes($cform[14]);
$clogin["clogin_error"] = stripslashes($cform[15]);
$clogin["clogin_sprache"] = stripslashes($cform[16]);
$clogin["cbox_height"] = stripslashes($cform[17]);
$clogin["cbox_width"] = stripslashes($cform[18]);
$clogin["clogout_vts_label"] = stripslashes($cform[19]);
$clogin["clogout_adminuser"] = stripslashes($cform[20]);
require_once ("include/inc_lib/backend.functions.inc.php");
$_SESSION['REFERER_URL'] = PHPWCMS_URL.'index.php?'.$_SERVER['QUERY_STRING'];
// define vars
$err = 0;
//$wcs_user = '';
// reset all inactive users
$sql = "UPDATE ".DB_PREPEND."phpwcms_userlog SET ";
$sql .= "logged_in = 0, logged_change = '".time()."' ";
$sql .= "WHERE logged_in = 1 AND ( ".time()." - logged_change ) > ".$phpwcms["max_time"];
mysql_query($sql, $db);
//define language and check if language file is available
if(isset($_POST['form_lang'])) {
$_SESSION["wcs_user_lang"] = slweg($_POST['form_lang']);
}
if(!isset($_SESSION["wcs_user_lang"])) {
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
$_SESSION["wcs_user_lang"] = strtolower( substr( $_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2 ) );
} else {
$_SESSION["wcs_user_lang"] = strtolower($phpwcms["default_lang"]);
}
}
if(file_exists('include/inc_lang/backend/'.$_SESSION["wcs_user_lang"].'/lang.inc.php')) {
$lang_file_include = 'include/inc_lang/backend/'.$_SESSION["wcs_user_lang"].'/lang.inc.php';
$_SESSION["wcs_user_lang_custom"] = 1;
} else {
$lang_file_include = 'include/inc_lang/backend/en/lang.inc.php';
$_SESSION["wcs_user_lang_custom"] = 0;
}
require_once ($lang_file_include);
//WYSIWYG EDITOR:
//0 = no wysiwyg editor (default)
//1 = HTMLAREA (compatible with IE5.5+ and Mozilla 1.3+ based webbrowsers)
$_SESSION["WYSIWYG_EDITOR"] = 2;
$_SESSION["dhtml_hiding"] = 1;
$phpwcms["wysiwyg_editor"] = intval($phpwcms["wysiwyg_editor"]);
if($phpwcms["wysiwyg_editor"]) {
//include_once ("include/inc_ext/phpsniff/phpSniff.core.php");
include_once ("include/inc_ext/phpsniff/phpSniff.class.php");
$c =& new phpSniff();
if($c->browser_is("mz1.3+") || $c->browser_is("ns7+") || $c->browser_is("fx")) {
$_SESSION["dhtml_hiding"] = 0;
}
switch($phpwcms["wysiwyg_editor"]) {
case 1: // HTMLarea
if( $c->browser_is("ie5.5+") ||
$c->browser_is("mz1.3+") ||
$c->browser_is("ns7+") ||
$c->browser_is("fx")
) $_SESSION["WYSIWYG_EDITOR"] = 1;
break;
case 2: // FCKeditor 2
if( $c->browser_is("ie5.5+") ||
$c->browser_is("mz1.3+") ||
$c->browser_is("ns7+") ||
$c->browser_is("fx")
) $_SESSION["WYSIWYG_EDITOR"] = 2;
break;
case 3: // Spaw
if( $c->browser_is("ie5.5+")) {
$_SESSION["WYSIWYG_EDITOR"] = 4;
} elseif (
$c->browser_is("mz1.3+") ||
$c->browser_is("ns7+") ||
$c->browser_is("fx") ) {
$_SESSION["WYSIWYG_EDITOR"] = 1;
}
break;
case 4: if( $c->browser_is("ie5.5+")) $_SESSION["WYSIWYG_EDITOR"] = 4;
break;
}
}
if(isset($_POST['form_aktion']) && $_POST['form_aktion'] == 'login') {
$login_passed = 0;
$wcs_user = slweg(trim($_POST['form_loginname']));
$wcs_pass = slweg(trim($_POST['form_password']));
$sql_query = "SELECT * FROM ".DB_PREPEND."phpwcms_user WHERE usr_login='".
aporeplace($wcs_user)."' AND (usr_pass=PASSWORD('".
aporeplace($wcs_pass)."') OR usr_pass='".
aporeplace(md5($wcs_pass))."') AND usr_aktiv=1;";
if($result = mysql_query($sql_query)) {
if($row = mysql_fetch_assoc($result)) {
$_SESSION["wcs_user"] = $wcs_user;
$_SESSION["wcs_pass"] = $wcs_pass;
$_SESSION["wcs_user_name"] = ($row["usr_name"]) ? $row["usr_name"] : $wcs_user;
$_SESSION["wcs_user_id"] = $row["usr_id"];
$_SESSION["wcs_user_aktiv"] = $row["usr_aktiv"];
$_SESSION["wcs_user_rechte"] = $row["usr_rechte"];
$_SESSION["wcs_user_email"] = $row["usr_email"];
$_SESSION["wcs_user_avatar"] = $row["usr_avatar"];
$_SESSION["wcs_user_logtime"] = time();
$_SESSION["wcs_user_admin"] = $row["usr_admin"];
$_SESSION["wcs_usr_access"] = $row["usr_access"];
$_SESSION["wcs_user_thumb"] = 1;
if($row["usr_lang"]) {
$_SESSION["wcs_user_lang"] = $row["usr_lang"];
}
$_SESSION["structure"] = unserialize($row["usr_var_structure"]);
$_SESSION["klapp"] = unserialize($row["usr_var_privatefile"]);
$_SESSION["pklapp"] = unserialize($row["usr_var_publicfile"]);
$_SESSION['wcs_user_var'] = unserialize($row["usr_vars"]);
$_SESSION['wcs_user_fe'] = $row["usr_fe"];
$login_passed = 1;
}
mysql_free_result($result);
}
if($login_passed) {
mysql_query("INSERT INTO ".DB_PREPEND."phpwcms_userlog ".
"(logged_user, logged_username, logged_start, logged_change, ".
"logged_in, logged_ip) VALUES ('".
$wcs_user."', '".$_SESSION["wcs_user_name"]."', ".time().", ".
time().", 1, '".$_SERVER['REMOTE_ADDR']."');");
if($_SESSION['wcs_user_fe'] == "0") {
if (intval($clogin["calink"]) > 0){
$calink_sql = "SELECT article_id, article_title, article_cid FROM ".
$DB_PREPEND."phpwcms_article WHERE article_id =".intval($clogin["calink"]).";";
if($result = mysql_query($calink_sql, $db) or die("error while getting link article list: ".$calink_sql)) {
$row1 = mysql_fetch_row($result);
$strlink = '?id='.$row1[2].','.$row1[0].',0,0,1,0';
}
mysql_free_result($result);
}
header("Location: ".PHPWCMS_URL."index.php".$strlink);
} else {
//ENYM: ALWAYS STAY IN FRONTEND SO NEXT LINE REPLACED BY THE OVERNEXT LINE
//header("Location: ".PHPWCMS_URL."phpwcms.php");
header("Location: ".PHPWCMS_URL."index.php".$strlink);
//ENYM: CHANGE END
}
exit();
} else {
$err = 1;
}
}
//ENYM: CHECK FOR NEW MESSAGES FOR LOGGED IN USER
//------------------------------------------------------------------------
$sql = "SELECT COUNT(*) FROM ".DB_PREPEND."phpwcms_message WHERE msg_uid=".$_SESSION["wcs_user_id"]." AND msg_read=0;";
if($check = mysql_query($sql, $db)) {
$wcs_msg_waiting = ($row2 = mysql_fetch_row($check)) ? $row2[0] : 0;
} else {
$wcs_msg_waiting = 0;
}
if($wcs_msg_waiting) {
$wcsnav["navspace1"] = "<a href=\"phpwcms.php?do=messages\" title=\"".$wcs_msg_waiting." new messages waiting!\">".
"<img src=\"img/symbole/new_mail.gif\" border=\"0\"></a>";
$new_mail_waiting = 1;
}
//------------------------------------------------------------------------
//ENYM: END OF CHECK AND COUNT IS PUT IN $WCS_MSG_WAITING
//CHECK IF SOMEONE IS ALREADY LOGGED IN -> THEN SHOW EITHER LOGOUT BUTTON OR LOGIN FORM
if (isset($_SESSION['wcs_user'])) {
//----------------------------EINGELOGGT
//------------------------------------------------------------------
$CNT_TMP .= '<table width="'.$clogin["cbox_width"].'" height="'.$clogin["cbox_height"].'" cellpadding="0" cellspacing="0" border="0">';
$CNT_TMP .= '<tr>';
$CNT_TMP .= '<td rowspan="4"> </td>';
$CNT_TMP .= '<td colspan="3">'.$clogin["clogout_title"].'</td>';
$CNT_TMP .= '<td rowspan="4"> </td>';
$CNT_TMP .= '</tr>';
$CNT_TMP .= '<tr>';
$CNT_TMP .= '<td colspan="2">'.$clogin["clogout_ident"].' '.$_SESSION['wcs_user'].'</td>';
$CNT_TMP .= '<td align="right"><a href="phpwcms.php?do=logout">'.$clogin["clogout_btn"].'</a></td>';
$CNT_TMP .= '</tr>';
$CNT_TMP .= '<tr>';
//CHECK IF USER IS ADMIN WITH SPECIFIED NAME
if (html_specialchars($_SESSION['wcs_user'])==$clogin['clogout_adminuser']){
$CNT_TMP .= '<td>'.$clogin["clogout_status"].'</td>';
$CNT_TMP .= '<td align="right">';
//ERST PRÜFEN OB VTS GENUTZT WERDEN SOLL:
if ($clogin["clogout_vts"] == "1") {
//ENYM: SHOW VISITORS ONLINE on ENYM.COM
if (html_specialchars($_SESSION['wcs_user'])=="enym"){
include_once "./include/inc_ext/phpOpenTracker/phpOpenTracker.php";
$config = phpOpenTracker_Config::getConfig();
$call['visitors_online']= array('api_call' => 'num_visitors_online', 'range' => 'total');
$CNT_TMP .= '<span class="subnavinactive">';
$CNT_TMP .= '<a href="phpwcms.php?do=vts&p=3">'.$clogin["clogout_vts_label"].'</a>';
$CNT_TMP .= ' ('.abs(phpOpenTracker::get($call['visitors_online'])).')</span>';
}
//ENYM: SHOW VISITORS ONLINE on ENYM.COM
}
$CNT_TMP .= '</td><td align="right">';
$CNT_TMP .= '<a href="phpwcms.php?do=admin&p=6">'.$clogin["clogout_admin"].'</a></td>';
} else {
$CNT_TMP .= '<td colspan="3" align="right"> </td>';
}
//END
$CNT_TMP .= '</tr>';
$CNT_TMP .= '<tr>';
$CNT_TMP .= '<td>'.$clogin["clogout_inbox"].'</td>';
$CNT_TMP .= '<td nowrap align="right">';
//SHOW MESSAGE COUNT
if ($new_mail_waiting != 0) {
$CNT_TMP .= '<a href="phpwcms.php?do=messages" title="'.$wcs_msg_waiting.' new messages waiting!"><img src="img/symbole/new_mail.gif" alt="Alt" border="0"></a>';
$CNT_TMP .= ' ('.$wcs_msg_waiting.')';
} else {
$CNT_TMP .= '<a href="phpwcms.php?do=messages" title="Title">'.$clogin["clogout_mess"].'</a>';
$CNT_TMP .= ' (<b>0</b>)';
}
//END
$CNT_TMP .= '</td>';
$CNT_TMP .= '<td nowrap align="right"><a href="phpwcms.php?do=messages&p=1">'.$clogin["clogout_newmess"].'</a></td>';
$CNT_TMP .= '</tr>';
$CNT_TMP .= '<tr>';
$CNT_TMP .= '<td colspan="5"> </td>';
$CNT_TMP .= '</tr>';
$CNT_TMP .= '</table>';
//------------------------------------------------------------------
//----------------------------ENDE WENN EINGELOGGT
} else {
//----------------------------NICHT EINGELOGGT: SHOW LOGIN FROM
//------------------------------------------------------------------
//FORM DANN TABLE START
$CNT_TMP .= '<form name="login_formular" method="post" action="'.$_SESSION['REFERER_URL'].'" autocomplete="off">';
$CNT_TMP .= '<input type="hidden" name="form_lang" id="form_lang" value="de"> <table border="0" cellpadding="0" cellspacing="0" width="'.$clogin["cbox_width"].'" height="'.$clogin["cbox_height"].'">';
//ZEILE 1 SETUP-DIR CHECK AND LOGIN ERROR MESSAGE PLACE
$CNT_TMP .= '<tr><td colspan="3" valign="top">';
if($err) {
$CNT_TMP .= '<div class="login_error">'.$clogin["clogin_error"].'</div>';
$CNT_TMP .= '<img src="img/leer.gif" width="1" height="12">';
}
else {
$CNT_TMP .= '<div class="login_error">'.$clogin["clogintitle"].'</div>';
$CNT_TMP .= '<img src="img/leer.gif" width="1" height="12">';
}
$CNT_TMP .= '</td></tr>';
//ZEILE 2 USERNAME (LABEL AND INPUT FIELD)
$CNT_TMP .= '<tr><td nowrap class="v10">';
$CNT_TMP .= $clogin["cuser"].'</td></tr>';
$CNT_TMP .= '<tr><td class="v10"><input class="v10" name="form_loginname" type="text" id="form_loginname" style="width:'.$clogin["cbreite"].'px;" size="30" maxlength="30" value="'.html_specialchars($wcs_user).'"></td></tr>';
//ZEILE 3 LEERZEILE
//$CNT_TMP .= '<tr><td colspan="3" height="3"><img src="img/leer.gif" width="1" height="3"></td></tr>';
//ZEILE 4 PW UND LOGIN BUTTON 2. zeile ist label
//$CNT_TMP .= '<tr><td align="left" nowrap class="v10" height="23"></tr>';
$CNT_TMP .= '<tr><td nowrap class="v10">'.$clogin["cpasswort"].'</td></tr>';
$CNT_TMP .= '<tr><td class="v10" width="'.$clogin["cbreite"].'px;"><input name="form_password" class="login_field" type="password" id="form_password" style="width:'.$clogin["cbreite"].'px;" size="30" maxlength="20"></td></tr>';
//ZEILE 5 LANGUAGE SELECT
if ($clogin["clang"] == "1") {
$CNT_TMP .= '<tr><td nowrap class="v10">'.$clogin["clogin_sprache"].'</td></tr>';
$CNT_TMP .= '<tr><td class="v10"><select class="v10" name="form_lang" id="form_lang" style="width:'.$clogin["cbreite"].'px;">';
// check available languages installed and build language selector menu
$lang_dirs = opendir("include/inc_lang/backend");
while($lang_codes = readdir( $lang_dirs )) {
if( $lang_codes != "." && $lang_codes != ".." && file_exists("include/inc_lang/backend/".$lang_codes."/lang.inc.php")) {
$CNT_TMP .= '<option value="'.$lang_codes.'"';
$CNT_TMP .= ($lang_codes == $_SESSION["wcs_user_lang"]) ? " selected" : "";
$CNT_TMP .= '>';
$CNT_TMP .= (isset($BL[strtoupper($lang_codes)])) ? $BL[strtoupper($lang_codes)] : strtoupper($lang_codes);
$CNT_TMP .= "</option>\n";
}
}
closedir( $lang_dirs );
$CNT_TMP .= '</select></td>';
$CNT_TMP .= '<td align="left" nowrap class="v10"> </td></tr>';
}
//$CNT_TMP .= '<td align="center"> <input name="Submit" type="submit" value="go" class="login_butt"><input name="form_aktion" type="hidden" id="form_aktion" value="login"></td></tr>';
$CNT_TMP .= '<tr><td><img src="img/leer.gif" width="1" height="10"></td></tr>';
$CNT_TMP .= '<tr><td><input name="Submit" type="submit" class="formButton" value="'.$BL["login_button"].'"><input name="form_aktion" type="hidden" id="form_aktion" value="login"></td></tr>';
// $CNT_TMP .= '<tr><td><img src="img/leer.gif" width="1" height="20"></td></tr>';
//ZEILE 6 LEERZEILE
$CNT_TMP .= '<tr><td colspan="3" height="15"><img src="img/leer.gif" width="1" height="15"></td></tr>';
$CNT_TMP .= '</td></tr>';
//TABLES AND FORM END
$CNT_TMP .= '</table>';
$CNT_TMP .= '</form>';
//------------------------------------------------------------------
//----------------------------ENDE LOGIN FORM STUFF
//REMOVE NEXT THREE LINES IF YOU DONT WANT THE CURSOR TO BE PLACED IN THE FORM AUTOMATICALLY
/*
$CNT_TMP .= '<script language="JavaScript" type="text/JavaScript">';
$CNT_TMP .= 'window.document.login_formular.form_loginname.focus();';
$CNT_TMP .= '</script>';
*/
//END
}
?>
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2 , r354 -> Great Version!!!!
phalancs
Posts: 793 Joined: Thu 19. Feb 2004, 05:09
Location: Germany
Post
by phalancs » Fri 10. Mar 2006, 16:54
Good idea Yves, I think it would be great to put a switch into admin.
So the user can easily decide which orientation he prefers.
I have already just integrated another swith with which the user can choose how to align the panel (topleft, topright, top-center, middle left....., bottom left.....).
But I think that your addition will fit well too.
The Panel will come shortly!
2008
StudioZ
Posts: 802 Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:
Post
by StudioZ » Fri 10. Mar 2006, 17:21
phalancs wrote: Good idea Yves, I think it would be great to put a switch into admin.
So the user can easily decide which orientation he prefers.
I have already just integrated another swith with which the user can choose how to align the panel (topleft, topright, top-center, middle left....., bottom left.....).
But I think that your addition will fit well too.
The Panel will come shortly!
Cool
Thanks Phalancs
Cheers and gratitude,
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2 , r354 -> Great Version!!!!
schusmile
Posts: 13 Joined: Tue 31. Jan 2006, 19:25
Post
by schusmile » Sat 11. Mar 2006, 14:35
hab mich jetzt an dieser, lt. Beschreibung, "einfachen" Installation versucht und bin wahrscheinlich zu doof (mein fachkundiger ansprechpartner ist zurzeit im urlaub
). das einzige was ich produziere ist folgendes:
und
.
Hab das gestern mit einer 1.2.5 er schon probiert und bin kläglich gescheitert. Habe daraufhin bis CVS_14.12 Upgrades durchgeführt - ohne Erfolg. Hab mir dabei aber meine DB zerschossen. Jetzt habe ich "kurzer" Hand alles neu aufgesetzt -> neues phpwcms Stand: 14.12 und neue db.
Das Ergebnis bleibt dasselbe. Was mach ich falsch?
frold
Posts: 2151 Joined: Tue 25. Nov 2003, 22:42
Post
by frold » Sat 11. Mar 2006, 16:51
seems like missing lang file
schusmile
Posts: 13 Joined: Tue 31. Jan 2006, 19:25
Post
by schusmile » Sat 11. Mar 2006, 17:42
@frold
thanxx, in dem ordner herrschte aus irgendwelchen mir nicht bekannten Gründen das Chaos - jetzt klappts!
Wittrock
Posts: 10 Joined: Thu 8. Sep 2005, 22:16
Post
by Wittrock » Mon 13. Mar 2006, 09:00
Hallo,
ich habe den Loginhack erfolgreich installiert und finde diese Erweiterung SUPER.
Was ich nur vermisse bzw. brauche, ist eine Möglichkeit verschiedene Seiten Passwort zu schützen.
Ich stelle mir das so vor:
Der Kunde oder User geht auf die Seite die Passwort geschützt ist, wenn er noch nicht angemeldet ist, erscheint ein Loginfeld, wo er sich dann einloggen kann und dann auf die Passwortgeschützte Seite kommt. Ist er schon angemeldet kann er die Seite sofort betreten.
Das mit dem Sichtbar und Unsichtbar machen von den Seiten finde ich nicht so Professionell, denn man sieht die Seiten mit den Loginhinweisen immer.
Gibt es da schon eine Möglichkeit für ?
Gruß Ralf
schusmile
Posts: 13 Joined: Tue 31. Jan 2006, 19:25
Post
by schusmile » Tue 14. Mar 2006, 11:22
phalancs wrote: Okay Oky and all the others asking for that:
SOLUTION for having the panel visible anwhere all the time
Why don't you try "jensz's" SHOW_CONTENT Replacement Tag.
I guess this is exactly what you all need. I did it like with that RT:
I dont have the link at hand but you can now download it from the download section on
http://www.enym.com (when logged in).
1. use:
{NAV_TABLE_COLUMN:X}
X is the ID of the structure Level containing your menu things.
to have the menu
Code: Select all
Home (ID X)
| (here is an Article with login-logout Panel) (ID a)
|_
Structure level 1 (ID y)
|(according article)
|_
Structure level 2 (ID Z)
|(according article)
2. Then you additionally put this RT somewhere in your HTML:
{SHOW_CONTENT:a} (where you want the login panel to appear)
The Login-Logout Panel Content has to be in the first level (home). You can call that content to appear anywhere you want if you use jensz
great RT!
Hope that helps!
BTW: I do not have the link to jensz RT at hand, so i uploaded it on the site you can get it when logged in!
http://www.enym.com
Ich will das haben!!!
Aber offenbar bin ich irgendwie zu ...
Hab jetzt das RT (call_content.php) als SHOW_CONTENT.PHP in den Ordner 'frontend_render' geschoben und in die Vorlage links das RT {show_content:5} eingebunden.
Leider funktioniert es nicht.
Hab auch schon die Variante mit dem content.article.inc.php probiert auch ohne erfolg.
ich bin mir ziemlich sicher, dass der fehler irgendwo in meinem nicht so perfekten englisch oder den nicht vorhandenen php-Kenntnissen zu finden ist, aber die Erkenntnis hilft mir leider nicht weiter.
phalancs
Posts: 793 Joined: Thu 19. Feb 2004, 05:09
Location: Germany
Post
by phalancs » Tue 14. Mar 2006, 11:53
Hi!
Versuch mal die Artikel-ID statt der Structurelevel ID zu nehmen!
Try to use the article id instead of the structure levels ID.
2008
schusmile
Posts: 13 Joined: Tue 31. Jan 2006, 19:25
Post
by schusmile » Tue 14. Mar 2006, 12:30
leider ohne erfolg
@phalancs
du hast eine pn
phalancs
Posts: 793 Joined: Thu 19. Feb 2004, 05:09
Location: Germany
Post
by phalancs » Tue 14. Mar 2006, 13:21
ist die seite online? kann ich mich da mal kurz einloggen?
Wo hast Du den RT eingetragen? Du kannst auch mal versuchen ihn in einen Artikel ('einfacher Text') zu packen.
Wo wird der Artikel dargestellt (Welchher Bereich): Content, Links, Rechts ... oder "Eigener Block". Wenn Du einen eigenen Block angelegt hast, dann versuche es erstmal in einem Standard Block.
EDIT:
Problem gelöst, die RT Php Datei war nicht im frontend-render VZ abgelegt worden.... Dann geht der RT natürlich auch nicht
Last edited by
phalancs on Mon 20. Mar 2006, 18:16, edited 1 time in total.
2008
Wittrock
Posts: 10 Joined: Thu 8. Sep 2005, 22:16
Post
by Wittrock » Tue 14. Mar 2006, 15:30
Habe gerade die Version 2.0 installiert und kann nur sagen SUPER.
Habe nur noch ein Problem mit der Registration, diese scheint noch nicht dabei zu sein oder mache ich etwas FALSCH !
Gruß Ralf