Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. riteshsanap
    3. Posts
    R
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 18
    • Best 3
    • Groups 1

    Posts made by riteshsanap

    • RE: Problem editing files

      @Neor
      The files you are editing must cache file that re-generated when you restart NodeBB (they are stored in the '/public/' folder). to edit TPL files, find them in the specific theme/plugin folder in node_modules folder

      posted in NodeBB Development
      R
      riteshsanap
    • RE: Custom Routes are not ajaxified

      I solved it, so for those get stuck here , we have to add Custom routes for ajaxifying and also mention which template to use.

      to solve that add custom mapping to the file

       /src/views/config.json
      

      like this

      	"^route/.*": "Template to use without .tpl at the end",
      	"^route/.*/add": "template"
      posted in NodeBB Development
      R
      riteshsanap
    • RE: New themes not display correctly

      Try checking the errors logs, to see if Stylesheet was minified or not, or you also check this by starting NodeBB in dev mode by the follow command

      ./nodebb dev
      

      and check if the files are minified or not, the console will display something like this

      16/2 10:05 [1853] - info: [plugins/spam-be-gone] Settings loaded
      16/2 10:05 [1853] - verbose: [hotswap] Router with id `plugins` replaced successfully
      16/2 10:05 [1853] - verbose: [plugins] All plugins reloaded and rerouted
      16/2 10:05 [1853] - info: [plugins] Plugins OK
      16/2 10:05 [1853] - verbose: [meta/css] Minifying LESS/CSS
      16/2 10:05 [1853] - verbose: [hotswap] Router with id `auth` replaced successfully
      16/2 10:05 [1853] - verbose: [sounds] Sounds OK
      16/2 10:05 [1853] - verbose: [meta/css] admin.css committed to disk.
      16/2 10:05 [1853] - verbose: [meta/templates] Compiling templates
      16/2 10:05 [1853] - verbose: [meta/css] stylesheet.css committed to disk.
      16/2 10:05 [1853] - verbose: [meta/templates] Successfully compiled templates.
      16/2 10:05 [1853] - info: NodeBB is now listening on: 0.0.0.0:4567
      16/2 10:05 [1853] - verbose: [cluster] Stylesheets propagated to worker 1853
      16/2 10:05 [1853] - verbose: [meta/js] Minification complete
      16/2 10:05 [1853] - verbose: [meta/js] Client-side minfile committed to disk.
      16/2 10:05 [1853] - info: NodeBB Ready
      posted in Technical Support
      R
      riteshsanap
    • RE: New themes not display correctly

      Can you check if the CSS and Javascripts files are being loaded by viewing the page source code

      posted in Technical Support
      R
      riteshsanap
    • RE: Custom Routes are not ajaxified

      i also tried by manually typing in the browsers console

      ajaxify.go(RELATIVE_URL);
      

      but it returns false

      posted in NodeBB Development
      R
      riteshsanap
    • RE: Custom Routes are not ajaxified

      @pitaj yes, hook is already added and there are no errors also

      	{
      		"hook": "static:app.load", "method": "init"
      	},
      posted in NodeBB Development
      R
      riteshsanap
    • RE: Custom Routes are not ajaxified

      I have pasted the related code on this gist

      https://gist.github.com/riteshsanap/ed5eff7acf0c158f8671

      posted in NodeBB Development
      R
      riteshsanap
    • RE: Role managemnet

      NodeBB should try to replicate vBulletins role management, there is lots amount of controls and options. NodeBB is lacking in that aspect.

      posted in Feature Requests
      R
      riteshsanap
    • Custom Routes are not ajaxified

      Hello,
      I tried going to a custom route using Ajaxify, but it does not work.
      but the route works properly on full page reload

      the error it shows is 404 not found

      --Edit--
      One page seems to be ajaxifying after i added the api route to it, but it still getting routed to wrong page

      link is to

      link/ID/add
      

      but the page that is being loaded is

      link/ID
      

      and url in the location bar is still the old '/add' one.

      when full page refresh is done the proper page is loaded.

      and also Another route is not at all getting ajaxified.

      posted in NodeBB Development
      R
      riteshsanap
    • RE: Google Summer of Code Ideas List

      @pitaj
      Nice idea automatic update of core, but i think that still to early for nodebb as core is still not completely stable and changes are still being made, so i think after few more versions it is possible

      whereas Automatic Backup is a system that nowadays every site require. so plus +1 to Automatic Backup & restore

      posted in General Discussion
      R
      riteshsanap
    • RE: The spam is real.

      @julian

      even i used to make same mistake 😉 when spelling Akismet, but once I made a plugin using Akismet for WP, i started using correct spell

      posted in General Discussion
      R
      riteshsanap
    • RE: Possible to catch custom socket messages in a plugin?

      @Schamper
      hello, i m also trying to use Sockets in my plugin, but i'm unable to find resources where it is written how to use it with NodeBB. if you have successfully written or made use of Socket can you please share it. by pasting here.

      posted in NodeBB Development
      R
      riteshsanap
    • RE: Lavender Question - Alignment (Bug?)

      @Justin how about checking the Page source and confirm which classes are being added to the theme (for google chrome right click on the page and select view page source or inspect element)

      posted in Technical Support
      R
      riteshsanap
    • RE: Lavender Question - Alignment (Bug?)

      no @Justin it will allow you align 4 categories on one row,

      BTW also check in other browsers sometimes browser sends specific headers that mess with responsive designs, so it might be good to check.

      if nothing else is working, just redownload the theme from github and install it.

      posted in Technical Support
      R
      riteshsanap
    • RE: Lavender Question - Alignment (Bug?)

      @Justin
      your problem is with Bootstrap actually, you are using wrong classes, take a look here for proper classes to use with Twitter Bootstrap
      http://getbootstrap.com/css/#grid-options

      Here is the picture when i made col-md-6, and they work fine
      lavender.png

      posted in Technical Support
      R
      riteshsanap
    • RE: Invalid CSRF token

      Ok , I solved it, after checking that there is no csrf header i tried manually add it, but it didn't succeed I went add the token in template as (for those who might get stuck on same problem as me)

      	<input type="hidden" value="{token}" name="_csrf" />
      

      and passing the value like this

      function renderThemepage(req, res, next) {
      	var csrf = require('csurf');
      	res.render('add_comic', {token: req.csrfToken()});
      };
      posted in NodeBB Development
      R
      riteshsanap
    • RE: Invalid CSRF token

      I checked using HTTP header plugin but no x-csrf-token is being passed, can you give an example or do you know any link where it is shown, I have duplicated vanilla theme as the base.

      posted in NodeBB Development
      R
      riteshsanap
    • Invalid CSRF token

      Hello,
      I m new to NodeBB, I just saw NodeBB and was instantly in love with it, I wanted to use it as a Backened forum. So I downloaded and started developing.

      I duplicated a theme and renamed it , to start developing on it.
      then I added this code in the library.js

      function renderThemepage(req, res, next) {
      	res.render('add_comic', {});
      };
      
      Theme.init = function(params, callback) {
      	var app = params.router,
      	middleware = params.middleware,
      	controllers = params.controllers;
      	 
      	app.get('/comic/add', middleware.applyCSRF, middleware.buildHeader, renderThemepage);
      
      	app.post('/comic/add', middleware.applyCSRF, middleware.buildHeader, function(req, res, next) {
      		res.send(req);
      	});
      	callback();
      };
      

      add_comic.tpl has a basic form, that sends the post request to /comic/add but I get invalid csrf token in the logs whenever I submit the form.

      posted in NodeBB Development
      R
      riteshsanap