Log in

View Full Version : Postbit Trouble


nandastone
10-28-2001, 10:31 PM
Hi,
In the post bit templates $post[buddy], $post[email] etc... point to certain templates. I have a template called postbit_rating and I want $post[rating] to point to it. How can I do this?

Thank you.

BradC
10-29-2001, 12:32 AM
admin/functions.php

open up that file..

look for the other $post variables like

$post[buddy]

see how it does it... and just copy it pretty much and change it to be what you want it to be.

like


if ($post[rating]!=0 and $post[rating]!=0) {
eval("\$post[rating] = \"".gettemplate("postbit_rating")."\";");
} else {
$post[rating]="";
}


Don't know if that will help, but you can put that right underneath this and maybe change it around a bit.. to fit your needs, but should work:


if ($post['receivepm'] and $enablepms==1) {
eval("\$post[pmlink] = \"".gettemplate("postbit_sendpm")."\";");
} else {
$post[pmlink] = "";
}

nandastone
10-29-2001, 12:41 AM
Thanks a million, that's exactly what I needed.

BradC
10-29-2001, 03:50 AM
well your welcome.. always glad to help :)