php forum
php mysql forum
php mysql smarty
 
Page 1 of 3 1 2 3 >
Topic Options
#225320 - 09/26/02 10:04 AM Questions for the Addons
Grummel_dup1 Offline
Journeyman

Registered: 06/08/02
Posts: 126
Hi, <br />to the Addons I have a question: How can I let the last forum contributions indicate, without contributions are indicated of the private forums with?<br /><br />Sorry for the Babelfish-Translation. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
http://www.mysterynews.net - Unsere Leser wissen mehr

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

Registered: 06/24/01
Posts: 4097
I think what your saying is how can you allow the viewing of information in private forums without the forums being accessable?<br /><br />I may have missed the mark on this so please excuse me if I did. I really regret not learning a second language or two. <img src="/forum/images/graemlins/frown.gif" alt="" /><br /><br />Although when stationed in Germany I learned enough to get around at the time... lol <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#225322 - 09/26/02 10:21 AM Re: Questions for the Addons [Re: sjsaunders]
Grummel_dup1 Offline
Journeyman

Registered: 06/08/02
Posts: 126
No, which is not completely which I would like. I would like that visitors are not announced in the forum, who cannot see Postings of the private forums on their own index side. <br /><br />An Example --> http://www.mysterynews.net/mysterynews/ <br /><br />It's Babelfish-Translation too. <img src="/forum/images/graemlins/laugh.gif" alt="" /> <br /><br />[Edit]"Neue Webseite" is a posting from a private Forum. This posting its showing for all people, who connect to my site, but its not accessable. It would be nice, when this posting not showing to all peoples


Edited by Grummel (09/26/02 10:25 AM)
_________________________
http://www.mysterynews.net - Unsere Leser wissen mehr

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

Registered: 06/24/01
Posts: 4097
I think I got it now... (I hope)<br /><br />Only members with access see other members with the same access?<br /><br /><br />If this is correct, in what addon?
_________________________
~Dave
ChattersOnline.com

Top
#225324 - 09/26/02 10:40 AM Re: Questions for the Addons [Re: sjsaunders]
Grummel_dup1 Offline
Journeyman

Registered: 06/08/02
Posts: 126
Not realy... <img src="/forum/images/graemlins/blush.gif" alt="" /><br />I mean topics not members. one the mainpage i can show last x topics with ubbttopthreads.php. In this numbers of topics are all topics from the forums (private or not private). It would be nice, when only the not private topics are showing.<br /><br />I hope you can understand these better, its not Babelfish-Translation. <img src="/forum/images/graemlins/grin.gif" alt="" />
_________________________
http://www.mysterynews.net - Unsere Leser wissen mehr

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

Registered: 06/24/01
Posts: 4097
ahhh ok understood. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Is this something your looking for as a feature in IIP's news display? What addon in particular does this need to be done for?
_________________________
~Dave
ChattersOnline.com

Top
#225326 - 09/26/02 12:22 PM Re: Questions for the Addons [Re: sjsaunders]
Grummel_dup1 Offline
Journeyman

Registered: 06/08/02
Posts: 126
Hmmm, i need this feature for the separate file ubbttopthreads.php for my selfmade HTML-Site. I dont need the IIP or something else. <img src="/forum/images/graemlins/blush.gif" alt="" /><br /><br />Many sites have the same look, how looking IIP 5.0. I will make my own Index-Site. <img src="/forum/images/graemlins/smirk.gif" alt="" />
_________________________
http://www.mysterynews.net - Unsere Leser wissen mehr

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

Registered: 06/24/01
Posts: 4097
Ohhh them addons... (I forget about them ones) lol<br /><br />I'll put some code together as soon as I can that will check the viewers access and display accordingly. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#225328 - 09/26/02 12:34 PM Re: Questions for the Addons [Re: sjsaunders]
Grummel_dup1 Offline
Journeyman

Registered: 06/08/02
Posts: 126
That would be nice. Many thanks from Germany. <img src="/forum/images/graemlins/laugh.gif" alt="" />
_________________________
http://www.mysterynews.net - Unsere Leser wissen mehr

Top
#225329 - 09/26/02 12:51 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("$path/main.inc.php");<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 = "AND (";<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 = "AND Bo_Read_Perm LIKE '%-4-%'";<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 {$config['tbprefix']}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 {$config['tbprefix']}Posts <br /> WHERE B_Number = B_Main<br /> AND B_Last_Post > '$date'<br /> $groupquery <br /> ORDER BY $sort DESC<br /> LIMIT $totalthreads<br /> ";<br /></pre><hr><br /><br /><br />Make sure your cookies are set site wide so that this script can authenticate the viewer if this is placed outside the .threads directory. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br /><br />I haven't tested this but it should work. <img src="/forum/images/graemlins/smile.gif" alt="" /><br />
_________________________
~Dave
ChattersOnline.com

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

