vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Adding PHP code? (https://vborg.vbsupport.ru/showthread.php?t=107895)

venomx 02-13-2006 05:55 PM

Adding PHP code?
 
I am trying to add this PHP code so it works in the header or footer, I cant seem to get it to work. :(

Any ideas? Please?
PHP Code:

<?php
define
("_BBC_PAGE_NAME""$vboptions[bbtitle]");
define("_BBCLONE_DIR""../bbclone/");
define("COUNTER"_BBCLONE_DIR."mark_page.php");
if (
is_readable(COUNTER)) include_once(COUNTER);
?>


tankaya61 01-14-2007 06:41 PM

Quote:

Originally Posted by venomx (Post 899292)
I am trying to add this PHP code so it works in the header or footer, I cant seem to get it to work. :(

Any ideas? Please?
PHP Code:

<?php
define
("_BBC_PAGE_NAME""$vboptions[bbtitle]");
define("_BBCLONE_DIR""../bbclone/");
define("COUNTER"_BBCLONE_DIR."mark_page.php");
if (
is_readable(COUNTER)) include_once(COUNTER);
?>



i need it danger!
please somebody say something...

Kirk Y 01-14-2007 09:38 PM

Have you tried using a plugin at 'global_start'?

PHP Code:

define("_BBC_PAGE_NAME""$vboptions[bbtitle]");
define("_BBCLONE_DIR""../bbclone/");
define("COUNTER"_BBCLONE_DIR."mark_page.php");
if (
is_readable(COUNTER)){
include_once(
COUNTER);



tankaya61 01-15-2007 06:54 AM

yes, i try
it work completely
but i have new problem

$vboptions[bbtitle]

i am sure this code but don't take page name
is it different code for title?


you can see
http://www.turkishboard.net/bbclone/




================================================== =======
================================================== =======


i edit code

Code:

define("_BBC_PAGE_NAME", "$_SERVER[REQUEST_URI]");
define("_BBCLONE_DIR", "bbclone/");
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);


it's working with this code
but i am see only url
i can't see topic or page title

how i can see title?
whats is the code title?

my link : http://www.turkishboard.net/bbclone/
other use site: http://bbclone.de/demo/

Kirk Y 01-15-2007 01:07 PM

Sorry, can you explain a little better?

tankaya61 01-17-2007 06:55 AM

thank you to everything
i solved it


All times are GMT. The time now is 12: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.01291 seconds
  • Memory Usage 1,733KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete