03-04-2010, 09:44 AM
|
|
|
|
Join Date: Oct 2008
Location: Virginia
Posts: 545
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by testebr
I figure out how to solve it:
hook: process_templates_complete
code: $footer .= 'text added to footer';
No idea if was the best solution, but that worked very well.
|
Quote:
Originally Posted by cellarius
Indeed, you can manipulate the already rendered template doing this. Also possible is str_replace:
PHP Code:
$search = "Terms of Service";
$replace = "Terms of Cooking Noodles";
$footer = str_replace($search,$replace,$footer);
Although this is a somewhat bad example, since "Terms of Service" is a phrase, of course, and will vary by language. Always make sure you use strings for replacement that are always present.
Attachment 106372
Using str_replace, you can also add stuff in the middle of the template like so:
PHP Code:
$search = "Terms of Service";
$replace = " and Terms of Cooking Noodles";
$footer = str_replace($search,$search.$replace,$footer);
Attachment 106374
|
Testbr and Cellarius - Thank you so much! I finally found your post which solved my issue. After seeing it, it's so simple I felt like smacking myself.. LOL :facepalm:
|