Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
rridderhof wrote: If I browse through the user profiles, these defined fields are shown and filled with the result of the query, however EVERY profile gives the same results as the first profile retreived despite the fact the query uses an ID to get different items per user.
the query :
SELECT e.tname_2
FROM #__event_table_edit_1 e, #__comprofiler c
WHERE e.tname_0=c.cb_instrumentid
Is this a bug or am I missing something?
learnthrusong wrote: Hi there,
Firstly - awesome plugin. This is exactly what I needed.
I am using the plugin to display information such as organisation name, area, and project for my users from a custom database table based on numeric values stored in the users CB Fields.
I therefore require the use of cb field substitutions in the WHERE clause to achieve this however, I am unable to do this. The field simply doesn't appear if I use [cb_fieldname] format for the substitution.
To check that the plugin is working, I input the static ID instead, which returns the desired result so I know that this is a substitution issue and not that the plugin just doesn't work period.
The query I am trying to run is;
Code:SELECT name FROM lts_schools WHERE id = [cb_testpapram]
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
softforge wrote:
rridderhof wrote:
A quick solution I can think of is add a join to the comprofiler table, something like this:
Code:SELECT name FROM lts_schools s, jos_comprofiler c WHERE s.id = c.cb_testpapram AND c.id = {USERID}
Good luck!
Is there anything else you might suggest as to the reason that this isn't working?
I'm going to have a lot of these fields and would prefer not to have to add this join everytime. Could you adapt the plugin for a small fee?
Many thanks,
Gez
Please Log in or Create an account to join the conversation.