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)
-   -   mYvBindex v3.1 (https://vborg.vbsupport.ru/showthread.php?t=44691)

Krackills 02-22-2003 11:25 PM

ok thnx for the hlp still a lil confused but... i dono i am going to try

arracing 02-23-2003 02:45 AM

I searched for this line in my myvbindex file but couldnt find it
ORDER BY thread.pollid DESC LIMIT 1

arracing 02-23-2003 02:51 AM

nevermind, those lines were in the include file not the myvbindex file. The random function is working perfectly picking from all forums. This is awsome. I just want to make sure it doenst pick from forums such as my moderator forums and what not. What do i need to inlclude in the code to make it not pick from certain forum ids?

arracing 02-23-2003 03:00 AM

also you never answered my question about that hack you showed me to do with opening the pages on the right side. Since they are in templates and also the way the meta tags are set up, can search engines search these for content? Do search engines search templates or no?

arracing 02-23-2003 05:54 AM

Quote:

Originally posted by arracing
nevermind, those lines were in the include file not the myvbindex file. The random function is working perfectly picking from all forums. This is awsome. I just want to make sure it doenst pick from forums such as my moderator forums and what not. What do i need to inlclude in the code to make it not pick from certain forum ids?
I put AND forumid!=XX before the Order by rand.....

and that didnt work. This random thing is useless if I cannot block those forums. Their has got to be a way to do this, but i have no clue. Hopefully you know the answer.

Tigga 02-23-2003 06:22 AM

You were close... Try using WHERE forumid!=XX instead. ;)
By the way, that will work ok for you now, but once your board starts to get bigger you will start to run into problems... I thought about using that on my site which has 300,000+ posts, but it took my homepage 30+ seconds to load. I should be able to split the polls query up into 2 separate queries though that will do the job much more efficiently, so when I do I'll post the code here for you.
Oh, and search engines shouldn't have a problem spidering the pages you added in your templates.

Sulaiti 02-23-2003 06:42 AM

Sorry I can't search all this Thread with 53 pages

My Question:

How can I add more then News Forum ID

Example: News Forum ID 64,48,21,9

Regards

Tigga 02-23-2003 06:50 AM

Sulaiti - Open your myvbindex and find:
thread.forumid=$newsforum

Replace that with:
thread.forumid=XX OR thread.forumid=YY
(obviously replace the XX and YY there with your forumids)


arracing - Try replacing your polls query with the one here. I tried it on my site and it seemed to work perfectly.
$pollinfo=$DB_site->query_first("SELECT thread.pollid, thread.open, thread.threadid, thread.replycount, poll.pollid, poll.question, poll.dateline, poll.options, poll.votes, poll.active, poll.numberoptions, poll.timeout, poll.multiple, poll.voters FROM thread LEFT JOIN poll ON (thread.pollid=poll.pollid) WHERE thread.pollid!='0' AND thread.forumid!=XX ORDER BY RAND()");
And of course change the XX there to the fourmid you don't want it to pull polls from.

arracing 02-23-2003 01:49 PM

i am sometimes getting blank polls being displayed on the index. Can you check that out. Just keep refreshing and you will see what I mean. Thats with your latest code update. www.ar-racing.com

Tigga 02-23-2003 06:14 PM

Hmmm... It looks like it's pulling threads that have been moved and that's where it's creating the problem. Try adding in this code:
AND thread.open='1' AND thread.open<>10

Right after this code in the poll query:
WHERE thread.pollid!='0'

That should fix it but if not let me know.


All times are GMT. The time now is 08:58 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.01889 seconds
  • Memory Usage 1,736KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (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