Webmastersite.net
Register Log In

Picture not displaying
Not displaying on link detail page

Comments on Picture not displaying

mel
Member

Usergroup: Customer
Joined: Dec 16, 2006

Total Topics: 9
Total Comments: 29
mel
Posted Dec 16, 2006 - 11:28 AM:

Hi everyone,

Have a problem displaying picture on the link details page

The picture uploads ok

When looking at the link detail page in question I get this but no actual
picture

testpicture30040001d4.wsn[,]testpicture300400.jpg[,]0[,]300[,]400

the coding I am using to get this is below, which I have just dropped in under link descriptiopn - see code below

<div class="details"><span class="labels">Description:</span>
{LINKDESCRIPTION}</div>
{LINKPICTURE1ATTACH}

What I eventually want to do is to get x number of pictures to show on
the link details page

Can anybody tell me what I am doing wrong

Thanks Mel
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 18, 2006 - 7:24 PM:

Read the manual entry: scripts.webmastersite.net/w...Attachment_Fields-161.html

What I eventually want to do is to get x number of pictures to show on the link details page

Then you'd save yourself a ton of time and make it more powerful by using the default file upload options instead of adding custom fields. Is there some other reason you have for adding fields?

scripts.webmastersite.net/w..._File_Attachements-79.html
mel
Member

Usergroup: Customer
Joined: Dec 16, 2006

Total Topics: 9
Total Comments: 29
mel
Posted Dec 19, 2006 - 7:35 AM:

Paul,

I can assure you that I have read through the manual, but of course it is possible that I did not understand it, which is why I have posted in the forum
that is what the forum is for - too help each other out if we can

In fact I have even tried getting it to work as you can see by the original posting

Having read this bit in the manual - see below, I thought I needed to create custom fields, and would need to create custom fields for each picture to be uploaded thus giving me 5 browse buttons

"By using custom file fields, you can have you visitors upload several files at once for a single object. For links and comments this isn't so important since you can already let people upload any number of files, but you can also add file uploads to categories and members using custom file fields.

In order to get started on creating a custom file field, visit customizations -> 'add fields' in your admin panel. Any field which you give a name that includes 'attach' in it will automatically become a custom file field, but if you do not wish to worry about this just select 'file' from the type options and it will automatically append 'attach' to the name you give it. Once you click 'add field' you will be told what template changes you need to make to your submission and editing tempalates, or if templates are chmoded the changes will be made for you. "

All I want to do is let a poster upload 5 pictures which will be displayed on the their link detail page

I would understand your comment if I had not bothered to try anything but the posting and my attempts to get it to work prove that, and I also continue to do so with a customization you are working on for me - I spent 2 hours the other day trawling through a forum trying to find ideas why we are having a problem on the mod

I have no doubt that this script is both good but sometimes instruction manuals are not always written with the end user in mind but written more on a technical level which would be fine if we were all experts on php the use of templates and the the like but some of us are not

I have expertise in other things in life like getting high generic rankings in google and managing adwords accounts so that clients do not loose their shirt when their monthly bill comes in but that does not mean that they would understand my technobable, not because they are stupid but because they are not an expert in that field

Melsmiling face
mel
Member

Usergroup: Customer
Joined: Dec 16, 2006

Total Topics: 9
Total Comments: 29
mel
Posted Dec 19, 2006 - 6:26 PM:

Ok,

This is on detail.tpl

I have managed to get picture showing as thumbnail which appears to
be downloadable and will show the full size when clicked on

But what I want to do is get the pictures to show full size without
having to click on them

I have tried every way suggested in the manual but cannot get the pictures
to show full size on the detail page - below is the present coding that I am
using - which is the standardd default set up in the template

Having messed around with this now for several hours, it makes me think that there were several reasons why I thought the custom field way was the way to go for me

1. I want to be able to have 5 browse buttons on the submit form - rather than just one attach button with an explanation that they can attach 5 items using the same button

2. I want to be able to choose a specific image lets say image 1 to also
be a thumbnail against the listing in the category page

-----------

<IF {LINKFILEFIELD}>
<div class="details"><span class="labels">Attached Files:</span><br>
<!-- BEGIN LINK ATTACHMENTS -->
<a href="download.php?id={LINKID}&attachid={ATTACHID}">{ATTACHFILETITLE}</a> ({ATTACHKB} KB, {ATTACHDOWNLOADS} downloads)<br>
<IF {ATTACHISIMAGE}><img src="{ATTACHTHUMBURL}" alt="image"></a><br></IF>
<!-- END LINK ATTACHMENTS -->
</div>
</IF>

--------------

Mel
peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
Posted Dec 19, 2006 - 7:46 PM:

Hello Mel,
You can check a reply for simmilar inquiry at
www.webmastersite.net/forum...orums/comments.php?id=5981
mel
Member

Usergroup: Customer
Joined: Dec 16, 2006

Total Topics: 9
Total Comments: 29
mel
Posted Dec 20, 2006 - 3:13 AM:

peumus wrote:
Hello Mel,
You can check a reply for simmilar inquiry at
www.webmastersite.net/forum...orums/comments.php?id=5981


Hello peumus,

Thanks for the reply, had a quick look at the thread this morning, will
look in more detail over the weekend and let you know how I get on, but it looks promising

Off on a 500 mile round trip business meeting this morning, so will not get a chance berfore the weekend :-( maybe I should buy my good clients a webcam for xmas :-)

Thanks Mel
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 20, 2006 - 7:26 AM:

From the manual:
To allow your visitors to download the file:

For a category field, link to download.php?catid={CATID}&field=customattach
For a member field, link to download.php?memid={MEMBERID}&field=customattach

Replace customattach with the name of your field in all cases, of course. You can resize image attachments by tacking on &width=800&height=600 (this would resize to 800x600).


It looks like I cut off the line on using it for links because I didn't imagine anyone would want to use the more antiquated custom attachments instead of the generalized attachments. I'll go edit it back in for links and comments. What you want to use is
<img src="download.php?id={LINKID}&field=picture1attach">

Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.