vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Forum Home Enhancements - Add your own affiliate box for buttons (https://vborg.vbsupport.ru/showthread.php?t=198515)

Sp32 12-09-2008 10:00 PM

Add your own affiliate box for buttons
 
I just made this myself, I couldn't find it anywhere and it is so basic and I am pretty sure it has flaws but it is working for me so to save the trouble of someone else doing this I thought I would post it here, sorry if this has already been done ^-^'

go to FORUMHOME and search for:

Code:

</table>
<br />
<!-- end what's going on box -->

above that add:

Code:

       
<tr>
                <td class="thead" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
                        <phrase 1="$vboptions[bbtitle]">Affilliates</phrase>
                </td>
        </tr>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
        <tr>
                <td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
                <td class="alt1" width="100%">
                <div class="smallfont">





                </div>
                </td>
        </tr>
</tbody>





under 'small font' add the code for the button







I am sure you can rip some of the code out of it to suit your needs and change where your picture is etc, this is my first ever edit so I am sorry if this is 'crap' but I am only doing this so less people have to find it, thanks :)

Sp32 12-10-2008 09:49 AM

If you can fix/make this mod better just post here saying how to and I will make correct changes :)

SEOvB 12-10-2008 12:05 PM

Nice work ;) I'm sure someone will be able to use it.

Sp32 12-10-2008 12:47 PM

thanks, your words are much appreciated :)

fattony69 12-10-2008 02:42 PM

Is this an addon or a template modification?

Sp32 12-10-2008 03:14 PM

template modification, why?

AzzidReign 12-10-2008 08:48 PM

Quote:

I just made this myself, I couldn't find it anywhere and it is so basic and I am pretty sure it has flaws but it is working for me so to save the trouble of someone else doing this I thought I would post it here, sorry if this has already been done ^-^'
How did you not find any? There's at least 3 or 4 of these mods that I know of...one of which I made myself:
https://vborg.vbsupport.ru/showthread.php?t=152350

Just pointing that out.

Sp32 12-11-2008 06:25 AM

I found that one and only that one but that wasn't what I was looking for and there wern't screenshots so I didn't want to install something which might not of been what I wanted.

CodingMonkey 12-12-2008 11:12 AM

I would suggest using plugins, product and template hooks.

macc 12-12-2008 11:21 AM

nice - thanks - installed

regards

macc


All times are GMT. The time now is 11:16 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.02289 seconds
  • Memory Usage 1,736KB
  • 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_code_printable
  • (1)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