“AddThis” under first post

Support for PhpBB3. Post here to get help with any phpBB3 related issue here
There is no support here! Only Read Access!
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.
Else your topic may be ignored or locked!
User avatar
Makis
BBCoder III
BBCoder III
Posts: 91
Joined: 10 Mar 2010, 18:01
BBCodes: 67
Favourite MOD: Welcome On Index
Location: Athens Greece

Re: “AddThis” under first post

Post 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?
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: “AddThis” under first post

Post 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 -->
User avatar
Makis
BBCoder III
BBCoder III
Posts: 91
Joined: 10 Mar 2010, 18:01
BBCodes: 67
Favourite MOD: Welcome On Index
Location: Athens Greece

Re: “AddThis” under first post

Post 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?
User avatar
Makis
BBCoder III
BBCoder III
Posts: 91
Joined: 10 Mar 2010, 18:01
BBCodes: 67
Favourite MOD: Welcome On Index
Location: Athens Greece

Re: “AddThis” under first post

Post 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:
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: “AddThis” under first post

Post 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!
FNolan
BBCoder II
BBCoder II
Posts: 10
Joined: 12 Jul 2010, 03:30

Re: “AddThis” under first post

Post 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 :)
Locked