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)

TheComputerGuy 10-27-2002 02:00 PM

PHP Code:

406// only allow home_extra_ templates for security reasons
407eval("dooutput(\"".gettemplate("home_extra_$page")."\");");
408}
409?> 

There is no 410.....

Buddha 10-27-2002 02:05 PM

Quote:

Originally posted by NTLDR


Try changing:

PHP Code:

$newstext=censortext(bbcodeparse($news[pagetext],0,1)); 

To:

PHP Code:

$newstext=censortext(bbcodeparse($news[pagetext])); 

Or if that doesn't work (or if this one results in less queries):

PHP Code:

$newstext=censortext(bbcodeparse($news[pagetext],$newsforum,1)); 

The last option is what vBindex v2.0.1 used so that will work, the first option may use less queries and work correctly.

I've double checked on a fresh vB 2.2.8 and vBindex v2.1 Final install and smilies work fine for me with the origional code.

the first option you suggest here didn't work, however the second one did. problem is, it adds 2 querries. which is just not worth it for smilies. i'll have to see what this might be.
i wonder if it does have to do with the fact that i'm still on 2.27?

groovesalad 10-27-2002 03:33 PM

Quote:

Originally posted by Buddha
groovesalad, what do you mean more navigation buttons?
like navigation links in the left menu?

No, like the ones on the top right ( User CP, Members, FAQ).

Buddha 10-27-2002 03:53 PM

you can add those through the home_header template... add as many as you want. personally, i prefer to have the options in the left navigational menu, so i took all of the header buttons out and added the options as links in the left menu (which i can then set to vary whether someone is a member or not).
but yeah, just create the button, upload it, then go into home_header and find the other options. copy one of the lines of code, and insert it wherever you want the new button to appear. change the name for the img src and the url for the target, and you're off to the races my friend.
if you need any more help on this one, just let me know.

take care.

dmw 10-27-2002 03:54 PM

I did an upgrade to vbindex yesterday. I screwed it up initially then got it working. I only have one thing left that doesn't want to work, the Online Today value. Where would I look to get this working.

Cheers!
David
www.CADchat.com

Buddha 10-27-2002 04:08 PM

that option was taken out dmw.
check back a few pages if you'd like more info.

you can always go through the 2.01 version of vbindex and cut and paste the code into 2.1

dmw 10-27-2002 04:11 PM

Thank Buddha...I'll do a little research on that. I liked that option.

Cheers!
David

Asso 10-27-2002 04:11 PM

nice hack :)

Buddha 10-27-2002 04:13 PM

ntldr had mentioned that the code for the online wasn't necessarily that stable which is why he took it out. also adds querries (if you're counting calories).

NTLDR 10-27-2002 04:13 PM

Quote:

Originally posted by Buddha
the first option you suggest here didn't work, however the second one did. problem is, it adds 2 querries. which is just not worth it for smilies. i'll have to see what this might be.
i wonder if it does have to do with the fact that i'm still on 2.27?

That may be the reson why it doesn't work, I know the smiles appear in my 2.2.8 testboard. I changed it to reduce the number of queries, like you said, its not worth it for the extra load.

The code you copy from index.php is only used to generate the users online bit, so it doesn't matter if its taken from 2.2.4, 2.2.6 or 2.2.8 etc..


All times are GMT. The time now is 03:32 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.02729 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
  • (4)bbcode_php_printable
  • (3)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