Registered: 06/08/02
Posts: 126
There is an error:<br /><br /> [] SQL ERROR: Unable to do_query: SELECT B_Number, B_Posted, B_Last_Post, B_Username, B_Subject, B_Body, B_Main, B_Replies, B_Counter, B_Board FROM Posts WHERE B_Number = B_Main AND B_Last_Post > '1032462921' AND Bo_Read_Perm LIKE '%-4-%' ORDER BY B_Counter DESC LIMIT 10 <br />Table 'xxxxxxxx.Posts' doesn't exist<br /><br />Warning: Supplied argument is not a valid MySQL result resource in /xxxxxxxxx/webseiten/forum/mysql.inc.php on line 83<br /> [/] <br /><br />I have UBB Threads 6.0.3 installed.<br />I hope you can help me.


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

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

Registered: 06/24/01
Posts: 4097
Sorry, the code I posted was for 6.1's addon.<br /><br />Replace this:<br /><br />FROM {$config['tbprefix']}Posts<br /><br /><br />to this:<br /><br />FROM w3t.Posts<br /><br /><br /><br /><br />In that code. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

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

Registered: 06/08/02
Posts: 126
I got another error:<br /><br /> [] Warning: Cannot add header information - headers already sent by (output started at /xxxxxxx/webseiten/mysterynews/index.php:2) in /xxxxxxx/webseiten/forum/ubbt.inc.php on line 1664<br />SQL ERROR: Unable to do_query: SELECT B_Number,B_Posted,B_Last_Post,B_Username,B_Subject,B_Body,B_Main,B_Replies,B_Counter,B_Board FROM w3t.Posts WHERE B_Number = B_Main AND B_Last_Post > '1032464179' AND (Bo_Read_Perm LIKE '%-3-%' OR Bo_Read_Perm LIKE '%-2-%' OR Bo_Read_Perm LIKE '%-5-%') ORDER BY B_Counter DESC LIMIT 10 <br />Access denied for user: 'xxxxxxx@localhost' to database 'w3t' [/]
_________________________
http://www.mysterynews.net - Unsere Leser wissen mehr

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

Registered: 06/24/01
Posts: 4097
The query looks good. Possibly there's an extra space after the ?> closing tag?<br /><br />I'm sort of at a loss on this one <img src="/forum/images/graemlins/crazy.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

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

Registered: 06/08/02
Posts: 126
Hmm, there isnt a space after the closing tag. <img src="/forum/images/graemlins/confused.gif" alt="" />
_________________________
http://www.mysterynews.net - Unsere Leser wissen mehr

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

Registered: 06/24/01
Posts: 4097
Try the addon on a blank page and see if it works. Possibly something else causing it?<br /><br />Anyone else have an idea of what could be going on?
_________________________
~Dave
ChattersOnline.com

Top
#225336 - 09/26/02 03:41 PM Re: Questions for the Addons [Re: sjsaunders]
Grummel_dup1 Offline
Journeyman

Registered: 06/08/02
Posts: 126
On a blank page there is the same problem. <img src="/forum/images/graemlins/frown.gif" alt="" /> <br /><br />[Edit] The original Code from the file is: <br /><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 /> "; [/]


Edited by Grummel (09/26/02 03:46 PM)
_________________________
http://www.mysterynews.net - Unsere Leser wissen mehr

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

Registered: 06/24/01
Posts: 4097
<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 /> $groupquery<br /> ORDER BY $sort DESC <br /> LIMIT $totalthreads<br /> ";<br /></pre><hr><br /><br />Should be the code to use for the query. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

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

Registered: 06/08/02
Posts: 126
Hmm, there is now another error:<br /><br /> [] Warning: Cannot add header information - headers already sent by (output started at /xxxxxxxxx/webseiten/mysterynews/test.php:10) in /xxxxxxxxx/webseiten/forum/ubbt.inc.php on line 1664<br />SQL ERROR: Unable to do_query: SELECT B_Number,B_Posted,B_Last_Post,B_Username,B_Subject,B_Body,B_Main,B_Replies,B_Counter,B_Board FROM w3t_Posts WHERE B_Number = B_Main AND B_Last_Post > '1032469385' AND (Bo_Read_Perm LIKE '%-3-%' OR Bo_Read_Perm LIKE '%-2-%' OR Bo_Read_Perm LIKE '%-5-%') ORDER BY B_Counter DESC LIMIT 10 <br />Unknown column 'Bo_Read_Perm' in 'where clause'<br /><br />Warning: Supplied argument is not a valid MySQL result resource in /xxxxxxxxx/webseiten/forum/mysql.inc.php on line 83 [/]
_________________________
http://www.mysterynews.net - Unsere Leser wissen mehr

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

Registered: 06/24/01
Posts: 4097
LoL hmmmm perhaps 6.0.x didn't have that column?<br /><br />I'll have to dig out an old copy of 6.0.x and see what the groups are based on...<br /><br /><br />Will be a bit.
_________________________
~Dave
ChattersOnline.com

Top
Page 1 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