Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

E-mail button for news and articles

Asked Modified Viewed 1,143 times
Q
Quartzkyte
Q
www.php-fusion.co.uk/../../images/smiley/cool.gif

Mike
---------------------------------------
Quartzkyte, admin @ French N.S.S.
  • Senior Member, joined since
  • Contributed 404 posts on the community forums.
  • Started 40 threads in the forums
  • Started this discussions
asked
Senior Member

Hi all,

I hope a/ I can be clear and b/ someone will have an idea...

I'd like to find a way to have an e-mail button working for the news and articles,
but for the news and articles only, not the main page.

For instance if I put an AddThis or ShareThis button in the news section (or render-news.php in the theme I use), the e-mail will link to the homepage (news.php), not to the news itself (news.php?readmore=xx).

I guess it's possible but as usual I don't know how :|

Thanks!
0 replies

4 posts

P
PHPar
P
PHPar 10
  • Member, joined since
  • Contributed 118 posts on the community forums.
  • Started 7 threads in the forums
answered
Member

you can copy news.php and rename it to home.php

open admin panel >> Settings >> Main Settings

and do likee this

http://awesomescreenshot.com/0ec4vtds3d

and save
0 replies
Q
Quartzkyte
Q
www.php-fusion.co.uk/../../images/smiley/cool.gif

Mike
---------------------------------------
Quartzkyte, admin @ French N.S.S.
  • Senior Member, joined since
  • Contributed 404 posts on the community forums.
  • Started 40 threads in the forums
  • Started this discussions
answered
Senior Member

Thank you for your reply.

This would not change the question, however : how do I get an e-mail button (for each piece of news) that would not include the other ones ?
0 replies
P
PHPar
P
PHPar 10
  • Member, joined since
  • Contributed 118 posts on the community forums.
  • Started 7 threads in the forums
answered
Member

give me the code for AddThis
0 replies
Q
Quartzkyte
Q
www.php-fusion.co.uk/../../images/smiley/cool.gif

Mike
---------------------------------------
Quartzkyte, admin @ French N.S.S.
  • Senior Member, joined since
  • Contributed 404 posts on the community forums.
  • Started 40 threads in the forums
  • Started this discussions
answered
Senior Member

I cannot customize it... :|

AddThis (or ShareThis) manage their own system with javascript.

All one has to do is include the JS script in the body
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5542397629e6a183" async="async"></script>
and the <div> where you want to display the bar
<div class="addthis_sharing_toolbox"></div>
.
Then it generates code & images like
couchable.co/images/uploads/blog/addthis-social-media-icons.jpg


It is simple to add the code in the render-news.php page to add the service, but it is not customizable (but for the selected services).
Therefore I'd like to add an e-mail button that would e-mail the selected news (or article) B)
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 4 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

Q
Q
www.php-fusion.co.uk/../../images/smiley/cool.gif

Mike
---------------------------------------
Quartzkyte, admin @ French N.S.S.
  • Senior Member, joined since
  • Contributed 404 posts on the community forums.
  • Started 40 threads in the forums
  • Started this discussions
P
P
PHPar 10
  • Member, joined since
  • Contributed 118 posts on the community forums.
  • Started 7 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet