mandrin Posted March 3, 2010 Share Posted March 3, 2010 Hi there,I use the BackOffice CMS system to create custom news and information pages.I would like to have the "addthis" ( www.addthis.com ) button at the bottom of these pages, so users can easily email and print etc BUT the problem is that TinyMCE does not allow javascript and I get the "the field content (English (English)) is invalid" error.I have tried everything but cannot get this resolved.However, I thought I could try get two birds with one stone and try to insert the AddThis button next to the "home" link on all pages in the centre column. Please see attached picture as explanation.Any assistance would be much appreciated.Regards, Link to comment Share on other sites More sharing options...
muktadir Posted March 5, 2010 Share Posted March 5, 2010 create a module and hook into that position (there is a footer hook). Or you may need to create a custom hook for placing exactly beside home link. If you cannot create a mod, you can hire me at [email protected] Link to comment Share on other sites More sharing options...
Star Posted March 6, 2010 Share Posted March 6, 2010 Hi there,I use the BackOffice CMS system to create custom news and information pages.I would like to have the "addthis" ( www.addthis.com ) button at the bottom of these pages, so users can easily email and print etc BUT the problem is that TinyMCE does not allow javascript and I get the "the field content (English (English)) is invalid" error.I have tried everything but cannot get this resolved.However, I thought I could try get two birds with one stone and try to insert the AddThis button next to the "home" link on all pages in the centre column. Please see attached picture as explanation.Any assistance would be much appreciated.Regards, Do you still need help on this? Look at my site. I put it on the left column. If you like it, I will post how to do it here. If you want to put it at the bottom of the pages, it is very easy. I can show you how to do it. Let me know. Link to comment Share on other sites More sharing options...
mandrin Posted March 6, 2010 Author Share Posted March 6, 2010 Awesome! Star to the rescue!!I would greatly appreciate your assistance to help me get the "addthis" button next to the "home" button.As I said above, most, if not all of my core information I wish my clients to print/share/email is in the centre column, and they always see the home button there anyway, so it makes definite sense to put the "addthis" button there as well.Thank you in advance Star.Regards, Link to comment Share on other sites More sharing options...
Star Posted March 6, 2010 Share Posted March 6, 2010 Awesome! Star to the rescue!!I would greatly appreciate your assistance to help me get the "addthis" button next to the "home" button.As I said above, most, if not all of my core information I wish my clients to print/share/email is in the centre column, and they always see the home button there anyway, so it makes definite sense to put the "addthis" button there as well.Thank you in advance Star.Regards, Tell me exactly which pages you want the add this button on. Ex: cms, category...... Which template are you using? Link to comment Share on other sites More sharing options...
mandrin Posted March 6, 2010 Author Share Posted March 6, 2010 Hehehe, sorry, my bad for lack of info Forgive me.Yep, I am looking for this for the CMS pages. And I am running PS 1.2.5 default template.Regards, Link to comment Share on other sites More sharing options...
Star Posted March 6, 2010 Share Posted March 6, 2010 Okay.Go to the themes/cms.tpl.change : {if !$content_only} {l s='Home'} {/if} to : {if !$content_only} {l s='Home'} {literal} <!-- AddThis Button BEGIN --> [removed]var addthis_offset_top = 0;var addthis_offset_left = 0; var addthis_pub="skrotoski";[removed] [removed][removed]<!--"''"--> <!-- AddThis Button END --> {/literal} {/if} Link to comment Share on other sites More sharing options...
mandrin Posted March 6, 2010 Author Share Posted March 6, 2010 WOOT! Works a charm.Thanks Star! You are brilliant.Regards, Link to comment Share on other sites More sharing options...
Star Posted March 6, 2010 Share Posted March 6, 2010 I just see the forum ate up some codes. I have attached the 1.25 default themes cms.tpl here. cms.zip Link to comment Share on other sites More sharing options...
Star Posted March 6, 2010 Share Posted March 6, 2010 WOOT! Works a charm.Thanks Star! You are brilliant.Regards, Glad to hear that. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now