[SOLVED] Basic blog CMS that's easily integrated

This is a discussion on "[SOLVED] Basic blog CMS that's easily integrated" within the PHP Forum section. This forum, and the thread "[SOLVED] Basic blog CMS that's easily integrated are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 29th, 2007, 11:53
Aso's Avatar
Aso Aso is offline
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,012
Blog Entries: 2
Thanks: 5
Thanked 23 Times in 20 Posts
Send a message via Skype™ to Aso
[SOLVED] Basic blog CMS that's easily integrated

Hi All

I was trying out sNews and getting confident this could work for me. I already have the site designed, I just needed a basic CMS that would give the 'news' page some blogging facilities. Then turns out the client's host does not enable mod_rewrite and they don't want to change hosts, and sNews doesn't work without mod_rewrite.

I have a basic knowledge of PHP, and I want to integrate a CMS into my design. Wordpress is so big I don't know what to edit where. Are there any lightweight CMS's like sNews that are easy to adapt?
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Reply With Quote

  #2 (permalink)  
Old Nov 29th, 2007, 14:10
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Basic blog CMS that's easily integrated

Use wordpress without the rewrites, quite easy!
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #3 (permalink)  
Old Nov 29th, 2007, 14:40
Aso's Avatar
Aso Aso is offline
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,012
Blog Entries: 2
Thanks: 5
Thanked 23 Times in 20 Posts
Send a message via Skype™ to Aso
Re: Basic blog CMS that's easily integrated

This was all very new to me, but I'm getting the hang of it now. I've integrated wordpress into my design. The blog is set up to run on www.domain.com/news/ HOWEVER, is there a way I can include the sidebar on every page of the site. I tried php including sidebar.php (in my themes folder) but I get
PHP: Select all

 Call to undefined function wp_list_pages() in ... on line 8 

(replaced include path with '...')

I vaguely know what the problem is. Is there a workaround? Is there another file I can include that has the functions it needs?

Many many thank you's in advanced

EDIT: If anything, all I really need is to show a couple of new posts (just titles & summary) with links to the relevant post in the column of the other pages.
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)

Last edited by Aso; Nov 29th, 2007 at 14:44.
Reply With Quote
  #4 (permalink)  
Old Nov 29th, 2007, 16:07
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Basic blog CMS that's easily integrated

Actually you need to show me what the include path was.
and post your code for both the page that is including the sidebar and the code for the sidebar.
It's not a security flaw mate.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #5 (permalink)  
Old Nov 29th, 2007, 16:43
Aso's Avatar
Aso Aso is offline
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,012
Blog Entries: 2
Thanks: 5
Thanked 23 Times in 20 Posts
Send a message via Skype™ to Aso
Re: Basic blog CMS that's easily integrated

Oh I know it's not a security flaw. At a guess, was it because it was operating 'outside' of wordpress, so certain functions were not defined?

If you can help it would be much appreciated *deep breath*

Sidebar:
PHP: Select all

<div id="column">

<ul id="sidewidget">
<?php     /* Widgetized sidebar, if you have the plugin installed. */
        
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
    <?php wp_list_pages('title_li=' __('Pages:')); ?>
    <?php wp_list_bookmarks('title_after=&title_before='); ?>
    <?php wp_list_categories('title_li=' __('Categories:')); ?>
 <li id="search">
   <label for="s"><?php _e('Search:'); ?></label>
   <form id="searchform" method="get" action="<?php bloginfo('home'); ?>">
    <div>
        <input type="text" name="s" id="s" size="25" /><br />
        <input type="submit" value="<?php _e('Search'); ?>" />
    </div>
    </form>
 </li>
 <li id="archives"><?php _e('Archives:'); ?>
    <ul>
     <?php wp_get_archives('type=monthly'); ?>
    </ul>
 </li>
 <li id="meta"><?php _e('Meta:'); ?>
    <ul>
        <?php wp_register(); ?>
        <li><?php wp_loginout(); ?></li>
        <li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
        <li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
        <li><a href="http://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Transitional'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li>
        <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
        <li><a href="http://wordpress.org/" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.'); ?>"><abbr title="WordPress">WP</abbr></a></li>
        <?php wp_meta(); ?>
    </ul>
 </li>
<?php endif; ?>

</ul>

</div>
The include path is
Code: Select all
D:\My Documents\My Web Sites\news\wp-content\themes\ov\sidebar.php
but I'm using $_SERVER['DOCUMENT_ROOT'], where document root is 'My Web Sites' (this is where the current site is stored, so localhost/contact.php accesses My Web Sites/contact.php) .

So the content of a page on the site looks like:
PHP: Select all

<div id="wrapper">
 <?php include ($_SERVER['DOCUMENT_ROOT'] . '/php/header.php');?>
 
 <div id="content"><br />
 <span class="breadcrumb"><a href="/" title="Home">Home</a> &gt; Contact Us</span>
 <h1>Contact Us</h1>
 <div id="details">
 <p>Tel. 00000 0000 00</p>
 <p>Fax. 00000 0000 00</p>
 <p>Address:</p>
 <p><a href="#" title="View Map">View Map</a></p>
 </div>
    <form method="post" action="">
