vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Latest Threads On Forum Home (https://vborg.vbsupport.ru/showthread.php?t=60544)

NTLDR 04-30-2004 08:58 PM

Quote:

Originally Posted by Dio Br@ndo
Create a new phrase called latest_threads in the GLOBAL group with the following content:

i dont understand where create the phrase....can u explain me better pls?

Admin CP -> Phrase Manager -> Add New Phrase

NTLDR 04-30-2004 08:59 PM

Quote:

Originally Posted by Triple_T
Sorry to ask, can you give an example when using permission for 2 or more usergroups, I 'm not sure if and how to use the "OR" here

PHP Code:

if (is_member_of($bbuserinfoX) OR is_member_of($bbuserinfoY) OR is_member_of($bbuserinfoW)) { 


Dio Br@ndo 04-30-2004 09:09 PM

thx 4 phrase.. :)

and for this problem?

$thread['views'] = vb_number_format($thread['views']);

doesnt works and show always 0 in home page :(

for this!

dutchbb 05-01-2004 05:33 AM

Quote:

Originally Posted by NTLDR
PHP Code:

if (is_member_of($bbuserinfoX) OR is_member_of($bbuserinfoY) OR is_member_of($bbuserinfoW)) { 


You rock tnx

NTLDR 05-01-2004 04:18 PM

Quote:

Originally Posted by Dio Br@ndo
doesnt works and show always 0 in home page :(

You've either opted not to update thread views straight away or have a problem with your board.

josh929 05-07-2004 09:31 PM

Looks like an awesome hack! I want to install it, I just have a question:

Has this problem been resolved:
Quote:

Originally Posted by TECK
Hi Lee,
I looked at your code and I think there is a problem with your hack.
You are doing full table scans and that process is known as being extremly stressfull for the server.

Your search for latest threads should generate at least a 70% MySQL activity...
IMO is extremly high. Let me know what you think.

Regards,
Floren.

?

Does it still do a "full table scan"?

edit:
I realized that the original post has not been edited since this problem was pointed out. So I guess my question changes to: are there any plans to get rid of the "full table scan"? :)

NTLDR 05-08-2004 06:37 PM

When I get the chance to update the hack I will.

Pitman 05-10-2004 09:12 PM

Is there anyway to only include certain forums when listing?

Pitman 05-11-2004 12:18 AM

Also, it would be cool if you were able to have sticky threads or something where you could show them about like the latest threads :)

NTLDR 05-11-2004 11:53 AM

Just edit the SQL query to meet your needs.


All times are GMT. The time now is 02:15 PM.

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.01263 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (5)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