Description: This allows a user selected sidebar (left/right/off) of IIP pal boxes. It's fully configurable, you you can decide what boxes you want to display, and in what order they display. Version 1.1 fixes an error on some servers which displays a headers already sent error. Version 2.0 updates for UBB.Threads 6.4 Version 2.1 adds multi-language file support introduced in IIP 5.4.1 Version 2.2 is updated to work with IIP 5.4.4
Working Under: UBB.Threads 6.4
Mod Status: Beta
Any pre-requisites: IIP 5.4.4 & UBB.Threads 6.4
Author(s): JoshPet, JustDave
Date: 10/29/03
Credits: JustDave for IIP and the SidebarPal Scripts
New Files: sidebar_leftopen.tmpl, sidebar_leftclose.tmpl, sidebar_rightopen.tmpl, sidebar_rightclose.tmpl, sidebarpal.php
Database Altered: Yes, U_SideBar added to the w3t_Users table to store the user's sidebar preference
Info/Instructions:
Disclaimer: Please backup every file that you intend to modify. If the modification modifies the database, it's a good idea to backup your database before doing so.
Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
Hmm Im not using the sidebar but it works fine with no errors when added to the IIP front entrance. I have added events using the post and no issues.. I may load IIP sidebar to my server and see what it could be but this is strange..
The Sidebar works well under 6.4 and Internet Explorer 6.x But do you ever try to view with Opera V6.5 ? It seems that he ignores the table width of 20% completly and destroy the whole layout. Any idea (witout changing the browser to 7.x ) ?
Twisty, thank you. I try it, but it dont work Omegatron, I know, I know. Opera make my hair grey But the eMail client it is much better then in the V7.x
I try also for every user. You know eMails with complains from user with exotic browser ? So I check out everything. But if any write me, that he use Netscape 4.x I will kick his account *eg*
I can tell you from similar instances on IE on some clients that you may want to try a fixed pixel width instead of a global percentage. So instead of 20% try something like 110 or 136.
It's probably all my fault since nobody else seems to be having any problems with this, but when a user chooses to display the sidebar on the RIGHT it throws errors. On the LEFT it works OK.
Here's the error message that appears on the right above what would otherwise be the sidebar (some of which does show up):
Warning: main(/home/xxxxx/public_html/ubbthreads/pals/languages//languagepal.php): failed to open stream: No such file or directory in /home/xxxxxx/public_html/ubbthreads/pals/sidebarpal.php on line 43
Warning: main(): Failed opening '/home/xxxxx/public_html/ubbthreads/pals/languages//languagepal.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/xxxxx/public_html/ubbthreads/pals/sidebarpal.php on line 43
Are you sure you added the extra global variables to the send_footer function? The name of the language would come from the cookies, which don't normally work in the footer.
I'd double check your instructions for ubbt.inc.php - particularly the steps in the send_footer function. Make sure you're adding these:
If you want all new users to automatically display the sidebar on the left or right
open adduser.php
find
Code
// ----------------------------------<br />// Insert this user into the database<br /> $query = "<br /> INSERT INTO {$config['tbprefix']}Users (U_LoginName,U_Username,U_Password,U_Email,U_Totalposts,U_Laston,U_Status,U_Sort,U_Display,U_View,U_PostsPer,U_EReplies,U_Registered,U_RegEmail,U_RegIP,U_Groups,U_Title,U_Color,U_Privates,U_Approved,U_PicturePosts,U_CoppaUser,U_Birthday,U_AdminEmails)<br /> VALUES ('$Login_q','$Displayn_q','$crypt','$Email_q','0','$date','$Status_q','{$theme['sort']}','$Display_q','$View_q','{$theme['postsperpage']}','$EReplies_q','$date','$Email_q','$ip_q','$Groups_q','$Title_q','$Color_q','1','$approved','$PicturePosts','$coppauser','$birthday','')<br /> ";
change to
Code
// ----------------------------------<br />// Insert this user into the database<br /> $query = "<br /> INSERT INTO {$config['tbprefix']}Users (U_LoginName,U_Username,U_Password,U_Email,U_Totalposts,U_Laston,U_Status,U_Sort,U_Display,U_View,U_PostsPer,U_EReplies,U_Registered,U_RegEmail,U_RegIP,U_Groups,U_Title,U_Color,U_Privates,U_Approved,U_PicturePosts,U_CoppaUser,U_Birthday,U_AdminEmails,U_SideBar)<br /> VALUES ('$Login_q','$Displayn_q','$crypt','$Email_q','0','$date','$Status_q','{$theme['sort']}','$Display_q','$View_q','{$theme['postsperpage']}','$EReplies_q','$date','$Email_q','$ip_q','$Groups_q','$Title_q','$Color_q','1','$approved','$PicturePosts','$coppauser','$birthday','','1')<br /> ";
Where the final digit 1 in the new code is left hand side - this can be changed to 2 for the right hand side.
If you don't do this, by default new users will be off until they update their settings under 'my home'.
Thanks Ian. I had noticed new users don't have it set on. I had recently used an SQL command tu turn it on for everyone, but this will help. BTW, saving SQL commands is very useful for this sort of stuff, which I like about 6.4
I found a litte display problem in thread mode. I have a monster thread ( http://www.dragonclan-forum.de/ubbthread...amp;sb=5&o= ). Without Sidebar I have a horizontal scrollbar, if Sidebar right enabled the scrollbar is gone and you cannot navigate anymore. This will bring me to another suggstion, but I put tihs in the propper forum.
Happy new year ! Lots of fun, health, peace and money.
I am having trouble shutting off the sidebar in the raidersoft chat hack. the sidebar seems to be pulled with the iframe header. Tried both settings but made no difference
// Require the library require ("main.inc.php"); $config['iip_call'] = 1;
$html = new html;
is what I have and they still are there. Hard to see but if you click on top of chat room and drag they can still be seen as part of the iframe header.
Starting to think it doesnt work with IIP 5.4.5 or I'm doing something seriously wrong.....
When I call my index page up after making mods...
Code
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /home/teamblit/public_html/ubbthreads/ubbt.inc.php on line 1967<br /><br />Fatal error: Call to undefined function: getmicrotime() in /home/teamblit/public_html/ubbthreads/main.inc.php on line 16
I am using 2.2 with 5.4.5 so it does work. getmicrotime() is established in ubbt.inc.php for some reason your not including the main.inc.php. I would recheck the instructions and try again.
Ok, re-did the mods and this time got a little further. However, when I ope Display Preferences through My Home I get this error...
We could not find your profile 'Doogz'
Please use your back button to return to the previous page.
I checked the error log and I'm getting this back...
Code
Unable to do_query: ELECT U_Sort,U_Display,U_View,U_PostsPer,U_TextCols,U_TextRows,U_StyleSheet,U_Preview,U_PictureView,U_PicturePosts,U_Language,U_FlatPosts,U_TimeOffset,U_FrontPage,U_ActiveThread,U_StartPage,U_ShowSigs,U_TimeFormat,U_SideBar FROM w3t_Users WHERE U_Username = 'Doogz' - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ELECT U_Sort,U_Display,U_View,U_PostsPer,U_TextCols,U_TextRows,
Theres also a few extra fields appeared in config/variables.
[]My only problem is for some reason I can not find a place to turn it on or off after I installed it. [/]
Admiral to turn it on you must go into your Admin Panel and Under Themes you see the option for the sidebar left, right, off. Also to get it for all users you may have to either have them set the sidebar as they want or in the SQL Area do a UPDATE w3t_Users SET U_Sidebar = "left" WHERE U_Sidebar = ''
to change the box's that show you must change that in the script itself.
I've installed the SidebarPal mod and it seems to be having a problem on some code I have in my custombox1pal.php. The code works fine when accessed from the Entrance page but won't work when accessed from a SidebarPal (left or right). It seems to be choking on this line:
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.