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

Reply
 
Thread Tools Display Modes
  #11  
Old 07-20-2008, 03:50 PM
imported_silkroad imported_silkroad is offline
 
Join Date: Dec 2003
Posts: 563
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Jedi,

I hear what you are saying; but I see it differently.

Basically, the way I see it, it is just a generic vB issue that is so common it should be in a FAQ.

For example, if I have a routine in any programming language (A), and that routine calls another routine (B) and I want to call (B) from (C), is is pretty straight forward and a basic part of coding.

So, in vB you have template (A) and template (A) calls template (B); and we want template (C) to call (B), what are the steps to do it?

At the right level of abstraction, it does not matter if we say it is $similarthreads or $showthread or $poll or $navbar or $header or $whatever. The basic idea is that we have a function and it works in one tempate and we want to call it from another one.

I don't really understand why folks here can't explain it.

(1) Go here, look for this and that;

(2) Then, take this and add that.

(3) Etc.

After all, I find this problem every day, I want to add a template to another part of the code and each time I ask this question I never get a straight forward programming answer; and the answer does not lie in the docs, cause I know where the docs are and how to search them.

If it was in C, it would be so easy; because the first few chapters of the documentation explains this simple concept and gives simple examples!!
Reply With Quote
  #12  
Old 07-20-2008, 03:59 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

everyone here is a volunteer

with that attitude - do you really think that you are going to get any help?
Reply With Quote
  #13  
Old 07-20-2008, 04:05 PM
imported_silkroad imported_silkroad is offline
 
Join Date: Dec 2003
Posts: 563
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't think I have an attitude, I think I am asking a straight forward question and not getting any useful answers.

For example, here is a similar post with no response:

http://www.vbseo.com/blogs/sinucello...plate-seo-131/

The poster has the same problem, he wants to use $header and $navbar in $showthread_showpost and he never gets an answer.

So, it does not matter what "attitude" you have, because I have asked this in other forums and seen other people ask, and they do not get answers.

This is a very straight forward question, not a game.

Instead of posting about "attitude", how about an answer, LOL. I guess you guys just don't know, because if you did, you could answer. So, why waste time answering if you haven't a clue, LOL.
Reply With Quote
  #14  
Old 07-20-2008, 04:14 PM
RLShare RLShare is offline
 
Join Date: Jun 2008
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why do you even post here if you think noone has a clue to what their doing?

Look at the eval you found. All of the code around that fills variables that are used in the template thats fetched to fill $similarthreads. Your looking at how its filled, if its not showing up when you put it somewhere else then the variable is not getting filled with data before that template is fetched. SO WHAT YOUR LOOKING AT IS HOW YOU WOULD GO ABOUT FILLING IT SO YOU COULD USE IT SOMEWHERE ELSE and if you cannot understand that you should not be posting here asking for help. You should be posting asking for someone to do it for you in one of the request forums.
Reply With Quote
  #15  
Old 07-20-2008, 04:26 PM
imported_silkroad imported_silkroad is offline
 
Join Date: Dec 2003
Posts: 563
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are absolutely right.

I should not be wasting my time posting this question here. I thought you guys were much more talented.

I don't want to waste your time or mine.

I can do it myself vs. all this blah, blah, blah..... a total waste of time.

--------------- Added [DATE]1216575103[/DATE] at [TIME]1216575103[/TIME] ---------------

Sorry to have wasted your time.

No need to reply.
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 02:50 AM.


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.10782 seconds
  • Memory Usage 2,198KB
  • Queries Executed 11 (?)
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
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete