07-24-2013, 07:35 PM
07-26-2013, 01:41 AM
Bump. Please help.
07-26-2013, 05:23 AM
For example, I'm using this code.
PHP Code:
|
But in this template lctg_thuquan_phs_thread, I can't use the threadfield variable ($GLOBAL....) What should I do ???
07-28-2013, 10:41 PM
You need to pull the fields data in your query.
I'm assuming you actually understand the code you posted, right?
I'm assuming you actually understand the code you posted, right?
07-29-2013, 12:17 AM
(07-28-2013 10:41 PM)ZiNgA BuRgA Wrote: [ -> ]You need to pull the fields data in your query.
I'm assuming you actually understand the code you posted, right?
Yes, I do. That's my code.
Well, I need to get the url of upload type field (it's name cover).
As normal, I just need to use this $GLOBALS['threadfields']['cover']['url'] then it will give me the url of the image. But when I check in the database (threadfields_data). The value of 'cover' field is just 0 and 1
What should I do to get that url ?
07-30-2013, 04:11 AM
Maybe you need to look at the xtattachments table.
07-30-2013, 03:29 PM
(07-30-2013 04:11 AM)RateU Wrote: [ -> ]Maybe you need to look at the xtattachments table.
How to build the Url like XThreads?
Eg:
Code:
|
07-31-2013, 09:45 AM
Use the function xthreads_get_xta_url()
Pass in the row from the xtattachments table as an array as the first argument.
If you wish to see how XThreads parses all its fields look at the xthreads_sanitize_disp and xthreads_sanitize_disp_set_xta_fields functions.
Pass in the row from the xtattachments table as an array as the first argument.
If you wish to see how XThreads parses all its fields look at the xthreads_sanitize_disp and xthreads_sanitize_disp_set_xta_fields functions.
07-31-2013, 05:54 PM
Thanks you.