PDA

View Full Version : [SOLVED] appending to part of template


Dr.CustUmz
03-04-2016, 02:19 PM
brain farted need some help

I have this set at forumhome_complete

$drcttv_posts = '$vbphrase[posts]: $totalposts,';
$drcttv = 'Some text';
$drcttv_posts .= $drcttv;

Im trying to make it add "some text" after "Posts: ###," on the forumhome statistics

what am i doing wrong

MarkFL
03-04-2016, 06:34 PM
If you wish to add some text at that point, created a plugin hooked at "forumhome_complete" with Plugin PHP Code something like:

$added_text = ', Some Text...';
$totalposts .= $added_text;

Dr.CustUmz
03-04-2016, 07:39 PM
If you wish to add some text at that point, created a plugin hooked at "forumhome_complete" with Plugin PHP Code something like:

$added_text = ', Some Text...';
$totalposts .= $added_text;

thanks so this should work just fine the right?

$added_text = ', Some Text...' . $someVar . '';
$totalposts .= $added_text;

Dave
03-04-2016, 07:42 PM
Almost:

$added_text = ', Some Text ' . $someVar;
$totalposts .= $added_text;

You can make it shorter though:
$totalposts .= ', Some Text ' . $someVar;

Dr.CustUmz
03-04-2016, 08:30 PM
Almost:

$added_text = ', Some Text ' . $someVar;
$totalposts .= $added_text;

You can make it shorter though:
$totalposts .= ', Some Text ' . $someVar;

Touche, no point in appending nothing how i did lol =)