| 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: |
| IPB Shoutbox 2.5; By Epsilekt and Mwr247 | |
|---|---|
| Topic Started: Oct 10 2006, 06:58 PM (89,089 Views) | |
| ka9 | Nov 23 2006, 02:02 AM Post #1 |
|
Member
|
Here it is. Name: IPB Shoutbox 2.0: Updated Description: A fully forum-integrated shoutbox for InvisionFree. This shoutbox runs off of the forum, and is integrated with it, so no need to register new names with it or have trouble with people using other peoples names. The original code was created by Epsilekt (RedCrazyKid) in late February, but I made my first modification of it in March. I was reluctant to post a new topic for a while in respect of his, but he has moved on to IPB Shoutbox 3.0, and it was getting hard for me to keep track of my stuff in his topic, so I made this new one. Click here to go to the original topic. Preview: ShoutBoxCode I have enabled guest shouts for this example. Installation: QUOTE (Instructions) First, post a new topic in a forum. Make sure the forum permissions are set correctly. If you want a group to only be able to see shouts, set them to read. If you want them to be able to reply to it, set their group permissions to read and reply. Name the topic whatever you want, and put whatever post in the topic that you want. The post will become the first post in the shoutbox when it's done. As soon as you post the topic, look up in the address bar and record the topic number. It should look like this: QUOTE http://sx.invisionfree.com/yourforumname/i...ic=Topic_Number After that, go to the main page in the forum that the topic is in. Do the same thing, but with the forum number: QUOTE http://sx.invisionfree.com/yourforumname/i...um=Forum_Number Go into you Admin CP, and paste the following code at the very top your stylesheet (CSS). QUOTE #shoutcontent { width: 100%; height: 150px; overflow: auto; } .smallpost { font-size: 10px; font-family: Verdana; } These control the sizing of the shoutbox. You can adjust them if you know how. Now go to the Board Wrappers section in your Admin CP, and paste the following code in the JavaScript text box (third box from the top). QUOTE <script language="JavaScript"> var shoutboxfid = 'Put_Forum_Number_Here'; var shoutboxtid = 'Put_Topic_Number_Here'; var guestshouts = 0; var viewlink = 1; </script><script language="JavaScript" src="http://209.85.48.10/6539/182/upload/p60304.ibf"></script> Obviously change the bolded green and red text to those numbers you wrote down earlier. Where it says "guestshouts = 0", you an change the zero to a one if you want guests to be able to shout. Where it says "viewlink = 1", change the 1 to a 0 to remove the "view" link that lets you see the topic.. Paste this code first in the Footer text box in the Bosrd Wrapper (box at the very bottom). You won't need to change anything here. QUOTE <script language="JavaScript" name="IPB Shoutbox 2.0: Build-E" src="http://209.85.48.10/6539/182/upload/p3831679.ibf"></script> Now you are going to decide where you want the shoutbox to appear. Where ever you want the shoutbox to appear in your board wrappers, paste this code. CODE <div id="shoutbox"></div> I put mine just above the <% NAVIGATION %> tag in the Header & Body section of the Board Wrappers (fourth box down). Make sure that you put that code above the code you put in the footer, or it wont work. Now go to the index of your forum and see if the shoutbox appears where you told it to. If you followed the installation process correctly, then it should work. If it's there, but there's nothing in it, try and shout anyways and see if that makes it work. If not, or if it says you do not have permission to shout, go over it again and see what you did wrong. If you just can't seem to get it working and you are sure you followed it correctly, ask in this topic and I will attempt to assist you. Differences: Why go with this shoutbox? What makes it different for the original? ---------------------------------------------- More professional look: - The ability to hide and show the shoutbox is now in the form of a plus and minus button in the top right. - Refresh link is now a button, so it looks more professional. - When logged out, there are more options than just refresh if guestshout is off. - Realigned the textarea with the Post Shout and Refresh buttons, so they stay on the same line. Upgraded features: - Better refreshing system (his was complex and didn't always work. Mine is simple and focuses on refreshing the iframe). - Page now automaticly refreshes when you post a shout. - Page jumping now works. - Faster loading time. It jumps straight to the last page instead of going to page 1 first. - Fixed alot of errors with other parts. New features: - Ability to edit and delete shouts. - Ability to see the shoutbox topic by either url or view link. - "View" link that goes to the shoutbox topic to make editing easier. - View link is now optional, turn it off by changing "viewlink = 1" to "viewlink = 0" (only works with Shoutbox-E). - Better refreshing system (his was complex and didn't always work. Mine is simple and focuses on refreshing the iframe). More support: - Epsilekt already moved on to IPB Shoutbox 3.0, which uses PHP. I personally don't like it, so I and many others have decided to stick with 2.0. Here you can get help with problems, and suggest ideas to make it better. In some cases, i've even made custom codes for people. ---------------------------------------------- Notes: I do not take any credit for making this code. I just improved on the original features and added a few of my own. Though I personally think it has come quite a way from the original, Epsilekt still did most the work and deserves praise for the code before me. This post has been edited by Mwr247 on October 26, 2006 12:46 PM |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Code Snippets · Next Topic » |






3:24 PM Nov 22