MyBB Community Forums

Full Version: How can i make {post['fidX']} a URL?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
(2011-11-16, 07:40 PM)pavemen Wrote: [ -> ]glad you got it working. However, I would suggest that you makethe second modification I mentioned if you have not already. that will at least deal with empty links.

I just tried, i think it will sit like this?

Does it not matter as such that:

if($data['uids'][$post['uid']] > 0)

has been removed?
no, you need to keep that part otherwise everyone will get the link, even if they dont have a garage

i have updated your latest attachment
Thank you.
no problem
Just for the record & if it helps anyone in the future, i further edited the kind work Pavemen did for me.

There are two conditions here, having an entry in the showcase, and having your FID5 filled in.

IF you have an entry & your FID filled in, you get FID with a url to your entry.

IF you have an entry & your FID not filled you, you have a number that links to your entry.

Now i added the following conditions:

IF you don't have an entry into the showcase but an entry into the FID, then you have your FID printed out with no link.

IF you don't have either, the field is ignored altogether.
Pages: 1 2 3