Print Page | Close Window

Adding a navigation button?

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=25470
Printed Date: 03 April 2026 at 8:24pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Adding a navigation button?
Posted By: mattysdad
Subject: Adding a navigation button?
Date 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.



Replies:
Posted By: Scotty32
Date 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 - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: mattysdad
Date Posted: 22 March 2008 at 11:51am
Thankyou Scotty!
 
That's great!Clap


Posted By: mattysdad
Date 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!



Posted By: Scotty32
Date 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 - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: 123Simples
Date 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


-------------
http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design


Posted By: Scotty32
Date 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 - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: 123Simples
Date 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


-------------
http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design


Posted By: Scotty32
Date Posted: 03 April 2008 at 8:43pm
Make sure that the above is all on one line and not 4 as it appears there.
(only reason i can see for the error)

Also i would use Notepad to enter the code.

As for the images, no you do not need to add ".gif" or ".png" to the end of the file name in that line, but you need to have an image for both extention for it to show.


-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: 123Simples
Date Posted: 04 April 2008 at 3:58pm
Originally posted by Scotty32 Scotty32 wrote:

Make sure that the above is all on one line and not 4 as it appears there.
(only reason i can see for the error)

Also i would use Notepad to enter the code.

As for the images, no you do not need to add ".gif" or ".png" to the end of the file name in that line, but you need to have an image for both extention for it to show.


Okay I have it working now because I didn't realise that it should ALL be in one line! They say you learn something new EVERY day Embarrassed
I have just one more question, even though I have tried finding the answer myself. When peeps click on the link I want it to open a new window. You mention the javascript and I've searched but not being sure, I wonder if you could just help me. I'll keep checking this afternoon because I'd like to suss it myself, but I'm not too proud to ask either

Thanks Scotty Thumbs%20Up


-------------
http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design


Posted By: Scotty32
Date Posted: 04 April 2008 at 4:11pm
You can have it open in a new window just by adding to the link like so:

<a href="chatroom.asp">chatroom</a>


Though make sure you add double quotes like the other variables in the link tag (eg target=""_blank"")



-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: 123Simples
Date Posted: 04 April 2008 at 4:21pm
SORTED Thumbs%20Up

-------------
http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net