vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [Addon for glamour hack by ztsky] (https://vborg.vbsupport.ru/showthread.php?t=22148)

07-05-2001 10:00 PM

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:
http://24.132.14.110/images/personalviews.jpg


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

Martz 07-06-2001 11:29 PM

Wow, so simple yet so impressive :)

Thanks a lot :)

OrangeFaygo 07-07-2001 02:29 AM

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 }

DeadlyMax 07-07-2001 02:38 AM

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 }

OrangeFaygo 07-07-2001 03:01 AM

It is not working for me no matter what I do, I run version 2.0 and have edited everything but nothing shows.

DeadlyMax 07-07-2001 03:29 AM

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

and do you have icq its easier to talk

OrangeFaygo 07-07-2001 04:49 AM

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.

Martz 07-07-2001 01:54 PM

is there any reason this line is included?

Code:

$personal= 2*$userinfo[posts]+$personal0[personalviews];
I'd prefer to use
Code:

$personal= $personal0[personalviews];
;)

ztsky 07-07-2001 02:11 PM

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>

webhost 07-10-2001 06:58 PM

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

Joey



https://vborg.vbsupport.ru/


All times are GMT. The time now is 01:42 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.01120 seconds
  • Memory Usage 1,753KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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