vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Add a banner image to each forum (vb3.5) (https://vborg.vbsupport.ru/showthread.php?t=94119)

Stephen3 12-20-2005 08:29 PM

asking it could be done
seem like the current version just can add 1 and must be banner?
hope can make it like http://megacashforum.com/

Ramsesx 12-21-2005 06:58 AM

Is there a way to reduce the space between the navbar and the banner?
Thanks

Zachariah 12-21-2005 09:45 AM

Quote:

Originally Posted by Ramsesx
Is there a way to reduce the space between the navbar and the banner?
Thanks

That is controled in the $navbar.
- there is a <br / >
- the only thing the banner hack adds is a <br /> after the banner code.

If you kill the <br /> in the $navbar it will effect the whole site.

I think:
Code:

<!-- / nav buttons bar -->

<br />

If this is the correct one your looking for place this insted the <br /> tag.

Code:

if (THIS_SCRIPT != 'forumdisplay' OR THIS_SCRIPT != 'showthread')
{
<br />
}

This states when on the forumdisplay or showthread do not show the <br />. This will keep the tag there any other time.

Kuimera 12-21-2005 12:03 PM

This is a great plugin, but I will have to uninstall this since I can’t really use the menus probably...
Tks all and good job.

Zachariah 12-21-2005 12:16 PM

Quote:

Originally Posted by Kuimera
This is a great plugin, but I will have to uninstall this since I can?t really use the menus probably...
Tks all and good job.

They work for me. :disappointed:

http://www.gzhq.net/forums/forumdisplay.php?f=118

What are you useing in the HTML area ?


You can even paste:

Lots of HTML in it and watch it work: (view source of dogpile.com)
http://www.gzhq.net/forums/forumdisplay.php?f=235


Code:

<div class="idxBkgrnd" align="center">
        <div>
                <a href="http://www.dogpile.com/">
                <img alt="Dogpile-All the best search engines piled into one. Including Google, Yahoo! Search, MSN Search and Ask Jeeves." class="image" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/idx/logo.gif" border="0" height="119" width="359"></a></div>
        <div>
                <img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="36" width="1"></div>
</div>
<div class="formBkgrnd">
        <div style="padding-left: 75px;" align="center">
                <script language="javascript">
                        var advsrchterms = "&";
                       
                        function urlEncode (str) {
                                var estr = escape( str );
                                estr = estr.replace(/@/g, '%40');
                                estr = estr.replace(/\*/g,'%2A');   
                                estr = estr.replace(/_/g, '%5F');   
                                estr = estr.replace(/\+/g,'%2B');   
                                estr = estr.replace(/\./g,'%2E');   
                                estr = estr.replace(/\//g,'%2F');
                                return estr;   
                        }

                        function clearadvanced() {
                                if(document.idxSearch.exact){
                                        if(!document.idxSearch.exact.checked)
                                                var exact = '';
                                                advsrchterms = '';
                                }
                        }
                       
                        function redirSearch ( qcat ) {
                                location.href = 'http://www.dogpile.com/info.dogpl/search/index.htm?qcat=' + qcat;
                        }
                       
                       
                        function toggleTab ( searchType, qcat, idName ) {
                               
                               
                                if ( document.idxSearch ) document.idxSearch.qcat.value = qcat;
                                if ( document.idxSearchbot ) document.idxSearchbot.qcat.value = qcat;
                               
                               
                                var tabs = document.getElementsByTagName('a');
                                for( var i=0; i<tabs.length; i++ ) {
                                        var tabi = tabs[i];
                                       
                                        if ( tabi.id == idName && tabi.className == "tabInactive" ) {
                                                tabi.className="tabActive";       
                                        } else if ( tabi.id == idName && tabi.className=="tabActive" ) {
                                                tabi.className="tabActive";
                                        } else if ( tabi.className=="tabActive" ) {
                                                tabi.className="tabInactive";
                                        }
                                }
                               
                               
                                var thehtml = '<a class="Text-On-Tablestyle-BG1" href="http://www.dogpile.com/info.dogpl/search/advanced/' + searchType.toLowerCase() + '.htm?&amp;r_fcid=414&amp;r_fcp=top&amp;dpcollation=1&amp;qk=20&amp;familyfilter=1&amp;sort=0&amp;adultfilter=Moderate">Advanced</a>';
                                if ( document.getElementById("advancedlink") ) document.getElementById("advancedlink").innerHTML = thehtml;
                                if ( document.getElementById("advancedlinkbot") ) document.getElementById("advancedlinkbot").innerHTML = thehtml;

                               
                                var img = new Image();
                                img.src = "http://www.dogpile.com/info.dogpl/search/5_4/logging/category.htm?category=" + searchType + "&ran=" + Math.round(Math.random()*10000);

                        }

                        function changeadvanced(formname,searchType,qcat,coid,position) {
                                var exact = '';
                                if ( formname == "idxSearchbot" ) {
                                        if ( document.idxSearch.exact ) {
                                                if(document.idxSearchbot.exact.checked)
                                                        exact = '&exact=1';
                                                else
                                                        exact = '';
                                        }
                                        else exact = '';
                                } else {
                                        if(document.idxSearch.exact){
                                                if(document.idxSearch.exact.checked)
                                                        exact = '&exact=1';
                                                else
                                                        exact = '';
                                        }
                                        else exact = '';
                                }
                                               
                               
                                        location.href = 'http://www.dogpile.com/info.dogpl/search/redir.htm?r_fcid='+coid+'&r_fcp='+position+'&qcat=' + qcat + '&qkw='+ urlEncode(document.idxSearch.qkw.value)+ exact + advsrchterms;
                        }
                </script>
                <form class="msSearchbox" style="margin: 0px;" method="get" name="idxSearch" action="http://www.dogpile.com/info.dogpl/search/redir.htm">
                        <input name="qcat" value="web" type="hidden">
                        <input name="r_aid" value="2B8D94FEDA114C66AD4A063AAF850CC0" type="hidden">
                        <input name="r_fcid" value="417" type="hidden">
                        <input name="r_fcp" value="top" type="hidden">
                        <table class="Tablestyle-BG1" bgcolor="#ebebad" border="0" cellpadding="0" cellspacing="0" id="table1">
                                <tr>
                                        <td class="Text-On-Tablestyle-BG1" colspan="5">
                                        <div id="navTab">
                                                <a id="sbtWeb" class="tabActive" onclick="toggleTab('Web','web','sbtWeb'); return false;" href="http://www.dogpile.com/info.dogpl/?qcat=web">
                                                Web</a><span class="tabDivider"><img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4">|<img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4"></span><a id="sbtImages" class="tabInactive" onclick="toggleTab('Image', 'images','sbtImages'); return false;" href="http://www.dogpile.com/info.dogpl/?qcat=images">Images</a><span class="tabDivider"><img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4">|<img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4"></span><a id="sbtAudio" class="tabInactive" onclick="toggleTab('Audio', 'audio','sbtAudio'); return false;" href="http://www.dogpile.com/info.dogpl/?qcat=audio">Audio</a><span class="tabDivider"><img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4">|<img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4"></span><a id="sbtVideo" class="tabInactive" onclick="toggleTab('Video', 'smd','sbtVideo'); return false;" href="http://www.dogpile.com/info.dogpl/?qcat=smd">Video</a><span class="tabDivider"><img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4">|<img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4"></span><a id="sbtNews" class="tabInactive" onclick="toggleTab('News', 'nws','sbtNews'); return false;" href="http://www.dogpile.com/info.dogpl/?qcat=nws">News</a><span class="tabDivider"><img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4">|<img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4"></span><a id="sbtYellow" class="tabInactive" href="http://www.dogpile.com/info.dogpl/clickit/search?r_aid=2B8D94FEDA114C66AD4A063AAF850CC0&r_coid=412&r_cop=top&r_sacop=0&r_spf=0&r_snpp=0&r_spp=0&qqn=0&rawto=http://www.dogpile.com/info.dogpl/yellow-pages/">Yellow
                                                Pages</a><span class="tabDivider"><img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4">|<img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4"></span><a id="sbtWhite" class="tabInactive" href="http://www.dogpile.com/info.dogpl/clickit/search?r_aid=2B8D94FEDA114C66AD4A063AAF850CC0&r_coid=413&r_cop=top&r_sacop=0&r_spf=0&r_snpp=0&r_spp=0&qqn=0&rawto=http://www.dogpile.com/info.dogpl/white-pages/">White
                                                Pages</a></div>
                                        </td>
                                </tr>
                                <tr>
                                        <td colspan="5">
                                        <img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="15" width="1"></td>
                                </tr>
                                <tr>
                                        <td style="padding-bottom: 3px;">
                                        <span class="Text-On-Tablestyle-BG1">
                                        <input onclick="clearadvanced();" name="qkw" size="53" value type="text"></span><script language="javascript"> function changeFocus () { document.forms.idxSearch.qkw.focus(); } if ( window.addEventListener ) { window.addEventListener( "load", changeFocus, false ); } else if ( document.addEventListener ) { document.addEventListener( "load", changeFocus, false ); } else if ( window.attachEvent ) { window.attachEvent( 'onload', changeFocus ); } </script></td>
                                        <td align="right" valign="bottom">
                                        <div id="msSearchSubmit">
                                                <input alt="Go Fetch!" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/submit.gif" type="image" name="I1"></div>
                                        </td>
                                        <td>
                                        <img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="24"></td>
                                        <td style="padding-bottom: 4px;" align="right" nowrap="true" valign="bottom">
                                        <nobr><span id="advancedlink">
                                        <a id="advancedweblinktop" class="Text-On-Tablestyle-BG1" href="http://www.dogpile.com/info.dogpl/search/advanced/web.htm?r_fcid=414&r_fcp=top&dpcollation=1&qk=20&familyfilter=1&sort=0&adultfilter=Moderate">
                                        Advanced</a></span></nobr></td>
                                </tr>
                        </table>
                </form>
        </div>
        <img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="32" width="1"></div>


Kuimera 12-21-2005 12:29 PM

Noticed now.. this seems to be a opera browser problem... I tested with IE and it works great has you said above.

Zachariah 12-21-2005 12:31 PM

Quote:

Originally Posted by Kuimera
Noticed now.. this seems to be a opera browser problem... I tested with IE and it works great has you said above.

Firefox works ok too ..... never tryed Opera

- Perhaps what you wrap the HTML with ?
- is this a problem w/ images or only the HTML area ?

Kuimera 12-21-2005 12:36 PM

Heres how its looks:
Dam opera... :(

Zachariah 12-21-2005 12:42 PM

Quote:

Originally Posted by Kuimera
Heres how its looks:
Dam opera... :(

place your code in a:
<div>code</div>

or

<table><tr><td>code</td></tr></table>


I rem way back then Firefox did that all the time. I can't REM what the fix was or if a new ver of firefox fixed it.

Stephen3 12-21-2005 03:54 PM

can make it can add more then 1 banner ?


All times are GMT. The time now is 07: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.01386 seconds
  • Memory Usage 1,819KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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