Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [SUGGESTION] For Image Custom Field in XThreads
MasterZuFu Offline
Member
***
Posts: 97
Joined: Dec 2010
Post: #1
[SUGGESTION] For Image Custom Field in XThreads
I've been messing around a lot lately in the option to add images to a custom thread field (which I must say is ingenious and I love it a lot Biggrin), but I I would like to know if there's any way in the next release you could add an option for the ability to upload images (Input field type: File, Images only) that you allow us to also embed a url there as well. This way, we have the option to upload the image, and when it displays on the forum, we have have it so that if you click on it it can go to a url. Right now all it does is download the picture. I'm ok with that and all, but realistically if someone wants to download a picture it's not hard to do, but I'd rather not have to make two thread fields so that a url can be associated to the image Tongue

Just a suggestion, thanks for the awesome plugin! Smile

04-23-2011 07:48 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: [SUGGESTION] For Image Custom Field in XThreads
Hmm, how is this any better than 2 threadfields though?

My Blog
04-25-2011 06:43 PM
Find all posts by this user Quote this message in a reply
MasterZuFu Offline
Member
***
Posts: 97
Joined: Dec 2010
Post: #3
RE: [SUGGESTION] For Image Custom Field in XThreads
I can make an image be a link too, instead of having only an image and only a text url. It looks neater, it's easier to manage, I don't have to create two threadfields, and I don't have to code two threadfields in the templates. It cuts work in half.

04-26-2011 05:59 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #4
RE: [SUGGESTION] For Image Custom Field in XThreads
Seems like an over-convoluted solution if you ask me though.
It's possible to put a threadfield into the display format of another (it's a "hack" where you need to set the display ordering differently).

Eg
Image: display order = 1, key = img, display format =

Code:
<img src="{VALUE}" alt="" />

URL: display order = 2, display format =

Code:
<a href="{VALUE}">{$GLOBALS['threadfields']['img']}</a>


Note that the display order determines the order in which XThreads evaluates the display formats, so you can only make references to items with a lower display order.


I never thought managing threadfields was particularly time consuming so I don't really see much time saving there.  Feel free to explain otherwise though.


My Blog
04-26-2011 08:44 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: