Coder Social home page Coder Social logo

q2a-breadcrumbs's Introduction

Hi there ๐Ÿ‘‹

q2a-breadcrumbs's People

Contributors

alvarofg avatar amiyasahu avatar bertrandgorge avatar bitdeli-chef avatar dennwer avatar htcode avatar tryazi avatar ufukart avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

q2a-breadcrumbs's Issues

Category link and text fix

When a category is clicked , breadcumb is displaying URL instead of Category name like this

Category name: 2000 Model Ford Cars

Home > 2000-Model-Ford-Cars

It suppose to be

Home> 2000 Model Ford Cars

-- Reported by @amint

XSS vector in Question Page Breadcrump Generator

In Ami_Breadcrumb.php you are taking user generated content without any input validation.

$q_title = @$question_page['raw']['title'];

You could add
" $q_title = htmlspecialchars($q_title, ENT_QUOTES, 'UTF-8');" afterwards to solve this.

Inefficient queries

Hi Ami, I've just been looking at a few plugins to see how fast they are. This one does seem pretty good for speed, but I did notice one issue here: https://github.com/amiyasahu/q2a-breadcrumbs/blob/master/inc/Ami_Breadcrumb.php#L126

You are running SQL queries inside a loop so with nested categories I end up with 4 queries:

SELECT categoryid, parentid, title, tags, qcount, content, backpath FROM qa_categories WHERE tags='parentcategory'
SELECT categoryid, parentid, title, tags, qcount, content, backpath FROM qa_categories WHERE tags='cat2'
SELECT categoryid, parentid, title, tags, qcount, content, backpath FROM qa_categories WHERE tags='cat3'
SELECT categoryid, parentid, title, tags, qcount, content, backpath FROM qa_categories WHERE tags='cat4'

This could be replaced with a single query like this:

SELECT categoryid, parentid, title, tags, qcount, content, backpath FROM qa_categories WHERE tags IN ('parentcategory', 'cat2', 'cat3', 'cat4')

And then loop through the results to get the info you need. Hope that helps :)

tag page showing white page after installing plugin

hi
thanks for this plugin, it helped me displaying breadcrumbs and thanks for your last update for the deprecated include issue i have applied the change and it solve data-vocabulary.org schema deprecated problem is Google search console.

But , we got a new issue
after installing this plugin, tag page showing white page with no content here a screenshot
https://prnt.sc/Hez1h1vitYqN

and after disabling the plugin tag page show content again , here is a screenshot
https://prnt.sc/2vQwGHJjq5op

can you help please

Icons no longer a feature?

I've used some of the earlier versions and the icons were an awesome touch to this already amazing plugin.
I wanted to know if Icons are currently supported or if they ever will be supported again?

Undefined index: q_view

To reproduce:
1-At admin activate the post approval, so that a question posted/edited by a user has to be approved to be displayed.
2- login as another user whose post needs approval and post a question
3- note down (copy) the url of that question and logout
4- now at the address bar enter the ur of that question. e.g.
yourDomain.com/index.php?qa=8

That opens a page which a message which reads "This question is waiting for approval"
right?

however at the same time it shows these error messages below:
Notice: Undefined index: q_view in /qa-plugin/q2a-breadcrumbs-master/qa-breadcrumbs-widget.php on line 117

Notice: Undefined index: q_view in /qa-plugin/q2a-breadcrumbs-master/qa-breadcrumbs-widget.php on line 118

sub category order

sub category order is wrong
Category: Home > Accessories -> Headphones

Breadcrumb: Home > Headphones -> Accessories

Schema error

error : url A value for the url field is required.

This error shows to all urls like cat, question and tags

See the image : https://ibb.co/mQ6TFQ

Regards,
Raja.

User Page

When in user page, the breadcrumb is listing the "users", yet using the word 'user'. I think it should say "users" since that's where the link is taking you.

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.