Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Link field
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Link field

 Post Reply Post Reply
Author
suedechaser View Drop Down
Groupie
Groupie


Joined: 25 February 2006
Location: USA
Status: Offline
Points: 129
Post Options Post Options   Thanks (0) Thanks(0)   Quote suedechaser Quote  Post ReplyReply Direct Link To This Post Topic: Link field
    Posted: 18 March 2007 at 11:03pm
Hi all,

I asked this question in Mr Mellie's Latest Forum Posts topic, but, as an afterthought, it's probably best to ask in a separate topic ( sorry Mr Mellie !).

Can someone please help with instructions on how to put an extra field in new_topic_form.asp so users can type in an image link to associate an external image with a post.

The intention is to add this field into Mr Mellie's Latest Forum Posts mod to show a thumbnail next to any latest post link.

Any help would be greatly appreciated.

regards

suede
Back to Top
suedechaser View Drop Down
Groupie
Groupie


Joined: 25 February 2006
Location: USA
Status: Offline
Points: 129
Post Options Post Options   Thanks (0) Thanks(0)   Quote suedechaser Quote  Post ReplyReply Direct Link To This Post Posted: 05 April 2007 at 11:40pm
Hi all,

This mod is coming along quite nicely.

I can now include the url of an image with a post and that image will appear as an automatically resized thumbnail beside the topics in latest forum posts.

Message_form_inc.asp is the actual page that needs the box. I have been able to save the url with a topic by typing it into the box, but cannot populate it with the same saved url when opening the topic for editing. I have had to do a Response.Write() above the box to view the saved url!

Here is the code in message_form_inc.asp I am using:

<snip>
'If this is a new post or editing the first thread then display the subject text box
If strMode = "new" OR strMode="editTopic" OR strMode = "editPoll" OR strMode = "PM" OR strMode = "poll" Then
%>
<tr>
'*********begin mod*****************
     'this writes the saved image link to the screen
     <% Response.Write(strimagelink)%>
     'this is the input box
     <% Response.Write(" Image Link:")%><input type="text" name="imagelink" id="imagelink" size="50" maxlength="50" />
'***************end mod*****************
   <td align="right"><% = strTxtSubjectFolder %>:</td>
   <td align="left" width="70%">
    <input type="text" name="subject" id="subject" size="30" maxlength="50"<% If strMode="editTopic" OR strMode = "editPoll" OR strMode="PM" Then Response.Write(" value=""" & strTopicSubject & """") %> /><%

<snip>

How can I get the strimagelink to show up in the text box?


Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.