PDA

View Full Version : Pips & Stars


Sc0rpion
11-10-2001, 10:00 PM
A very simple hack to install,it adds pip & stars,depending on the post count only.(so admins might want to cheat and award themselves a 5000 post head start lol)

like i said its very simple ;)

I only ammended the instructions,as it was origionally made for 2.0.1 by bloofish.

enjoy.

Sc0rpion
11-11-2001, 10:36 AM
Sorry deleted the attachment trying to update it :D

fonzerelli_79
11-11-2001, 01:55 PM
do you have an example

Sc0rpion
11-11-2001, 04:41 PM
Yep here's a screen capture mate.

Sc0rpion
11-11-2001, 04:44 PM
and another of a member with less posts :D

TheComputerGuy
11-11-2001, 05:12 PM
I like it, and simple enough, for us "not as advanced" users to install.

fonzerelli_79
11-11-2001, 06:14 PM
cheers scorpion

fonzerelli_79
11-11-2001, 06:59 PM
ive installed it word for word but for some reason the stars dont appear

has this happened to anyone else

Sc0rpion
11-11-2001, 07:38 PM
did you use the right set of instructions for your VB version?


you do realise the stars don't appear till your posts get into the 1000's mate .

you can edit the code to make them appear sooner if needed.
or use phpmyadmin to alter admins ect post counts and give all your admins/mods a head start ;)

nuno
11-11-2001, 09:13 PM
Originally posted by Sc0rpion
==========================================
CUSTOM PIPS AND STARS HACK FOR VBULLETIN
------------------------------------------
Written by bloofish
Amendments by Juice
last Amendmants by Sc0rpion and update for 2.2.0
thanks to Castel
------------------------------------------
Originally installed on www.sector-one.org
==========================================

another warez discussion board:rolleyes:

Sc0rpion
11-11-2001, 09:30 PM
& your point is?

FACT its not my board but i can't post the hack without giving credits to the hack makers.like i said all i did was update the instructions & get some help to update it for 2.2.0.

nuno you must live a sad life m8.

nuno
11-11-2001, 09:45 PM
*ouch*
i didnt mean to offend you - sorry.
BTW nice hack :D

Sc0rpion
11-11-2001, 10:03 PM
lol its a sunday i've had a few beers and no disrespect intended.

i hope the zip was worth posting.

garuda
11-12-2001, 02:36 AM
Certainly was worth it, mate.
Thanks for the file.

fonzerelli_79
11-12-2001, 09:54 AM
i didnt relise it started at 1000

cheers scorpion

Ripper
11-28-2001, 09:31 PM
Does it work with v2.2.1

Bally
12-02-2001, 08:42 PM
It?s not workinf or me.... :(
I?m using V 2.0.3 here ist how i changed the code:

// ###################################
// start of custom pips and stars hack
// ###################################


if ($post[posts] > 1999)
{ $pips= "<img src=\"http://www.flippermarkt.de/portal/forums/images/pip13.gif\" border=0>"; }
elseif ($post[posts] > 1499)
{ $pips= "<img src=\"http://www.flippermarkt.de/portal/forums/images/pip12.gif\" border=0>"; }
elseif ($post[posts] > 999)
{ $pips= "<img src=\"http://www.flippermarkt.de/portal/forums/images/pip11.gif\" border=0>"; }
elseif ($post[posts] > 749)
{ $pips= "<img src=\"http://www.flippermarkt.de/portal/forums/images/pip10.gif\" border=0>"; }
elseif ($post[posts] > 499)
{ $pips= "<img src=\"http://www.flippermarkt.de/portal/forums/images/pip9.gif\" border=0>"; }
elseif ($post[posts] > 299)
{ $pips= "<img src=\"http://www.flippermarkt.de/portal/forums/images/pip8.gif\" border=0>"; }
elseif ($post[posts] > 199)
{ $pips= "<img src=\"http://www.flippermarkt.de/portal/forums/images/pip7.gif\" border=0>"; }
elseif ($post[posts] > 124)
{ $pips= "<img src=\"http://www.flippermarkt.de/portal/forums/images/pip6.gif\" border=0>"; }
elseif ($post[posts] > 74)
{ $pips= "<img src=\"http://www.flippermarkt.de/portal/forums/images/pip5.gif\" border=0>"; }
elseif ($post[posts] > 44)
{ $pips= "<img src=\"http://www.flippermarkt.de/portal/forums/images/pip4.gif\" border=0>"; }
elseif ($post[posts] > 19)
{ $pips= "<img src=\"http://www.flippermarkt.de/portal/forums/images/pip3.gif\" border=0>"; }
elseif ($post[posts] > 5)
{ $pips= "<img src=\"http://www.flippermarkt.de/portal/forums/images/pip2.gif\" border=0>"; }
elseif ($post[posts] > 0)
{$pips= "<img src=\"http://www.flippermarkt.de/portal/forums/images/pip1.gif\" border=0>"; }
else
{$pips = ""; }


if ($post[posts] > 1000)
{ $goldstars = "<img src=\"http://www.flippermarkt.de/portal/forums/images/goldstar5.gif\" border=0><br>"; }
elseif ($post[posts] > 350)
{ $goldstars = "<img src=\"http://www.flippermarkt.de/portal/forums/images/goldstar4.gif\" border=0><br>"; }
elseif ($post[posts] > 300)
{ $goldstars = "<img src=\"http://www.flippermarkt.de/portal/forums/images/goldstar3.gif\" border=0><br>"; }
elseif ($post[posts] > 150)
{ $goldstars = "<img src=\"http://www.flippermarkt.de/portal/forums/images/goldstar2.gif\" border=0><br>"; }
elseif ($post[posts] > 10)
{ $goldstars = "<img src=\"http://www.flippermarkt.de/portal/forums/images/goldstar1.gif\" border=0><br>"; }
else
{ $goldstars = ""; }


// #################################
// end of custom pips and stars hack
// #################################

and here is a copy of my postbit template:

<a name="post$post[postid]"></a>
$post[firstnewinsert]
<normalfont><b>$post[username]</b></normalfont><br>
$goldstars$pips<br>
<smallfont>$post[usertitle]</smallfont><br>
$post[avatar]<p>
<smallfont>Registriert seit: $post[joindate]<br>
Wohnort: $post[field2]<br>
Beitr?ge: $post[posts]</smallfont></td>

<td bgcolor="$post[backcolor]" width="100%"

Are there any problems with using vbportal 3.0 with this hack???
Thanks for helping!

fonzerelli_79
12-02-2001, 08:59 PM
i use this hack with vbportal on manutdchat.com and it works a treat

Bally
12-02-2001, 09:01 PM
Can you please help me then???
Seems that the two vars cannot be turned into URLs.

don?t know what to do but this hack ist exactly what i need.... :(

fonzerelli_79
12-02-2001, 09:05 PM
ill help u - no problem-im no genius though

what do you mean by

Seems that the two vars cannot be turned into URLs.

Bally
12-02-2001, 09:10 PM
The $pips and the $goldstars are URLs for the images to be displayed.
But when i look at my source code i can´t find those URLs....?!?!

Do you have ICQ?

My icq is: 137173330

It´s easier .....
My english is not the best.... :stupid:

fonzerelli_79
12-02-2001, 09:22 PM
my icq name is fonzerelli7979 and im online now

can you contact me as i just installed icq today - ive only used msn,aol and yahoo messenger so im still finding my feet

cheers

Bally
12-02-2001, 09:28 PM
Sorry... can´t find you....
please give me your ICQ number.
You find it on top of the small ICQ window.

THX!

fonzerelli_79
12-02-2001, 09:34 PM
141625006

Bally
12-02-2001, 09:41 PM
Do i have to change user titles???

fonzerelli_79
12-02-2001, 09:45 PM
im not sure what you mean

Bally
12-02-2001, 09:48 PM
I mean, if i have to change user titles to the original ones (like Newbie, Member, senior Member and so on) or is it ok to have the custom user titles enabled?

fonzerelli_79
12-02-2001, 09:55 PM
the user titles have nothing to do with this hack

Bally
12-02-2001, 09:57 PM
damned....

what can i do now????

fonzerelli_79
12-02-2001, 10:05 PM
post or email the code you added for the hack and ill have a look at it

ill compare it to mine

Bally
12-02-2001, 10:10 PM
<?php

error_reporting(7);
if ( isset($goto) and ($goto=='lastpost' or $goto=='newpost')) {
$noheader=1;
}

// ################################################## ##########################
// ############################# SHOW POST ####################################
// ################################################## ##########################

if ($action=="showpost") {

$templatesused = 'postbit_search,postbit_buddy,postbit_useremail,ic q,aim,yahoo,postbit_homepage,postbit_profile,postb it_ip_show,postbit_ip_hidden,postbit,postbit_sendp m,postbit_avatar,postbit_offline,postbit_online,po stbit_editedby,postbit_signature,postbit_attachmen t,postbit_attachmentimage,showpost';
include('./global.php');

if (isset($postid) and $postid!=0 and $postid!="") {
$postid = verifyid("post",$postid);

$getthread=$DB_site->query_first("SELECT threadid FROM post WHERE postid='$postid'");
$threadid=$getthread[threadid];
}

$threadid = intval($threadid);
$thread = verifyid("thread",$threadid,1,1);

if (!$thread['visible']) {
$idname="thread";
eval("standarderror(\"".gettemplate("error_invalidid")."\");");
exit;
}

$forum=getforuminfo($thread['forumid']);

$getperms=getpermissions($thread['forumid'],-1,-1,$foruminfo['parentlist']);
if (!$getperms['canview']) {
show_nopermission();
}
if (!$getperms['canviewothers'] and $thread['postuserid']!=$bbuserinfo['userid']) {
show_nopermission();
}

$bbcodeon=iif($forum[allowbbcode],$ontext,$offtext);
$imgcodeon=iif($forum[allowimages],$ontext,$offtext);
$htmlcodeon=iif($forum[allowhtml],$ontext,$offtext);
$smilieson=iif($forum[allowsmilies],$ontext,$offtext);

$datecut = time() - $cookietimeout;

$post=$DB_site->query_first("
SELECT
".iif ($showonline,"session.userid AS sessionuserid,","")."
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,".iif($forum[allowicons],'icon.title as icontitle,icon.iconpath,','')."
attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter
".iif($avatarenabled,",avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline","")."
FROM post
".iif($forum[allowicons],'LEFT JOIN icon ON icon.iconid=post.iconid','')."
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid
".iif ($avatarenabled,"LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid","")."
LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid
".iif( $showonline,"LEFT JOIN session ON (session.userid = user.userid
AND session.userid > 0
".iif($bbuserinfo['usergroupid']!=6,"AND user.invisible = 0","")."
AND session.lastactivity>$datecut)","")."
WHERE post.postid = '$postid'
");

$postbits .= getpostbit($post);
eval("dooutput(\"".gettemplate("showpost")."\");");
exit;
}

// ################################################## ############################
// ############################# SHOW THREAD ####################################
// ################################################## ############################

$templatesused = 'postbit_search,postbit_buddy,postbit_useremail,ic q,aim,yahoo,postbit_homepage,postbit_profile,postb it_ip_show,postbit_ip_hidden,postbit,postbit_sendp m,postbit_avatar,postbit_offline,postbit_online,po stbit_editedby,postbit_signature,postbit_attachmen t,postbit_attachmentimage,showthread_adminoptions, showthread_threadrate,showthread_pollresults_voted ,showthread_pollresults_closed,showthread_firstunr ead,showthread_nextnewestthread,showthread_nextold estthread,forumrules,showthread';
require('./global.php');

// oldest first or newest first
if ($postorder==0) {
$postorder="";
} else {
$postorder="DESC";
}

// goto last post
if ($goto=="lastpost") {
if (isset($threadid) and $threadid!=0) {
$threadid = verifyid("thread",$threadid);

if ($getlastpost=$DB_site->query_first("SELECT postid,post.dateline FROM post,thread WHERE post.threadid=thread.threadid AND thread.threadid='$threadid' AND post.visible=1 AND thread.visible=1 ORDER BY post.dateline DESC LIMIT 1")) {
header("Location: showthread.php?s=$session[sessionhash]&postid=$getlastpost[postid]#post$getlastpost[postid]");
exit;
}
}
if (isset($forumid) and $forumid!=0) {
$foruminfo=verifyid("forum",$forumid,1,1);
$forumid=$foruminfo['forumid'];

$getchildforums=$DB_site->query("SELECT forumid,parentlist FROM forum WHERE INSTR(CONCAT(',',parentlist,','),',$forumid,')>0");
while ($getchildforum=$DB_site->fetch_array($getchildforums)) {
if ($getchildforum[forumid]==$forumid) {
$parentlist=$getchildforum[parentlist];
}
$forumslist.=",$getchildforum[forumid]";
}

$thread=$DB_site->query_first("SELECT threadid FROM thread WHERE forumid IN (0$forumslist) AND visible=1 AND (sticky=1 OR sticky=0) AND lastpost>='".($foruminfo[lastpost]-30)."' AND open<>10 ORDER BY lastpost DESC LIMIT 1");

if ($getlastpost=$DB_site->query_first("SELECT postid FROM post WHERE threadid='$thread[threadid]' AND visible=1 ORDER BY postid DESC LIMIT 1")) {
header("Location: showthread.php?s=$session[sessionhash]&postid=$getlastpost[postid]#post$getlastpost[postid]");
exit;
}
}
}

// goto newest post
if ($goto=="newpost") {
$threadid = verifyid("thread",$threadid);

if ($posts=$DB_site->query_first("SELECT postid,dateline FROM post WHERE post.threadid=$threadid AND post.visible=1 AND post.dateline>'$bbuserinfo[lastvisit]' ORDER BY dateline LIMIT 1")) {
header("Location: showthread.php?s=$session[sessionhash]&postid=$posts[postid]#post$posts[postid]");
exit;
} else {
header("Location: showthread.php?s=$session[sessionhash]&threadid=$threadid&goto=lastpost");
exit;
}
}

if ($goto=="nextnewest") {
$thread = verifyid("thread",$threadid,1,1);
if ($getnextnewest=$DB_site->query_first("SELECT threadid
FROM thread
WHERE forumid='$thread[forumid]'
AND lastpost>'$thread[lastpost]'
AND visible=1
AND open<>10
ORDER BY lastpost LIMIT 1")) {
$threadid=$getnextnewest[threadid];
unset ($thread);
} else {
eval("standarderror(\"".gettemplate("error_nonextnewest")."\");");
}
}

if ($goto=="nextoldest") {
$thread = verifyid("thread",$threadid,1,1);
if ($getnextoldest=$DB_site->query_first("SELECT threadid
FROM thread
WHERE forumid='$thread[forumid]'
AND lastpost<'$thread[lastpost]'
AND visible=1
AND open<>10
ORDER BY lastpost DESC LIMIT 1")) {
$threadid=$getnextoldest[threadid];
unset($thread);
} else {
eval("standarderror(\"".gettemplate("error_nonextoldest")."\");");
}
}

if (!isset($perpage)) {
if ($bbuserinfo[maxposts]!=-1 and $bbuserinfo[maxposts]!=0)
{
$perpage = $bbuserinfo[maxposts];
} else {
$perpage=$maxposts;
}
}
$perpage = intval($perpage);

if (isset($postid) and $postid!=0 and $postid!="") {
$postid = verifyid("post",$postid);

$getthread=$DB_site->query_first("SELECT threadid FROM post WHERE postid='$postid'");
$threadid=$getthread[threadid];

if (!$postorder) {
$getpagenum=$DB_site->query_first("SELECT COUNT(*) AS posts FROM post WHERE threadid='$threadid' AND postid<='$postid'");
if ($getpagenum[posts]%$perpage==0) {
$pagenumber=$getpagenum[posts]/$perpage;
} else {
$pagenumber=intval($getpagenum[posts]/$perpage)+1;
}
} else {
$getpagenum=$DB_site->query_first("SELECT COUNT(*) AS posts FROM post WHERE threadid='$threadid' AND postid>='$postid'");
if ($getpagenum[posts]%$perpage==0) {
$pagenumber=$getpagenum[posts]/$perpage;
} else {
$pagenumber=intval($getpagenum[posts]/$perpage)+1;
}
}
}

$threadid = intval($threadid);
$thread = verifyid("thread",$threadid,1,1);

if ($wordwrap!=0) {
$thread['title']=dowordwrap($thread['title']);
}

if (!$thread['visible']) {
$idname="thread";
eval("standarderror(\"".gettemplate("error_invalidid")."\");");
exit;
}

$forum=getforuminfo($thread['forumid']);

$getperms=getpermissions($thread['forumid'],-1,-1,$foruminfo['parentlist']);
if (!$getperms['canview']) {
show_nopermission();
}
if (!$getperms['canviewothers'] and $thread['postuserid']!=$bbuserinfo['userid']) {
show_nopermission();
}

if ((!isset($pagenumber) or $pagenumber==0) and $pagenumber!="lastpage") {
$pagenumber=1;
}

if ($noshutdownfunc) {
$DB_site->query("UPDATE thread SET views=views+1 WHERE threadid='$threadid'");
} else {
$shutdownqueries[]="UPDATE LOW_PRIORITY thread SET views=views+1 WHERE threadid='$threadid'";
}

if ($bbuserinfo[cookieuser]) {
vbsetcookie("bbthreadview[$threadid]",time(),0);
}

// words to highlight from the search engine
if (isset($highlight)) {
$highlight=urldecode($highlight);
$highlightwords=explode(" ",str_replace("/","\/",quotemeta($highlight)));
while (list($key,$val)=each($highlightwords)) {
$val = strtolower($val);
if ($val=='or' OR $val=='and' OR $val=='not') {
continue;
}
if ($allowwildcards) {
$val = str_replace("\*", "[a-zA-z]+", $val);
}
$replacewords[$key]="$val";
}
}
// draw nav bar
$navbar=makenavbar($threadid,"thread",0);

$curforumid = $thread['forumid'];

makeforumjump();

if ($thread[pollid]) {
$pollid=$thread[pollid];
$pollinfo=$DB_site->query_first("SELECT * FROM poll WHERE pollid='$pollid'");

$pollinfo[question]=bbcodeparse($pollinfo[question],$forum[forumid],1);

$splitoptions=explode("|||", $pollinfo[options]);
$splitvotes=explode("|||",$pollinfo[votes]);

$showresults=0;

if (!$pollinfo[active] or !$thread[open] or ($pollinfo[dateline]+($pollinfo[timeout]*86400)<time() and $pollinfo[timeout]!=0)){
//thread/poll is closed, ie show results no matter what
$showresults=1;
} else {
//get userid, check if user already voted
if ($HTTP_COOKIE_VARS['pollvoted'][$pollid] or ($bbuserinfo['userid'] and $uservote=$DB_site->query_first("SELECT pollvoteid FROM pollvote WHERE userid='$bbuserinfo[userid]' AND pollid=$pollid"))) {
$uservoted=1;
}
}

$counter=0;
while ($counter++<$pollinfo[numberoptions]) {
$pollinfo[numbervotes]+=$splitvotes[$counter-1];
}

$counter=0;
$pollbits="";

while ($counter++<$pollinfo[numberoptions]) {
$option[question] = bbcodeparse($splitoptions[$counter-1],$forum[forumid],1);
$option[votes] = $splitvotes[$counter-1]; //get the vote count for the option
$option[number] = $counter; //number of the option

//Now we check if the user has voted or not
if ($showresults or $uservoted) { // user did vote or poll is closed

if ($option[votes] == 0){
$option[percent]=0;
} else{
$option[percent] = number_format($option[votes]/$pollinfo[numbervotes]*100,2);
}

$option[graphicnumber]=$option[number]%6 + 1;
$option[barnumber] = round($option[percent])*2;
if ($showresults) {
eval("\$pollstatus = \"".gettemplate("showthread_pollresults_closed")."\";");
} elseif ($uservoted) {
eval("\$pollstatus = \"".gettemplate("showthread_pollresults_voted")."\";");
}
eval("\$pollbits .= \"".gettemplate("pollresult")."\";");
} else {
eval("\$pollbits .= \"".gettemplate("polloption")."\";");
}
}

if ($showresults or $uservoted) {
eval("\$poll = \"".gettemplate("showthread_pollresults")."\";");
} else {
eval("\$poll .= \"".gettemplate("showthread_polloptions")."\";");
}
} else {
$poll="";
}

$bbcodeon=iif($forum[allowbbcode],$ontext,$offtext);
$imgcodeon=iif($forum[allowimages],$ontext,$offtext);
$htmlcodeon=iif($forum[allowhtml],$ontext,$offtext);
$smilieson=iif($forum[allowsmilies],$ontext,$offtext);

$limitlower=($pagenumber-1)*$perpage+1;
$limitupper=($pagenumber)*$perpage;

$counter=0;

$datecut = time() - $cookietimeout;

// can do it this way or use a strstr() for each post but I feel this will be quicker overall
$ignorelist = explode(' ', $bbuserinfo['ignorelist']);
while ( list($key, $val)=each($ignorelist) ) {
$ignore[$val] = 1;
}

$postscount=$DB_site->query_first("SELECT COUNT(*) AS posts FROM post WHERE post.threadid='$threadid' AND post.visible=1");
$totalposts=$postscount[posts];

$getpostids=$DB_site->query("
SELECT post.postid FROM post
WHERE post.threadid='$threadid' AND post.visible=1
ORDER BY dateline $postorder LIMIT ".($limitlower-1).",$perpage
");

if ($limitupper>$totalposts) {
$limitupper=$totalposts;
if ($limitlower>$totalposts) {
$limitlower=$totalposts-$perpage;
}
}
if ($limitlower<=0) {
$limitlower=1;
}
$postids="post.postid IN (0";
while ($post=$DB_site->fetch_array($getpostids)) {
$postids.=",".$post[postid];
}

$postids.=")";


$posts=$DB_site->query("
SELECT
".iif ($showonline,"session.userid AS sessionuserid,","")."
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,".iif($forum[allowicons],'icon.title as icontitle,icon.iconpath,','')."
attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter
".iif($avatarenabled,",avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline","")."
FROM post
".iif($forum[allowicons],'LEFT JOIN icon ON icon.iconid=post.iconid','')."
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid
".iif ($avatarenabled,"LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid","")."
LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid
".iif( $showonline,"LEFT JOIN session ON (session.userid = user.userid
AND session.userid > 0
".iif($bbuserinfo['usergroupid']!=6,"AND user.invisible = 0","")."
AND session.lastactivity>$datecut)","")."
WHERE $postids
ORDER BY dateline $postorder
");


$counter=0;
while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) {
if ($postdone[$post[postid]]) {
$counter--;
continue;
} else {
$postdone[$post[postid]]=1;
}
$postbits .= getpostbit($post);}


// ###################################
// start of custom pips and stars hack
// ###################################


if ($post[posts] > 200)
{ $pips = "" ; }
elseif ($post[posts] > 180)
{ $pips = "<img src=\"http://www.flippermarkt.de/portal/forums/images/pip12.gif\" border=0>"; }
elseif ($post[posts] > 160)
{ $pips = "<img src=\"http://www.flippermarkt.de/portal/forums/images/pip11.gif\" border=0>"; }
elseif ($post[posts] > 140)
{ $pips = "<img src=\"http://www.flippermarkt.de/portal/forums/images/pip10.gif\" border=0>"; }
elseif ($post[posts] > 120)
{ $pips = "<img src=\"http://www.flippermarkt.de/portal/forums/images/pip9.gif\" border=0>"; }
elseif ($post[posts] > 100)
{ $pips = "<img src=\"http://www.flippermarkt.de/portal/forums/images/pip8.gif\" border=0>"; }
elseif ($post[posts] > 80)
{ $pips = "<img src=\"http://www.flippermarkt.de/portal/forums/images/pip7.gif\" border=0>"; }
elseif ($post[posts] > 60)
{ $pips = "<img src=\"http://www.flippermarkt.de/portal/forums/images/pip6.gif\" border=0>"; }
elseif ($post[posts] > 50)
{ $pips = "<img src=\"http://www.flippermarkt.de/portal/forums/images/pip5.gif\" border=0>"; }
elseif ($post[posts] > 40)
{ $pips = "<img src=\"http://www.flippermarkt.de/portal/forums/images/pip4.gif\" border=0>"; }
elseif ($post[posts] > 30)
{ $pips = "<img src=\"http://www.flippermarkt.de/portal/forums/images/pip3.gif\" border=0>"; }
elseif ($post[posts] > 20)
{ $pips = "<img src=\"http://www.flippermarkt.de/portal/forums/images/pip2.gif\" border=0>"; }
elseif ($post[posts] > 10)
{$pips = "<img src=\"http://www.flippermarkt.de/portal/forums/images/pip1.gif\" border=0>"; }
else
{$pips = ""; }


//if ($post[posts] > 1500)
// { $goldstars = "<img src=\"http://www.flippermarkt.de/portal/forums/images/goldstar5.gif\" border=0><br>"; }
//elseif ($post[posts] > 1000)
// { $goldstars = "<img src=\"http://www.flippermarkt.de/portal/forums/images/goldstar4.gif\" border=0><br>"; }
//elseif ($post[posts] > 750)
// { $goldstars = "<img src=\"http://www.flippermarkt.de/portal/forums/images/goldstar3.gif\" border=0><br>"; }
//elseif ($post[posts] > 500)
// { $goldstars = "<img src=\"http://www.flippermarkt.de/portal/forums/images/goldstar2.gif\" border=0><br>"; }
//elseif ($post[posts] > 200)
// { $goldstars = "<img src=\"http://www.flippermarkt.de/portal/forums/images/goldstar1.gif\" border=0><br>"; }
//else
// { $goldstars = ""; }


// #################################
// end of custom pips and stars hack
// #################################

$pagenav = getpagenav($totalposts,"showthread.php?s=$session[sessionhash]&threadid=$threadid&perpage=$perpage");

$DB_site->free_result($posts);
unset($post);
unset($sigcache); //don't need the signature cache anymore

if ($thread[open]) {
$replyclose="images/reply.gif";
} else {
$replyclose="images/threadclosed.gif";
}

if ($thread[lastpost]>$bbuserinfo[lastvisit]) {
// do blue arrow link

if ($firstnew) {
$newpostlink="#newpost";
} else {
$newpostlink="showthread.php?s=$session[sessionhash]&threadid=$threadid&goto=newpost";
}

eval("\$firstunread = \"".gettemplate("showthread_firstunread")."\";");

} else {
$firstunread="";
}
if ($forum[allowratings]) {
eval("\$threadrateselect = \"".gettemplate("showthread_threadrate")."\";");
} else {
$threadrateselect = "&nbsp;";
}

if (ismoderator($forumid) or $getperms['canopenclose'] or $getperms['candeletethread'] or $getperms['canmove']) {
eval("\$adminoptions = \"".gettemplate("showthread_adminoptions")."\";");
} else {
$adminoptions = "&nbsp;";
}
getforumrules($forum,$getperms);
eval("dooutput(\"".gettemplate("showthread")."\");");

?>

Bally
12-02-2001, 10:17 PM
<table bgcolor="{pagebgcolor}" width="{tablewidth}" cellpadding="0" cellspacing="0" border="0"><tr><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td><td width="100%"><!-- spacer -->

<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
<td bgcolor="$post[backcolor]" width="175" valign="top" nowrap>
<a name="post$post[postid]"></a>
$post[firstnewinsert]
<table style="filter:glow(color=#990099, strength=3)">
<font color="#ffffff"><B>
<normalfont><b>$post[username]</b></normalfont></table><font color="#000000"><br>
$pips<br>
<smallfont>$post[usertitle]</smallfont><br>
$post[avatar]<p>
<smallfont>Registriert seit: $post[joindate]<br>
Wohnort: $post[field2]<br>
Beitr?ge: $post[posts]</smallfont></td>

<td bgcolor="$post[backcolor]" width="100%" valign="top">
<smallfont>$post[icon] <b>$post[title]</b></smallfont>
<p><normalfont>$post[message]</normalfont></p>
$post[attachment]
<p>$post[signature]</p>
<p>$post[editedby]</p>
<p align="right"><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Diesen Beitrag einem Moderator melden</a> | $post[iplogged]</smallfont></p>
</td>
</tr>
<tr>
<td bgcolor="$post[backcolor]" width="175" height="16" nowrap><smallfont>$onlinestatus $post[foldericon]
$post[postdate] <font color="{timecolor}">$post[posttime]</font></smallfont></td>

<td bgcolor="$post[backcolor]" width="100%" valign="middle" height="16">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="bottom">
<td><smallfont>
$post[profile] $post[pmlink] $post[useremail] $post[homepage] $post[search] $post[buddy]
$post[icqicon] $post[aimicon] $post[yahooicon]
</smallfont></td>
<td align="right" nowrap><smallfont>
<a href="editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]"><img src="{imagesfolder}/edit.gif" border="0" alt="Beitrag bearbeiten/l?schen"></a>
<a href="newreply.php?s=$session[sessionhash]&action=newreply&postid=$post[postid]"><img src="{imagesfolder}/quote.gif" border="0" alt="Zitieren"></a>
</smallfont></td>
</tr>
</table>
</td>
</tr>
</table>
</td></tr></table>

<!-- spacer --></td><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td></tr></table>

fonzerelli_79
12-02-2001, 10:23 PM
it seems ok

maybe its something in the postbit template

sorry i couldnt be of more help mate

sctsnipe
12-03-2001, 10:00 PM
Cool-e-o!

Thanks so much, ive been looking all over for this thing!

Pabs
05-06-2002, 04:07 AM
Does this work with 2.2.5??

tweak
05-06-2002, 08:00 PM
:O

JGM007
06-02-2002, 01:32 AM
Has anyone tried this, or is running it with 2.2.5?


< Ok I feel like a mutant, I did not see pabs post the same question :p >

Apok2002
12-27-2002, 02:18 AM
It is not necessary to edit showthread.php. However, this could be only for 2.2.8.

If you have 2.2.8+, all you need to edit is the admin/functions.php file (works perfectly).