Drupal: Access denied triggered, but I get content anyway
I'm building a site that gives each user a private home page with content they can see but others cannot. The callback in a _menu handler allows access if the user is the owner of the page and denies it otherwise; all is well there. I've just revised that page so that its content is made up of a set of boxes instead of a big bag of code. The conten...
Can't edit Main menu block in sidebar by clicking on "gear"
Today on one of my websites I encountered something strange. I have my "Main menu" block in my left sidebar, and when I hover over that block, the "gear" to edit it shows up, but clicking on it does nothing. Also, on pages that the block wouldn't show up on, it does (rather, the blank space does) with nothing in it, and the gear still shows up and ...
Load more content with ajax when clicking more link in a view
I have a custom block view. I display the last 5 node titles. If someone clicks the more link I want to load the next 5 titles underneath the current 5 node titles. No page refresh and not pager. Is this possible? How would I go about doing this?
How to load all remaining content of a view after clicking a "load more" link?
I have a view block that list contents. What I want to do is to show only 5 items in this view and a load more link at the bottom of the view and if this link clicked, then show all remaining content of the view. I tried the Views Load More module and the Views Infinite Scroll module. The Views Load More module didn't work, the Views Infinite Scrol...
How to display flags to anonymous users and redirect to login after clicking a flag?
I want to display flag to anonymous user and upon clicking the user should be redirected to register/login page. I found one answer to this problem in the question about "How to display a flag to anonymous users?". I tried this solution but did not work, may be I did not put the code in correct place? I am using Bartik as my template and I put the ...