Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 30. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Search / filter one user at a time

phpMyEdit Configuration     Search / filter one user at a time
Odoslať novú tému   Odpovedať na tému    
 
legalplayer     Založený: 26.10.2006   Príspevky: 1  
Príspevok Zaslal: 2006-10-27 22:25
Návrat hore  Odpovedať s citátom     

I want to use pme's search/filter functionality as a simple way for users to access their data, and only their data, from my website.

When a user enters the page, all I want them to see is a search box based on one field only: username. When the user puts his username in the box and clicks submit (or query, etc.) all records with all fields should be displayed for that username only (no drop down box allowing them to see other records, etc).

I have forced the search feature ON by adding this:
Kód:
$opts['cgi']['append']['PME_sys_fl'] = 1;

(see, http://opensource.platon.sk/forum/projects/viewtopic.php?t=630 Simple Search).

I am able to suppress the display of any records on the first page by adding this:
Kód:
$opts['filters'] = '0 = 1';

However, the query does not return any records if I use that.
(see, http://opensource.platon.sk/forum/projects/viewtopic.php?t=564 Display only search field on page).

I read this thread and it sounds like it would work for me, but I have no clue how to set up the log in etc. (see, http://opensource.platon.sk/forum/projects/viewtopic.php?t=687 Filter By Login?).

Any suggestions or ideas will be appreciated.

 
michal     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2006-11-02 18:09
Návrat hore  Odpovedať s citátom     

the trick was to use your login scheme (if your users have a valid cookie/whatever authentifying them. meaning they entered a valid username/password elsewhere.

in your case, do the users have such authenification ?

if yes, where is the username stored ? (cookie, session ?)
if no, you have to create one.

 
jeffs     Založený: 17.05.2007   Príspevky: 3  
Príspevok Zaslal: 2007-05-18 18:18
Návrat hore  Odpovedať s citátom     

good idea linux has a variable called LOGNAME, how would I grap that?

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov