Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 07-05-2001 Last Update: Never Installs: 1
 
No support by the author.

his post can de found here:
http://www.vbulletin.com/forum/showt...threadid=17116

i wanted to add another feature
all credits go to ztsky i dont want any of em..

ok here we go:
---------------------

this will add Personal Views to the posts
image:



in showthread.php

Find:

PHP Code:
    $onlinestatus="";
  } 
Below that add:

PHP Code:
$personal0 $DB_site->query_first("
    SELECT SUM(views) AS personalviews FROM thread WHERE postuserid='
$userinfo[userid]' AND open!='10'");
$personal2*$userinfo[posts]+$personal0[personalviews];
  if (
$personal0 == ""):
      
$personal0 "0";
  endif; 
then edit template postbit:

Find:

Code:
	Posts: $post[posts]</smallfont></td>
Replace that with:

Code:
	Posts: $post[posts]<br>
	Personal Views: $personal </smallfont></td>
that should do the trick
have fun

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-06-2001, 11:29 PM
Martz's Avatar
Martz Martz is offline
 
Join Date: Oct 2001
Location: UK
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow, so simple yet so impressive

Thanks a lot
Reply With Quote
  #3  
Old 07-07-2001, 02:29 AM
OrangeFaygo
Guest
 
Posts: n/a
Default

Do I place the code:

Code:
$personal0 = $DB_site->query_first("
    SELECT SUM(views) AS personalviews FROM thread WHERE postuserid='$userinfo[userid]' AND open!='10'");
$personal= 2*$userinfo[posts]+$personal0[personalviews];
  if ($personal0 == ""):
      $personal0 = "0";
  endif;
Does that go before the } or after the }
Reply With Quote
  #4  
Old 07-07-2001, 02:38 AM
DeadlyMax
Guest
 
Posts: n/a
Default

Quote:
Originally posted by OrangeFaygo
Do I place the code:

Code:
$personal0 = $DB_site->query_first("
    SELECT SUM(views) AS personalviews FROM thread WHERE postuserid='$userinfo[userid]' AND open!='10'");
$personal= 2*$userinfo[posts]+$personal0[personalviews];
  if ($personal0 == ""):
      $personal0 = "0";
  endif;
Does that go before the } or after the }
after the }
Reply With Quote
  #5  
Old 07-07-2001, 03:01 AM
OrangeFaygo
Guest
 
Posts: n/a
Default

It is not working for me no matter what I do, I run version 2.0 and have edited everything but nothing shows.
Reply With Quote
  #6  
Old 07-07-2001, 03:29 AM
DeadlyMax
Guest
 
Posts: n/a
Default

weird are u sure u did it in showthread.php and edited the template?

and do you have icq its easier to talk
Reply With Quote
  #7  
Old 07-07-2001, 04:49 AM
OrangeFaygo
Guest
 
Posts: n/a
Default

I had someone do it for me, seems I misplaced some of the coding or erased it. Had to re-upload it and we got it all starightened out. There is one thing thoughm can you tell me much about the actual glamor hack? I the same person that installed yours install mine also and he could not get it to work - installed it in the right place, code has been edited and everything, but it is not working right. Edited the member.php and the template asked.

I have AIM: ProgramXnet

Sorry about not having ICQ, I have had a lot of people send me crap I never want or ask for so it is gone, I hardly ever have that happen on AIM.

Thanks.
Reply With Quote
  #8  
Old 07-07-2001, 01:54 PM
Martz's Avatar
Martz Martz is offline
 
Join Date: Oct 2001
Location: UK
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there any reason this line is included?

Code:
$personal= 2*$userinfo[posts]+$personal0[personalviews];
I'd prefer to use
Code:
$personal= $personal0[personalviews];
Reply With Quote
  #9  
Old 07-07-2001, 02:11 PM
ztsky
Guest
 
Posts: n/a
Default

