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

NTLDR 04-15-2002 07:26 PM

If you want to define a set number of templates that you use in every or many pages you can also add the code to the vbindex.php

Find:
PHP Code:

eval("\$homefooter .= \"".gettemplate('home_footer')."\";"); 

Add After It:
PHP Code:

// my templates
//--------------------------
eval("\$homestats = \"".gettemplate('home_stats')."\";"); 

Where $homestats is an example of what you want to place in your page eg, puting $homestats on a page to display stats where you want and home_stats is the name of the template with the code.

This can save alot of editing etc, when you change menus etc.

The Piper 04-15-2002 09:51 PM

I just tested both things and they work perfectly!!! I'll be redesigning my web site and hopefully by next week it will be all templates. A good thing is that now I'll be able to edit all of my pages through the vBulletin control panel, from what I understood. And also whenever I backup the VB database, I'll back up my whole site with it. Sweet! :)

Anyway, thank you *SO MUCH* to both you NTLDR for helping me out with this and to el3m3nt for making the hack. I'll let you know whenever the website is ready so you can check it out.

Cheers! :)
Paulo

NTLDR 04-15-2002 10:06 PM

No problem, glad could help you out with this, I look forward to seeing your new site ;)

DarkReaper 04-15-2002 11:54 PM

Quote:

Originally posted by DarkReaper
Page generated in 20.847882032394 seconds with 44 queries,
spending 20.519717216492 doing MySQL queries and 0.32816481590271 doing PHP things.

Ouch.

Query: SELECT *,thread.open FROM poll LEFT JOIN thread ON (thread.pollid = poll.pollid) WHERE thread.forumid='244' ORDER BY poll.dateline DESC LIMIT 1
Time before: 2.2398979663849
Time after: 20.608139038086

Fix? Please? :)

NTLDR 04-16-2002 07:25 AM

Quote:

Originally posted by DarkReaper


Fix? Please? :)

There is no fix, other than to remove the poll feature from the vBindex PHP file, which isn't technically a fix.

el3m3nt 04-16-2002 09:31 AM

hm.. DarkReaper.. i don't know how to optimize the sql-querie you posted. if its anyhow possible.. let me know. otherwise you cannot do alot :/

DarkReaper 04-16-2002 09:37 PM

How the hell can that query take 20 seconds though?!

indiamike 04-18-2002 08:26 PM

I tried to install this by following the code exactly and got this.

Quote:

Parse error: parse error in /home/indiamik/public_html/india/newindex.php on line 371
Any suggestions or ideas where I messed up. I followed the instructions word for word and redid it a few times. I show nothing for a line 371 in my Php Coder.


Also there is a typo in the index.php in the English version 1.3
Quote:

$templatesused.='home_threadbit,home_treads,forumh ome_loggedinuser,';
home_treads should be home_threads.

Mike

NTLDR 04-18-2002 09:34 PM

What is on, or around line 371 in newindex.php? And did you copy the code from an unhacked origional vBulletin index.php that is the same version as you use on your board?

hkim 04-19-2002 08:41 AM

This is probably totally newbie kind of question, but:

After installing vBindex 1.3 as instructed, I find myself with the fact that news and polls are not showing. I have created a forum calles newsforum and a forum called pollforum with normal permissions. Although the threads are viewing all right, I cannot view news or polls.

Any help will be appreciated.

Best regards,


All times are GMT. The time now is 11:57 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.01465 seconds
  • Memory Usage 1,744KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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