Coder Social home page Coder Social logo

amiyasahu / donut Goto Github PK

View Code? Open in Web Editor NEW
112.0 20.0 54.0 3.72 MB

Modern and Responsive theme for Question2Answer ( Q2A ) websites

License: GNU General Public License v2.0

CSS 20.20% PHP 23.56% JavaScript 0.87% Less 55.36%
responsive-theme question2answer question2answer-theme bootstrap3-theme q2a-theme q2a-responsive-theme

donut's Introduction

Hi there ๐Ÿ‘‹

donut's People

Contributors

alvarofg avatar amiyasahu avatar arioch1984 avatar arjunsuresh avatar bitdeli-chef avatar dependabot[bot] avatar hckrtech avatar jhubert avatar martysvk avatar rahularyan avatar sfwsynchro avatar svivian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

donut's Issues

Notification

Hi, very nice template, thanks a lot.

Please added notification bar.I install plugin but now show at the moment.

Post Action Buttons Not Working

None of the buttons on the More Actions menu are working. For example, if I click Hide the form is posted and the page loads, but nothing happens. I've confirmed these actions work using the default theme. So this is donut theme specific. Those are pretty critical items.

What can I do to fix this? I can't Hide or Close questions. Please advise.

Thank you

Social media Icons on Google Chrome do not Appear, but in Firefox they do

Hello Amiya Sahu, Thanks much for the Donut Theme, very Nice.

I have been trying to use it in my Question2Answer Platform, most of other parts works fine, though I came to realize that, the Social Media icons, on top and bottom right corner, after enabling them in the settings, they do not appear when Browsing with Google Chrome, but they do Appear when Browsing with Firefox.

Have met this Problem before? Any help or Suggestion?
The Site am working on is jawabu.ujvictory.com

Thank You very much for the theme once again and for the Support.

Regards,
James.

Less compiler

Hi!
For first thank's for your great work!
This theme is awesome!

My only problem is: I'm trying to apply some changes to css and, if possible, if prefere to work on less files but I could not find any grunt or gulp file for compile them into css.

Please may you commit your less compiler to dev channel or may you help me with this question?

Thank's a lot.

full width "footer" at small displays

changes in qa-donut-layer.php

Line 406

$this->output( '<div class="qa-sidepanel col-md-3 pull-right">' );

into

$this->output( '<div class="qa-sidepanel col-md-3 col-xs-12 pull-right">' );

q2a_donut_theme_footer_xs_display_ba

TODO

  • Full compatible for Q2A 1.7.4
  • Compress header image
  • Fix the tags overlapping issue
  • improve the drop down action items
  • Remove global reference for user levels
  • Improve the styling for the search panel
  • Improve posts moderation
  • Update for the ask box
  • top search button
  • improve the logic for home page check
  • Fix for category related links on profile page
  • Better search bar

text overlap box

screenshot

quick and dirty change part

/* Answers and views count */
.qa-a-count {
  border: 1px solid #d6e9c6;
  color: #3c763d;
  float: left;
  width: 60px;
  height: 60px;
  text-align: center;
  margin-right: 5px;
  padding: 0;
  border-radius: 5px;
}```

into

```css
/* Answers and views count */
.qa-a-count {
  border: 1px solid #d6e9c6;
  color: #3c763d;
  float: left;
  min-width: 60px;
  width: auto;
  height: auto;
  text-align: center;
  margin-right: 5px;
  padding: 0;
  border-radius: 5px;
}```

works for me. maybe it will help someone else.

on-site-notifications plugin not showing with the Donut theme

I have installed the on-site-notifications plugin from http://www.q2apro.com/plugins/on-site-notifications and it works perfectly for the Snow theme and FlatSnow theme and others themes as weel. However, if I use Donut theme (which is the one that I want to use since it is free nice and responsive), the notification icon does not appear anywhere (on the other themes it appears on the top close to username when logged in).

The problem seems to be with the Donuts theme, any help is welcome.

Q2A version: 1.7

tags page enhancements

  1. Tag elements should be display: inline-block
  2. Count should be middle aligned
  3. The tags break if the length of tag is more

logging out Issue

After logging out from the site the whole QA is getting down.

the website doesn't loads until Donut Master theme is deleted from system.

CSS edit

@amiyasahu its nice theme for q2a. You work nice job. Thanks.
I have any question for Donut theme.

  1. Search area not 100% width.
    1
  2. Home page for mobile sidebar not 100% width.
    2
  3. Plase dont show text in edit bottons. Show icon and a text see after mouse tooltip.
    3
    Example
    4

In mobile view the login or regitser buttons should be in fornt

When we change into mobile view then the only two things visible at the menu is the site logo and a toggle button which leads us to menu. But when new visitors come to site, they need everything in front of them. I don't want my users end up searching the register button and even login. So I would suggest that these two should be place in front with the menu toggle button.
Moreover the login in button is in a dropdown fashion, so if it remained in same fashion then users first have to click menu button, then click login and then further slide it down to go to login form. Better idea would be to place it in front. As well as the register button.

Image CSS

display:block

attribute is given for images. This will make inline images not working (some use image for latex) and at least for entry-content this should be changed.

Error with wordpress integration

The problem down to request being made to the qa-users table, which doesn't exist because I am integrating with Wordpress

A Question2Answer database query failed when generating this page.
A full description of the failure is available in the web server's error log file.

Issues while adding new sections to profile

New sections in profile need custom HTML as the CSS selector is too specific. This leads to issues such as this one:

screenshot

That can be fixed per plugin but it makes sense for the theme to be ready to this section being extended. Check the selector in SnowFlat and you'll see what I mean. BTW, positioning looks perfectly fine.

There is some problem with "warn on leave" plugin.

I was asking a question but when the time came to hit the "Ask the question", I got a message from warn on leave plugin that whether I want to stay on the page or leave it.
Please have a look at the issue... as I have tested a lot of themes but those all work fine with that plugin.

Add function code for core theme?

How i add php code for theme?

In SnowFlat theme i use qa-theme.php code add:
`public function _remove_nofollow( $str )
{
$search1 = '#<a rel="nofollow" href="http://surak.szh.kz("|/[^"]*")#i';
$search2 = '#<a href="http://surak.szh.kz("|/[^"]*") rel="nofollow"#i';
$replace = '<a href="http://surak.szh.kz\1';
$str = preg_replace( $search1, $replace, $str );
$str = preg_replace( $search2, $replace, $str );
return $str;
}

    public function q_view_content($q_view) 
    { 
        if ( !empty($q_view['content']) ) 
            $q_view['content'] = $this->_remove_nofollow( $q_view['content'] ); 
        parent::q_view_content($q_view); 
    } 
    public function a_item_content($a_item) 
    { 
        if ( !empty($a_item['content']) ) 
            $a_item['content'] = $this->_remove_nofollow( $a_item['content'] ); 
        parent::a_item_content($a_item); 
    } 
    public function c_item_content($c_item) 
    { 
        if ( !empty($c_item['content']) ) 
            $c_item['content'] = $this->_remove_nofollow( $c_item['content'] ); 
        parent::c_item_content($c_item); 
    }

    private $suffixes = array('', 'k', 'm');

    private function formatViews($size, $precision = 1) {
        $base = log($size) / log(1000);
        return round(pow(1000, $base - floor($base))) . $this->suffixes[floor($base)];
    }

    private function updateViewCount(&$questionItem) {
        if (isset($questionItem['views_raw'], $questionItem['views']['data'])) {
            $questionItem['views']['data'] = $this->formatViews($questionItem['views_raw']);
        }
    }

    public function q_list_item($q_item) {
        $this->updateViewCount($q_item);
        qa_html_theme_base::q_list_item($q_item);
    }

    public function main_parts($content) {
      $newcontent = array();
      if(isset($content['a_form']) && isset($content['a_list'])) {
        $a_form = $content['a_form'];
        $a_list = $content['a_list'];
        foreach($content as $key => $item) {
          if($key == 'a_form')
            $newcontent['a_list'] = $a_list;
          else if($key == 'a_list')
            $newcontent['a_form'] = $a_form;
          else
            $newcontent[$key] = $item;
        }
        qa_html_theme_base::main_parts($newcontent);
      } else
        qa_html_theme_base::main_parts($content);
    }`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.