vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   last 10 posts (https://vborg.vbsupport.ru/showthread.php?t=55469)

Bashar 07-21-2003 05:52 AM

last 10 posts
 
hello,
i placed this line into my style template at the Header: section but it didnt work
<?php include("ttlast.php");?>

seems i can't put php tags over there? whats the way to include the ttlast.php file to scroll at the top of my forums?

if anyone can help me i would bbe grateful

Thanks in advance.

tmapm 07-23-2003 11:20 AM

There are 2 ways of doing it.
Code:

Files to Edit: 1
Templates To Add: 1

In *** root/global.php *** find:

----------------------------------------------------------------------

$footer='';

----------------------------------------------------------------------
                                                +
                                                +++
                                                +

Right under it add:

----------------------------------------------------------------------

///// ttlast include start /////////
eval("\$ttlast = \"".gettemplate('ttlast')."\";");
///// ttlast include end/////////

----------------------------------------------------------------------

Save then upload.

Then..

Add a New Template called ttlast.
Put the contents of ttlast.php in it. Then to include the template, just use $ttlast in your header section.


The second way of doing this is without a template.

Code:

In *** root/global.php *** find:

----------------------------------------------------------------------

$footer='';

----------------------------------------------------------------------
                                                +
                                                +++
                                                +

Right under it add:

----------------------------------------------------------------------

///// ttlast include start /////////
$ttlast = include("ttlast.php");
///// ttlast include end/////////

----------------------------------------------------------------------

Save then upload. ttlast.php must be located in your /root forum directory (or youc an change the include). Then to include the file, just use $ttlast in your header section.


I have tested both of these methods and they should work flawlessly.

Bashar 07-23-2003 08:03 PM

it broke the forum

due it has DIR="RTL" and whenever i put this line it switch the whole system to LTR

right to left and left to right.

its arabic

tmapm 07-24-2003 02:10 PM

How did it break the forum? Are you postive the file you included works correctly and there are no coding errors in it (provided that it has PHP coding in it)?

Bashar 07-24-2003 08:01 PM

it turned to LTR insteadof RTL

from "right to left" to "left to right"

tmapm 07-25-2003 03:31 AM

Are you using DIR as a variable? Maybe you could change it so something else. Apparently your code is interfering with VB's and overriding some values if so.

Bashar 07-25-2003 12:15 PM

the DIR in the ttlast.php is dir=\"rtl\"

i tried to switch it to ltr or rtl didnt change anything


All times are GMT. The time now is 10:23 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.01488 seconds
  • Memory Usage 1,721KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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