Page 4 of 23

Posted: Thu 2. Mar 2006, 16:42
by phalancs
Die neuen Screenshots stammen schon aus der v2!

Posted: Fri 3. Mar 2006, 04:45
by phalancs
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

Posted: Fri 3. Mar 2006, 08:08
by rushclub
phalancs wrote:- custom redirect depending on the group of the user
yesyesyes ;)

rush

Posted: Fri 3. Mar 2006, 17:30
by Hero
ma ganz dumm gefragt: was heißt "early" march?? :oops:

Rock on!! :D

Posted: Fri 3. Mar 2006, 18:29
by pico
ma ganz dumm geantworted - wenn's fertisch iss ;)

FE login question

Posted: Fri 3. Mar 2006, 19:32
by wireless
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. :idea:

Posted: Fri 3. Mar 2006, 21:59
by phalancs
Yes, with an additonal minor codechange it is possible to have this functionality. This codechange is included in the readme.

Posted: Fri 3. Mar 2006, 23:06
by StudioZ
Hi and thanks for making this login possible 8)
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,

Posted: Sat 4. Mar 2006, 00:40
by DeXXus
StudioZ wrote:explode(',', $row["acat_permit"]) : array()

-------------------------------------------------------> );
}
//End PWmod
mysql_free_result($result);
}

//}
return (is_array($data) && count($data)) ? $data : array();
}

// -------------------------------------------------------------[/code]

Cheers,
The above blue arrow points to something that ~looks~ out of place. Is that the correct location ? (I haven't looked into mod).

Posted: Sat 4. Mar 2006, 02:50
by StudioZ
Thank you DeXXus 8)
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... :roll:

Cheers,

Posted: Sat 4. Mar 2006, 03:04
by StudioZ
Ok found Markoehl's original thread's post: 8)
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 :roll:

Cheers,

file

Posted: Sat 4. Mar 2006, 03:34
by phalancs
Hey Studio!

I give you mine:

http://www.enym.com/front.func.inc.rar

hope it works for you then! :)

Re: file

Posted: Sat 4. Mar 2006, 16:50
by StudioZ
Hey Phalancs :) 8)
With your file : It works perfect now.:wink:
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 8)

Keep Up The Great Work Guys !!!

Cheers,

Posted: Sun 5. Mar 2006, 18:10
by Mmmarkus
Habe 1.2.6 installiert.
Die Installation mehrmals geprüft - ich bekomme aber den CP nicht zur Auswahl angezeigt?

Posted: Mon 6. Mar 2006, 10:22
by phalancs
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):

Code: Select all

203 => $BL['be_ctype_login'],
Diese Zeile muss da irgendwo auftauchen, sonst wird auch nix angezeigt.
Bei der vorletzten Zeile ggf. am ende noch ein Komma hinzufügen.