• Home
  • Categories
  • Recent
  • Popular
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Default
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Quartz
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Slate
  • Solar
  • Superhero
  • Vapor
Collapse

Community

F

flexxall

@flexxall
About
Posts
5
Topics
2
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

    is PHP the correct way ?
  • F flexxall

    I am attempting to learn and setup nodebb. I had started developing on SMF and php. I am wanting to know the best way to encorporate this code. It is being used to get/supply images for a random image div that fades in and out

    $imagesDir = 'images/eggs/';
    
    $eggs = array();
        foreach (glob("images/eggs/*.{jpg,png,gif}", GLOB_BRACE) as $filename) {
            $eggs[] = $filename;
    }
        echo "<script>var eggs =" . json_encode($eggs) . "</script>";
    
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    
    function runIt() {
    		var nest1 = $('#nest1');
    		nest1.animate({opacity:'0'}, 4500);
    		nest1.animate({opacity:'1'}, 4500, runIt);
    		var nest2 = $('#nest2');
    		nest2.animate({opacity:'0'}, 4500).delay(800);
    		nest2.animate({opacity:'1'}, 4500, runIt);
    		var nest3 = $('#nest3');
    		nest3.animate({opacity:'0'}, 4500).delay(600);
    		nest3.animate({opacity:'1'}, 4500, runIt);
    		var nest4 = $('#nest4');
    		nest4.animate({opacity:'0'}, 4500).delay(400);
    		nest4.animate({opacity:'1'}, 4500, runIt);
    		var nest5 = $('#nest5');
    		nest5.animate({opacity:'0'}, 4500).delay(500);
    		nest5.animate({opacity:'1'}, 4500, runIt);	
    	}
    	runIt();
    

  • RE: Header image for a fresh install
  • F flexxall

    @baris said in Header image for a fresh install:

    /assets/uploads/<filename>.jpg

    Excelent. Thank you


  • RE: Header image for a fresh install
  • F flexxall

    no I just saved it in various locations
    one is home/nodebb/midnight/images/forest.jpg


  • RE: Header image for a fresh install
  • F flexxall

    <img src="http://localhost:4567/midnight/images/forest.jpg" >
    and about 20 other combinations


  • Header image for a fresh install
  • F flexxall

    I would like to get a header image for each page working but I can not seem to get the image path correct. I have tried using the widget html code to achieve this. Not sure if that is the best route or not. Here is the location I am trying to get the image.Selection_001.png

  • Login

  • Don't have an account? Register

  • Login or register to search.

  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
  • Login

  • Don't have an account? Register

  • Login or register to search.