Zen Cart Logo
Forums / All Other Contributions/Addons / Wordpress On ZC [Support Thread]

Wordpress On ZC [Support Thread]

Views: 620,706

Results 281 to 300 of 1,861
10 Oct 2007, 6:13 PM
#281
homsteadmom avatar

homsteadmom

New Zenner

Join Date:
Mar 2007
Posts:
43
Plugin Contributions:
0

Wordpress On ZC [Support Thread]

misty:

See Post 275..similar problem..fixed by ensuring wp-config.php is correctly
set..

Thanks I kept trying and finally got it working. :clap: Just need a bit of tinkering to get the look right now...

But I would still like to have the blog assessable from the drop down menu and not the side bar. Can anyone point me in the right direction to set that up?
Thanks,

10 Oct 2007, 6:49 PM
#282
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

HomsteadMom:

I would like to have the blog accesable from the drop menu. Any advice on how to add it there??
Suggest you search/post request in support thread for css dropdown header mod..
i.e how to add external/extra links at
http://www.zen-cart.com/forum/showthread.php?t=58629

10 Oct 2007, 8:18 PM
#283
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Okay I have been searching for two days for an answer for this and couldn't get any help on the wordpress forums either.

I believe this has something to do with the fact that wordpress is integrated into zen cart.

If you take a look at my main page for my blog
Old West Gambler's Press
you will see that it opens on the archive for October 8th, 2007 even though I have added more posts since the 8th. Also when you click on the archives for October in the sidebar you still get only the single post.

I have looked at the archive.php in the theme editor
here is that code...

<?php get_header(); ?>

	<div id="content" class="narrowcolumn">
<?php is_tag(); ?>
		<?php if (have_posts()) : ?>

 	  <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
 	  <?php /* If this is a category archive */ if (is_category()) { ?>
		<h2 class="pagetitle">Archive for the ‘<?php single_cat_title(); ?>’ Category</h2>
 	  <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
		<h2 class="pagetitle">Posts Tagged ‘<?php single_tag_title(); ?>’</h2>
 	  <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
		<h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2>
 	  <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
		<h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2>
 	  <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
		<h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2>
	  <?php /* If this is an author archive */ } elseif (is_author()) { ?>
		<h2 class="pagetitle">Author Archive</h2>
 	  <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
		<h2 class="pagetitle">Blog Archives</h2>
 	  <?php } ?>


		<div class="navigation">
			<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
			<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
		</div>

		<?php while (have_posts()) : the_post(); ?>
		<div class="post">
				<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
				<small><?php the_time('l, F jS, Y') ?></small>

				<div class="entry">
					<?php the_content() ?>
				</div>

				<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>

			</div>

		<?php endwhile; ?>

		<div class="navigation">
			<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
			<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
		</div>

	<?php else : ?>

		<h2 class="center">Not Found</h2>
		<?php include (TEMPLATEPATH . '/searchform.php'); ?>

	<?php endif; ?>

	</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>

Is this normal for a Wordpress on Zen Cart installation?

Can anyone give me any suggestions?

thanks for your help

10 Oct 2007, 9:48 PM
#284
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

mafiasam..I have installed wordpress zencart mod(different versions) several times, on
different zencart installs/domains, and have never experienced problem you describe in your latest post..however, I see from your post 274, that you installed wordpress in it's own folder(blog), and not into zencart install..to date, this method has never worked for me..have always had to resort to installing directly into zencart..suggest you try
this method.

11 Oct 2007, 1:18 AM
#285
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

misty:

mafiasam..I have installed wordpress zencart mod(different versions) several times, on
different zencart installs/domains, and have never experienced problem you describe in your latest post..however, I see from your post 274, that you installed wordpress in it's own folder(blog), and not into zencart install..to date, this method has never worked for me..have always had to resort to installing directly into zencart..suggest you try
this method.

I wish I could do that but I am determined to make this work. This is obviously a problem with the presentation of data and not something that is going to be a deal killer.

I need to find out what files exactly are being called. do you have any suggestions?

I may have tracked it down to the wp_get_archives tag located in the zen cart file /includes/templates/template_default/sideboxes/tpl_wp_archives.php

here is the code for that file...

<?php $content = "";

if($woz_install){
	
  //start wp output
  ob_start();
  wp_get_archives('type=monthly');
  $out = ob_get_clean();
  //end wp output

  $content .= '<ul>'.$out.'</ul>';
	
}
?>
11 Oct 2007, 4:53 AM
#286
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

Suggest you contact member hira, dev of this mod, either via personal message here, or via his website..

11 Oct 2007, 6:59 AM
#287
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

misty:

Suggest you contact member hira, dev of this mod, either via personal message here, or via his website..

Thanks Misty.

Now it is getting really interesting.

