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)
-   -   WebTemplates v.0.1 (Old Version) (https://vborg.vbsupport.ru/showthread.php?t=36419)

glo 05-02-2003 07:06 AM

I get it now; i think! :nervous:

And i see what your "whose Online" addition does! :cheeky:

Can I use it to add other hacks or modified vB code?

For example if I cut and paste the code from the vB "login" template and place it inside a template that will be displayed on a non-Vb page. Will that display and work correctly?

Logician 05-02-2003 02:55 PM

Quote:

Today at 11:06 AM glo said this in Post #241
I get it now; i think! :nervous:

And i see what your "whose Online" addition does! :cheeky:

Can I use it to add other hacks or modified vB code?

For example if I cut and paste the code from the vB "login" template and place it inside a template that will be displayed on a non-Vb page. Will that display and work correctly?

Webtemplates display/process all default vb variables that are assigned a value in global.php correctly. Eg. $logincode or default vb options variables.

However if a vb variable has assigned a value in an other vb file (eg. member.php, index.php, private.php etc.), obviously webtemplates can not display it correctly because its file does not run prior to webtemplate to assign this variable a value. So for instance the variable that saves member count of your board has assigned a value in index.php so it will be blank if you use it in a webtemplate

ChurchMedia 05-02-2003 03:35 PM

First of all -- fantastic hack! Exactly what I was looking for. I followed your instructions for putting the show.php file in another directory:
Quote:

Add this line to the file:
PHP Code:

chdir('/usr/local/apache/sites/yourforumdir/'); 


It works, but it isn't accessing my header/footer info, etc. It's probably an easy thing to fix. Any ideas?

Thanks! :)

Logician 05-02-2003 04:13 PM

Quote:

Today at 07:35 PM ChurchMedia said this in Post #243
First of all -- fantastic hack! Exactly what I was looking for. I followed your instructions for putting the show.php file in another directory:

It works, but it isn't accessing my header/footer info, etc. It's probably an easy thing to fix. Any ideas?

Not "accessing" your header/footer? Is it blank or what?

ChurchMedia 05-02-2003 04:24 PM

Quote:

Not "accessing" your header/footer? Is it blank or what?
Nevermind!! I was forgetting to put in $header and $footer in the html. Duh! Sorry about that!

Logician 05-02-2003 05:04 PM

hehe np :)

Koutaru 05-03-2003 02:58 PM

O_o I could have sworn I saw this thread before I posted my quick reply. I even searched this thread for some previous answers before I posted. Weird. Oo; I have no idea how it got into your other hack's thread xD; Sorry

Anyway, I edited the line:
xD I edited the line

if ($requested_template=="") {eval("dooutput(\"".logiciangettemplate("notfound" )."\");");exit;}

to

if ($requested_template=="") {eval("standarderror(\"".gettemplate("error_notfou nd")."\");"); exit;}

But neither codes work. Even the original one won't show the page not found. However, it will show the page not specified error. oO; do you know why this is?

Logician 05-03-2003 08:24 PM

Quote:

Yesterday at 06:58 PM Koutaru said this in Post #247
Even the original one won't show the page not found. However, it will show the page not specified error. oO; do you know why this is?
a) Was it so since day one you installed the hack or did it become so after you hacked the hack?
b) if it does not show the page not found template, what exactly happens when you call an non-existing template?
c) Why dont you simply copy paste the error_notfound templates content into notfound instead of hacking?

Koutaru 05-03-2003 10:33 PM

a) I believe it worked before. I even tried reuploading the original show.php and still, nothing.

b) It just shows a blank page. I know the function worked because the HTML source has

<!-- BEGIN TEMPLATE: template -->

<!-- END TEMPLATE: template -->

c) Because I.. There's really not much to say about that. I guess I wanted a standard error to show up. But even with the original notfound it doesn't work.

EDIT: I'm using 2.30

I tried installing on my 2.2.9 and it worked fine so it isn't my server. I think it may be my functions.php even though I'm not sure exactly what Oo; I doublechecked the installation manual and everything

O_o or maybe
if ($requested_template=="")
isn't working

Logician 05-04-2003 07:01 PM

Quote:

Today at 02:33 AM Koutaru said this in Post #249
a) I believe it worked before. I even tried reuploading the original show.php and still, nothing.

b) It just shows a blank page. I know the function worked because the HTML source has

<!-- BEGIN TEMPLATE: template -->

<!-- END TEMPLATE: template -->

c) Because I.. There's really not much to say about that. I guess I wanted a standard error to show up. But even with the original notfound it doesn't work.

EDIT: I'm using 2.30

I tried installing on my 2.2.9 and it worked fine so it isn't my server. I think it may be my functions.php even though I'm not sure exactly what Oo; I doublechecked the installation manual and everything

O_o or maybe
if ($requested_template=="")
isn't working

ok please try these and let me know:
1- Admin CP/vb settings/Add template name in comments set to NO and see if it worked.

2- Delete template "notfound" and reform it.

Hopefully one of these steps will do the trick.. :)


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