zCommunity 0.8.1 Beta Now available! (supports SMF 2.0 RC1 and 1.1.8)

Started by Charles Hill, June 16, 2008, 03:33:34 PM

Previous topic - Next topic

jkrlvgn

OK.  Just to mention, the Alpha works with TinyPortal v.1.0.6 beta 2.  Those of you that still have the .98 version should upgrade anyway.  I'd download the .9.8, but...that'd be like trying this mod on SMF 1.0.5.

Demo of zCommunity with TP: http://www.alternateshadows.com/tp/index.php


jkrlvgn

ALSO!

My host won't allow me to make my index 777 during install....what I did was delete the zComm folder in the main/base directory, and then move the zComm folder from the temp file.  After I moved it, everything installs like a dream.

You should only have to do this if your server won't allow the main folder to be 777, though.


:).


jkrlvgn


jkrlvgn

#803
@Gidget:  Are you going to use zCommunity, or Blog Community?  The reason I ask is because there are going to be different edits that you need to do for either.

zCommunity

Open up your theme's index.template.php
Find:
   // The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
Add BEFORE:
   // load the style.css from zCommunity/Themes/default first.......
   if (isset($modSettings['blogMode']))
   {
      global $zc_themes_url;
      echo '
   <link rel="stylesheet" type="text/css" href="', $zc_themes_url, '/default/style.css?fin11" />';
   }

*Scratch that one.  It makes your particular theme goofy.  Do the rest below.


Find:
Code (FIND) Select

</head>

ADD BEFORE:
Code (ADD BEFORE/ABOVE) Select

';

// zCommunity...
if (isset($modSettings['blogMode']))
{
global $zc_includes_url, $zc_settings, $zc_themes_url;

// if we're viewing an article in a BLOG, these should be the previous and next topics, respectively.
if (!empty($context['current_article']))
echo '
<link rel="prev" href="', $scripturl, '?article=', $context['current_article'], '.0;prev_next=prev" />
<link rel="next" href="', $scripturl, '?article=', $context['current_article'], '.0;prev_next=next" />';

// If we're in a blog, or article for that matter, the index will be the blog's index.
if (!empty($context['current_blog']))
echo '
<link rel="index" href="', $scripturl, '?blog=', $context['current_blog'], '.0" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($zc_settings['blog_xml_enable']) && !empty($context['current_blog']))
echo '
<link rel="alternate" type="application/rss+xml" title="', !empty($context['blog_name']) ? $context['blog_name'] : '', ' - RSS" href="', $scripturl, '?zc=.xml;blog=', $context['current_blog'], ';type=rss" />';
elseif (!empty($zc_settings['blog_xml_enable']) && !empty($context['blog_community']))
echo '
<link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - zCommunity" href="', $scripturl, '?zc=.xml;type=rss" />';

// PNG fix and css hover fix for IE < 7
if ($context['browser']['is_ie'] && !$context['browser']['is_ie7'] && !empty($zc_includes_url))
echo '
<script defer type="text/javascript" src="', $zc_includes_url, '/pngfix.js"></script>
<style type="text/css" media="screen">
body{behavior:url(', $zc_includes_url, '/csshover.htc); font-size:100%;}
</style>';

// lightbox...
echo '
<script type="text/javascript" src="', $zc_themes_url, '/default/lightbox/js/prototype.js"></script>
<script type="text/javascript" src="', $zc_themes_url, '/default/lightbox/js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="', $zc_themes_url, '/default/lightbox/js/lightbox.js"></script>
<link rel="stylesheet" href="', $zc_themes_url, '/default/lightbox/css/lightbox.css" type="text/css" media="screen" />';
}

echo '


Find:
Code (FIND) Select

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!

Add BEFORE:
Code (ADD BEFORE/ABOVE) Select

// float the footer right if viewing a zcommunity page...
if (!empty($context['blog_community']))
echo '
<div style="float:right; text-align:center; width:100%;">';


Find:
Code (FIND) Select

// The following will be used to let the user know that some AJAX process is running

ADD BEFORE:
Code (ADD BEFORE/ABOVE) Select

// close footer div if viewing a zcommunity page...
if (!empty($context['blog_community']))
echo '
</div>';




Find:
Code (FIND) Select

// Show the start of the tab section.


Add BEFORE:
Code (Add Before/Above) Select

// are we viewing a page in the blogging community?
if (!empty($context['zc']['show_zc_nav']) && !empty($context['blog_community']))
$current_action = 'zc';


Find:
Code (FIND) Select

// Show the [help] button.

ADD BEFORE:
Code (Add BEFORE/ABOVE) Select

// Show the [Blogs] link?
if (!empty($context['zc']['show_zc_nav']))
echo ($current_action == 'zc' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<td valign="top" class="maintab_', $current_action == 'zc' ? 'active_back' : 'back', '">
<a href="', $scripturl, '?zc">', $txt['b1a'], '</a>
</td>', $current_action == 'zc' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';



And that should do it for you.  You probably don't have to add EVERYTHING, but just in case, it's all there.

Gidget Claire

Quote from: jkrlvgn on December 24, 2008, 01:08:11 PM
@Gidget:  Are you going to use zCommunity, or Blog Community?  The reason I ask is because there are going to be different edits that you need to do for either.

Yeah, they look quite different.

I think it would be better to remove all the code I added and get ZC instead.

Thanks a lot, jkrlvgn  :)

Friend of the friends!

Ken.

#805
My test site is setup as follows:
SMF 1.1.7
TinyPortal v.1.0 beta 3
... no other Mods installed.
EDIT: An older version of the blog had been installed... it was uninstalled and the tables were also dropped to make sure of cleaning it up.
When trying to install everything seems go go OK up to and including the file test, but after Install Now it goes to this error page:
QuoteFatal error:  Call to undefined function  preparezcfuncnames() in /home/kenkayjm/public_html/tptest2/Packages/temp/install_db_edits.php on line 26

SteveW

Hi, I'm getting this error when installing:

QuoteFatal error: Call to undefined function preparezcfuncnames() in *****/public_html/Packages/temp/install_db_edits.php on line 26

I'm running Tinyportal v0.9.8
SMF Version : 1.1.7

Mods Installed :

Quote1.     SMG Slideshow Addon      1.0       [ Uninstall ]  [ List Files ]  [ Delete ]
2.    Picasa Gallery Browser    0.4    [ Uninstall ] [ List Files ] [ Delete ]
3.    zCommunity    0.7.0    [ Apply Mod ] [ List Files ] [ Delete ]
4.    Topic Summary    1    [ Uninstall ] [ List Files ] [ Delete ]
5.    View Single PM    1.3    [ Uninstall ] [ List Files ] [ Delete ]
6.    Newsletter Pro    1.0.2    [ Uninstall ] [ List Files ] [ Delete ]
7.    AllCaps Notifier    1.0    [ Uninstall ] [ List Files ] [ Delete ]
8.    TinyPortal    0.983    [ Uninstall ] [ List Files ] [ Delete ]
9.    Recent Topics On Board Index    1    [ Uninstall ] [ List Files ] [ Delete ]
10.    AddThis Social Bookmarks    1.0    [ Uninstall ] [ List Files ] [ Delete ]
11.    Auto Embed Video/Audio Clips    4.0.2    [ Uninstall ] [ List Files ] [ Delete ]
12.    Contact Page    1.1    [ Uninstall ] [ List Files ] [ Delete ]
13.    Reason For Editing Mod    1.14    [ Uninstall ] [ List Files ] [ Delete ]
14.    FlashChat Integration    1.0    [ Uninstall ] [ List Files ] [ Delete ]
15.    SMF Shoutbox    1.16b    [ Uninstall ] [ List Files ] [ Delete ]
16.    Enhanced Calendar    1.1    [ Uninstall ] [ List Files ] [ Delete ]
17.    SMF Media Gallery    1.5    [ Uninstall ] [ List Files ] [ Delete ]
18.    User Email System

Thankyou
Watch the skies!!

Mick.

Yep,   me too.

I use tp98 and 1.1.7

The same error popped up but it didnt install.   I got scared and didnt go any further.  LOL.

I cannot afford my database to crash now.   I havent crashed my forum since 2006.   Hahahaha!!

jkrlvgn

@Ken & @SteveW (EDIT:  & @BlueDevil)

This is due to some servers not allowing the zCommunity folder to be copied over correctly.  There are two options that you can do.

CHMOD your main SMF directory to:  777

OR

You can delete the zCommunity folder in the main directory (placed after the failed install), and then copy/move the zCommunity folder from the TEMP directory (/Packages/temp), into the main directory.  Everything should work fine from there.


Ken.

Seems that my server has taken ownership of my files, so I'll have to wait until my host can give ownership back over to me.  :(

jkrlvgn

Ken:  Rename the zCommunity folder to something else for now...even "DeleteMe".  If you have SSH access, you can delete it from there.

I tried this on another host with something different, and it worked fine.

Charles Hill

I think it would actually be easier for you all to manually install zCommunity to your forum rather than have to deal with the weird server issues that smf's package manager is creating.  There are *very* few edits made to your SMF files, and all you have to do besides those edits is upload the zCommunity folder to your forum's main directory.  Well and the db edits... but that's easy too.  Upload the install_db_edits.php to your forum's main directory once you've uploaded the zCommunity folder, then access it directly on the server.  And that should be it :)

Ken.

Quote from: jkrlvgn on December 24, 2008, 02:13:48 PM
Ken:  Rename the zCommunity folder to something else for now...even "DeleteMe".  If you have SSH access, you can delete it from there.

I tried this on another host with something different, and it worked fine.

Good tip jkrlvgn... I've used that approach sometimes as a workaround, but in this case only my host can cure the problem because the server won't let me set file permissions, install packages, delete files and folders... etc.
Hopefully he will take a look sometime today, but with the Christmas Holiday it may be a few days before it gets changed.

@Charles I'm going to try a manual edit, but that may not work correctly because of the ownership issue, when I tried to upload a copy of the 'zcommunity' folder it wouldn't go, so there may be other file/folder issues as well.

This problem came up a few days ago and he fixed it then, but it has come back, so my site may just be stuck until he take another look.

ke4obt

#813

Hello Mr. Hill.

Just a quick question, will you be makeing a SMF 2.0 Version, as well as making it compatable with EZ-Portal i.e. a block that shows the blog name with the latest entries :
e.g.
HRA Users Blogs


  flips place - 12/25/2008 - 4 New Entries
  Dougs Big Blog   12/20/2008 - 1 New entry 
  Mickeys Corner   12/12/2008 -  3 New Entries

The block only needs to be an XML file that can be
up-loaded to EZ-Portal
"that's the nice thing about EZ-Portal". "max number to display should be setable in the code with a comments so the user can see where to set that to what ever they want. "
Hope all goes well with the extermanation of all the little bugs running around in your code (Buzz-Buzz).

    Thanks Lots,
    Flip - KE4OBT 
Thanks Much

Flip - KE4OBT
     The Blind Ham
Helping other blind hams
get on the air!


Yes I am really a BLIND user!

So, if a mod doesn't install properly, and I can't get help from your part of the forum,
I will come begging for YOUR help since you wrote it and know how it works
um, uh, well,
At least I would really, really hope you do!
HEE-HEE-HEE

Mick.

Wow..... i uploaded it manually.  Fine...but where is it?   LOL


action=??

and where in admin?

Mick.

So i ran the database edits theu my server browser and i get this:

No database selected
File: /home/midwes15/public_html/install_db_edits.php
Line: 49


Hmmm...

jkrlvgn

BlueDevil:  Would it be possible to get a temp admin to your forum/FTP?  It'll take about 2 minutes to get everything done.

Mick.

Quote from: jkrlvgn on December 24, 2008, 03:33:25 PM
BlueDevil:  Would it be possible to get a temp admin to your forum/FTP?  It'll take about 2 minutes to get everything done.

I normaly dont do this but......

you have a PM.

jkrlvgn

took a little longer than 2 mins...but....done.

Mick.

Quote from: jkrlvgn on December 24, 2008, 04:04:23 PM
took a little longer than 2 mins...but....done.

Sweet!      Thanx,you rock dude!

Now  im going to play with it.   

Advertisement: