View Single Post
  #395  
Old 10-24-2004, 01:51 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bnn121
Okay...I was told that we are not using the postbit templates on the forum...only the posbit_legacy templates. I have been sucsessful in getting the thread to display the warning hack but again when I click on view users warnings I get a blank page. This is only in the last three styles...in the main style this hack works just fine.

I'm uploading the main postbit template and the main postbit_legacy template

Also uploading postbit and postbit_legacy template of one of the other styles.

The other two styles are all the same except for where they get there images from.

I did notice in the warn.php file that there is alot of calls for fetch_template. I'm not a php programmer...but would I need to add/change anything in the warn.php file in order for it to call the correct style?

I also uploaded a screen shot of the warning hack on the brown style...the brown style is the one I'm working with...If I click on the

View BNN121's Warnings

button. it takes me to a blank page.
I hope this helps.
As I said, I am no expert in multi-style environments, my site has just one, so I am not able to help much. I have to assume a few things here, so correct me if I am wrong. First of all, have you added all the templates to all your styles?

From what I understand about the styles-templates things, you shouldn't alter anything in your php files in order to call the template of the particular style. The style is just a variable the user selects and then all his "views" of vB are rendered using that style. I have to assume that the template names do not change, from one style to the other, or else nothing would work in vB.

I would expect that in the last template, the links should be entered somewhere within the following code:

HTML Code:
        <td class="thead" style="font-weight:normal" align="$stylevar[right]">
                &nbsp;
                <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new"><strong>$post[postcount]</strong></a></if>
        </td>
somewhere after &nbsp.

I am sorry I can't be of more help.

Rgds
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01068 seconds
  • Memory Usage 1,771KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete