Userpanel CP
Hi trip,
ok this is what i dream of
Not a real roadmap but some kind of hmm basic intentions.
Generally: Having a frontend-user panel which has the functions that are implemented so far plus:
- custom redirect depending on the group of the user
- some more backend controls
- Newsletter interaction subscribe/ unsubscribe
Additionally i would like to have a few other FE User related Content Parts:
- E-mail Center Content Part (Frontend only) (planned)
- Profile editing Content Part/ Profile viewing
- Backend Chat in frontend
- Registration panel (amost finished) Planned features:
- create custom mail just as in the contact email form CP
- some more admin specific funtions in the admin panel
- possibility of adding custom fields (choose from any field that is within the profile)
Basically i want to keep the Frontend-Only user out of the backend...
As you see, i try to avoid hardcoding as much as possible, this is why this thing is not a real group management tool. Mainly I just put existing backend functionality into the frontend (as Content Part).
Well suggestions/ support always welcome. At leats the registering and the frontendlogging panel should finally give basic features of what is so urgently needed here....
so far
ok this is what i dream of

Not a real roadmap but some kind of hmm basic intentions.
Generally: Having a frontend-user panel which has the functions that are implemented so far plus:
- custom redirect depending on the group of the user
- some more backend controls
- Newsletter interaction subscribe/ unsubscribe
Additionally i would like to have a few other FE User related Content Parts:
- E-mail Center Content Part (Frontend only) (planned)
- Profile editing Content Part/ Profile viewing
- Backend Chat in frontend
- Registration panel (amost finished) Planned features:
- create custom mail just as in the contact email form CP
- some more admin specific funtions in the admin panel
- possibility of adding custom fields (choose from any field that is within the profile)
Basically i want to keep the Frontend-Only user out of the backend...
As you see, i try to avoid hardcoding as much as possible, this is why this thing is not a real group management tool. Mainly I just put existing backend functionality into the frontend (as Content Part).
Well suggestions/ support always welcome. At leats the registering and the frontendlogging panel should finally give basic features of what is so urgently needed here....
so far
2008
FE login question
so,let me pose this, it may already be answered but..
Is there a way to have it so that if "FE user1" logs in they see a hidden section that is specific to their log in. same goes if "FE user2" logs in they see a hidden section that is specific to them and not the hidden section that "FE user1" would see.
Is there a way to have it so that if "FE user1" logs in they see a hidden section that is specific to their log in. same goes if "FE user2" logs in they see a hidden section that is specific to them and not the hidden section that "FE user1" would see.

Hi and thanks for making this login possible
I am just willing hrere to validate the hack that needs to be done in:
include/inc_front/front.func.inc.php
It ouputs an error message:
Parse error: parse error, unexpected $ in /home/user/public_html/site/include/inc_front/front.func.inc.php on line 3440
Here's what I have, after following Enym's hack in the install.txt file:
Cheers,

I am just willing hrere to validate the hack that needs to be done in:
include/inc_front/front.func.inc.php
It ouputs an error message:
Parse error: parse error, unexpected $ in /home/user/public_html/site/include/inc_front/front.func.inc.php on line 3440
Here's what I have, after following Enym's hack in the install.txt file:
Code: Select all
// -------------------------------------------------------------
function get_struct_data ($dbcon, $root_name="Home", $root_info="") {
//returns the complete active and public struct data as array
//so it is reusable by many menu functions -> lower db access
//struct array caching check
//if(file_exists(PHPWCMS_TEMP.'temp_struct_array.php')) {
//} else {
$data[0] = array( "acat_id" => 0,
"acat_name" => $GLOBALS['indexpage']['acat_name'],
"acat_info" => $GLOBALS['indexpage']['acat_info'],
"acat_struct" => 0,
"acat_sort" => 0,
"acat_hidden" => intval($GLOBALS['indexpage']['acat_hidden']),
"acat_regonly" => intval($GLOBALS['indexpage']['acat_regonly']),
"acat_ssl" => intval($GLOBALS['indexpage']['acat_ssl']),
"acat_template" => intval($GLOBALS['indexpage']['acat_template']),
"acat_alias" => $GLOBALS['indexpage']['acat_alias'],
"acat_topcount" => intval($GLOBALS['indexpage']['acat_topcount']),
"acat_redirect" => $GLOBALS['indexpage']['acat_redirect'],
"acat_order" => intval($GLOBALS['indexpage']['acat_order']),
"acat_timeout" => $GLOBALS['indexpage']['acat_timeout'],
"acat_nosearch" => $GLOBALS['indexpage']['acat_nosearch'],
"acat_nositemap"=> $GLOBALS['indexpage']['acat_nositemap'],
"acat_permit" => !empty($GLOBALS['indexpage']['acat_permit']) && is_array($GLOBALS['indexpage']['acat_permit']) ? $GLOBALS['indexpage']['acat_permit'] : array()
);
$sql = "SELECT * FROM ".DB_PREPEND."phpwcms_articlecat WHERE ";
// VISIBLE_MODE: 0 = frontend (all) mode, 1 = article user mode, 2 = admin user mode
if(VISIBLE_MODE != 2) {
// for 0 AND 1
$sql .= "acat_aktiv=1 AND acat_public=1 AND ";
}
$sql .= "acat_trash=0 ORDER BY acat_struct, acat_sort;";
if($result = mysql_query($sql, $dbcon)) {
while($row = mysql_fetch_assoc($result)) {
//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
mysql_free_result($result);
}
//}
return (is_array($data) && count($data)) ? $data : array();
}
// -------------------------------------------------------------
Cheers,

PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
The above blue arrow points to something that ~looks~ out of place. Is that the correct location ? (I haven't looked into mod).StudioZ wrote:explode(',', $row["acat_permit"]) : array()
-------------------------------------------------------> );
}
//End PWmod
mysql_free_result($result);
}
//}
return (is_array($data) && count($data)) ? $data : array();
}
// -------------------------------------------------------------[/code]
Cheers,
Thank you DeXXus
I ajusted the line you showed me but now I get this error:
Parse error: parse error, unexpected '}', expecting ')' in /home/user/public_html/site/include/inc_front/front.func.inc.php on line 897
I'll try to find the original thread about this hack
Will let you know if I find the fix...
Cheers,

I ajusted the line you showed me but now I get this error:
Parse error: parse error, unexpected '}', expecting ')' in /home/user/public_html/site/include/inc_front/front.func.inc.php on line 897
I'll try to find the original thread about this hack
Will let you know if I find the fix...

Cheers,

PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
Ok found Markoehl's original thread's post:
http://www.phpwcms.de/forum/viewtopic.php?p=56902#56902
Would someone kindly post here a link to download a working edited file:
include/inc_front/front.func.inc.php
Cheers,

http://www.phpwcms.de/forum/viewtopic.php?p=56902#56902
Would someone kindly post here a link to download a working edited file:
include/inc_front/front.func.inc.php

Cheers,

PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
file
2008
Re: file
Hey Phalancs
With your file : It works perfect now.
All my gratitude to you Phalancs and Markoehl
for your great efforts and synergy on these great improvements.
Not to forget...
Thanks to Oliver for making this baby so flexible
and expendable
Keep Up The Great Work Guys !!!
Cheers,


With your file : It works perfect now.

All my gratitude to you Phalancs and Markoehl
for your great efforts and synergy on these great improvements.
phalancs wrote:Hey Studio!
I give you mine:
http://www.enym.com/front.func.inc.rar
hope it works for you then!
Not to forget...
Thanks to Oliver for making this baby so flexible
and expendable

Keep Up The Great Work Guys !!!
Cheers,

PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
Wenn der CP nicht in der Liste erscheint, dann stimmt hier etwas nicht:
Datei:
include/inc_lib/article.contenttype.inc.php
Eine Zeile hinzufügen: (install.txt):
Diese Zeile muss da irgendwo auftauchen, sonst wird auch nix angezeigt.
Bei der vorletzten Zeile ggf. am ende noch ein Komma hinzufügen.
Datei:
include/inc_lib/article.contenttype.inc.php
Eine Zeile hinzufügen: (install.txt):
Code: Select all
203 => $BL['be_ctype_login'],
Bei der vorletzten Zeile ggf. am ende noch ein Komma hinzufügen.
2008