gordy
Well-known member
Would this be better accomplished with using pages ?
How do I send the parameters via php from one page to the target page?
Workflow meta
Visitor clicks on a members name from a page of members and then is presented a page of the threads that member started from a specific forum.
Workflow detail
User clicks on page/namelist.php which generates a list usernames that have the 'blah' select from the custom field dropdown, using query:
Generate user list based on value from Custom Field blah
Renders this: /page/member-name-list/
<a href="dom.com/members/user.1/">John</a>
<a href="dom.com/members/user.34/">Bob</a>
<a href="dom.com/members/user.55/">Sally</a>
Then visitor clicks on one name listedt above and there's a second page that uses the user_id value to generate the second query:
(Enumerate thread list based off user_id from a specific node_id)
Renders this: /page/members-posts-from-specific-category/
<a href="dom.com/thread/post-number.2001/">Post1</a>
<a href="dom.com/thread/another-post.3320/">Post2</a>
<a href="dom.com/thread/and-another.5123/">Post3</a>
I'm sure there is a much simpler way of doing it but I'm blinded by code getting this far. :/
The only custom attribute in all the above is the defined unique custom field to get a means to sort some members from the regular populace.
Thank you, any help would be most welcome and appreciated.
How do I send the parameters via php from one page to the target page?
Workflow meta
Visitor clicks on a members name from a page of members and then is presented a page of the threads that member started from a specific forum.
Workflow detail
User clicks on page/namelist.php which generates a list usernames that have the 'blah' select from the custom field dropdown, using query:
Generate user list based on value from Custom Field blah
Code:
SELECT m.user_id, username, field_value
FROM xf_user m
LEFT JOIN xf_user_field_value p on p.user_id = m.user_id
WHERE field_value = 'blah'
ORDER BY username ASC;
Renders this: /page/member-name-list/
<a href="dom.com/members/user.1/">John</a>
<a href="dom.com/members/user.34/">Bob</a>
<a href="dom.com/members/user.55/">Sally</a>
Then visitor clicks on one name listedt above and there's a second page that uses the user_id value to generate the second query:
(Enumerate thread list based off user_id from a specific node_id)
Code:
SELECT t.thread_id, t.node_id, t.title, t.user_id, t.username from xf_thread AS t
WHERE t.user_id = 7 and node_id = 77
GROUP BY t.thread_id
ORDER BY last_post_date DESC;
Renders this: /page/members-posts-from-specific-category/
<a href="dom.com/thread/post-number.2001/">Post1</a>
<a href="dom.com/thread/another-post.3320/">Post2</a>
<a href="dom.com/thread/and-another.5123/">Post3</a>
I'm sure there is a much simpler way of doing it but I'm blinded by code getting this far. :/
The only custom attribute in all the above is the defined unique custom field to get a means to sort some members from the regular populace.
Thank you, any help would be most welcome and appreciated.