| Index
» Projekty
» phpMyEdit
» Fórum
» Search / filter one user at a time |
 |
legalplayer
Založený: 26.10.2006
Príspevky: 1
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
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
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
|
|
|
|