php forum
php mysql forum
php mysql smarty
 
Page 2 of 3 < 1 2 3 >
Topic Options
#225340 - 09/26/02 04:10 PM Re: Questions for the Addons [Re: sjsaunders]
Grummel_dup1 Offline
Journeyman

Registered: 06/08/02
Posts: 126
The problem is, there isnt a german copy for the 6.1 version. This version comes in the next few days, i hope. <img src="/forum/images/graemlins/shocked.gif" alt="" />
_________________________
http://www.mysterynews.net - Unsere Leser wissen mehr

Top
#225341 - 09/26/02 04:20 PM Re: Questions for the Addons [Re: bglynn_dup1]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I'll take a look at the previous version though and see what I may be missing. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#225342 - 09/26/02 04:20 PM Re: Questions for the Addons [Re: sjsaunders]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
I believe that 'Bo_Read_Perm' is in the w3t_Boards table, not the w3t_Posts table. Maybe you need to do a join?
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#225343 - 09/26/02 04:21 PM Re: Questions for the Addons [Re: joeuser]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Ack... your right Dave, and I should have seen that from the Bo_ portion of the field...<br /><br />I'll look over that code again and do it right. I been doing to many things at the same time.<br /><br />Thanks Dave <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#225344 - 09/26/02 04:24 PM Re: Questions for the Addons [Re: sjsaunders]
Grummel_dup1 Offline
Journeyman

Registered: 06/08/02
Posts: 126
Ok, thanks for your great help. <img src="/forum/images/graemlins/laugh.gif" alt="" /><br />I will go to bed now. The time here in Germany is 11:23pm, and i will sleeping now. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
http://www.mysterynews.net - Unsere Leser wissen mehr

Top
#225345 - 09/26/02 04:36 PM Re: Questions for the Addons [Re: bglynn_dup1]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
In your ubbttopthreads.php addon find this:<br /><br /><pre><font class="small">code:</font><hr><br />// -----------------------------<br />// End of the variables section<br /> require("$path/main.inc.php");<br /></pre><hr><br /><br />and change it to this:<br /><br /><pre><font class="small">code:</font><hr><br />// -----------------------------<br />// End of the variables section<br /> require_once("/ubbthreads/main.inc.php");<br /> <br /> $userob = new user;<br /> $user = $userob -> authenticate("U_Groups");<br /> if ($user['U_Username']) {<br /> $Grouparray = split("-",$user['U_Groups']);<br /> $gsize = sizeof($Grouparray);<br /> $groupquery = "(";<br /> $g = 0;<br /> for ($i=0; $i<$gsize;$i++) {<br /> if (!preg_match("/[0-9]/",$Grouparray[$i])) { continue; };<br /> $g++;<br /> if ($g > 1) {<br /> $groupquery .= " OR ";<br /> }<br /> $groupquery .= "Bo_Read_Perm LIKE '%-$Grouparray[$i]-%'"; <br /> }<br /> $groupquery .= ")";<br /> }<br /> else {<br /> $groupquery = "Bo_Read_Perm LIKE '%-4-%'";<br /> }<br /> $query = "<br /> SELECT Bo_Keyword<br /> FROM w3t_Boards<br /> WHERE $groupquery<br /> ";<br /> $sth = $dbh -> do_query($query);<br /> $boardquery = "AND (";<br /> $g = 0;<br /> while (list ($BKeyword) = $dbh -> fetch_array($sth)) {<br /> $g++;<br /> if ($g > 1) {<br /> $boardquery .= " OR ";<br /> }<br /> $boardquery .= "B_Board = '$BKeyword'";<br /> }<br /> $dbh -> finish_sth($sth);<br /> $boardquery .= ")";<br /> if (!$g) {<br /> $boardquery = "";<br /> }<br /></pre><hr><br /><br /><br />Then find this:<br /><br /><pre><font class="small">code:</font><hr><br /> $query = "<br /> SELECT B_Number,B_Posted,B_Last_Post,B_Username,B_Subject,B_Body,B_Main,B_Replies,B_Counter,B_Board<br /> FROM w3t_Posts <br /> WHERE B_Number = B_Main<br /> AND B_Last_Post > '$date'<br /> ORDER BY $sort DESC<br /> LIMIT $totalthreads<br /> ";<br /></pre><hr><br /><br />and change it to this:<br /><br /><pre><font class="small">code:</font><hr><br /> $query = "<br /> SELECT B_Number,B_Posted,B_Last_Post,B_Username,B_Subject,B_Body,B_Main,B_Replies,B_Counter,B_Board<br /> FROM w3t_Posts <br /> WHERE B_Number = B_Main<br /> AND B_Last_Post > '$date'<br /> $boardquery<br /> ORDER BY $sort DESC<br /> LIMIT $totalthreads<br /> ";<br /></pre><hr><br /><br /><br />Ok, I just tested this on my local webserver and it worked fine. Hope it does for everyone else <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#225346 - 09/27/02 07:48 AM Re: Questions for the Addons [Re: sjsaunders]
Grummel_dup1 Offline
Journeyman

Registered: 06/08/02
Posts: 126
Yeah, its work fine. Thanks for your great work. <img src="/forum/images/graemlins/laugh.gif" alt="" />
_________________________
http://www.mysterynews.net - Unsere Leser wissen mehr

Top
#225347 - 09/27/02 09:52 AM Re: Questions for the Addons [Re: sjsaunders]
Grummel_dup1 Offline
Journeyman

Registered: 06/08/02
Posts: 126
Hi JustDave,<br /><br />do you know, why i get this error message?<br /><br /> [] Warning: Cannot add header information - headers already sent by (output started at /xxxxxxxxx/webseiten/mysterynews/index.php:2) in /xxxxxxxxx/webseiten/forum/ubbt.inc.php on line 1664 [/]
_________________________
http://www.mysterynews.net - Unsere Leser wissen mehr

Top
#225348 - 09/27/02 10:04 AM Re: Questions for the Addons [Re: bglynn_dup1]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I'm not sure what the cause would be. Usual problems are having a space after ?> closing tag and perhaps the setting of cookies could be interfering with thigns. If I could see the source code for the page in question I might be able to offer a better guess at what's going wrong. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#225349 - 09/27/02 10:22 AM Re: Questions for the Addons [Re: sjsaunders]
Grummel_dup1 Offline
Journeyman

Registered: 06/08/02
Posts: 126
On the index.php-file its only an include for the file ubbttopthreads.php<br /><br /> [] <?<br /> include "/xxxxxxxxx/webseiten/forum/addons/ubbttopthreads.php";<br /> ?> [/] <br /><br />How the cookies must setting?<br />On the Adminsite from ubbthreads i set the cookies with a slash "/".<br /><br />I hope you can understand my bad english. <img src="/forum/images/graemlins/laugh.gif" alt="" />
_________________________
http://www.mysterynews.net - Unsere Leser wissen mehr

Top
#225350 - 09/27/02 10:41 AM Re: Questions for the Addons [Re: bglynn_dup1]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Is that the only code on the index page? Or is there other html in use. Even sending a header with html can cause the problem. I don't think it's a problem with .threads cookies just that it's possible that your already setting cookie values with other code or something of that nature.
_________________________
~Dave
ChattersOnline.com

Top
#225351 - 09/27/02 10:51 AM Re: Questions for the Addons [Re: sjsaunders]
Grummel_dup1 Offline
Journeyman

Registered: 06/08/02
Posts: 126
I will send you a private message with the complete code. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
http://www.mysterynews.net - Unsere Leser wissen mehr