<div>
       <label for="name">Name:</label>
      <input type="text" tabindex="1" name="name" id="name" /></div>
     <div>
      <label for="company">Company:</label>
      <input type="text" tabindex="3" name="company" id="company" /></div>
     <div>
      <label for="email">Email:</label>
      <input type="text" tabindex="2" name="email" id="email" /></div>
     <div>
      <label for="comments">Comments:</label>
      <textarea tabindex="5" name="comments" id="comments" cols="30" rows="4"></textarea></div>
     <div><input type="submit" tabindex="6" name="submit" id="submit" value="Submit" class="btn" /></div></form>
  
</div>
  
<?php include ($_SERVER['DOCUMENT_ROOT'] . '/news/wp-content/themes/ov/functions.php');?> 
<?php include ($_SERVER['DOCUMENT_ROOT'] . '/news/wp-content/themes/ov/sidebar.php');?>

 <div class="clearfix">&nbsp;</div>
</div>

<div id="shadow-foot">&nbsp;</div>

<?php include ($_SERVER['DOCUMENT_ROOT'] . '/php/footer.php');?>
As you can see I tried including functions.php alongside sidebar.php but no luck.
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Reply With Quote
  #6 (permalink)  
Old Nov 29th, 2007, 17:04
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Basic blog CMS that's easily integrated

Hmm why are you creating the page your self when wordpress does it for you?
Why not take what wordpress gives you and edit it to work, not remove what is needed.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #7 (permalink)  
Old Nov 29th, 2007, 17:39
Aso's Avatar
Aso Aso is offline
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,012
Blog Entries: 2
Thanks: 5
Thanked 23 Times in 20 Posts
Send a message via Skype™ to Aso
Re: Basic blog CMS that's easily integrated

The only page I want to blog on is 'news'. I've simply modified a theme* so that it appears exactly like the other pages, and feels 'integrated.' The rest of the site is nothing to do with the blog, but what I would've liked was effectively a 'snippet' of the 2 most recent blogs appear in the column of the other pages.

*I copied the 'classic' theme and then modified the CSS (and one or two classes in index.php, plus including my own header and footer).
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Reply With Quote
  #8 (permalink)  
Old Nov 29th, 2007, 19:44
Aso's Avatar
Aso Aso is offline
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,012
Blog Entries: 2
Thanks: 5
Thanked 23 Times in 20 Posts
Send a message via Skype™ to Aso
Re: Basic blog CMS that's easily integrated

What I did eventually was connect to the wordpress db and extract the data I needed Not the ideal solution, but this was a bit of last minute resort
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Reply With Quote
  #9 (permalink)  
Old Nov 30th, 2007, 22:29
Up'n'Coming Member
Join Date: May 2007
Location: northern nsw, au
Age: 27
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Basic blog CMS that's easily integrated

I actually integrated a solution like what you are talking about (I think).

I needed a blog facility on the website triumphantevents.co.uk so that the frontpage would display the most recent news. I used Moveable type and the whole blog is viewable at triumphantevents.co.uk/inspiration

To do this I just created a function that retrieves the most recent blog post and displays it on the front page. I like movable type because it lets you have multiple blogs and with the function I created I can simply say which blog to refer to and it will display the post of that blog within the design style of the site.

Last edited by cosmicbdog; Nov 30th, 2007 at 22:32. Reason: movable type link
Reply With Quote
  #10 (permalink)  
Old Dec 1st, 2007, 11:21
Anonymous User
Guest
Posts: n/a
Re: Basic blog CMS that's easily integrated

Why not try cute news http://cutephp.com . ALthough it does seem to be getting a bit dated a quick whizz around the forum shows that there is an entirely new build coming.

The different elements of the script (such as blog) can be split into different outputs so you can have 4 various blog outputs all formatted differently and include them on your existing page with a simple <?php include.

It's so easy to use and implement into your page with a great resource forum, it's just a simple way to alter content on a page using a wysiwyg editor.

But it has more features if you want (like comments on specific articles, allowing guest writers to log in and write in specific places etc.)

It basically suits the functionality you wanted, where as wordpress has many advanced default features making it more complex to work with? (wouldn't know, never used it).

Oh well just my input.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Basic database to call information hausjellp PHP Forum 30 May 1st, 2008 09:29
[SOLVED] Basic Positioning Issue Fearpig Web Page Design 2 Apr 15th, 2008 12:30
CMS system integrated to existing site mharriss Web Page Design 8 Apr 8th, 2008 13:08
[SOLVED] First Attempt at Basic Image Gallery Not Working... Jack Franklin JavaScript Forum 1 Sep 30th, 2007 08:14
[SOLVED] Visual Basic Help Please Jack Franklin Scripts and Online Services 2 Sep 16th, 2007 17:12


All times are GMT. The time now is 05:43.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43