Quantcast
Channel: Topic Tag: database | WordPress.org
Viewing all articles
Browse latest Browse all 11077

PrfctGdess on "[Plugin: Participants Database] Change Link in Template from ID to Private_ID"

$
0
0

I've created a copy of the list-detailed.php template that I'm modifying to better suit my needs. I want to change this section (line 165):

// add the record ID to the single record link
$single_record_uri = Participants_Db::add_uri_conjunction($single_record_link) . 'pdb=' . $this->record->record_id;							

/* print the opening tag of the single record link */
echo '<a class="single-record-link" href="' . $single_record_uri . '" >';

Instead of creating the link with the pdb=record_id, I want to use the pid=private_id.

Essentially, I'm trying to make it list my records with links on each record, like it does out of the box. BUT, I want the links to go to an EDITABLE form for the record instead of just a view.

Any help is appreciated (and if I'm totally off-base as to where I need to make this change, please let me know! I DO have a tendency to over-complicate things). TIA!!

-------------------

** What I'm trying to accomplish **
** this is extra info, maybe not needed but... **
What I'm setting up is a site where there will only be a handful of users (<10), but where each user needs access to modify multiple records. These are VERY non-technical users, so I don't want to give them administrator accounts on Wordpress to edit from the back-end.

I have it set up already where they log into their own area (i.e. they only see their own set of client data) and they can put in a new record. What I need is an easy way to edit existing records; a separate email with a private link for each entry is not feasible.

http://wordpress.org/extend/plugins/participants-database/


Viewing all articles
Browse latest Browse all 11077