Top
#225352 - 09/27/02 11:20 AM Re: Questions for the Addons [Re: bglynn_dup1]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
The code looks fine. What I think the problem is is that the new "top threads" script is checking user access which uses the .threads cookie. In all of the .threads scripts this is done *before* the call to send_header is executed.<br /><br />Since you have this include after your html has sent the page header it may be causing a problem.<br /><br />What may need to be done is to place the authentication call before the <html> tag.<br />You will also need to remove this code from the ubbttopthreads.php script being included.<br /><br /><br /><?<br />require_once("/ubbthreads/main.inc.php");<br />$userob = new user;<br />$user = $userob -> authenticate("U_Groups");<br />?><br /><html><br /><br /><br /><br /><br />Then include the ubbttopthreads.php script in the body.<br /><br /><br /><body><br /><? include ("/ubbthreads/addons/ubbttopthreads.php"); ?><br /></body><br /><br /><br /><br /><br /><br />I think this should work. I hope I wasn't to obscure in describing this. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />
_________________________
~Dave
ChattersOnline.com

Top
#225353 - 09/27/02 12:49 PM Re: Questions for the Addons [Re: sjsaunders]
Grummel_dup1 Offline
Journeyman

Registered: 06/08/02
Posts: 126
It looks good so far. I will inform you, when i get an error. Thanks for your great work. <img src="/forum/images/graemlins/grin.gif" alt="" />
_________________________
http://www.mysterynews.net - Unsere Leser wissen mehr

Top
#225354 - 09/27/02 12:55 PM Re: Questions for the Addons [Re: bglynn_dup1]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Your Welcome <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#225355 - 09/27/02 01:12 PM Re: Questions for the Addons [Re: sjsaunders]
Grummel_dup1 Offline
Journeyman

Registered: 06/08/02
Posts: 126
Ahhhhhhhhhhhhh, i will run amok. *grummel* <img src="/forum/images/graemlins/frown.gif" alt="" /><br /><br />I got the same error message now at the top of the page, after i hit the reload-button in IE6.0 or Mozilla 1.1. <img src="/forum/images/graemlins/crazy.gif" alt="" /> <br /><br />Hmmmm, now its running fine. <img src="/forum/images/graemlins/confused.gif" alt="" /><br />Im to stupid, i think. <img src="/forum/images/graemlins/wink.gif" alt="" />


Edited by Grummel (09/27/02 01:18 PM)
_________________________
http://www.mysterynews.net - Unsere Leser wissen mehr

Top
#225356 - 09/27/02 01:16 PM Re: Questions for the Addons [Re: bglynn_dup1]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
LoL now I'm starting to draw blanks... anyone else have an idea as to why this may be happening?<br /><br />Is this the same error... "headers already sent" ?<br /><br />I'm running out of fuel here... lol <img src="/forum/images/graemlins/crazy.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#225357 - 09/27/02 01:23 PM Re: Questions for the Addons [Re: sjsaunders]
Grummel_dup1 Offline
Journeyman

Registered: 06/08/02
Posts: 126
Yes it was the same error, but after clear all cookies from my computer, its now running fine, but how long? <img src="/forum/images/graemlins/smirk.gif" alt="" /><br /><br />Hmmm, after waiting a while, and after hit the reload-button, i got the same error "Cannot add header information - headers already sent by.... *blahblahblubb* <img src="/forum/images/graemlins/blush.gif" alt="" />
_________________________
http://www.mysterynews.net - Unsere Leser wissen mehr

Top
#225358 - 09/27/02 01:30 PM Re: Questions for the Addons [Re: bglynn_dup1]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
So perhaps it is a cookie issue? If you use the code on a blank page, with no other scripts being included does the error still occur? <img src="/forum/images/graemlins/confused.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#225359 - 09/27/02 01:42 PM Re: Questions for the Addons [Re: sjsaunders]
Grummel_dup1 Offline
Journeyman

Registered: 06/08/02
Posts: 126
The error message is also on my test.php-file. In that file is only the code and Standart-HTML-Code. (You got the code in the private message from me.) <img src="/forum/images/graemlins/frown.gif" alt="" />
_________________________
http://www.mysterynews.net - Unsere Leser wissen mehr

Top
Page 2 of 3 < 1 2 3 >


Moderator:  Gizmo 
Who's Online
0 registered (), 25 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
11/20/08 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
nick1, Begbie, cenk, MATTO, DougMMcts
13362 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks