Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

Help needed with Now Reading plug in


  #1  
Old Apr 3, 2009, 01:22 PM
saipanyam
 
5 posts · Apr 2009
Now Reading plug in 4.4.3 works fine with atahualpa version 3.2.
But when I upgraded to 3.3.2 The library page has lost all styles, headers and footers. It appears as if it has no styling. When i switch back to 3.2 it works great. Any help provided is greatly appreciated. I think atahualpa theme rocks
  #2  
Old Apr 4, 2009, 06:20 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
See if you've done everything the same way, for instance do you have a space in the theme directory now, such as /atahualpa 3/

Otherwise post a URL please
  #3  
Old Apr 4, 2009, 08:10 PM
saipanyam
 
5 posts · Apr 2009
I have the theme directory set up as atahualpa332. No spaces.
Here is the URL:
www.iphigroup.com

The sidebar widget(Title: Reading list) looks fine. If you click the view library link and single book link, we get a page devoid of all styles.

library url
www.iphigroup.com/library

Thanks in advance
  #4  
Old Apr 5, 2009, 04:23 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Have you created page template for this, or are you using any of the single.php etc. files that came with the plugin?

The single.php, search.php, tag.php of the plugin should contain at the top what Atahualpa's index.php has at the top, the lines 1-72, everything above <?php get_header(); ?>

It probably worked in 3.2 because there Atahualpa had an get_option loop in footer.php and header.php and several other files, but that was wasteful and consuming resources, now all the options are fetched in index.php and passed to the other files from there, and if a file replaces index.php (which single.php, search.php and tag.php are doing) then this file needs to have this routine at the top of index.php lines 1-72 to get the options from the WP database, and figure out which sidebars to show

Try copying and pasting line 1-72 from Atahualpa's index.php into the plugin's single.php, search.php and tag.php and replace what those files have there, up to <?php get_header(); ?>
  #5  
Old Apr 6, 2009, 12:36 PM
saipanyam
 
5 posts · Apr 2009
I tried doing what you suggested. I put lines 1-72 from index.php in Library.php, single.php which are the template files of the plug in. But now I get the contents of the left sidebar without any styles AND the library content. The whole page looks unformatted.

http://www.iphigroup.com/library

I suspect it is because of
1. missing style sheet link somewhere
2. Also with the fact that 'Library' is not a 'Page' that I have created in Wordpress, but set as an option in Now-reading options for displaying the library.

These are only my guess. I cannot figure out what changed between the versions that show this behavior

Regards
Sai
  #6  
Old Apr 6, 2009, 07:23 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
It's not getting the theme options so all the CSS styles in the header section are empty. The upper part of index.php is where the options are fetched from the database. The get_option only works from within standard Wordpress page templates.

"pagename.php" in /atahualpa332/ should work so /atahualpa332/library.php should work if this is a page and "library" is the page slug.

To get the (CSS, sidebars etc.) options it would have to be a file in the themes root directory and with any of these file names

http://codex.wordpress.org/File:Template_Hierarchy.png

Otherwise the options would have to be grabbed straight from the database instead of going through standard WP functions.
  #7  
Old Apr 7, 2009, 12:31 PM
saipanyam
 
5 posts · Apr 2009
Thanks for your reply Flynn.
I tried doing what you suggested. I put library.php in the theme directory and also made it a wp page.

I also tried putting in the library.php in a folder called now-reading UNDER atahualpa332 directory as the plug in author suggested. But no luck.

I still have the same problem.
My only option is to rollback to athahualpa 3.2 OR get rid of now-reading plug in!

I like both....

Regards
Sai
  #8  
Old Apr 7, 2009, 12:46 PM
saipanyam
 
5 posts · Apr 2009
How do I grab the options from the database directly? I am new to PHP, but I am good in taking instructions. So if you can post the code for grabbing options from db directly. that will be awesome.
Thanks in advance
  #9  
Old Aug 19, 2009, 08:17 PM
Taquoriaan
 
7 posts · May 2009
Groningen, Netherlands
Send a message via AIM to Taquoriaan
Take the library.php file, and paste the code above the <?php get_header() ?> part. So basically at the beginning of the file.

At the end of the file, edit out <?php get_sidebar() ?> to prevent the plugin putting your whole sidebar in the body text. That should fix it. Do this with all files except sidebar.php and it works again.

Go over to www.taquoriaan.com/library to see my result with it.

Last edited by Taquoriaan; Aug 20, 2009 at 03:08 AM. Reason: adding example of working plugin on my site.
  #10  
Old Sep 10, 2009, 03:35 PM
lbellemore
 
1 posts · Sep 2009
hi Guys,

I've also just tried installing Now Reading (v. 5.1.1.0) and am having the same problem with the sidebar missing. When I view my library, I have an error across the bottom of my page:

Warning: require_once(/home/mysite/public_html/blog/wp-content/themes/default/sidebar.php) [function.require-once]: failed to open stream: No such file or directory in /home/mysite/public_html/blog/wp-includes/theme.php on line 843

I am using Atahualpa v 3.4.2 and I have tried the instructions copying lines 1-72 from index.php. However, it looks like index.php has changed a lot since the last posting and only goes up to line 40. Can you provide some updated instructions on how to get this plugin working?

Many thanks
Len

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Help needed with Feeds in Sidebar Shepherd Jim RSS, Feeds & Subscribing 19 May 18, 2011 11:22 PM
Libraries : jquery-1.2.6 is needed ? nello Atahualpa 3 Wordpress theme 1 Jun 18, 2009 05:11 PM
Japanese Atahualpa 3.3.3 language files needed TGsoft Languages & Translations 0 May 11, 2009 07:29 AM
Is ruthsarian_utilities.js needed if I don't use drop-down menus? Glottis Atahualpa 3 Wordpress theme 2 Apr 3, 2009 12:57 PM
Having trouble with the "now reading" plugin displaying pictures... widget CSS jmesax Sidebars & Widgets 3 Mar 29, 2009 12:44 AM


All times are GMT -6. The time now is 09:15 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.