vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Latest XX Threads on Forumhome Page (https://vborg.vbsupport.ru/showthread.php?t=43310)

Kathy 11-16-2002 02:40 PM

Okay, can I just allow for the last XX threads from two forums I select?

We have many many forums but I have been using includes from way way long ago to include the last 4 posts from one forum, another last four posts from anothe forum...

Way way too many queries.

Any ideas? thanks!

Floris 12-01-2002 12:50 PM

Hi there TECK,

In your first post I read:

Quote:

The hack uses each forum's permissions.
In other words, if you have a private forum, your private threads will not show unless you have permissions to view them.
But after installing the hack on 2.2.9 I shows as (see screenshot) with a thread from the moderators board.

The moderators board is not viewable by the guest, it will not appear on the forumhome - but it looks like the thread does.

What might I have overlooked?

btw - i clicked installed.

Two other things;

Would it be possible to have the forums from where the thread come from listed on the third row?
Like: <smalltext> Views: xxx - Replies: yyy - From forum: zzz </smalltext>

And,
If we would only like 5 threads from only 1 specific forum, what should I do? I didn't quite understand that array story. Let's say the forumid is 666 - could you advice where to change what on index.php

TECK 12-01-2002 12:52 PM

Ya the script doesnt use the access masks, since they add several queries. So you will need to set that forum the normal way, with permissions, instead of using access masks.

Floris 12-01-2002 12:57 PM

Quote:

Originally posted by TECK
Ya the script doesnt use the access masks, since they add several queries. So you will need to set that forum the normal way, with permissions, instead of using access masks.
I thought the normal way was just by editing the forum and set it to private, so it won't appear for the rest but the usergroups who have permission?

Posting Options
Private forum
(Invisible to all except moderators and admins; user access masks must be on!)
Yes

I wouldn't like to go and change the way it is run now. But if we can give it to only view a given forum, then I wouldn't have to change it.

Thank you for your quick reply though. (I updated my previous post, you were too quick for me hehe)

TECK 12-01-2002 12:59 PM

That's what I ment. This way, you use access masks and you add 2 extra queries to all your pages. The wise way is to set the permissions for that forum, for each usergroup. It should take you 1minute. And you will save 2 queries.

Floris 12-01-2002 01:05 PM

Quote:

Originally posted by TECK
That's what I ment. This way, you use access masks and you add 2 extra queries to all your pages. The wise way is to set the permissions for that forum, for each usergroup. It should take you 1minute. And you will save 2 queries.
But that is how it is done now ; forums > modify > edit mod forum > private: yes.
That is why I pasted it.
uhm,
could be that they do not have to option for 'use access masks' set to on?

TECK 12-01-2002 01:13 PM

Yes they do. :) Is in vBulletin options. But I don't recommend to anyone to use it, since it ads queries. That's no good, IMO.
The best way to make a forum private is this (I use it on my board):

Make sure your access masks are OFF:
vBulletin Options > User and registration options > Enable Access Masks? > No

Also, make sure you forum is not set as "private" (for mods and admins):
Forums & Moderators > Modify > Your Private Forum [edit]
Private forum
(Invisible to all except moderators and admins; user access masks must be on!)
Set it to NO.

Once done, do this:
Forums & Moderators > Permissions > Your Private Forum
(COPPA) Users Awaiting Moderation [edit] > Click on [edit]
Select "Use custom settings" > Set to "No" all options > Save Settings

Repeat this step for every group you don't want them to have access to your forum.

Your board will run alot faster and your threads will be hidden. :)
Let me know if you got any other questions.

Floris 12-01-2002 01:32 PM

Quote:

Originally posted by xiphoid
Two other things;

Would it be possible to have the forums from where the thread come from listed on the third row?
Like: <smalltext> Views: xxx - Replies: yyy - From forum: zzz </smalltext>

And,
If we would only like 5 threads from only 1 specific forum, what should I do? I didn't quite understand that array story. Let's say the forumid is 666 - could you advice where to change what on index.php

^------- I still have those 2 questions :) I hope you have some time.

TECK 12-01-2002 01:51 PM

1. You can't add the forum title, unless you do a query on the loop. You will end up with 40-50 queries... or you write a function for this...
2. Find:
Code:

$threads=$DB_site->query("SELECT * FROM thread WHERE open='1' AND open<>10 $iforumperms
Replace with:
Code:

$threads=$DB_site->query("SELECT * FROM thread WHERE open='1' AND open<>10 AND forumid=xx
where xx is your unique forum you want to grab the threads from.

GTGT 12-02-2002 02:08 PM

Do I understand correcly that I can use this to draw the latest theeads tyo any other page on the site?

I want my vbulletin threads also come up on my start site

xxxx.com/index.html

Can I use this for that?

And is it fast?

Thanmks for any help!


All times are GMT. The time now is 02:31 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
  • Page Generation 0.01090 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete