Jump to content

Blog 1.2 (Now w/ Custom Pages!)


Recommended Posts

ye nice :)

 

- Report comment future.

- Collab future, the one were I can assign clients that can write blogposts etc from the client panel.

 

was something more i belive, I'll give a shout when I remember. or i'll dive in to read the older post on the forum.

Link to comment
Share on other sites

  • 5 months later...
Changes from version 1.1

  • Added custom pages (Let's you create WHMCS custom pages just like a blog post)
  • Added "teasers" (Short description instead of truncated post)
  • Added Bookmark/ social network sharing
  • Added IP blocking (Let's you block IPs from making comments)
  • Added RSS feed for all posts & by category.
  • Fixed special chars in comments

 

$25 (includes all future upgrades and added features)

Order It! | See it in action

 

###############################################################################
#                                                                             #
#                    WHMCS Blog v1.2      By TJ Phippen                       #
#                                                                             #
###############################################################################




INSTALL -----------------------------------------------------------------------

1. Unzip all files.

2. Upload all files to their appropriate locations:
 - "blog.php" > yoursite.com/whmcs/blog.php
 - "includeblog.php" > yoursite.com/whmcs/includeblog.php
 - "pages.php" > yoursite.com/whmcs/pages.php
 - "modules/admin/blog/blog.php" > yoursite.com/whmcs/modules/admin/blog/blog.php
 - "templates/portal/blog.tpl" > yoursite.com/templates/yourtemplate/blog.tpl
 - "templates/portal/blog-category.tpl" > yoursite.com/templates/yourtemplate/blog-category.tpl
 - "templates/portal/blog-post.tpl" > yoursite.com/templates/yourtemplate/blog-post.tpl
 - "templates/portal/blog-page.tpl" > yoursite.com/templates/yourtemplate/blog-page.tpl

3. Add the following to your language file:

$_LANG["blogtitle"] = "Blog";
$_LANG["latestposts"] = "Latest Posts";
$_LANG["latestblogposts"] = "Latest Blog Posts";

4. Login to your WHMCs administrative area and navigate to Utilities > Addon Modules > Blog

5. Click "Install Blog"

-------------------------------------------------------------------------------




Sidebar -----------------------------------------------------------------------

Add the following to your footer.tpl after the last "Quick Navigation link:

     <li><a href="blog.php" title="{$LANG.blogtitle}"><img src="templates/{$template}/images/icons/blog.gif" alt="{$LANG.blogtitle}" width="16" height="16" border="0" class="absmiddle" /></a> <a href="blog.php" title="{$LANG.blogtitle}">{$LANG.blogtitle}</a>
{if $sidecategories}
       <ul style="margin-left:18px;">
{foreach from=$sidecategories item=sidecat}
         <li>- <a href="{if $seofriendly}blog/{$sidecat.id}/{$sidecat.seo}{else}blog.php?category={$sidecat.id}{/if}">{$sidecat.name}</a></li>
{/foreach}
       </ul>
{/if}
     </li>
{php}include("pages.php");{/php}
{foreach from=$allpages item=navpage}
     <li>{if $navpage.icon}<a href="{$navpage.url}" title="{$navpage.title}"><img src="{$navpage.icon}" alt="{$navpage.title}" width="16" height="16" border="0" class="absmiddle" /></a>{/if} <a href="{$navpage.url}" title="{$navpage.title}">{$navpage.title}</a></li>
{/foreach}

-------------------------------------------------------------------------------




Include Blog ------------------------------------------------------------------

1. Navigate to Utilities > Addon Modules > Blog > Settings

2. Select "Enable Include Blog", set "Number of posts to include" & Save.

3. Add the following to your homepage, or anywhere within WHMCS you wish:

<h2>{$LANG.latestblogposts}</h2>
{php}include("includeblog.php");{/php}
{foreach from=$posts item=post name=post}
<p><a href="{if $seofriendly}blog/{$post.id}/{$post.seourl}{else}blog.php?postid={$post.id}{/if}">{$post.title}</a> - {$post.date}<br />{$post.content|strip_tags|truncate:300:"..."}</p>
{if !$smarty.foreach.post.last}
<hr />
{/if}
{/foreach}

-------------------------------------------------------------------------------




SEO Friendly URLs -------------------------------------------------------------

1. Navigate to Utilities > Addon Modules > Blog > Settings

2. Select "Use SEO Friendly URLs" & Save

3. Add the following to your .htaccess (you may have to rename it from htaccess.txt)

# Blog
RewriteRule ^([^/]*).html$ ./blog.php?pagename=$1 [L,NC]
RewriteRule ^blog/([0-9]+)/[a-z0-9_-]+\.html$ ./blog.php?postid=$1 [L,NC]
RewriteRule ^blog/([0-9]+)/([^/]*)$ ./blog.php?category=$1 [L,NC]
RewriteRule ^blog/page-([0-9]+)$ ./blog.php?page=$1 [L,NC]
RewriteRule ^blog/(.*)/([^/]*)/page-(.*)$ ./blog.php?category=$1&page=$3 [L,NC]
RewriteRule ^blog$ ./blog.php [L,NC]

** Note - You must add entries to your .htaccess for "pages" to work.

-------------------------------------------------------------------------------

That's it! You now have the full functionality of version 1.2
Please direct any questions, comments, suggestions or bugs to http://www.tjphippen.com

Enjoy!

###############################################################################
#                                                                             #
#                    WHMCS Blog v1.2      By TJ Phippen                       #
#                                                                             #
###############################################################################




UPGRADE -----------------------------------------------------------------------

1. Unzip all files.

2. Upload all files to their appropriate locations and overwrite any existing:
 - "blog.php" > yoursite.com/whmcs/blog.php
 - "includeblog.php" > yoursite.com/whmcs/includeblog.php
 - "pages.php" > yoursite.com/whmcs/pages.php
 - "modules/admin/blog/blog.php" > yoursite.com/whmcs/modules/admin/blog/blog.php
 - "templates/portal/blog-page.tpl" > yoursite.com/templates/yourtemplate/blog-page.tpl

3. Add the following to the bottom of your "blog.tpl" & "blog-category.tpl":


{if $showrss}<p align="center"><img src="images/rssfeed.gif" class="absmiddle" border="0" alt="" /> <a href="blogrss.php">View RSS Feed</a></p>{/if}


4. Add the following to "blog-post.tpl" after "{$post.content}":


{if $bookmarks}
<hr />
<a href="http://www.addthis.com/bookmark.php?v=250&pub=xa-4a51bb7478842e2e" onmouseover="return addthis_open(this, '', '[url]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/sm-bookmark-en.gif" width="83" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub=xa-4a51bb7478842e2e"></script>
{/if}


5. Add the following to your .htaccess after "# Blog":


RewriteRule ^([^/]*).html$ ./blog.php?pagename=$1 [L,NC]


6. Login to your WHMCs administrative area and navigate to Utilities > Addon Modules > Blog

7. Click "Upgrade Blog"

-------------------------------------------------------------------------------




Sidebar -----------------------------------------------------------------------

Add the following to your footer.tpl or anywhere else on your site you'd like links to your pages to appear:


{php}include("pages.php");{/php}
{foreach from=$allpages item=navpage}
     <li>{if $navpage.icon}<a href="{$navpage.url}" title="{$navpage.title}"><img src="{$navpage.icon}" alt="{$navpage.title}" width="16" height="16" border="0" class="absmiddle" /></a>{/if} <a href="{$navpage.url}" title="{$navpage.title}">{$navpage.title}</a></li>
{/foreach}

-------------------------------------------------------------------------------

That's it! You now have the full functionality of version 1.2
Please direct any questions, comments, suggestions or bugs to http://www.tjphippen.com

Enjoy!

Future Planned Features

  • The WordPress import is on the way & will be an external script.
  • Comment count on post listing pages (I forgot to add it to v1.2)
  • & as always, keep the suggestions/feedback coming :)

 

Is this addon available yet? None of your URL's are working.

Link to comment
Share on other sites

  • 1 month later...

Thanks gs-liam. I suppose I will go ahead and convert my template into a WordPress theme. That way I will have far more control over my blog. And, WordPress is free. Can't go wrong there.

 

Sorry if you lost your money as a result of this person's fraud. If you paid through PayPal, did you open a dispute? Maybe even contact your bank and tell them you never received the product. Maybe you can get your money back that way.

Link to comment
Share on other sites

If you are interested in the Blog let me know. I have it with full rights. It is here and not a fraud...sorry you feel that way. However, if you purchased from previous owner there may be some type of issue with me. I have not contact with TJ, so, hard to verify you purchased it.

Link to comment
Share on other sites

  • 4 weeks later...
  • 6 months later...
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated