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

TheInsaneManiac 12-12-2008 02:29 PM

It's been made and God made a search feature for a reason:
https://vborg.vbsupport.ru/showthread.php?t=184198

fattony69 12-12-2008 02:33 PM

Quote:

Originally Posted by Sp32 (Post 1682478)
template modification, why?

It is in the wrong section, that is why? I thought there was just a missing file.

Sp32 12-12-2008 09:40 PM

Quote:

Originally Posted by TheInsaneManiac (Post 1683855)
It's been made and God made a search feature for a reason:
https://vborg.vbsupport.ru/showthread.php?t=184198

alright calm down its not like I am raining on your parade... Jesus...

Also mine is done differently to yours and yes I do know how to use search but funnily enough I didn't search for "affiliation display" I wonder why I didn't automatically know the name of the mod...

skol 12-12-2008 09:57 PM

Don't let em upset you Sp keep up the good work...It's far better than that search feature thats for sure..

TheInsaneManiac 12-13-2008 02:19 AM

Quote:

Originally Posted by Sp32 (Post 1684146)
alright calm down its not like I am raining on your parade... Jesus...

Also mine is done differently to yours and yes I do know how to use search but funnily enough I didn't search for "affiliation display" I wonder why I didn't automatically know the name of the mod...

lol a simple topic search for affiliation would have found it. Yours seems more simple than mine, I have a bunch of option with mine and it confuses people lol.

Quote:

Originally Posted by skol (Post 1684155)
Don't let em upset you Sp keep up the good work...It's far better than that search feature thats for sure..

I'm not trying to upset him. I was just letting him know that it was already created. Actually it's been made before a couple of times, most of them were just template edits though.

Jaiibee 12-13-2008 07:12 AM

Very nice, thanks for sharing this code :)

secrtagnt 12-13-2008 07:24 AM

Thanks for sharing.

On another note, who cares if it has been done or not? It's nice having alternatives.

Sp32 12-13-2008 10:09 AM

Quote:

Originally Posted by TheInsaneManiac (Post 1684262)
lol a simple topic search for affiliation would have found it. Yours seems more simple than mine, I have a bunch of option with mine and it confuses people lol.



I'm not trying to upset him. I was just letting him know that it was already created. Actually it's been made before a couple of times, most of them were just template edits though.

Sorry I took it the wrong way buddy, your one is very good :)


All times are GMT. The time now is 10:15 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.01592 seconds
  • Memory Usage 1,752KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete