Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
last 10 posts Details »»
last 10 posts
Version: , by Bashar Bashar is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 07-21-2003 Last Update: Never Installs: 0
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-23-2003, 12:20 PM
tmapm tmapm is offline
 
Join Date: Apr 2002
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 07-23-2003, 09:03 PM
Bashar Bashar is offline
 
Join Date: Nov 2002
Location: Earth
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 07-24-2003, 03:10 PM
tmapm tmapm is offline
 
Join Date: Apr 2002
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)?
Reply With Quote
  #5  
Old 07-24-2003, 09:01 PM
Bashar Bashar is offline
 
Join Date: Nov 2002
Location: Earth
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it turned to LTR insteadof RTL

from "right to left" to "left to right"
Reply With Quote
  #6  
Old 07-25-2003, 04:31 AM
tmapm tmapm is offline
 
Join Date: Apr 2002
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 07-25-2003, 01:15 PM
Bashar Bashar is offline
 
Join Date: Nov 2002
Location: Earth
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

i tried to switch it to ltr or rtl didnt change anything
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:33 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04071 seconds
  • Memory Usage 2,245KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete