Support Forum
yes, the subscriptions use your site name... seemed natural... frankly no one has asked for anything different...
but you can use a filter (standard to wp) to change it... use the filter: sph_subscriptions_notification
and you can replace the sitename with the forum name if you like...
if you are unsure how to use wp filters, here is a reference: http://codex.wordpress.org/Fun.....add_filter
come on back if you need more help past that...
Visit Cruise Talk Central and Mr Papa's World
no, as I said, it would go in the spFunctions.php file of your sp theme... so something like:
add_filter('sph_subscriptions_notification', 'my_subs_title'); function my_subs_title($content) { $content = str_replace('blog title', 'forum name', $content); return $content; }
of course, replace 'blog title' with what you want to replace and change 'forum name' to what you want to replace it with...
also, be sure to make your own sp theme: http://codex.simple-press.com/.....g-a-theme/
Visit Cruise Talk Central and Mr Papa's World
I followed all of the instructions. The only part I was unsure about was modifying the spFunctions.php file. I tried to add the filter into the code. Here is what I did:
<?php
# --------------------------------------------------------------------------------------
#
# Simple:Press Theme custom function file
# Theme : mytheme
# File : custom functions
# Author : Simple:Press
#
# The 'functions' file can be used for custom functions & is loaded with each template
#
# --------------------------------------------------------------------------------------
add_action('init', 'spmytheme_textdomain');
# load the theme textdomain for tranlations
function spmytheme_textdomain() {
sp_theme_localisation('spmytheme');
}
add_filter('sph_subscriptions_notification', 'my_subs_title'); function my_subs_title($content) {
$content = str_replace('The Link', 'xChange Forum', $content);
return $content;
}
if(function_exists('sp_FontResizer')) {
add_action('sph_BeforeDisplayStart', 'spDefault_spShowFontResize');
}
function spmytheme_spShowFontResize() {
$tipMinus = __sp('decrease forum font size');
$tipReset = __sp('reset forum font size');
$tipPlus = __sp('increase font size');
sp_FontResizer('tagClass=spFontSizeControl spRight', $tipMinus, $tipReset, $tipPlus);
sp_InsertBreak('direction-right');
}
?>
Here is the error message I received:
Warning: Cannot modify header information - headers already sent by (output started at /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-content/sp-resources/forum-themes/mytheme/templates/spFunctions.php:40) in /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-content/plugins/simple-press/sp-startup/site/sp-ahah-handler.php on line 21
Warning: Cannot modify header information - headers already sent by (output started at /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-content/sp-resources/forum-themes/mytheme/templates/spFunctions.php:40) in /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-includes/pluggable.php on line 881
hmm... just tested it and it works fine...
can you check your code, in the actual file and make sure the single quotes are proper? might be worth typing over in case copying from here got different encoded quotes...
Visit Cruise Talk Central and Mr Papa's World
same kind of hook... just change the two strings in str_replace... first is from, second is to...
which line is 40 in you spFunctions.php file? might be worth posting the added code again... when you copied mine, did you do copy the code using the raw code button? or directly from the post? the former of course is the proper way...
Visit Cruise Talk Central and Mr Papa's World
I copied the raw code. It's not working. So perhaps, I missed something along the way following the theme creation instructions.
Or perhaps, this isn't the correct place to insert the filter. I also don't understand your post above. change the two strings in str_replace ... Are you saying I would just need to insert what I want replaced first and then content I want to replace it with second? Would be nice if I could get this to work.
Thanks for your help.
I just verified that I followed these instructions: http://codex.simple-press.com/.....g-a-theme/ properly.
Just not working. Not sure why?
1 Guest(s)