Previous Thread
Next Thread
Print Thread
Rate Thread
Page 5 of 5 1 2 3 4 5
Daine #242995 08/17/2003 8:59 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I think there's a solution

In the theme file - you type left or right... or leave blank for off.

Instead - type "none" there. (anything but left or right) then the field isn't empty.

I think that'll produce it off for anonymous users and new users.... but people can override it in their profile.

Sponsored Links
Daine #242996 08/18/2003 12:22 AM
Joined: May 2002
Posts: 362
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 362
Josh, seriously, you're my friggin hero. Excellent. Thank you muchly.


Joined: Mar 2003
Posts: 118
Journeyman
Journeyman
Offline
Joined: Mar 2003
Posts: 118
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.

So anyone?

Thanks.

scot #242998 10/17/2003 10:03 AM
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
I have it working with my IIP 5.4 on a 6.4 board. http://www.drumlines.org/betathreads

eslmix #242999 10/17/2003 10:04 AM
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Oh, the headers error....I think I had that too. Look for some whitespace at the end of one of those files. I think that's how I fixed it...

Sponsored Links
Joined: Mar 2003
Posts: 118
Journeyman
Journeyman
Offline
Joined: Mar 2003
Posts: 118
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


Any ideas?

scot #243001 10/17/2003 7:34 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
What Photopost pal box version are you using

I have never seen this one and have many custom photopost/review mods with threads? There is a new version posted Photopal 1.3 you should use

Joined: Mar 2003
Posts: 118
Journeyman
Journeyman
Offline
Joined: Mar 2003
Posts: 118
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?

Thanks.

scot #243003 10/22/2003 1:36 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I haven't posted my 6.4 version yet.... but have been working on it.

That's what the "reauth" config variable should fix. As sometiems it doesn't like doing the authenticate function twice.

Make sure that you put:

$config['reauth'] = '';


in the config file

Then that line in ubbt.inc php - try chaning this:

setcookie("$name","$value",$time,$cookiepath);


To this:

Code
<br />if ($config['reauth'] != "1") {<br />     setcookie("$name","$value",$time,$cookiepath);<br />}<br />


See if that fixes it.

Daine #243004 10/22/2003 8:59 AM
Joined: Mar 2003
Posts: 118
Journeyman
Journeyman
Offline
Joined: Mar 2003
Posts: 118
Well, seems that has done the trick. Thanks for your help Josh.

If it happens again i'll post it here.

Sponsored Links
scot #243005 10/29/2003 7:18 AM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Josh has posted the sidebarpal 2.0 for 6.4 here


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Aug 2002
Posts: 100
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 100
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???

Deejay

Joined: Aug 2002
Posts: 100
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 100
Ok, I hacked this in myself!! Look at me go! haha

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.

Deejay Strikes Again!

Daine #243008 01/08/2004 8:14 PM
Joined: Jun 2003
Posts: 1,025
Junior Member
Junior Member
Offline
Joined: Jun 2003
Posts: 1,025
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.

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
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.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369


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.

Daine #243011 01/09/2004 2:52 AM
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
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.

Last edited by Smilesforu; 01/09/2004 2:55 AM.
Kelly #243012 01/09/2004 3:00 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Waht kind of errors? I was just there adding smileys and didn't see any.

Daine #243013 01/09/2004 6:10 AM
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
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.

Joined: Jun 2003
Posts: 1,025
Junior Member
Junior Member
Offline
Joined: Jun 2003
Posts: 1,025
Okay, this is the code that I used in an index.php file to try to get started.
Code
<br /><?php<br />$config['reauth'] = '1';<br />require ("/home/wwwtsbiu/public_html/test/devboard/main.inc.php");<br />require ("/home/wwwtsbiu/public_html/test/devboard/pals/sidebarpal.php");<br />php?><br />

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.
Attachments
104542-hmmm.jpg (0 Bytes, 45 downloads)

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
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.

Something like this

<?

echo <<<PRINT
<html>
<title>
Test Sidebar
</title>
<head>
<link rel="stylesheet" href="http://www.yoursite.com/forum/stylesheets/default.css" type="text/css" />
</head>
<body>
PRINT;

require ("/home/wwwtsbiu/public_html/test/devboard/main.inc.php");

require ("/home/wwwtsbiu/public_html/test/devboard/pals/sidebarpal.php");

echo <<<PRINT
</body>
</html>
PRINT;

?>

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.

Joined: Jun 2003
Posts: 1,025
Junior Member
Junior Member
Offline
Joined: Jun 2003
Posts: 1,025
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.

My test index page is located at http://www.theiconsortium.com/test/ and my developement board is located at http://www.theiconsortium.com/test/devboard/.

Any ideas why it is still showing up that way?
Attachments
104549-hmmm.jpg (0 Bytes, 53 downloads)

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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.

Daine #243018 01/09/2004 12:31 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
You also might need to manually define the $tbopen and $tbclose variables.

Daine #243019 01/09/2004 12:42 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Download the page I created for you and edit as you need to with paths and your own header.
Attachments
104553-index.txt (0 Bytes, 53 downloads)

Joined: Jun 2003
Posts: 1,025
Junior Member
Junior Member
Offline
Joined: Jun 2003
Posts: 1,025
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.

Last edited by slayer60; 01/09/2004 1:11 PM.
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Download the script I created and posted above it works perfectly

Joined: Jun 2003
Posts: 1,025
Junior Member
Junior Member
Offline
Joined: Jun 2003
Posts: 1,025
It WORKED!!

Thanks Chuck. You're a figgen hero. (In stereo for your listening pleasure)

You totally saved me from having to do this

You the man.

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
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.

Anybody seen this one?

Kelly #243024 01/30/2004 4:39 AM
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
I see it happen on this site too when I let the sidebar sit then mouse over the images in the status box

Kelly #243025 01/30/2004 10:25 AM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
What browser are you using?

I checked that with Mozilla and IE and I get no error's?

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
6.0.028 explorer

Kelly #243027 01/30/2004 5:37 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Interesting

same and no errors in that and Mozilla which I use mostly.

Kelly #243028 01/30/2004 5:39 PM
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
This is the line that causes problems.. when I use the debug script. Only happens when I mouse over.

<tr><td align="left" class="tdheader"><span id="statusbox">Status</span></td></tr><tr><td align="left" valign="top" class="lighttable"><table width="100%"><tr><td align="center">Site users see you as Marty (Marty), Lucky, with 9570 posts.</td></tr><tr><td align="center"><a href="http://www.steelheader.net/ubbthreads/viewmessages.php?Cat=&box=received">You have 244 (0 new) private messages.</td></tr><tr><td align="center"><a href="http://www.steelheader.net/ubbthreads/editbasic.php?Cat=" onmouseover="movein('Edit Profile')" onmouseout="moveout()"><img src="/ubbthreads/images/member.gif" alt="Edit Profile" border="0" /></a> <strong>·</strong> <a href="http://www.steelheader.net/ubbthreads/editdisplay.php?Cat=" onmouseover="movein('Edit Display')" onmouseout="moveout()"><img src="/ubbthreads/images/display.gif" alt="Edit Display" border="0" /></a> <strong>·</strong> <a href="http://www.steelheader.net/ubbthreads/editemail.php?Cat=" onmouseover="movein('Edit Subscriptions')" onmouseout="moveout()"><img src="/ubbthreads/images/email.gif" alt="Edit Subscriptions" border="0" /></a></td></tr></table></td></tr>

Kelly #243029 02/01/2004 4:25 PM
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
it works great on the index page but on the postlist page is where the errors begin.

Page 5 of 5 1 2 3 4 5

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)