Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Adding a navigation button?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Adding a navigation button?

 Post Reply Post Reply Page  12>
Author
mattysdad View Drop Down
Groupie
Groupie


Joined: 24 February 2008
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote mattysdad Quote  Post ReplyReply Direct Link To This Post Topic: Adding a navigation button?
    Posted: 22 March 2008 at 7:57am
Hi!
 
Would it be possible for one of you wise and noble people to tell me how to add a navigation button to the main page of my forum?
 
Specifically, I want to add a button for aspchatnow to the upper left of my main forum page,
 
to the right of the  'forum home' button
 
At the moment I have to link to the chatroom from a sub forum, which doesnt look too slick!
 
Thanks guys!
 
Andy.
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 22 March 2008 at 10:42am
near line 347 of the 'default.asp' page you will see the following:

'Active Topics Links

strStatusBarTools = strStatusBarTools & "&nbsp;&nbsp;<img src=""" & strImagePath & "active_topics." & strForumImageType & """ alt=""" & strTxtActiveTopics & """ title=""" & strTxtActiveTopics & """ style=""vertical-align: text-bottom"" /> <a href=""active_topics.asp" & strQsSID1 & """>" & strTxtActiveTopics & "</a> "
strStatusBarTools = strStatusBarTools & "&nbsp;&nbsp;<img src=""" & strImagePath & "unanswered_topics." & strForumImageType & """ alt=""" & strTxtUnAnsweredTopics & """ title=""" & strTxtUnAnsweredTopics & """ style=""vertical-align: text-bottom"" /> <a href=""active_topics.asp?UA=Y" & strQsSID2 & """>" & strTxtUnAnsweredTopics & "</a> "


just add another line like so (just edit the part in red)

'Active Topics Links

strStatusBarTools = strStatusBarTools & "&nbsp;&nbsp;<img src=""" & strImagePath & "active_topics." & strForumImageType & """ alt=""" & strTxtActiveTopics & """ title=""" & strTxtActiveTopics & """ style=""vertical-align: text-bottom"" /> <a href=""active_topics.asp" & strQsSID1 & """>" & strTxtActiveTopics & "</a> "
strStatusBarTools = strStatusBarTools & "&nbsp;&nbsp;<img src=""" & strImagePath & "unanswered_topics." & strForumImageType & """ alt=""" & strTxtUnAnsweredTopics & """ title=""" & strTxtUnAnsweredTopics & """ style=""vertical-align: text-bottom"" /> <a href=""active_topics.asp?UA=Y" & strQsSID2 & """>" & strTxtUnAnsweredTopics & "</a> "
strStatusBarTools = strStatusBarTools & "&nbsp;&nbsp;<img src=""" & strImagePath & "chatroom." & strForumImageType & """ alt=""Chat Room"" title=""Chat Room"" style=""vertical-align: text-bottom"" /> <a href=""chatroom.asp"">Chat Room</a> "


The parts in green are the parts you will need to edit.

the first one is the name of the icon image that will be used next to the link,

the 2nd and 3rd are just the name, can leave this if you want,

4th is the link to the forum, i suspect you will want to change this to a javascript popup,

and 5th is the text that will display for the link, as with 2nd and 3rd, can leave this.
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
mattysdad View Drop Down
Groupie
Groupie


Joined: 24 February 2008
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote mattysdad Quote  Post ReplyReply Direct Link To This Post Posted: 22 March 2008 at 11:51am
Thankyou Scotty!
 
That's great!Clap
Back to Top
mattysdad View Drop Down
Groupie
Groupie


Joined: 24 February 2008
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote mattysdad Quote  Post ReplyReply Direct Link To This Post Posted: 22 March 2008 at 12:23pm

It would not work at first, but when I added an image for it in to the forum images folder it worked brilliantly!

 

My thanks again!

Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 22 March 2008 at 2:05pm
You will need to make sure that your chatroom icon is a .png and .gif
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post Posted: 02 April 2008 at 6:45pm
Hi Scotty
Done exactly as you say above and it did not work Unhappy
I made sure images were in forum_images
I copied and amended the asp bit

No luck
But chat room is working, but I just can't add the link the way this other person wanted
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 02 April 2008 at 7:35pm
How did it not work, could you explain a bit more how it went wrong?

Did the link not display at all?
Did you get any errors? if so could you paste them here?
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post Posted: 03 April 2008 at 3:36pm
strStatusBarTools = strStatusBarTools &
"&nbsp;&nbsp;<img src=""" & strImagePath &
"chatroom." & strForumImageType & """ alt=""Chat Room"" title=""Chat Room"" style=""vertical-align: text-bottom"" /> <a
href=""chatroom.asp"">Chat Room</a> "

So I copied the above and using Araneae Text Editor I pasted it just below the line you mentioned. The green chatroom I assume refers to the image, which in my case I named chat, and I just changed that to chat.

I assume you don't need .gif or .png behind the full stop as it will select the image file?
The href in my case chatroom.asp is in a separate folder outside the forum folder, so that was
/ChatRoom/chatroom.asp in my case

I uploaded two image files and default.asp (ammended of course) and then I got a VB error, unexpected end of statement! No link, no forum page or anything. I had backed up the default.asp file so uploading the backup wasn't an issue, but I think I did do it all the right way
Back to Top
 Post Reply Post Reply Page  12>

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.