Oh,thank you.
I have this feature a month ago.
look this:
http://tsing.com/vb/showthread.php?threadid=1742
But in my before post here ,I didn't re-release it.
To reach this feature,just do some edit in showthread.php as done in member.php,postbit as getinfo.
but you have done it.

in my forum I have release it at 05-21-2001 10:36 AM
http://tsing.com/vb/showthread.php?threadid=836
this is the post in Chinese:
?? 1 ?? [RELEASE personal glamour FOR VB2]
???ľ??Ǹ???????HACK???????ߣ?ztsky????
??ͳ??һ????Ա?Ƿ???????????̳????????̳?ܵ???ע? ̶ȣ?????????Ա??????????????룬???и????????? ?ԣ?????̳???ֿ??ԣ??о???ֵҲ???ԡ?
????VB??̳????????????????http://www.vbulletin.com/forum/show...?threadid=17116
??ʾ
????ת?أ???ע??????~??

1???޸? member.php
????eval("\$birthday = \"".gettemplat("getinfo_birthday")."\";");
}
????????
// Find out how many threads this user has started
$startcount = $DB_site->query_first("SELECT COUNT(title) AS starts FROM thread WHERE postuserid='$userinfo[userid]' AND open!='10'");
$starts = $startcount[starts];
if ($starts == ""):
$starts = "0";
endif;
// end Find threads
// Find out how much personal glamour does this user has
$personal0 = $DB_site->query_first("
SELECT SUM(views) AS personalviews FROM thread WHERE postuserid='$userinfo[userid]' AND open!='10'");
$activity01= $userinfo[posts]-$starts;
$activity02= $starts;
$activity03= $personal0[personalviews];
$personal= 3*$activity02+2*$activity01+$activity03;
if ($personal2 == ""):
$personal2 = "0";
endif;
// end Findhow much personal glamour
2???༭ Ĥ?? User Info Display Templates ?е?getinfo
??
<tr>
<td bgcolor="#efefef"><normalfont>????????:</normalfont></td>
<td bgcolor="#efefef"><normalfont>$userinfo[posts] (ÿ?? $postsperday ??)</normalfont></td>
</tr>
??????
<tr>
<td bgcolor="#f7f7f7"><normalfont>????????:</normalfont></td>
<td bgcolor="#f7f7f7"><normalfont>$starts</normalfont>
</td></tr>
<!-- User personal glamour-->
<tr>
<td bgcolor="#efefef"><normalfont>????????</normalfont></td>
<td bgcolor="#efefef"><normalfont>$personal</normalfont>
</td>
</tr>
<!-- End User personal glamour -->

3???޸? SHOWTHREAD.PHP
????//$post[message].=$post[signature];
?ں???????
// Find out how many threads this user has started
$startcount = $DB_site->query_first("SELECT COUNT(title) AS starts FROM thread WHERE postuserid='$userinfo[userid]' AND open!='10'");
$starts = $startcount[starts];
if ($starts == ""):
$starts = "0";
endif;
// end Find threads
// Find out how much personal glamour does this user has
$personal0 = $DB_site->query_first("
SELECT SUM(views) AS personalviews FROM thread WHERE postuserid='$userinfo[userid]' AND open!='10'");
$activity01= $userinfo[posts]-$starts;
$activity02= $starts;
$activity03= $personal0[personalviews];
$personal= 3*$activity02+2*$activity01+$activity03;
if ($personal2 == ""):
$personal2 = "0";
endif;
// end Findhow much personal glamour
4???޸????? POSTBIT
??
????: $post[field2]<br>
????????: $post[posts]</smallfont></td>
??Ϊ
????: $post[field2]<br>
????????: $post[posts]<br>
????????:$personal </smallfont></td>
Reply With Quote
  #10  
Old 07-10-2001, 06:58 PM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to add this also to the user profile under last online
below in the jpg.

Joey



Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:11 AM.


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.04265 seconds
  • Memory Usage 2,290KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (3)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete