vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Home Enhancements - CP_Affiliates - An affiliates box for your forum! (https://vborg.vbsupport.ru/showthread.php?t=133620)

vietfancy 12-10-2006 04:19 PM

what is we have about 20 banners, are they willing to fix in there? How to have them running to the right?

cyberphr 12-10-2006 05:38 PM

Quote:

Originally Posted by vietfancy (Post 1135742)
what is we have about 20 banners, are they willing to fix in there? How to have them running to the right?

Edit it like this:

<marquee> Your html links </marquee>

This will make them slide from the right side off the left, so it fits.

Otherwise if you exceed the width of the box some of the content will go onto a second line.

JamieLee2k 12-11-2006 09:10 AM

2 questions.

How can I move it so that it sits at the top of the forums just below the navbar?
How can I have more links without it going off the edge of the screen?

iran.gs 12-11-2006 11:51 AM

not bad, how ever i made mine some how different to do 3 things like marq news and affialates and more, here is a photo

cyberphr 12-11-2006 05:26 PM

Quote:

Originally Posted by JamieLee2k (Post 1136224)
How can I move it so that it sits at the top of the forums just below the navbar?

That IS where it will be by default, if it's not directly above the forums and below the navbar it's because you have other hacks installed or you have edited your skin.

Nevertheless, try changing "$navbar" to "<!-- main -->".

Quote:

Originally Posted by JamieLee2k (Post 1136224)
How can I have more links without it going off the edge of the screen?

Use <marquee> to make them slide across, or <br /> to linebreak.

JamieLee2k 12-12-2006 10:41 PM

http://homepage.ntlworld.com/prey2k/adverts.jpg
This is what I mean, I wanted to add more banners but it's not working, I added the same code right after the first one and this happened, how do I add more banners so they are placed right next to each other.

cyberphr 12-13-2006 08:09 AM

Show me the code from the plugin (all of it).

JamieLee2k 12-13-2006 10:36 AM

Code:

$affiliates = "<!-- Affiliates -->

<table class='tborder' cellpadding='$stylevar[cellpadding]' cellspacing='$stylevar[cellspacing]' border='0' width='100%' align='center'>

<td class='tcat' align='center' width='100%'><a href='http://cyber-phreaks.net/links.php' target='_self'>Affiliates</a></td>

<tr>

<div class='fieldset' style='margin:0px'>   
    <td class='alt1' align='center'>
<a href='http://google.com/'><img border='0' src='http://www.xleagues.net/test.jpg' alt='' /></a><div class='fieldset' style='margin:0px'>   
    <td class='alt1' align='center'>
<a href='http://google.com/'><img border='0' src='http://www.xleagues.net/test.jpg' alt='' /></a>

</td>
</div>
</tr>
</table>
<!-- / Affiliates -->

<br />"
;

$Position = '<!-- end what\'s going on box -->';

$vbulletin->templatecache['FORUMHOME'] = str_replace($Position, $Position . ' $affiliates', $vbulletin->templatecache['FORUMHOME']);


cyberphr 12-13-2006 11:36 AM

Yes, you coded it to show like that.
You need to remove the extra td & div tags.

Edit it like this:
Code:

$affiliates = "<!-- Affiliates -->

<table class='tborder' cellpadding='$stylevar[cellpadding]' cellspacing='$stylevar[cellspacing]' border='0' width='100%' align='center'>

<td class='tcat' align='center' width='100%'>Affiliates</td>

<tr>

        <div class='fieldset' style='margin:0px'>       
        <td class='alt1' align='center'>

<a href='http://google.com/'><img border='0' src='http://www.xleagues.net/test.jpg' alt='' /></a>
<a href='http://google.com/'><img border='0' src='http://www.xleagues.net/test.jpg' alt='' /></a>

</td>
</div>
</tr>
</table>
<!-- / Affiliates -->

<br />";

$Position = '$navbar';

$vbulletin->templatecache['FORUMHOME'] = str_replace($Position, $Position . ' $affiliates', $vbulletin->templatecache['FORUMHOME']);


weindians 12-14-2006 11:08 PM

This is Fantastic..thanks


All times are GMT. The time now is 07:52 PM.

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.01226 seconds
  • Memory Usage 1,743KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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