Announcement

Collapse
No announcement yet.

How do I add a banner to one forum only?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I add a banner to one forum only?

    I want to add a banner to this forum, it's a child forum off of Crunchy Cafe.

    I want the banner placed between the two boxes "sub forums" and "Threads in forums"
    Like centered int he white space next to the thread button ...

    Please help!

  • #2
    Admin CP -> Styles & Templates -> Style Manager -> v Dropdoown Menu v Edit Templates -> Expand All Template Groups -> FORUMDISPLAY

    Find in blue:
    Code:
    <if condition="$show['threadslist']">
    <!-- threads list  -->
    
    <!-- controls above thread list -->
    <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
    <tr valign="bottom">
    	<td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td>
    	<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
    </tr>
    </table>
    <!-- / controls above thread list -->
    Add your banner code:
    Code:
    <if condition="$show['threadslist']">
    <!-- threads list  -->
    
    <!-- controls above thread list -->
    <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
    <tr valign="bottom">
    
    <if condition="$forumid == 61">
                    <div align="center"><a href="http://www.url to banner.com"><img src=http://www.url to baaner image.gif></a></div>
    <else />
                    <div align="center"><a href="http://www.url to banner.com"><img src=http://www.url to baaner image.gif></a></div>
    </if>
    
    	<td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td>
    	<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
    </tr>
    </table>
    <!-- / controls above thread list -->

    or use this for only to show one banner in only one forum

    Add this to show banner in this Forumdisplay only.
    I went to your site and 61 shows for that Forumdisplay.


    Code:
    <if condition="$show['threadslist']">
    <!-- threads list  -->
    
    <!-- controls above thread list -->
    <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
    <tr valign="bottom">
    
    <if condition="$forumid == 61">
                    <div align="center"><a href="http://www.url to banner.com"><img src=http://www.url to baaner image.gif></a></div>
    </if>
    
    	<td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td>
    	<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
    </tr>
    </table>
    <!-- / controls above thread list -->
    Last edited by Jose Amaral Rego; Mon 7th Nov '05, 6:07pm.

    Comment


    • #3
      Man your awesome, thank you .. I will give it a try, if I have any more questions I will let you know THANK YOU for your help!

      Comment


      • #4
        Ok it's not working ... When I did the preview it was there but when I went to the actual forum the other ad was there ... it is because another ad is running?

        Comment


        • #5
          Not quite sure what you mean? This only works for the page forumdisplay forum id # 61. That is what you ask to you wanted your ad to display in right? I made two simular , but different banner ad codes. The first makes one ad to display in forum id # 61 and it rotates the other ads within other forums. The second ad banner displays only in that forum id # 61, is that not what you wanted? I have not tested out my phpAdsNew to see if this works with conditions added to it. Unless it is something else I am not quite understanding?

          Pardon, I had </td> table data cell tags within code above.
          I made the required edits.
          Last edited by Jose Amaral Rego; Mon 7th Nov '05, 6:14pm.

          Comment


          • #6
            My banner doesnt rotae how can i mkae it rotate? and add more banners to it?

            Comment


            • #7
              kellie go to this link since you have phpAdsNew
              http://www.vbulletin.com/forum/showthread.php?t=104606
              http://www.vbulletin.com/forum/showp...4&postcount=30
              Last edited by Jose Amaral Rego; Fri 11th Nov '05, 12:43pm.

              Comment


              • #8
                prows the link is right under your nose? It is in Different forums, different headers Topic Title
                http://www.vbulletin.com/forum/showthread.php?t=154943

                Comment

                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                Working...
                X