The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Not sure this is the place to ask this but I'm at a loss and really need a hand. I'm running this mod and posted my question
https://vborg.vbsupport.ru/showthrea...02#post1218602 and it works great accept that it displays posts that have not yet been moderated? Need someone to look at the SQL and see what needs to be added so that posts currently under moderation do not get queried. Anyone up for the challange and or able to provide help? ![]() |
#2
|
||||
|
||||
![]()
You'll need to add
Code:
AND(post.visible==1) |
#3
|
|||
|
|||
![]() Quote:
Code:
$NewestNews = $db->query(" select t.*,p.pagetext, f.title as ft from ".TABLE_PREFIX."thread t left join ".TABLE_PREFIX."post p on(p.postid=t.firstpostid) join ".TABLE_PREFIX."forum f on(f.forumid=t.forumid) where f.forumid != 48 AND f.forumid != 42 order by dateline desc limit 0,$Amount"); Code:
$NewestNews = $db->query(" select t.*,p.pagetext, f.title as ft from ".TABLE_PREFIX."thread t left join ".TABLE_PREFIX."post p on(p.postid=t.firstpostid) join ".TABLE_PREFIX."forum f on(f.forumid=t.forumid) where f.forumid != 48 AND f.forumid != 42 AND p.visible==1 order by dateline desc limit 0,$Amount"); Code:
$NewestNews = $db->query(" select t.*,p.pagetext, f.title as ft from ".TABLE_PREFIX."thread t left join ".TABLE_PREFIX."post p on(p.postid=t.firstpostid) join ".TABLE_PREFIX."forum f on(f.forumid=t.forumid) where f.forumid != 48 AND f.forumid != 42 AND post.visible==1 order by dateline desc limit 0,$Amount"); |
#4
|
||||
|
||||
![]()
it should be p.visible=1
|
#5
|
|||
|
|||
![]()
well we are making a little progress. I made the changes and it didn't error out this time but it didn't filter it either? If I change p.visible=0 then none of the posts show whether they need to be moderated or not. If I enter it as p.visible=1 then all show whether they need to be moderated or not?
|
#6
|
||||
|
||||
![]()
Hmm, to the extent of my experiance, it should work, but I haven't dealt with moderated stuff in a long time. You'd probably be better helped by someone else.
|
#7
|
|||
|
|||
![]()
I checked the db thread table and visibility for my test thread that needs to be moderated is set to 0 so it must be something with the query string?
Anyone else out there have any ideas? |
#8
|
||||
|
||||
![]()
Oh, I didn't realize that threads had a separate visibility. Try
Code:
AND f.visible AND p.visible |
#9
|
|||
|
|||
![]() Quote:
Code:
AND t.visible=1 AND p.visible=1 THANKS! for the help WetWired |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|