The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
latest posts from private forums on external page?
hi.
i have an external page thats not a vbulletin page (same domain, parent directory). it includes global.php, greets the user by name and displays dynamic content based on their usergroup. on this page i have the external js with latest posts. the problem is that most of our forums are private, and this js only lists posts from the one public forum we got. i want to show latest posts from whatever forums the user has access to read, since the page knows which usergroup they belong to. can it be done with this external js somehow, or i need to do it differently? any pointers if so? thank you very much! |
#2
|
||||
|
||||
I use the following condition to determine whether a user has permission to view a post or not:
PHP Code:
|
Благодарность от: | ||
khininger |
#3
|
|||
|
|||
thank you
how do i get the posts to the page though, before checking which of them to display and which to hide? |
#4
|
||||
|
||||
If you want to get the latest posts, along with the titles of the threads to which they belong (and the thread icons/prefixes), then I suggest this query:
PHP Code:
PHP Code:
|
Благодарность от: | ||
RaYdeN.ADM |
#5
|
|||
|
|||
thank you very much mark, this is perfect, much more than i expected!
only one question - i didnt mention it, my bad, but i also need forumtitle, in addition to forumid. i tried googling, but i never used queries before, and it looks like forumtitle is in a different table, so im not sure how to get it... |
#6
|
||||
|
||||
Okay, try changing the query to:
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|