Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 [3] 4

Author Topic: [Mod]Integrating ZenPhoto in sNews 1.6 WIP  (Read 25286 times)

centered

  • Guest
Re: [Mod]Integrating ZenPhoto in sNews 1.6 WIP
« Reply #30 on: September 08, 2007, 03:46:54 PM »

Problem #1: In sNews index.php change the first line to reflect your ZenPhoto folder which you have called "zenphoto":
Code: [Select]
<?php session_start(); include('snews.php'); define('WEBPATH''zenphoto'); require_once("zenphoto/zen/template-functions.php"); ?>

Problem #2: 
In your snews theme folder under zenphoto, find the zen.css  (zenphoto/themes/snews/zen.css)

Comment out body, text style section and links section
/* Or */
Use this css in your snews zen theme folder -
BACKUP FIRST THEN PASTE THIS:

(admin edited, to reduce empty space)
Code: [Select]
/*
Zen Photo Default 1.0
*/

/* Basics
------------------------------ */

html {
/* IE */
overflow-y: scroll;
/* Moz */
height: 100%;
margin-bottom: 0.1em;
}


/* Main Layout
------------------------------ */

/*
body {
background: #F5F5F3;
margin: 0px;
padding: 0px 0px 50px;
text-align: center;
}
*/

#main {
text-align: left;
margin: 20px auto;
width: 600px;
background: #fff;
padding: 20px 30px 70px;
border-top: 1px solid #E6E6DF;
border-right: 1px solid #E6E6DF;
border-bottom: 5px solid #E6E6DF;
border-left: 1px solid #E6E6DF;
}

#credit, #sort {
margin: 0 auto;
width: 640px;
font-size: 85%;
color: #96967E;
text-align: right;
clear: both;
}

#credit a, #sort a {
text-decoration: none;
color: #96967E;
border-bottom: 1px dotted #96967E;
}

#credit a:hover, #sort a:hover {
color: #BDBDAE;
border-bottom: 1px solid #BDBDAE;
text-decoration: none;
}

#gallerytitle {
border-bottom: 1px solid #E6E6DF;
padding-bottom: 14px;
margin-bottom: 12px;
_margin-top: 40px; /* IE Only */
}


/* Text Styles
------------------------------ */
/*
body {
font: normal 82%/200% "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #5A5A4B;
}

h2 {
font: 120% "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #002E5B;
margin-top: 25px;
}

h2 a:link, h2 a:visited, h2 span {
color: #8DB8CF;
}

h3 {
font: 120% "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #002E5B;
margin-top: 30px;
}
*/

/* Link Styles
------------------------------ *//*

a:link, a:active { text-decoration: underline; color: #17A; }

a:visited { text-decoration: underline; color: #035; }

a:hover, a:focus { text-decoration: underline; color: #6BD; }

*/


/* Miscellaneous
------------------------------ */

hr {
clear: both;
height: 0;
border: 0;
border-top: 1px solid #E6E6DF;
margin: 0 0 12px 0;
padding: 0;
}

img { border: 0; }

blockquote {
border-left: 1px dotted #96967E;
margin-left: 20px;
padding-left: 20px;
color: #363630;
}

/* Page Navigation
------------------------------ */

ul.pagelist {
clear: both;
padding: 0;
margin: 20px 0 0 0;
list-style-type: none;
}

ul.pagelist li {  display: inline;  }

ul.pagelist li a, ul.pagelist span.disabledlink { padding: 4px;  }

ul.pagelist li.current a {
font-weight: bold;
text-decoration: none;
cursor: default;
color: #5A5A4B;
}

ul.pagelist li.prev {  margin-right: 10px;  }

ul.pagelist li.next {  margin-left: 10px;  }

.disabledlink {
color: #ddd;
cursor: default;
}

.pagenav {  clear: both;  }

/* AJAX
------------------------------ */

#albumDescEditable {  margin-bottom: 12px;  }

#imageDescEditable {  margin-top: 24px;  }

/* Image Thumbnails
------------------------------ */

.imagethumb a {
display: block;
padding: 10px;
margin: 6px;
border: 1px solid #92BED3;
background: #DDEAF0;
line-height: 0px;
}

.imagethumb a:visited {
border: 1px solid #D3E4ED;
background: #F2F7F9;
}

.imagethumb a:hover {
border: 1px solid #62A0BF;
background: #F4F9FB;
}

.imagethumb {  float: left;  }

/* Album Thumbnails
------------------------------ */

.album {
padding: 10px;
margin-bottom: 12px;
clear: both;
border: 1px solid #E7F0F5;
background: #FBFCFD;
}

.album img {  float: left;  }

.album h3 {  padding: 0;  margin: 0;  }

.album h3 a {
display: block;
width: 340px;
padding: 3px 0 6px 0;
}

.album p {  margin: 0 0 4px 0;  }

.albumdesc {  float: right;  width: 480px;  }

.albumdesc small {
margin-top: 8px;
line-height: 130%;
width: 120px;
float: right;
color: #8DB8CF;
}

/* Individual Image
------------------------------ */

.image {  margin: 0;  padding: 0;  border: 0;  }

#image {  text-align: center;  line-height: 0;  }

.imgnav {
float: right;
width: 140px;
text-align: center;
border: 1px solid #D5E6EE;
background: #EEF5F9;
margin-top: 13px;
_margin-top: 8px; /* IE Only */
}

.imgnav .imgprevious a, .imgnav .imgnext a {
display: block;
width: 50%;
height: 100%;
float: left;
padding: 4px 0;
font-size: 120%;
text-decoration: none;
line-height: 200%;
color: #237898;
}

.imgnav .imgprevious a:hover, .imgnav .imgnext a:hover {
background-color: #fff;
text-decoration: none;
color: #002E5B;
}

.imgnav .imgprevious a {  float: left;  }

.imgnav .imgnext a {  float: right;  }

#narrow {  margin: 0 auto;  width: 440px;  }

/* Comments
------------------------------ */

#comments {  clear: both;  }

.error {  color: #C33;  font-weight: bold;  }

.comment {
padding: 10px;
border: 1px solid #E7F0F5;
background: #FBFCFD;
margin-bottom: 12px;
}

.commentmeta {  margin-bottom: 12px;  }

.commentauthor {  font-weight: bold;  }

.commentdate {  margin-top: 12px;  color: #8DB8CF;  font-size: 85%;  }

/* Forms
------------------------------ */

.inputbox {  width: 250px;  padding: 2px;  }

textarea {
padding: 4px;
width: 100%;
color: #5A5A4B;
font: 100%/200% "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.checkbox {  cursor: pointer;  }

.pushbutton {  cursor: pointer;  padding: 5px 10px;  }

label {  cursor: pointer;  }

label:hover {  color: #000;  }


« Last Edit: September 08, 2007, 04:36:30 PM by Keyrocks »
Logged

Boogada

  • Newbie
  • *
  • Karma: 3
  • Posts: 27
Re: [Mod]Integrating ZenPhoto in sNews 1.6 WIP
« Reply #31 on: September 08, 2007, 04:14:58 PM »

Problem #1:

D'OH - I'm sure I had done this. But probably I overwrote the file more than once...

Problem #2:

Worked fine!

Thanks a lot!

this might be exactly what I am looking for!
Logged

Zucye

  • Sr. Member
  • ****
  • Karma: 5
  • Posts: 347
    • Simplemente una Mujer
Re: [Mod]Integrating ZenPhoto in sNews 1.6 WIP
« Reply #32 on: September 16, 2007, 05:17:43 PM »

Zucye it seems maybe Zen comments needs the prefix to function correctly. 
That did it! :D
So that is what a Prefix is good for (nice to know) 
By the way it took me a long while to apply the Prefix to the existing tables :( .  I am sure I took the longer path possible, one day I will ask if there is a simpler way.
Logged
We can always learn from our failures, not so much from obvious success - C. Robinson (W. Disney). :)

belfagor

  • Newbie
  • *
  • Karma: 0
  • Posts: 7
Re: [Mod]Integrating ZenPhoto in sNews 1.6 WIP
« Reply #33 on: October 14, 2007, 06:09:04 PM »

Hello,

I did install sNews and ZenPhoto, and separately they work very fine.
I did follow all the instructions in the equilni mod to integrate them together, but wathever I try I get this error:

MySQL Query ( SELECT folder, sort_order FROM `zp_albums` ORDER BY sort_order ) Failed. Error: Table 'snews.zp_albums' doesn't exist

I'm not a programmer, but it looks like the ZenPhoto query is searching for snews table and zp_albums mixed together. Please how can I solve this?

Thanks so much!
Logged

jlhaslip

  • Sr. Member
  • ****
  • Karma: 16
  • Posts: 374
    • My snews with AEF Forum site
Re: [Mod]Integrating ZenPhoto in sNews 1.6 WIP
« Reply #34 on: October 15, 2007, 02:49:43 AM »

Can you use phpMyadmin to confirm that there is a correct table with an appropriate prefix  in the database?
Logged
Yes! I have no siggy.

belfagor

  • Newbie
  • *
  • Karma: 0
  • Posts: 7
Re: [Mod]Integrating ZenPhoto in sNews 1.6 WIP
« Reply #35 on: October 15, 2007, 03:33:55 AM »

yes, I do have two separate db, one for sNews and one for ZenPhoto. I have also added a prefix in ZenPhoto tables as you can see 'zp_'
Logged

centered

  • Guest
Re: [Mod]Integrating ZenPhoto in sNews 1.6 WIP
« Reply #36 on: October 19, 2007, 12:12:39 PM »

Time to finish a project...

Full integration almost complete....


Couldn't sleep really..

Anyway, snews login is sort of linked with zen.  The admin is wrapped in the default template and the admin section is in the center.  The functions are wrapped in a sNews token.  Some paths had to me made FULLWEBPATH in admin functions, and some gotchas I found which is killing me...

So full Zen functionality will not be there (admin inline editing really....), but the whole admin backend works perfectly.. some other gotchas I came across.....

Oh and I need to find where their function comments are.. gotta use the match captcha...

« Last Edit: October 19, 2007, 01:44:10 PM by equilni »
Logged

Ghassem Tofighi

  • Full Member
  • ***
  • Karma: 9
  • Posts: 104
    • http://ght.ir
Re: [Mod]Integrating ZenPhoto in sNews 1.6 WIP
« Reply #37 on: November 11, 2007, 11:31:42 PM »

New Version of ZenPhoto is released! please update your Mod, for this release :-)
I saw in Zenphoto trac that it will support i18n in next release, It is a very good news.
Logged
Be A Color Pencil For Painting The World !

centered

  • Guest
Re: [Mod]Integrating ZenPhoto in sNews 1.6 WIP
« Reply #38 on: December 03, 2007, 02:51:50 AM »

Thanks Ghassem for letting me know.... I used the svn at the time that had most of the new features of zenphoto... when I have time I will try and update this mod.  For now, I think Rui's sNews gallery may be in favor of this mod. 

If some want the latest version of Zen functions to be implemented within sNews, then I will work on this mod.
Logged

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6019
  • Semantically Challenged
    • snews.ca
Re: [Mod]Integrating ZenPhoto in sNews 1.6 WIP
« Reply #39 on: December 03, 2007, 04:54:18 PM »

If some want the latest version of Zen functions to be implemented within sNews, then I will work on this mod.
I'm looking forward to seeing where Rui's snewsgallery project will lead to... and whether or not it will be addable to existing packages... like my MESU, MEMU and our current Sub-Cats + Pages in Cats projects. If it doesn't turn out to be practical... then I will certainly be interested in a ZenPhoto integration with sNews.
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

centered

  • Guest
Re: [Mod]Integrating ZenPhoto in sNews 1.6 WIP
« Reply #40 on: December 03, 2007, 05:18:21 PM »

Yes Keys, that why I mentioned Rui's gallery will be in favor of this mod, I think Rui can implement alot of the zen functionality, and the users can mod the gallery engine to include what they need...
Logged

Ghassem Tofighi

  • Full Member
  • ***
  • Karma: 9
  • Posts: 104
    • http://ght.ir
Re: [Mod]Integrating ZenPhoto in sNews 1.6 WIP
« Reply #41 on: March 23, 2008, 11:17:08 AM »

Hi, Did You write the mod for zenphoto 1.1 ?
Logged
Be A Color Pencil For Painting The World !

centered

  • Guest
Re: [Mod]Integrating ZenPhoto in sNews 1.6 WIP
« Reply #42 on: March 26, 2008, 10:43:37 PM »

No but you are more than welcome to do so
Logged

Armen

  • Sr. Member
  • ****
  • Karma: 41
  • Posts: 338
    • http://www.funnydays.ru
Re: [Mod]Integrating ZenPhoto in sNews 1.6 WIP
« Reply #43 on: March 27, 2008, 07:41:09 AM »

Hi, Did You write the mod for zenphoto 1.1 ?

There's almost no difference, I checked. Just replace "zen" with "zp-core" and carefully compare zenphoto's theme php files and php function calls when replacing them with yours.
Logged
Now ogres, oh, they're much worse. They'll make a suit from your freshly peeled skin. They'll shave your liver, squeeze the jelly from your eyes... Actually, it's quite good on toast.

steerpike

  • Newbie
  • *
  • Karma: 13
  • Posts: 38
Re: [Mod]Integrating ZenPhoto in sNews 1.6 WIP
« Reply #44 on: September 02, 2008, 05:25:23 AM »

Will this MOD work in MU?
Logged
Pages: 1 2 [3] 4