vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBadvanced Homepage (https://vborg.vbsupport.ru/showthread.php?t=59803)

GuruXL 01-16-2004 11:22 AM

Tigga, I don't plan on using this script now, however, it looks promising. I am waiting for the gold release before I start messing with the underlying code in vB3. I am wondering if you can create extra pages that have just the header and footer for vB3 and can it be used with this script to create a page like say: page.php?id=reviews and then load up a reviews page?

Just wondering. Let me know...

Zachery 01-16-2004 01:45 PM

Quote:

Originally Posted by EVO VIII Chris
Anyone?

i figured it was better left for tigga to anwser you. :P as i know how to do it but he might know a better way :)

rinkrat 01-16-2004 06:00 PM

Okay, here's my wish list, a shoutbox and a block that links to Gallery random pics.

Zachery 01-16-2004 06:09 PM

Quote:

Originally Posted by rinkrat
Okay, here's my wish list, a shoutbox and a block that links to Gallery random pics.

Shoutbox wont be default, maybe as an addon id guess :)

You CAN make a block to display random gallery pics your self, but you must remember there are tons of differnt gallery softwares :) so youd be best off making it your self

NuclioN 01-16-2004 06:12 PM

I've problems to include a php on the index. www.cyberty.nl (Two links in centerblock 'headlines') In this centerblock it loads headlines out of a newsscript but the links are stripped so they point to url?actionetcetc. instead of url/news.php?actionetcetc. Maybe this has to do with globals?

Zachery 01-16-2004 06:12 PM

Quote:

Originally Posted by NuclioN
I've problems to include a php in the index. In the centerblock it loads headlines out of a newsscript but the links are stripped so they point to url?actionetcetc. instead of url/news.php?actionetcetc. Maybe this has to do with globals?

how are you trying to include it?

NuclioN 01-16-2004 06:14 PM

In adv_index.php

Code:

ob_start();
require("news.php");
$file = ob_get_contents();
ob_end_clean();

And the $file in custom_index5 template

Zachery 01-16-2004 06:16 PM

Quote:

Originally Posted by NuclioN
In adv_index.php

Code:

ob_start();
require("news.php");
$file = ob_get_contents();
ob_end_clean();

And the $file in custom_index5 template

why not just include the file and add the HTML directy into the templates with the varibles?

NuclioN 01-16-2004 06:19 PM

When i include a file in adv_index.php the output is placed above the header. I've tried this with other php files and they do the same. Maybe there is another method?

Hm..a variable! Do you have an example? It would open the door to many more include options if this works. :)

Zachery 01-16-2004 06:32 PM

Quote:

Originally Posted by NuclioN
When i include a file in adv_index.php the output is placed above the header. I've tried this with other php files and they do the same. Maybe there is another method?

Hm..a variable! Do you have an example? It would open the door to many more include options if this works. :)

why not do what i said

require_once("./file.php");

now if theres any html with varibles in there, copy it into a template eval this template

eval('$woot = "' . fetch_template('woot') . '";'); before the final call :) i thin that shoudl work


All times are GMT. The time now is 11:40 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.01547 seconds
  • Memory Usage 1,740KB
  • 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_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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