Help - Search - Members - Calendar
Full Version: AllConsuming
Movable Type Community Forum > Additional Resources > Tips and Tricks
hank1
Can you tell by looking at the page what's wrong with this?

Been at this two weeks now. Last week could get "Currently Reading", but was most interested in "Favorite Books".

Today I had both. The "Favorite Books" showed my 9 favorites, and below was the 1 "Currently Reading".

Now the "Currently Reading" functions, but lost "Favorite Books". It shows the white box w/red X. And I don't know where "Last Updated" under "Favorite Books" came from. It's not necessary.

Anyway, here's the site, and if the code in style-sheet and main index and even the mt-allconsuming pl file I uploaded to plugins is important, I'll get them.

This is my practice page. Don't dare do this on my blog until I get it solved.

practice
kadyellebee
Well, I see the currently reading... can you post what your MTAllConsuming tags look like? (hint, use the CODE button above to surround the tags) Is it similar to the example?

Or maybe you aren't using the plugin, just some code from the AllConsuming site??

Kristine
hank1
Well I took the MTAllConsuming tags out altogether. Put them back per your request, and you can see why I had removed them. I had taken out of the tags the following:

Last Update:
Page:
and the quotation tags.


CODE
<MTAllConsumingList username="hank1" type="favorite_books"> <a href="<$MTAllConsumingListLink$>"><$MTAllConsumingListTitle$></a><br/>  <span class="realsmall">  <$MTAllConsumingListLastBuildDate$></span><br/> <table border="0" cellpadding="3"> <MTAllConsumingListBooks sort_by="author,title"> <tr> <td align="middle"> <img src="<$MTAllConsumingListBookImage$>" border="0" width="39" height="60" alt="<$MTAllConsumingListBookTitle$>" /> </td> <td class="small" align="middle"> <$MTAllConsumingListBookAuthor$><br/> <em><$MTAllConsumingListBookTitle$></em><br/> <span class="realsmall"> <MTAllConsumingListBookPageNotZero>  <$MTAllConsumingListBookPage$><br/> </MTAllConsumingListBookPageNotZero> <MTAllConsumingListBookCommentNotEmpty> <$MTAllConsumingListBookComment$><br/> </MTAllConsumingListBookCommentNotEmpty> [<a href="<$MTAllConsumingListBookAmazonLink$>">Amazon</a>] [<a href="<$MTAllConsumingListBookACLink$>">All Consuming</a>] </span> </td> </tr> </MTAllConsumingListBooks> </table> </MTAllConsumingList>


What I had left in the Main Index is this:

CODE
<style type="text/css">
<!--
.ac_image     {}
.ac_link      {}
.ac_image_tag {}
.ac_title     {}
.ac_author    {}
.ac_comment   {}
.ac_logo      {}
-->
</style>
<div align ="center" class="sidetitle">
Current Reading
</div>
<div id="links">
<div class="side">
<div align="center" class="books">
<script language="javascript" type="text/javascript" src="http://www.allconsuming.net/xml/users/currently_reading.hank1.js"></script></div></center>


Might be the plugin is in the wrong location. I had it in a plugins directory I created within /public_html/cgi-bin/MT/plugins. Also not confident at all I had configured the mt-allconsuming.pl file correctly, especially the $AC_DATA_DIR I had finally settled on it thus:
CODE
$AC_DATA_DIR . 'ac.'
even though I am using MySQL.
kadyellebee
When I view the source of your page, I see closing tags for the all consuming plugin like
CODE
</MTAllConsumingList>

That's generally a sign that the plugin isn't installed completely or its missing some required module to make it work.

Are you sure that your server has all of the required modules? (there's a list in the entry here). Is the mt-allconsuming.pl file uploaded in the correct directory?

Kristine
hank1
These modules. Do you mean these?

CODE
XML::DOM
LWP::UserAgent
HTTP::Request
HTTP::Response
HTTP::Date


I've contacted my server about it. They say they'll see if those modules are installed, and if not they'll email me if and when they are.

QUOTE
Is the mt-allconsuming.pl file uploaded in the correct directory?


That's just what I'm not sure of. As of now it's in /public_html/cgi-bin/MT/plugins

I'll post the answer to the modules here when I hear from my server.

Kristine,

If these are the modules in question, yes my server says they are installed.
hank1
Kristine,

So, if these modules are fine then you say it may be that I have the mt-allconsuming.pl file in the wrong directory.

Suppose I move it from /public_html/cgi-bin/MT/plugins to /public_html/cgi-bin? Then it would be in /public_html/cgi-bin/plugins.

I'm just guessing because I really don't know.

My /public_html/cgi-bin is where the big MT folder is stored. Also there in that directory are all the mt.cgi files and the mt.cfg file.

Or would it go in the /public_html/blog? This is the directory for my "real" blog, not the practice blog I've created to try out AllConsuming.
kadyellebee
I'm glad that the modules are all there, that's a step in the right direction. smile.gif

Okay, so your mt.cgi is in /public_html/cgi-bin/mt.cgi -- is that correct? If so, the plugin file should be at /public_html/cgi-bin/plugins/mt-allconsuming.pl

You may need to create the plugins directory if it isn't already there.

Kristine
hank1
Kristine,

OK. the mt-allconsuming.pl is now in /public_html/cgi-bin/plugins/ so it's exactly as you suggest:

CODE
/public_html/cgi-bin/plugins/mt-allconsuming.pl


Checked the practice page and nothing's changed.

I still wonder about my tags in the mt-allconsuming.pl file.

Here's what I have:
CODE
$file = $AC_DATA_DIR . 'ac.' . dirify($url);


And here's what it says about configuring that line:

CODE
# Set this variable if you using MySQL or want your RSS files cache
# somewhere other then the DBM directory. The value must end with a /.
my $AC_DATA_DIR = "./db/";


What I wonder about is should I leave it as it is, or if configuring it as per directions, would it simply be:

CODE
$file = $AC_DATA_DIR =./db/ 'ac.' . dirify($url);
?

P.S. When I do a "Rebuild Site" it gives me this error:

CODE
MT::App::CMS=HASH(0x836152c) mt-allconsuming: http://allconsuming.net/xml/users/favorite_books.hank1.xml could not be cached as ./db/ac.httpallconsumingnetxmlusersfavorite_bookshank1xml. at /home/tracyfin/public_html/cgi-bin/plugins/mt-allconsuming.pl line 386.
kadyellebee
Okay, I did some research. smile.gif I couldn't find a definite answer about the db directory in the All consuming documentation. But since the plugin is based on the RSS feed plugin, I think this should help...
In my RSS feed plugin code, I'm using
QUOTE
my $RSSFEED_DATA_DIR = "/home/love/public_html/mt/db/";

So its a full path to the db directory that the xml files are stored in, rather than just ./db/

I believe that you only need to modify line 36 in the mt-allconsuming.pl file rather than the line that starts with $file... and I think this might do it for you:
QUOTE
my $AC_DATA_DIR = "/home/tracyfin/public_html/cgi-bin/db/";

Then with your FTP client, create the db directory under the cgi-bin directory and set its permissions (chmod) it to 777, I think.

See if that works for you, and if not, let me know if that error message is the same -- and we'll keep troubleshooting. smile.gif

Kristine
hank1
Kristine,

Yes, this does it. smile.gif Thank you.

There is no error when rebuilding now.

Now, if you have the time and inclination, could you help me take it a step further? Do you see a way to remove the link allconsuming.net favorite books list and remove the date (Sun Feb 15 18:09:53 2004) immediately under that link?

It would be ideal if one could click on the little stack of books just under "Favorite Books" to get to the same link as allconsiming.net favorite books list.

I'm guessing I'd have to keep the allconsumin.net favorite books list link there somhow, say, immediately below the stack of books image. And perhaps make that stack of books also clickable to the same link?

The way it is now is ok, but it sure clutters up the page with all those 9 "Favorite Books".

What I'm after is the single "Currently Reading" as it shows now, but with a link to "Favorite Books" instead of that long column of book images.

In any case, thanks again for getting me this far. It's much appreciated.

Robert

P.S. Here's the link to the page as it stands now. practice
And here's a link to how I'd like it to look.
hank1
Kristine,

Sorry, I'm confusing myself so much I'm afraid I'm confusing you too. Anyway I think I'm asking too much.

Here's a link to how I'd like to get the page to look:

Favorite Books

On this page you see in red lines what I'm after.

Where it says "It takes you HERE" the HERE is clickable, to show you where I'd like those 2 links to go to when clicked. Do you see that it's at least possible? I'll keep working at it, but if you know an easy solution I'd be much obliged.

Robert
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.