vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   post thanks (https://vborg.vbsupport.ru/showthread.php?t=229030)

cabledr 11-28-2009 03:16 AM

post thanks
 
i have made my own tempory thanks button but it runs semi seperate to vb4 how can i call it to show amount in post legacy like post account ? do i need to add a vb:phrase the reason i ask is not sure how to call amount from database to display it

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

i can call amount but not sure how to display the amount in posbit legacy under posts if anyone has an idea it would be great

toonysnn 11-30-2009 04:16 AM

You've provided no information on how you've created this button, how it's setup, etc.

Assuming you have `post_thanks` and `post_thanked` under the `user` table, you could just do:
HTML Code:

Thanks Given: {vb:raw post.post_thanks}<br />
Thanked Posts: {vb:raw post.post_thanked}


cabledr 12-01-2009 04:58 PM

The reason i didnt give to much info is i have created my own php code and a simple thanks hack to tide over for a little while as im hoping ades will be back the best thank mod for any platform im still learning the coding and .php and i belive my issue is with registering the template first


All times are GMT. The time now is 11:52 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.01019 seconds
  • Memory Usage 1,710KB
  • 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
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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