vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Postbit Trouble (https://vborg.vbsupport.ru/showthread.php?t=31649)

nandastone 10-28-2001 10:31 PM

Hi,
In the post bit templates $post[buddy], $post[email] etc... point to certain templates. I have a template called postbit_rating and I want $post[rating] to point to it. How can I do this?

Thank you.

BradC 10-29-2001 12:32 AM

admin/functions.php

open up that file..

look for the other $post variables like

$post[buddy]

see how it does it... and just copy it pretty much and change it to be what you want it to be.

like

PHP Code:

        if ($post[rating]!=and $post[rating]!=0) {
            eval(
"\$post[rating] = \"".gettemplate("postbit_rating")."\";");
        } else {
            
$post[rating]="";
        } 

Don't know if that will help, but you can put that right underneath this and maybe change it around a bit.. to fit your needs, but should work:

PHP Code:

        if ($post['receivepm'] and $enablepms==1) {
            eval(
"\$post[pmlink] = \"".gettemplate("postbit_sendpm")."\";");
        } else {
            
$post[pmlink] = "";
        } 


nandastone 10-29-2001 12:41 AM

Thanks a million, that's exactly what I needed.

BradC 10-29-2001 03:50 AM

well your welcome.. always glad to help :)


All times are GMT. The time now is 09:07 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.01040 seconds
  • Memory Usage 1,718KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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