<span class="Apple-style-span" style="border-collapse: collapse; ">Hi Hiro,&nbsp;<div><br></div><div>No you need to make your own module. Let&#39;s say you call your module anone.</div><div><br></div><div>Then:</div><div><br></div>
<div>1. Make a folder in sites/all/modules called anone<br><br></div><div>2. Make a file inside that folder and call it&nbsp;<a href="http://anone.info" target="_blank" style="color: rgb(42, 93, 176); ">anone.info</a>, put the following lines inside<br>
<ol></ol>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;name = &quot;&nbsp;A-NO-NE&quot;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;description = &quot;Helper module for small changes in functionality Anone site&quot;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;package = &quot;Anone&quot;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;dependencies[] = og</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;core = 6.x</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;version = &quot;6.x-1.x-dev&quot;<br><br></div><div>3. Make a second file inside the anone folder and call it anone.module, put inside the lines that I gave you, but replace mymodule in the function name with the real name of the module where you use it in: anone, so</div>
<div>function anone_og_links_alter(&amp;$links, $group_node) {</div><div>Start with&nbsp;&lt;?php but don&#39;t end with ?&gt;</div><div><br></div><div>4. Go in your Drupal admin to modules and activate your module. Should work, if you get a white screen you made a mistake. More information how to make a module you find on &nbsp;<a href="http://drupal.org/node/206753" target="_blank" style="color: rgb(42, 93, 176); ">http://drupal.org/node/206753</a></div>
<div><br></div><div>Good luck,&nbsp;</div><div><br></div><div>Hans</div><div><a href="http://www.koba.be" target="_blank" style="color: rgb(42, 93, 176); ">www.koba.be</a></div></span><br><div class="gmail_quote">2009/6/26 A-NO-NE Music <span dir="ltr">&lt;<a href="mailto:madflute@anonemusic.com">madflute@anonemusic.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Thank you so much for you response (again :-)<br>
<br>
I must admit I do not know how to implement this. &nbsp;When you say &quot;inside the module&quot;, do I need to hack the book.module file, or create a tpl,php file instead?<div class="im"><br>
<br>
--<br>
- Hiro<br>
<br>
Hiroaki Honshuku, A-NO-NE Music, Greater Boston<br>
<a href="http://a-no-ne.com" target="_blank">http://a-no-ne.com</a> &nbsp; <a href="http://anonemusic.com" target="_blank">http://anonemusic.com</a><br>
<br>
<br>
<br></div><div><div></div><div class="h5">
On 09/06/24(水), at 5:39, KOBA | Hans Rossel wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I uses this basis code inside a module to adapt the OG Detail block, just uncomment or remove the parts you don&#39;t need.<br>
<br>
/**<br>
* Implementation of hook_og_link_alter().<br>
*/<br>
function mymodule_og_links_alter(&amp;$links, $group_node) {<br>
//drupal_set_message(&#39;&lt;pre&gt;&#39;. var_export($group_node,TRUE) .&#39;&lt;/pre&gt;&#39;);<br>
//drupal_set_message(&#39;&lt;pre&gt;&#39;. var_export($links,TRUE) .&#39;&lt;/pre&gt;&#39;);<br>
<br>
 &nbsp;//$links[&#39;invite&#39;] = &#39;Blablabla&#39;; &nbsp;// change the invite anchor text<br>
 &nbsp;//unset ($links[&#39;subscribers&#39;]);<br>
 &nbsp;unset ($links[&#39;invite&#39;]); &nbsp;// Remove invite a friend link from group details block.<br>
 &nbsp;//unset ($links[&#39;manager&#39;]);<br>
 &nbsp;//unset ($links[&#39;my_membership&#39;]);<br>
}<br>
<br>
<br>
Hans<br>
<a href="http://www.koba.be" target="_blank">www.koba.be</a><br>
<br>
2009/6/24 A-NO-NE Music &lt;<a href="mailto:madflute@anonemusic.com" target="_blank">madflute@anonemusic.com</a>&gt;<br>
<br>
Drupal 6.12<br>
OG 6.x-1.3<br>
<br>
I am using OG for my classes at a collage. &nbsp;I need to get a better control of OG Detail Block.<br>
<br>
- I need to hide &quot;invite friend&quot;<br>
<br>
- I want to change the string where it says Groups to Classes<br>
<br>
- I want to have this block displayed as soon as a student logs in even though the node isn&#39;t a group node, i.e., &lt;front&gt;.<br>
<br>
I thought about it might be &nbsp;better off with View but I couldn&#39;t figure out how to change the content per student logged in like OG Detail Block does. &nbsp;Any help would be appreciated.<br>
<br>
<br>
--<br>
- Hiro<br>
<br>
Hiroaki Honshuku, A-NO-NE Music, Greater Boston<br>
<a href="http://a-no-ne.com" target="_blank">http://a-no-ne.com</a> &nbsp; <a href="http://anonemusic.com" target="_blank">http://anonemusic.com</a><br>
<br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
<br>
<br>
<br>
-- <br>
Hans Rossel<br>
KOBA Webdevelopment<br>
Kerkstraat 228<br>
9050 Gent<br>
09-334.52.60<br>
0472-79.32.16<br>
<a href="http://www.koba.be" target="_blank">www.koba.be</a><br>
<a href="mailto:info@koba.be" target="_blank">info@koba.be</a><br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</blockquote>
<br>
<br>
<br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Hans Rossel<br>KOBA Webdevelopment<br>Kerkstraat 228<br>9050 Gent<br>09-334.52.60<br>0472-79.32.16<br><a href="http://www.koba.be">www.koba.be</a><br><a href="mailto:info@koba.be">info@koba.be</a><br>