Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-19-2006, 11:31 PM
whitejeep whitejeep is offline
 
Join Date: May 2006
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How can I parse the list of templetes before I use the fetch_templete() function

How can i parse the templete editors list of avaiable templetes what i need to do is walk down the list of templetes name and check to see if the actaul templete exist - I want to write good error handeling scripts in PHP where before working with a actual templete to test and see if it actual exist and i would also like to return to the script the path and parse the path once I know that the templete exist on the web site server some where. Any ideas how one would go about such a task. Do I have to look at some tables or is there a active array or list that i need to parse. Please explain the best and how this could be done and what certumstances that one would use either. THANKS
Reply With Quote
  #2  
Old 05-20-2006, 06:10 AM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure what exacly it is you want, but here is a file I created that will display all your master style templates. Just upload the file to your forums directory and view the file from your broswer.
Attached Images
File Type: gif masterlist.gif (12.5 KB, 0 views)
Attached Files
File Type: php testfile.php (1.7 KB, 8 views)
Reply With Quote
  #3  
Old 05-23-2006, 01:32 PM
whitejeep whitejeep is offline
 
Join Date: May 2006
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the tool and little sample that is real cool - What I need is a little explination of how to actual show the templete inside a vbulletin script using example one of vbulletin standard templetes and have for example your little tool you gave me run in side vbulletin defualt templete unstead of a blank page. Do you happen to know the name of the default templete that vbulletin use one thing might be a nice feature is to ehance your little tool to be able to show the look of each templete as you scroll down the list in a little window then i could maybe figure out which is the correct name of the templete i am looking for. But that does not answer the real question that is how does vbulletin call and display a templete in its PHP scripts and or link to a templete in a vbulletin PHP script and what is the function call to do that is and what are the argumnets for that function call and if any setup to do this is require please explain in detail how this is done corectly in vbulletin because the API documetion does not really help much. Also what interface does vbulletin use to get the information to the templete and what is expected in the templete to retain the information and display it in the HTML which i can only asume is in the templet unless it is java or ajax get the information. Please explain this part of the vbulletin templete system. THANKS
Reply With Quote
  #4  
Old 05-23-2006, 09:19 PM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It sounds like you just want to create some vBulletin powered pages that call on templates. If thats the case, your in luck. Go checkout the tutorials section. There is a tutorial already written on how to do this.
Reply With Quote
  #5  
Old 05-23-2006, 11:31 PM
whitejeep whitejeep is offline
 
Join Date: May 2006
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK THE INFORMATION YOU POINTED ME TO WAS QUITE USEFUL FOR ME TO UNDERSTAND THE TEMPLETES AND HOW TO THE TEMPLETES INTERFACE TO VBULLETIN.

The following 4 articals are the most helpful i would say. THANKS

[How-To] vBulletin API Basics: Creating Custom Pages & Misc.

[How to] Create pages for the AdminCP

Cache System Explanation (datastore)

[How-To] vBulletin API Basics: Variables, Functions, Objects
Reply With Quote
Reply


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 11:40 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.06687 seconds
  • Memory Usage 2,216KB
  • Queries Executed 14 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (2)postbit_attachment
  • (5)postbit_onlinestatus
  • (5)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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete