Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Updating avatar path SQL command?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Updating avatar path SQL command?

 Post Reply Post Reply
Author
PrivateEye View Drop Down
Groupie
Groupie
Avatar

Joined: 21 March 2003
Location: United Kingdom
Status: Offline
Points: 168
Post Options Post Options   Thanks (0) Thanks(0)   Quote PrivateEye Quote  Post ReplyReply Direct Link To This Post Topic: Updating avatar path SQL command?
    Posted: 10 December 2004 at 5:55pm
In "forum/includes/select_avatar.asp" file, path of avatars is "forum/inclides/avatar_name.jpg" it works fine when users are registering or editing their profiles but on "forum/forum_posts.asp" page the avatar is not displayed under the username because the path for the avatar, on this page, becomes "forum/forum/includes/select_avatar.asp" and the database entry for all my members is "forum/avatars/avatar_name.jpg" in the "Avatar" field of tblAuthor table. How can I issue an SQL-Update command so that all the enteries with "forum/avatars/avatar_name.jpg" in "Avatar" field are changed with "avatars/avatar_name.jpg". Please help.
The Judgement Day
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 10 December 2004 at 11:11pm
why not just change the forum_post.asp to remoe the first instasnce of "forum/"?
Back to Top
PrivateEye View Drop Down
Groupie
Groupie
Avatar

Joined: 21 March 2003
Location: United Kingdom
Status: Offline
Points: 168
Post Options Post Options   Thanks (0) Thanks(0)   Quote PrivateEye Quote  Post ReplyReply Direct Link To This Post Posted: 12 December 2004 at 1:35pm
wel I think it cannot be implemented because the avatar is displayed with this variable strAuthorAvatar and it reads value from the database which is "forum/forum/includes/select_avatar.asp" any other solution ??

The Judgement Day
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 12 December 2004 at 4:14pm
the following code should take the first "forum/"


strAuthorAvatar = Trim(Mid(strAuthorAvatar,7,255))


if you place that on the forum_posts just under where the veriable is set from the database for each post it should be ok.
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.