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)
-   -   vBindex v2.1 (https://vborg.vbsupport.ru/showthread.php?t=41916)

NTLDR 01-07-2003 12:41 PM

Quote:

Originally posted by todd.o.callen
After reviewing my custom layout of the vbindex.php page, I decided that the new template really belongs in the left column (and therefore in your left template), but when I call it into that template, nothing from it displays.
Make sure that this template (or content) is done before the left templated is eval'ed at the end of the file :)

todd.o.callen 01-07-2003 12:55 PM

Sorry,

Can you translate this hint for the code challenged? Assuming it isn't "done" before left is called, how do I fix it?

PS. Life is good when U R online...

NTLDR 01-07-2003 12:56 PM

Move it above:

PHP Code:

eval("\$left = \"".gettemplate('home_left')."\";"); 


todd.o.callen 01-07-2003 01:47 PM

Dude-who-looks-like-a-lady,

You rock. Simple edit. Everything works perfectly. Thanks!

Buddha 01-07-2003 05:09 PM

yep... vbcode is enabled, ntldr.

any thoughts?

NTLDR 01-07-2003 05:16 PM

I've just tested it and it works fine for me, is the content of the post correct, ie when editing the post the code is [color=blue ]Text[ /color] (without the spaces)?

Buddha 01-07-2003 05:41 PM

yep.
would it matter that the forum in question has a moderation queue?
i have to approve it in the admin cp before it goes out.

i'll test it without the mod queue and see.

edit**
mod queue removed, and it still did the same thing.

todd.o.callen 01-08-2003 04:41 PM

How do I modify the post query so that posts in Private forums (and any other forums the user can't see) will not show up?

Thanks. God I love this hack.

todd.o.callen 01-08-2003 06:03 PM

Quote:

Originally posted by todd.o.callen
How do I modify the post query so that posts in Private forums (and any other forums the user can't see) will not show up?

Thanks. God I love this hack.


I tried to apply your advice from a response a few pages ago regarding the news query, by it didn't seem to help:


$threadsquery=$DB_site->query("SELECT * FROM thread WHERE thread.open<>10 ".$threadsql." AND thread.visible=1
AND forumid!=$newsforum AND forumid!=$pollsforum AND visible=1 ORDER BY lastpost DESC LIMIT $maxvbithreads");


My guess is tha thread.visible=1 and visible=1 are the redundant, but I am not a very good guesser.

NTLDR 01-08-2003 07:07 PM

Yes, you can remove visible=1 ;)


All times are GMT. The time now is 01:28 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.02057 seconds
  • Memory Usage 1,735KB
  • 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_php_printable
  • (2)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