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)

Zachery 11-06-2003 04:19 PM

Quote:

Originally Posted by eclectica
In post #1430, the instructions are given on how to modify the index.php file in order to exclude forums from showing up in the Latest Forum Topics section.

This is what I have now in my modified index.php file:
Code:

$forums=$DB_site->query('SELECT forumid,parentid,displayorder FROM forum WHERE forumid != 4 AND forumid != 8 AND

displayorder<>0 ORDER BY parentid,displayorder');

My news forums are 5 and 7. Despite the modified index.php file, the posts from forums 4 and 8 still show up in the "Latest Forum Topics" section. I can't figure out why.

that looks right to me >.> i dont know why it would still be showing them

eclectica 11-08-2003 12:16 AM

Thanks for the reply anyhow. I wanted to block those forums from showing up in the "Latest Forum Topics" because they are only accessible to all registered members, but not unregistered guests. They're not really "private" in the sense that only moderators and administrators would be able to see them. The content of the threads is still blocked for guests. At least it will keep those sections from becoming a private +++++ing & gossip club.

By the way, is this portal hack expected to work on vBulletin 3X series?

Tigga 11-08-2003 02:15 AM

eclectica - If you have your forum permissions set correctly then it will already exclude those forums from guests. Also, the code you posted above is correct. You may want to double check that you uploaded the correct file because there's no way that code would not work.

And the vB3 version of this hack can be found here -
http://www.vbulletin.nl/community/showthread.php?t=479 ;)

Zachery 11-08-2003 03:04 AM

btw congrats on the 800th post ^^

:D

the vb3 version roxors

pixelpunk 11-11-2003 08:56 PM

Is there a way to center news topics on the front page?

Zachery 11-11-2003 09:01 PM

Quote:

Originally Posted by pixelpunk
Is there a way to center news topics on the front page?

edit your index template >.>

eclectica 11-13-2003 08:55 PM

I just upgraded my board from 2.3.2 to 2.3.3 and it went well. member.php, newthread.php, admin/template.php were not upgraded, so you can take those out of your ftp upload. Otherwise you will have to modify the code in everything again.

The only thing you have to do after upgrading, is to run admin/myvb_install.php, and select "Click here to install ONLY the templates" option.

Zachery 11-14-2003 03:22 AM

Quote:

Originally Posted by eclectica
I just upgraded my board from 2.3.2 to 2.3.3 and it went well. member.php, newthread.php, admin/template.php were not upgraded, so you can take those out of your ftp upload. Otherwise you will have to modify the code in everything again.

The only thing you have to do after upgrading, is to run admin/myvb_install.php, and select "Click here to install ONLY the templates" option.

this is standard proceadure :)

liquidblaze 11-15-2003 07:47 PM

Quote:

Originally Posted by Tigga
To have multiple mYvBindex scripts running that will pull the news from different forums, simply follow these instructions...
First open your myvbindex.php file and look for:

seeing its possible to get myvbindex to run from different forums I was asking myself (and now you lot) if its possible to lets say if the user visits the site from domain1.com that the portal only shows news that are "tagged" like [NEWS1]

if the user visits from domain2.com the news should be [NEWS2] and so on.

now I understand that this will need both a http host check and a sql query using something similar to "WHERE title LIKE [NEWS1]" but I personally do not know where I would have to put this?!

another option for this would be to tweak various myvbindex files to reflect the querie above but that would mean that I would have 2 or more vbindex files in the root folder which is something I do not want.

liquidblaze 11-16-2003 03:28 PM

what I basically think needs to be done is have a variable for the title query. as stated above:

if the user is comming from domain1.com only news tagged like this should be used and so on. I dont think its that hard but it would be really usefull for me.


All times are GMT. The time now is 06:04 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.02328 seconds
  • Memory Usage 1,746KB
  • 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_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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