Forum Replies Created
-
AuthorPosts
-
Hi Chris,
okay I try to clairfy:
the aim is to implement a reading-player at the start of each colored section. I assume to use multiple sections on each page.
Readspeaker gives 2 ways of implementation:
1. Plugin (see plugin file)
2. Manually (see html above)The way I see it is that plugin automates what i usally would to manually.
Manual method is to give each colored section an ID, then add the player code by hand (see post above) and change the READID to the ID of the colored section box. I have to do it for each page for multiple sections.
The plugin – automated way – to me means to modify the plugin.php or the functions.php so that it does the following when a colored sections is used somewhere:
- Give section an ID
- Insert the player code using the ID
As far as I understand it is what I need a modification of the hook when sections are inserted into the main content?
- This reply was modified 7 years, 10 months ago by Oberlinhaus.
Hi Andy,
I uploaded the WP Plugin PHP file and a screenshot where it puts the player. The player is put always at the top of the site. I want that the player is put at the start of each colored section, only reading, whats in that section.
Readspeaker gives a way to implement that manually but there is a reason I am using a CMS :)
How to implement Readspeaker into body:
<div id="readspeaker_button1" class="rs_skip rsbtn rs_preserve"> <a rel="nofollow" title="Um den Text anzuhören, verwenden Sie bitte ReadSpeaker" href="//app-eu.readspeaker.com/cgi-bin/rsent?customerid=9152&lang=de_de&readid=[READID]&url=[ENCODED_URL]"> <span class="rsbtn_left rsimg rspart"><span class="rsbtn_text"><span>Vorlesen</span></span></span> <span class="rsbtn_right rsimg rsplay rspart"></span> </a> </div>
[READID]: Insert DIV ID of content to read e.g. “readspeaker_button1
- This reply was modified 7 years, 10 months ago by Oberlinhaus.
-
AuthorPosts