vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   What MOD is this please (https://vborg.vbsupport.ru/showthread.php?t=200908)

Dismounted 01-09-2009 07:54 AM

Admin CP > Language & Phrases > Phrase Manager

I think you mean variables? (You know, those things with funny dollar signs in front of them. ;))

TimberFloorAu 08-28-2009 09:43 PM

Still doing my head in this one.

There is a variable that displays how many times a thread has been viewed.

There is also a variable that displays how many posts you have made.

Its not actually correct, but what code would we need to display in order to combine these 2 and output the result.

so if view count is called $viewed and postcount is called $posts

then what would be the method for us to create a new variable called $total=$viewed*$posts

for specific user ID.

Perhaps I am barking up the wrong tree lol.

Anyways, its just bugging me is all :)

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

So essentially after doing some digging.

I wanna do this: ( must be based on USERS threads, and the thread views of those threads )

$totalread=($post*$views)

$vbphrase[totalread]: $totalread[totalread]

SO how do I define the phrase for totalread and its associated variable. And where lol

Also how do I wrap conditions round this, so that it echoes the results of THAT users threads and thread views, to echo the correct totalread value.

So that we may place it in postbit etc.

Ste

Front Range 4x4 10-14-2009 01:44 PM

Quote:

Originally Posted by Dismounted (Post 1706037)
Admin CP > Language & Phrases > Phrase Manager

I think you mean variables?

https://vborg.vbsupport.ru/showthread.php?t=179930


All times are GMT. The time now is 08:11 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.00999 seconds
  • Memory Usage 1,716KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete