Page 2 of 2

Re: “AddThis” under first post

Posted: 24 Jun 2010, 17:07
by Makis
The problem remains with this code

Code: Select all

<!-- IF FORUM_ID eq 30 or FORUM_ID eq 31 and postrow.S_FIRST_ROW --> addthis code here<!-- ENDIF -->
For forum 30 (as you see above), the “add” is as we wanted, is under the first post only.
For the forum 31 goes under all posts of each and every topic.

Where is wrong?

Re: “AddThis” under first post

Posted: 24 Jun 2010, 17:38
by cisco007
what if you try this?

Code: Select all

<!-- IF postrow.S_FIRST_ROW --><!-- IF FORUM_ID eq 30 or FORUM_ID eq 31  --> addthis code here<!-- ENDIF --><!-- ENDIF -->

Re: “AddThis” under first post

Posted: 24 Jun 2010, 17:49
by Makis
It happen the same
Only solution I fount is to put a new code for every forum

Code: Select all

<!-- IF FORUM_ID eq 30 and postrow.S_FIRST_ROW --> addthis code here<!-- ENDIF -->

Code: Select all

<!-- IF FORUM_ID eq 31 and postrow.S_FIRST_ROW --> addthis code here<!-- ENDIF -->
And so on, is that right?

Re: “AddThis” under first post

Posted: 24 Jun 2010, 18:12
by Makis
My apologies mea culpa
It works perfecto
This is the final

Code: Select all

<!-- IF postrow.S_FIRST_ROW --><!-- IF FORUM_ID eq 109 or FORUM_ID eq 29 or FORUM_ID eq 30 or FORUM_ID eq 31 -->  
    <div class="panel">
       <div class="inner"><span class="corners-top"><span></span></span>
          <div class="content">
             <p style="text-align: center;">
                <!-- AddThis Button BEGIN -->
<a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&username=xa-4c23775358f41605"><img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" width="130" height="20" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4c23775358f41605"></script>
<!-- AddThis Button END -->
&nbsp;&nbsp;&nbsp;
<a href="http://www.addthis.com/bookmark.php" 
    class="addthis_button_email">
        <img src="http://s7.addthis.com/button1-email.gif" 
    width="60" height="20" border="0" alt="Email" /></a>
    <script type="text/javascript">
var addthis_config = {
     ui_language: "el"
}
</script>
			</p>
          </div>
       <span class="corners-bottom"><span></span></span></div>
    </div>
    <!-- ENDIF --><!-- ENDIF -->
Thanks again cisco007 :thumb:

Re: “AddThis” under first post

Posted: 24 Jun 2010, 18:20
by cisco007
Glad it worked because i just had to create a new site on my localhost with more forums to test it and it worked!

Re: “AddThis” under first post

Posted: 12 Jul 2010, 04:37
by FNolan
Thanks Guys, have it installed on my site and works fine. Someday I'll figure out how to add it to the first post and not under it :)