vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Miscellaneous Hacks - The Up/Down buttons (https://vborg.vbsupport.ru/showthread.php?t=264946)

just.b.jealous 09-24-2011 09:21 AM

Quote:

Originally Posted by RobbieZ (Post 2235504)
Is there anyway to call to an image instead of the 'boxed' up and down buttons?

Thanks

Updated 1st post with instructions,..

RobbieZ 09-24-2011 10:47 AM

Quote:

Originally Posted by just.b.jealous (Post 2249515)
Updated 1st post with instructions,..

Thanks very much, I was using '^' and 'V' lololol

victorvu 09-24-2011 09:52 PM

Thank you for the mod. It is great one.

I installed it and got nothing shows up on my site.

It may have the conflict!

Thanks.

Victor:up:

just.b.jealous 09-24-2011 11:52 PM

Quote:

Originally Posted by victorvu (Post 2249716)
Thank you for the mod. It is great one.

I installed it and got nothing shows up on my site.

It may have the conflict!

Thanks.

Victor:up:

Try adding it to the bottom of 1 of these:
header, headinclude, footer, or maybe even navbar..

victorvu 09-25-2011 01:25 AM

Quote:

Originally Posted by just.b.jealous (Post 2249753)
Try adding it to the bottom of 1 of these:
header, headinclude, footer, or maybe even navbar..

Thanks for the info.

I tried them all with no arrows! Where did they go?

Victor:up:

RobbieZ 09-26-2011 03:03 PM

Quote:

Originally Posted by just.b.jealous (Post 2249753)
Try adding it to the bottom of 1 of these:
header, headinclude, footer, or maybe even navbar..

Im getting load lag on my images, its only seconds, will try other templates to see if it speeds up!

just.b.jealous 10-11-2011 10:37 PM

Quote:

Originally Posted by RobbieZ (Post 2250232)
Im getting load lag on my images, its only seconds, will try other templates to see if it speeds up!


Try and see if this helps- In the coding, where it's:

Code:

http://yoursite.com/images/up.png
change it to:

Code:

./images/up.png

just.b.jealous 10-11-2011 10:40 PM

Quote:

Originally Posted by victorvu (Post 2249774)
Thanks for the info.

I tried them all with no arrows! Where did they go?

Victor:up:

Try adding it to the top of the template, instead of the bottom. There really shouldn't be any conflicts no matter the mods installed or the difference between vBulletins that people use. The coding is more or less, browser specific- not VB specific. If your browser accepts JavaScript (which all do- unless you've turned it off), then this code should work fine and without errors.

justicechick 02-02-2013 06:21 AM

If you have a bar at the bottom you can also make the buttons appear at the top by using the following. I have cometchat at the bottom so I had to alter the code to make it works..

PHP Code:

<!-- Begin Template Mod -- The Up/Down buttons -->
if(
self==topcreate_up();
    
// End Up code.
    //
    // Begin Down code.
    
function create_down() {
        if(
document.body){
            var 
down document.createElement('span');
            
down.innerHTML "Down";
            var 
dosty "opacity:0.7;position:fixed;text-align:right;right:0px;top:0px;z-index:50000;";
            
dosty+="border: 2px solid;-moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;-moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;-moz-border-top-colors: ThreeDDarkShadow ThreeDShadow;-moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;padding: 3px;color: MenuText;background-color: Menu;font-size:9pt;font-family:arial,sans-serif;cursor:pointer;";
            
down.style.cssText dosty;
            
down.addEventListener('mouseover', function(){ down.style.opacity 1; }, false);
            
down.addEventListener('mouseout', function(){ down.style.opacity 0.5; }, false);
            
down.addEventListener('click', function(){ window.scrollTo(0document.body.scrollHeight); }, false);
            
document.body.appendChild(down);
        }
    };
    if(
self==topcreate_down();
    
// End Down code.
</script>
<!-- 
End Template Mod -- The Up/Down buttons --> 

You can see the results here http://www.theflirtingretreat.com/


All times are GMT. The time now is 02:50 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.01346 seconds
  • Memory Usage 1,756KB
  • 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_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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