hi, im interested in altering the template so that the postibits section has "Not Stated" in the location feild instead of a gap when they havnt stated there location.
from this
Joined: May 2006
Group: Writer Team
Posts: 16
to this
Joined: May 2006
Location: Not Stated
Group: Writer Team
Posts: 16
keep in mind i have the vb postibits thing installed
hello there,
open
./inc/functions_post.php
find
if($post['avatar'] != "" && $mybb->user['showavatars'] != "no")
above it add
if($post['fid1'] != "")
{
$location = "Location: ".$post['fid1']."<br />";
} else {
$location = "Location: Not Stated <br />";
}
now the postbit, just add $location.
regards
zaher1988 Wrote:hello there,
open ./inc/functions_post.php
find
if($post['avatar'] != "" && $mybb->user['showavatars'] != "no")
above it add
if($post['fid1'] != "")
{
$location = "Location: ".$post['fid1']."<br />";
} else {
$location = "Location: Not Stated <br />";
}
now the postbit, just add $location.
regards
You may want to use this code:
if($post['fid1'] != "")
{
$location = "Location: ".htmlspecialchars_uni($post['fid1'])."<br />";
} else {
$location = "Location: Not Stated <br />";
}
That will protect HTML from being displayed by the browser.