vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Forum Display Enhancements - Affiliate Box on Homepage (https://vborg.vbsupport.ru/showthread.php?t=151053)

Millenium IT 06-29-2007 10:00 PM

Affiliate Box on Homepage
 
Put a scrolling affiliate box on your forum's home page. This cleans up yor forums overall apearances since you can ad more immages 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:
HTML Code:

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

Add Above:
HTML Code:

<tbody>
        <tr>
            <td class="thead" colspan="2">
<img id="collapseimg_forumhome_online" style="float:$stylevar[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/priv...p?do=newpm&u=1

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

Save and done.

Screenshot:
Attached




Millenium IT 06-30-2007 08:19 PM

-Reserved

Edit#1
A .txt file has been added with all the info that can be found in the first post.

rjmjr69 06-30-2007 08:28 PM

Reserved.... Nice Idea

Brandon Sheley 06-30-2007 08:39 PM

Reserved .-.-.-.-.-. live demo ?

also, can you please make a text file with instructions and attach it :)

cheers

Millenium IT 06-30-2007 08:47 PM

Quote:

Originally Posted by rjmjr69 (Post 1280105)
Reserved.... Nice Idea

If you like it please click install ;)

Quote:

Originally Posted by Loco.M (Post 1280118)
Reserved .-.-.-.-.-. live demo ?

also, can you please make a text file with instructions and attach it :)

cheers

As far as the demo is ill have to set up a test forum for that. The info has been attached and hope you decide to click install ;)

DinarMet 07-03-2007 01:48 PM

Installed! Great work!

I modified it to place it at the top on my forum, but it works like a charm!

I've got about 20-30 affiliate links I will be putting up and this save me a lot of real estate. I will probably use it for link exchanges as well.

Thanks so much. This is going to save me a lot of main page space.

You can see a demo on my site if you wish:

http://www.agloconnect.com/connect/index.php

DM

Millenium IT 07-05-2007 12:04 AM

Sweet glad you like it and thanks for installing ;)

Hope you dont mind me using your site for the demo link in my thread :P

josepheseven 08-18-2007 09:21 AM

nice one mate......will use it ;)

s-p0k 11-10-2009 06:29 AM

i know this is old but where do u add then at?

ShawneyJ 11-10-2009 08:49 PM

Quote:

Originally Posted by s-p0k (Post 1912284)
i know this is old but where do u add then at?

read first thread mate ;)
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


or do you mean where in that code do you add your code?


All times are GMT. The time now is 03:11 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01084 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete