Affiliation Display

MobileHacks

New Member
Do you have so many affiliates that you just can't keep them all together on one line? Then this modification is for you! It uses a marquee to display your affiliates in it's own box in the "What's Going On?" area. The marquee is set up to stop when you hover over an affiliate and start back up when you are no longer hovering over an affiliate.

Edit your affiliate links and images via the AdminCP.

Upgrade
Click Allow Overwrite before importing the product.

Display Issues
Some styles may not display the product correctly or you may wish to move it to a completely different area of the FORUMHOME. If this is the case import the product-affiliationhook.xml or product-affiliationnomarqueehook.xml depending on your personal preference.

You then will need to find the following code in your FORUMHOME template:
PHP:
        <td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
    </tr>
</tbody>
</if>
Add after:
PHP:
$affiliation
If you wish to display it somewhere else within your FORUMHOME template then just place $affiliation anywhere you wish inside your FORUMHOME template.

Changelog
4.0 - Now works on both 3.7.X and 3.8.X
3.5 - Loads only on FORUMHOME now to reduce non needed queries from executing
3.0 - Added the hooks back
2.0 - Added an option for an extra affiliate bar for GFX affiliates (Requested)
1.5 - Recoded the way the script is inserted
1.2 - Created new icons
1.1 - Fixed a spacing issue
1.0 - Released

Having no marquee when displaying affiliates
Install the product-affiliationnomarquee.
 
Create a directory where you upload the logo´s of the affiliates.
F.i. myaffiliates
Then in ACP vboptions edit the affiliation

Affiliation Settings
Enable Affiliation? To edit your affiliation code go HERE.

Clik on the HERE part

<a href="http://www.yourdomain.com"><img src="http://www.yourimagelink.com/imagelink.gif" border="0"></a>&nbsp;
<a href="http://www.yourdomain.com"><img src="http://www.yourimagelink.com/imagelink.gif" border="0"></a>

Replace the yourdomain.com(with the URL of the affiliate) yourimagelink.com and the imagelink.gif with your details
RelookPVR
 
Well, if nothing work!!!!!

Try this:

Search onto FORUMHOME for:

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

PHP:
<!-- Affiliates by Arkanoidblue -->
<td class="thead" colspan="2">
            <a style="float:$stylevar[align=right]" href="#top" onclick="return toggle_collapse('forumhome_affiliation')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
            <phrase 1="$vboptions[bbtitle]">$vbphrase[Affiliates]</phrase>
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_affiliation" style="$vbcollapse[collapseobj_forumhome_affiliation]">
    <tr>
        <td class="alt2"><img src="http://www.vbteam.info/images/misc/affiliates.png" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[Affiliates]</phrase>" border="0" /></td>
        <td class="alt1" width="100%">
        <div class="smallfont">
<marquee direction="left" scrollamount="7" onmouseover="this.scrollAmount=0" onmouseout="this.scrollAmount=7">$vbphrase[affiliation_code]</marquee>
        </div>
        </td>
    </tr>
</tbody>
<if condition="$vboptions['gfxaffiliation_enabled']">
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[align=right]" href="#top" onclick="return toggle_collapse('forumhome_gfxaffiliation')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
            <phrase 1="$vboptions[bbtitle]">$vbphrase[gfxaffiliates]</phrase>
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_gfxaffiliation" style="$vbcollapse[collapseobj_forumhome_gfxaffiliation]">
    <tr>
        <td class="alt2"><img src="images/misc/gfx.png" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[gfxaffiliates]</phrase>" border="0" /></td>
        <td class="alt1" width="100%">
        <div class="smallfont">
<marquee direction="left" scrollamount="7" onmouseover="this.scrollAmount=0" onmouseout="this.scrollAmount=7">$vbphrase[gfxaffiliation_code]</marquee>
        </div>
        </td>
    </tr>
</tbody>
</if>
<!----/End of Affiliates by Arkanoidblue---->
If you are tired of marquee for the left.

Change marquee direction.

Code:
<marquee direction=[b][color=Red]"right"[/color][/b] scrollamount="7" onmouseover="this.scrollAmount=0" onmouseout="this.scrollAmount=7">$vbphrase[affiliation_code]</marquee>
Remember change onto gfx to. ;)

Have a nice Affiliates working onto vb 3.8.1

Note: Maybe work onto greater version

Remember, this method don't work if u do not install Attached Files of the First post. OK!!!!!!
 
I installed it. But how do you add in images??

Right now at the bottom I just see the bar that says affiliation, and under that it says affiliation.
 
Back
Top