Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
[CODE] Sidebar Menu
Topic Started: Apr 22 2005, 02:40 PM (20,598 Views)
Scarlet
Member Avatar
The World on a Silver Platter
 *   *  
I've had a few requests for this, so I thought it was time to finally post it up here.

Code Name: Sidebar Menu

Description: It displays a simple sidebar to left of your main index. It's quite simple, though it may slow down your board depending on much information you want displayed. I'll give you a basic coding snippet, though obviously you can edit it to include a lot more.

Preview of it in Use: (It's a very old board I used to run, so it's quite dead. But I just editted the sidebar to give you an idea of what sort of layout it'll have. You can go to websites that offer shoutbox/poll codes, and then just stick them within this. It may take a while to load.) Preview

Where it goes: Admin CP > Skinning & Styles > Board Wrappers > Header & Body. You place it between your <% Navigation %> tag and your <% Board %> tag.


What I've done here is create different sections. For example, all the Information threads and forums that you want linked will go together in one section. Anything extra you may want link can be categorized in another section.

(Note: Anywhere that says 'board's main title' in red, make sure you don't include the extra /index.php? at the end of the link)

Everything in Red can be editted.
Quote:
 


<table width="100%" class='0' cellspacing="5" cellpadding="-1">
<tr>
<td width="150" class='0' valign="top">
   <center>
    <div class='tableborder'>
<div class='maintitle'><img src='http://67.18.37.14/style_images/1/nav_m.gif' border='0' alt='' width='8' height='8'>Section Title</div>
<div class='tablepad'>
  <span class='desc'><center>Welcome phrase </center></span>

<a href='link to forum/thread' style='text-decoration:underline-overline'>Name of link</a><br />

<a href='link to forum/thread' style='text-decoration:underline-overline'>Name of link</a><br />

<a href='link to forum/thread' style='text-decoration:underline-overline'>Name of link</a><br />

<a href='link to forum/thread' style='text-decoration:underline-overline'>Name of link</a><br />

<a href='link to forum/thread' style='text-decoration:underline-overline'>Name of link</a><br />
</div>
<br />


<div class='tableborder'>
<div class='maintitle'><img src='http://67.18.37.14/style_images/1/nav_m.gif' border='0' alt='' width='8' height='8'> 

<a href='board's main link/index.php?&act=Msg'>Personal Messages</a></div>

<div class='tablepad'><span class='desc'>Click <a href='board's main link/index.php?act=Msg'>here</a> to read your personal messages.<p>
Click <a href=board's main link/index.php?act=Msg&CODE=04'>here</a> to compose a new message.</span></div>
</div>
    <br />


<div class='tableborder'>
<div class='maintitle'><img src='http://67.18.37.14/style_images/1/nav_m.gif' border='0' alt='' width='8' height='8'>Member/Topic Info</div>
<div class='tablepad'>

<a href='board's main link/index.php?act=Search&amp;CODE=getactive' style='text-decoration:none'>Today's Active Topics</a><br />

<a href='board's main link/index.php?act=Stats' style='text-decoration:none'>Today's Top 10 Posters</a><br />

<a href='board's main link/index.php?act=Members&max_results=10&sort_key=posts&sort_order=desc' style='text-decoration:none'>Overall Top 10 Posters</a><br />

<a href='board's main link/index.php?act=Stats&amp;CODE=leaders' style='text-decoration:none'>Contact Staff</a>
<br />
</div>
</div>
    <br />


<center>
    <br />
<div class='tableborder'>
<div class='maintitle'><img src='http://67.18.37.14/style_images/1/nav_m.gif' border='0' alt='' width='8' height='8'> Affiliates</div>

<center>
<div class='desc' style='padding:3px'>
<a href='affiliate link><img src='affiliate image'></a>
</div>

<div class='desc' style='padding:3px'>
<a href='affiliate link><img src='affiliate image'></a>
</div> 

<div class='desc' style='padding:3px'>
<a href='affiliate link><img src='affiliate image'></a>
</div> 

<div class='desc' style='padding:3px'>
<a href='affiliate link><img src='affiliate image'></a>
</div>

<div class='desc' style='padding:3px'>
<a href='affiliate link><img src='affiliate image'></a>
</div>

<div class='desc' style='padding:3px'>
<a href='affiliate link><img src='affiliate image'></a>
</div> 

<div class='desc' style='padding:3px'>
<a href='affiliate link><img src='affiliate image'></a>
</div>


<br />
</div>
</div>
<br />


<img src='http://67.18.37.15/style_images/1/spacer.gif' alt='' width='140' height='1' />
</td>
<!--SPACER-->
<td width="5" class='0'>&nbsp;</td>
<td width="90%" class='0' valign="top">



Remember, you can always add polls, shoutboxes, and images to this code. Just place them anywhere in the code you wish.


Copyright: place this in your Admin CP > Skinning & Styles > Board Wrappers > Footer

Quote:
 
<a href="http://support.invisionfree.com/index.php?showtopic=133904">Sidebar Menu</a> by <a href="http://s6.invisionfree.com/magicsfinest">Scarlet</a>





This is my first time posting up a code on here. If there are any problems with this, please point them out so I can try to fix it. Please excuse me if I have missed something. I'm new at this.
Offline Profile Quote Post Goto Top
 
mattyoak
Member
 *  
its ok but where is it on the preview?
Offline Profile Quote Post Goto Top
 
Scarlet
Member Avatar
The World on a Silver Platter
 *   *  
Editted: Okay, the preview I have for it now should give you an idea of how everything will look once it's all laid out.
Offline Profile Quote Post Goto Top
 
whatsreality
Member Avatar
Freddie...you shall not be forgotten...
 *   *  
holy crap, this has to be one of the most useful codes at IF! very cool!
Offline Profile Quote Post Goto Top
 
Scarlet
Member Avatar
The World on a Silver Platter
 *   *  
lol, I'm thankful someone likes it. I wasn't sure if I did everything right. Just remember to put in the copyright, otherwise it could get ugly.
Offline Profile Quote Post Goto Top
 
KingKel
IF's Official Reader-Not-Poster
 *   *  
Thats pretty nifty but I am too lazy to put it together.
Offline Profile Quote Post Goto Top
 
Scarlet
Member Avatar
The World on a Silver Platter
 *   *  
Lazy? I made it simple... *shrugs*
Offline Profile Quote Post Goto Top
 
Gogf
Member Avatar
Indescribable
 *   *   *   *   *   *  
Er... You don't seem to close your tags. Not only do you have a number of <center> tags open, but you don't even close the table (I'm sure there are others, but I don't have time to look for them now).
Offline Profile Quote Post Goto Top
 
Wowowee
Member Avatar
Member
 *   *  
Cool... Nice!
I've been looking for this code all day!
Offline Profile Quote Post Goto Top
 
Gust
Member Avatar
Supreme ruler of madness
 *   *  
question i notice you got a shoutbox on the side meu genious really but does this slow the site down (it refreshes along with site normally when shoutbox placed on board) or does it maintain speed since it's in it's only little side area thingy?
Offline Profile Quote Post Goto Top
 
Scarlet
Member Avatar
The World on a Silver Platter
 *   *  
I've taken off the shoutbox on my own boards, just to see if the speed changes, and to tell you the truth, it does. How fast or slow the board goes (when you include this sidebar) depends on how much you have going on in the menu. I think it also depends on where you get your shoutbox from. The one I have now slows the page down a lot more than my old shoutbox, in which the coding itself wasn't as complex.

But, if you want a 100% accurate answer, you may want to ask one of the staff on here. As I said, I'm quite new to posting up codes on here, and this sidebar is the very first code I've ever done on my own.
Offline Profile Quote Post Goto Top
 
Scarlet
Member Avatar
The World on a Silver Platter
 *   *  
Gogf
April 25, 2005 05:51 AM
Er... You don't seem to close your tags. Not only do you have a number of <center> tags open, but you don't even close the table (I'm sure there are others, but I don't have time to look for them now).

Jeez, I did say this was my first time. You didn't have to be so rude.

Anyway, on my own board I took out the extra <center> tags, and closed the rest, but it screwed up the sidebar. If you use exactly as I have it here, your sidebar will look as it does in the preview (with your own affiliates and images, of course). If you want to take it and close the tags to make it look how you want, you're very free to.

Sorry again, guys, I'm new at this.
Offline Profile Quote Post Goto Top
 
Wowowee
Member Avatar
Member
 *   *  
When I put the link to this part
Quote:
 

<a href='link to forum/thread' style='text-decoration:underline-overline'>Name of link</a><br />

<a href='link to forum/thread' style='text-decoration:underline-overline'>Name of link</a><br />

<a href='link to forum/thread' style='text-decoration:underline-overline'>Name of link</a><br />

<a href='link to forum/thread' style='text-decoration:underline-overline'>Name of link</a><br />

<a href='link to forum/thread' style='text-decoration:underline-overline'>Name of link</a><br />
</div>


It has a ip address before the URL...

Example: http://123.0.0.1/s10.invisionfree.com/????/
Offline Profile Quote Post Goto Top
 
Das
Member Avatar
Smells of rich mahogany
 *   *   *   *   *   *   *  
Nice code
Offline Profile Quote Post Goto Top
 
Scarlet
Member Avatar
The World on a Silver Platter
 *   *  
Wowowee
April 26, 2005 08:19 PM
When I put the link to this part
Quote:
 

<a href='link to forum/thread' style='text-decoration:underline-overline'>Name of link</a><br />

<a href='link to forum/thread' style='text-decoration:underline-overline'>Name of link</a><br />

<a href='link to forum/thread' style='text-decoration:underline-overline'>Name of link</a><br />

<a href='link to forum/thread' style='text-decoration:underline-overline'>Name of link</a><br />

<a href='link to forum/thread' style='text-decoration:underline-overline'>Name of link</a><br />
</div>


It has a ip address before the URL...

Example: http://123.0.0.1/s10.invisionfree.com/????/

I don't know why that would be. If you just copy and paste the link of the destination page, then that shouldn't happen. It doesn't happen for me.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Code Snippets · Next Topic »
Add Reply