I changed a couple things and now it is giving me the posts I want but it is not staying in zen cart when it does it.
I changed the WordPress address (URL): to http://blog.oldwestgames.com
and the Blog address (URL): to http://oldwestgames.com/blog
I also added a line to .htaccess - ```
RewriteRule ^blog/ index.php?main_page=wordpress&%{QUERY_STRING} [L]

This was explained by the developer Hira in [this post](http://www.s-page.net/en/2007/07/29/woz-and-ultimate-seo-urls/) in his blog for using wordpress with zencart with seo urls.

I'll contact Hira.

Thanks again Misty.
11 Oct 2007, 7:08 PM
#288
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Does ANYONE have wordpress installed in the zen cart directory and use Ultimate SEO URLs as well?

15 Oct 2007, 2:08 PM
#289
billybonds avatar

billybonds

Zen Follower

Join Date:
Nov 2003
Location:
UK
Posts:
102
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Hi

Firstly thanks for sharing this mod and for the support...

I think I've got it up and running correctly and am now at the tinkering around stage.

I have the blog set up to show threads on the home page of my site. My URL is http://africanartandmasks.com/index.php.

My problem is that the blog post are not 'obeying' the constraints of the div they are contained within.

I have looked through style.css and changed a few values but have not resolved the problem.

Any help would be great.

Thanks.

18 Oct 2007, 10:02 PM
#290
billybonds avatar

billybonds

Zen Follower

Join Date:
Nov 2003
Location:
UK
Posts:
102
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Sorry for the bump but I have still not resolved this...

http://africanartandmasks.com/

Firstly, I cannot see where to get rid of the divider between posts. I am also getting confused because I cannot work out which stylesheet is affecting the blog on the home page since it appears different to the blog on its own page.

http://africanartandmasks.com/?.php

I still cannot get the blog on the home page to fit inside the div. If I narrow the settings for width for the div #page - it narrows on the blogs page but not on my home page.

Any ideas?

Thanks.

19 Oct 2007, 5:24 AM
#291
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

Did you install all the templates included in latest
wordpress mod zip file?

22 Oct 2007, 10:12 AM
#292
billybonds avatar

billybonds

Zen Follower

Join Date:
Nov 2003
Location:
UK
Posts:
102
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Hi Misty

Sorry for no reply until now (I've had malaria but I'm ok now...)

Well I thought I had put all the files (I assume you are referring to WP_ROOT files) but I've uploaded again just in case.

I'll have a look again today and see how I get on.

Thanks,

Jim.

22 Oct 2007, 12:22 PM
#293
billybonds avatar

billybonds

Zen Follower

Join Date:
Nov 2003
Location:
UK
Posts:
102
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Ok, well I have kind of got it sorted now.

The styling for the blog threads that are shown on the home page...

http://africanartandmasks.com/

is performed in includes/templates/custom_template/css/stylesheet.css

and to get rid of the divider (although this will impact across the whole, site so suggestions are still welcome!) remove border-bottom: 1px solid #9a9a9a; from

HR {
    height: 1px;
    margin-top: 0.5em;
    border: none;
    border-bottom: 1px solid #9a9a9a;
    }
22 Oct 2007, 12:59 PM
#294
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

is performed in includes/templates/custom_template/css/stylesheet.css
In wordpress mod for zencart, there is stylesheet_woz.css included,
which should be added to your zencart current template's css folder.

25 Oct 2007, 8:33 PM
#295
billybonds avatar

billybonds

Zen Follower

Join Date:
Nov 2003
Location:
UK
Posts:
102
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Hi

Where does one control the amount of each blog thread that will appear as a summary?

What I really mean is that after, for example, using

<?php
                require('wp-blog-header.php');
                ?><?php
                $posts = get_posts('numberposts=3'); // change to whatever number of posts to show
                foreach($posts as $post) :
                setup_postdata($post);
                ?>
                <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
                <?php the_date(); ?>
                <?php the_content(); ?><hr />
                <?php endforeach; ?>

to get the blog to appear on the web site's homepage (or where ever) how do you then get this to be a summary or the first few lines of each thread, rather than the entire thread?

Thanks.

25 Oct 2007, 9:51 PM
#296
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

http://codex.wordpress.org/The_Loop_in_Action
i.e.

If you include the **Quicktag** button called more, and shown as **<!--more-->**, in the body of your post, only the portion above that line will be displayed to viewers. So, if you only want your front page to show the first sentence or two of every post, simply insert <!--more--> after the first line into every post you make.

25 Oct 2007, 10:36 PM
#297
billybonds avatar

billybonds

Zen Follower

Join Date:
Nov 2003
Location:
UK
Posts:
102
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Thank you for that misty... (I'd gone through every possible nook and crany in admin and had become not a little confused as to why I could not find it!)

29 Oct 2007, 2:30 AM
#298
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

hi there seem to be having a problem having with this install everything seems to look like it should work, but i can't seem to find the wordpress admin section.

had zencart 1.3.7 working fine

  1. installed wordpress in the zencart directory /gorillagear.ca/store (but separate databases)
  2. was able to play with it and go to the admin section in https://www.gorillagear.ca/blog/wp-admin/ then i changed the config file
  3. added the root files to both zencart and wordpress
  4. modified that one file in zencart to integrate the 2 programs and that is it

i don't know how to find the admin section so i can start working on this any thing i missed

3 Nov 2007, 6:19 PM
#300
dezinejunkie avatar

dezinejunkie

New Zenner

Join Date:
Jan 2007
Posts:
49
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

im going round and round with this one- ive done the install, using the lastet version of ZC and WP- BlogSidebar is showing up on my sideboxes in Apple Zen, however the link is a dead end. i keep getting this message.
**file not found /var/www/vhost/example.com/wp-config.php
What is the hook here?
**Ive gone into the wp-config file and cant seem to figure this one out.
If anyone can help i would greatly app at this time, banging my head against the wall:frusty: thanks guys..