So is there an update for this in the works for IIP 5.4?
This one works for the most part but I get some header errors half the time like so:
Warning: Cannot modify header information - headers already sent by (output started at /home/tampains/public_html/ubbthreads/templates/default/ubbt_header.tmpl:3) in /home/tampains/public_html/ubbthreads/ubbt.inc.php on line 611
and I can't display the Photopost Pal box in IIP with the current version at all.
That might have been it...its a random error. I took that blank line out of my ubbt_footer.tmpl which is what was giving the error. So far no problems.
Also, I have a random photopost photo using a custom Pal box but it gives me the following error ONLY when I goto the Photopost Gallery. Any other part of the site the custom Pal box works fine in the Side Bar.
Here is the error:
Fatal error: Cannot redeclare get_ext() (previously declared in /home/tampains/public_html/ppp/pp-inc.php:410) in /home/tampains/public_html/ubbthreads/pals/custombox6pal.php on line 70
Well, seems that is working ok now. I forget now what got it working. Here is my bigger error:
I get this error every almost all the time, but not every time.
Warning: Cannot modify header information - headers already sent by (output started at /home/tampains/public_html/ubbthreads/templates/default/ubbt_header.tmpl:3) in /home/tampains/public_html/ubbthreads/ubbt.inc.php on line 611
On line 611 in ubbt.inc.php is this:
setcookie("$name","$value",$time,$cookiepath);
I have looked for those "extra lines" after the ?> but there are none. Also since it seems to be only on the pages that the SideBarPal is on I am thinking it's some error with that and UBBT 6.4b1. I am running SideBarPal 1.1. Or could it be something with the ubbt_header.tmpl? There are no blank lines in there either.
Has anyone else run into this or know how to fix it? Is there a newer SideBarPal mod in the works?
1) I got it working on my board, but when i log out, you cant see the side bar on the left of the forum.
I can see it perfectly when logged in, but not when logged out. (Guest)
2) Also one more thing... When new users sign up to the forum the U-Sidebar setting in thier table is inserted as a 0... where do i make the edit to default to 1???
The way this hack originally worked, is that when new user signs up, the side bar wont show for them. It simply doesnt put the value 1 or 2 into the database in the U,Sidebar area...
Sooooooo, if you do this below, it will add the new user into either the left or right, depending on how you want to set it.
Below, when a new user signs up, default them to view the sidebar on the LEFT side... In adduser.php find this:
// ---------------------------------- // Insert this user into the database $query = " INSERT INTO {$config['tbprefix']}Users (U_LoginName,U_Username,U_Password,U_Email,U_Totalposts,U_Laston,U_Status,U_Sort,U_D isplay,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_AdminEmails) VALUES ('$Login_q','$Displayn_q','$crypt','$Email_q','0','$date','$Status_q','{$theme['sort']}','$Display_q','$View_q','{$t heme['postsperpage']}','$EReplies_q','$date','$Email_q','$ip_q','$Groups_q','$Title_q','$Color_q','1','$approved','$PicturePosts','$ coppauser','') ";
And replace it with this:
// ---------------------------------- // Insert this user into the database $query = " INSERT INTO {$config['tbprefix']}Users (U_LoginName,U_Username,U_Password,U_Email,U_Totalposts,U_Laston,U_Status,U_Sort,U_D isplay,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_AdminEmails,U_SideBar) VALUES ('$Login_q','$Displayn_q','$crypt','$Email_q','0','$date','$Status_q','{$theme['sort']}','$Display_q','$View_q','{$t heme['postsperpage']}','$EReplies_q','$date','$Email_q','$ip_q','$Groups_q','$Title_q','$Color_q','1','$approved','$PicturePosts','$ coppauser','','1') ";
The very last "1" you see there '','1') If you change it to a 2 it will show it on the new users right side of the screen.
What would it take to use this in other areas of my site. I know that I could use the generic threads page, but I don't want the Threads navigation bar to display in other areas of the site. Is there another way to do this.
I actually want this to display when the are browsing the project management area of my site. The project management software is Dotproject. It is php based and located on the same server as my threads install so it seems doable. I'm just not sure what IIP needs to display properly.
Well IIP uses the send_headet function of Threads which calls the header and menu templates.
However the sidebar should be fine using it on pages that do not have the threads header. You still need to require main.inc.php but just do not use the send_header function. That is how it operates anyway. It does not use a send_header function. IIP uses the send_header function on your entrance page.
Do you follow me?
require ("/path/to/main.inc.php");
make sure the html is correct and use an include to do the sidebar after your extra pages header.
I think as long as you are including main you should be fine.
One thing -
In the sidebar.php script there's this:
$config['reauth'] = '1';
This skips the step of setting the cookies needed during the authenticate function, as if you try to reset cookies on a page that's already been set, you can get the "headers already sent" error.
So on your non headers pages - there will be no authenticate function previously on the page.
You can either include the authenticate function in your regular pages. Or duplicate the sidebarpal.php to something like sidebarpal.php - change the above variable to 0 and use that copy on your pages where you're not authenticating or sending the headers.
I get errors from my sidebar when somebody adds a greamlin. Ideas how to fix this? I have tried shutting off the shoutbox ubbcode and html for the forum but it still lets them add the images. Something not quite right on my end.
I see you tested it.. it might be the moving ones. I can't narrow it down yet, but it occurs on a mouseover when there is a greamlin. I delete the greamlins and it dissapears. But I see you could still post them when it is shut off in forums...
Thanks for looking.. I will try to get more information if I can.
I have attached the image of the results. I can tell this is close, but I can't figure out what I need to put in to get the table to form. I keep getting errors with everything that I try.
If that is your index file no wonder it doesnt work.
Usually there is a sendheader call a user authentication which calls their stylesheet and a threads call to $html= newhtml blah blah
If you want this to be apart from threads at the very least you need to specify a stylesheet link and to get the html to be correct you need to open and close everything correctly.
Also as Josh stated the reauthenication is inside the sidebar script so you might want make a second copy called sidebarpal1.php or something like that and set the reauthentication inside their to 0.
Thanks for that code Chuck. I tried your code out(putting in the appropriate URL) and it looks pretty much the same. The wierd thing is that when I view the source it shows the td open and closes but it isn't drawing any tables.
Hrm... if you're not sending the header, now that I think about it, you won't have the stylesheet set and may not be able to use the $tbopen/$tbclose setup. You might be able to manually set a stylesheet in your header then try using the function that grabs the tablewrappers and see if that works.
Okay, when I use that code I get the following error: [qoute]
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/wwwtsbiu/public_html/test/index.php on line 7
Parse error: parse error in /home/wwwtsbiu/public_html/test/index.php on line 7 [/qoute] I've tried removing the first \ on line 7 and that gives me the following error: [qoute] Parse error: parse error in /home/wwwtsbiu/public_html/test/index.php on line 7 [/qoute]
ETA: That was with the old code, I'm trying the attachment now.
Tracked down the errors to the status box on the sidebar. I thought it was the greamlins but if the site refreshes on its own it will occasionally generate errors when a mouseover on the status shortcut icons.
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.