Need This Hack

Put a scrolling affiliate box on your forum's home page. This cleans up your forums overall appearances since you can add more images and use up less space.

Installation:
1.)Upload the attached image file to your skin's 'misc' folder.
2.)Go to AdminCP=> Styles & Templates=> Style Manager=> Specified Style=> Edit Templates=> FORUMHOME

Find:

PHP:
<if condition="$show['birthdays']">
<!-- today's birthdays -->


Add Above:

PHP:
<tbody>
        <tr>
            <td class="thead" colspan="2">
<img id="collapseimg_forumhome_online" style="float:$stylevar[align=right]" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_online].gif" alt="" border="0" />Affiliates
            </td>
        </tr>
    </tbody>
    <tbody id="collapseobj_forumhome_online" style="$vbcollapse[collapseobj_forumhome_online]">
        <tr>
            <td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" border="0" alt="Our Affiliates" />
            </td>
            <td class="alt1" width="100%">
 <style>
.imgfade{filter:alpha(opacity=30); -moz-opacity:1;margin-left:3px}
.imgfull{filter:alpha(opacity=100); -moz-opacity:1;margin-left:3px}
</style>
<!-- Start Marquee -->
<marquee width="700" valign="center" direction="right" scrolldelay="0" scrollamount="3" onmouseover="this.stop()" onmouseout="this.start()">
<!-- Start Enter Images Here -->




<!-- end Enter Images Here -->
</Marquee>
<!-- End Marquee -->
            </td>
        </tr>
            <tr>
                <td class="alt2" colspan="2" align="center">
<center><a href="http://www.yourdomain.com/forum/private.php?do=newpm&u=1" target="_top" title="Request affiliation!"><img src="$stylevar[imgdir_misc]/affiliate.gif" border="0" /></a></center>
                </td>
            </tr>
    </tbody>


Please note: On the 6th last line there is a change that must be made to this code.

http://www.yourdomain.com/forum/private.php?do=newpm&u=1

Replace the yourdomain part with...well...your domain :p

Save and done.

affilates.jpg
 
<if condition="$show['birthdays']">
<!-- today's birthdays -->

i cant find this code in forumhome this is the reason i cant c todays birthday in my forumhome so where to add this
 
Search for this

PHP:
<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
		</div>
		</td>
	</tr>
</tbody>


and place

PHP:
<if condition="$show['birthdays']">
<!-- today's birthdays -->

below it if it's missing
 
Back
Top