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)

TimberFloorAu 01-06-2009 10:58 PM

What MOD is this please
 
As the title suggests, I have just been on another forum and seen this done.

Example:

Join Date: Oct 2008
696 posts, read 120,497 times
Reputation: 117

This is displayed in Postbit.

Link Here: http://www.city-data.com/forum/alaba...y-schwans.html

Any suggestions how we can display Number of times a users post(s) have been read ??

--------------- Added 07 Jan 2009 at 03:42 ---------------

Also in ABout Me:

Display this ??

https://vborg.vbsupport.ru/external/2009/01/70.png

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

Any Suggestions ???

TheMic 01-07-2009 03:33 PM

I'm interested too... someone can help us? :)

thanks in advance!

UKBusinessLive 01-07-2009 04:18 PM

Why don't you go to that page and Right click, then View Source, That should give you some idea of what they are using ;)

TimberFloorAu 01-07-2009 07:08 PM

Because its PHP. Plus they have taken out <!--info--> remarks :)

UKBusinessLive 01-07-2009 07:09 PM

Quote:

Originally Posted by TimberFloorAu (Post 1704430)
Because its PHP. Plus they have taken out <!--info--> remarks :)

ooops :o

:erm:

TimberFloorAu 01-07-2009 07:23 PM

lol.

There must be a $phrase for displaying how many times a users posts have been viewed/read , which is the bit I am most interested in.

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

Any suggestions Please

Dismounted 01-08-2009 07:24 AM

Quote:

Originally Posted by TimberFloorAu (Post 1704446)
There must be a $phrase for displaying how many times a users posts have been viewed/read , which is the bit I am most interested in.

It doesn't exist in a default installation of vBulletin. Most likely, it is a compilation of the thread views (i.e find all posts of user, find threads of those posts, total up all views).

TimberFloorAu 01-08-2009 09:06 PM

Any idea what code we could utilise to create this then ?

Is there a Postview phrase ?
Or threadcount x threadview ?

Dismounted 01-09-2009 04:50 AM

Quote:

Originally Posted by Dismounted (Post 1704886)
It doesn't exist in a default installation of vBulletin. Most likely, it is a compilation of the thread views (i.e find all posts of user, find threads of those posts, total up all views).

How you do that is up to you. :) And I will say this again: there is no pre-defined variable for you to use that will give you the "answer".

TimberFloorAu 01-09-2009 05:16 AM

Cheers mate , and I appreciate your response.

But. lol ( always a but )

I recall, I think... you posted a link a few months back to , vbphrases, which lists all vbphrases available. Just I cannot recall the link details...

Ste

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 09:06 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.01075 seconds
  • Memory Usage 1,738KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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