![]() |
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! |
I use the following condition to determine whether a user has permission to view a post or not:
PHP Code:
|
thank you :)
how do i get the posts to the page though, before checking which of them to display and which to hide? |
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:
|
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... |
Okay, try changing the query to:
PHP Code:
|
works perfectly, thank you so very much!
|
All times are GMT. The time now is 04:01 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|