Userpanel CP

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
phalancs
Posts: 793
Joined: Thu 19. Feb 2004, 05:09
Location: Germany

Post by phalancs »

Die neuen Screenshots stammen schon aus der v2!
2008
phalancs
Posts: 793
Joined: Thu 19. Feb 2004, 05:09
Location: Germany

Post 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
2008
rushclub
Posts: 915
Joined: Tue 17. Feb 2004, 18:52

Post by rushclub »

phalancs wrote:- custom redirect depending on the group of the user
yesyesyes ;)

rush
3 (!) Jahre warten reichen mir. Ich bin erst mal weg.
Hero
Posts: 87
Joined: Thu 16. Dec 2004, 16:14
Location: Düsseldorf
Contact:

Post by Hero »

ma ganz dumm gefragt: was heißt "early" march?? :oops:

Rock on!! :D
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

ma ganz dumm geantworted - wenn's fertisch iss ;)
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
User avatar
wireless
Posts: 138
Joined: Sun 24. Oct 2004, 04:35
Location: Houston, Texas

FE login question

Post 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:
phalancs
Posts: 793
Joined: Thu 19. Feb 2004, 05:09
Location: Germany

Post by phalancs »

Yes, with an additonal minor codechange it is possible to have this functionality. This codechange is included in the readme.
2008
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post 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,
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post 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).
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post 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,
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post 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,
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
phalancs
Posts: 793
Joined: Thu 19. Feb 2004, 05:09
Location: Germany

file

Post by phalancs »

Hey Studio!

I give you mine:

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

hope it works for you then! :)
2008
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Re: file

Post 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,
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
Mmmarkus
Posts: 25
Joined: Sun 8. Jan 2006, 17:59

Post by Mmmarkus »

Habe 1.2.6 installiert.
Die Installation mehrmals geprüft - ich bekomme aber den CP nicht zur Auswahl angezeigt?
phalancs
Posts: 793
Joined: Thu 19. Feb 2004, 05:09
Location: Germany

Post 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.
2008
Post Reply