Mod Name / Version: Photopost Integration Version 3
Description: This modification allows UBBThreads and Photopost to be a seamless integrated product. It pulls the Threads headers and stylesheet around Photopost allowing your site to flow flawlessly.
Working Under: UBB.Threads 6.2-6.3
Mod Status: Finished
Any pre-requisites: Must own UBBThreads and Photopost.
Author(s): Omegatron
Date: 05/31/03
Credits: Gardener for help with a Global file option so I could get the new admin frameset to display.
Info/Instructions: Backup your files before modifing!!!!!
I feel pretty confident of this mod being finished. It has been around for a couple of versions of each product with no known bugs other than application error of the modification.
One known issue was related to a server issue not allowing the tbopen and tbclose variables to be read.
Many people have expressed hardship in reading Beyond Compare reports as I have always done to save time with the intense changes that need to be done. I have taken the extra time and done away with those and made a normal txt file for all to follow.
Disclaimer: Please backup every file that you intend to modify. If the modification modifies the database, it's a good idea to backup your database before doing so.
Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
It should be backward compatible for version 3.3 but just incase there is still the version 2 mod which were made for it. The code of this hack has not changed through the versions. The reason it should be compatable backward compatable with 3.3 is easy. 3.3 uses the class calls already just like 4.0. 3.2 is totally different as it still used the Global color calls from the photopost admin section so you would be looking for entirely different text.
The main reason I posted this was this:
1)Photopost released there new version today.
2)Many people had difficulty reading the Beyond Compare difference reports which was mainly laziness on my part having to cut and paste exact code from 8-9 different files as this is a rather lengthy integration.
There is one main difference with this version over the others. Version 4 of Photopost has a new frameset in the admin section. There is a new global statement to exclude two admin files from the hack to disallow the header so the admin frameset will load and also a minor alteration to one admin file for specifying stylesheet to use for the excluded files as a purely cosmetic issue.
FYI - the issue with the tbopen and tbclosed not working I believe it solved by turning off Zlib compression in either threads or photopost. You can Zlib compress stuff twice.... I think that's where the problems were.
If PP is using compression and trying to send compressed threads headers - you don't get any output. You, me and Allen strugged over that one for quite a while once.
Awesome hack Chuck, one of the biggest things I've needed to do to my site to get the look I wanted
Everything seems to be working great, except one tiny little detail. See the attached photo... notice the threads menu bar at the top and how it doesn't have a border around the text.
For some reason, all of the PP items, noted with the red arrow, have a box or button look to them. Just trying to figure out how to get rid of those
Jeremy quite literaly that is the HTML coding and not this hack for the short answer. I beleive that is your tablesurround on the Threads TBOPEN AND TBCLOSE variables. Match that color and see. Try modifying your variables in tbopen.tmpl
The class for the menu and menu2 variables is set in pp-inc.php and thus has no tbopen and tbclose tags around it and will not do this. Hense you notice that border is around any table that calls the wrappers.
Now.. notice the border-color, this makes the left and top borders the light color, and the bottom and right dark, to produce the 3D effect you can see in that image I attached above, look at the threads menubar and you see how it works.
The problem is, it seems as if the class=menubar is being called twice in the photopost menu, the first one makes the whole box look like it should, as you can see. But then it looks like this class is also being called for the table that holds the nav links.
So if people aren't using this CSS effect, it looks fine, so that's why it probably hasn't been noticed before I don't know if this is something you want to address, as it probably affects only myself right now, but if not, could you point me to the right file(s) to try and change this? Would be appreciated Thanks!
Hmm.. this is going to take longer than I had thought. The index page looks great, but there are quite a few other areas that I need to work on.
Most importantly, which I find very odd, is showmembers.php. Every other PP page the photopost menu looks correct. But for some reason showmembers.php isn't. So because the menubar class was removed from pp-inc.php, the links on that page are completely invisible as the table isn't assigned any class Why only that script? I dunno.
Actually Jeremy the easiest thing to do is assign tdheader instead of MENUBAR. I did not change any CSS classes Michael assigned in Photopost. This hack does what it is suppose to do. CSS can be a tricky thing and change from site to site. I really have no control over what people put in their I can assist with resolving specific problems though.
Showmembers.php I will need to look at Michael finally worked on that I guess. It used to be a purely Threads script.
Its cool, I got it all taken care of (although took about 4 hours with my limited skills ) But what I ended up doing was just creating a new class for those problematic menu items, then going through and replacing the parts that needed to be replaced.
I thought about just using the tdheader, but I kinda liked the blue of the menubar instead
As far as showmembers, I just took part of the menu code that was used for showgallery, and replaced some junk that was in there and it seemed to work
So everything should be all squared away. I just hope photopost doesn't release a new version again until it comes with built in threads CSS matching
LOL The CSS classes you added to every threads stylesheet match the ones listed in Threads. What is funny is you commented on the border pixels on menubar. Well I have them as well but it is a non-issue as if you set them to your darktable class it match's If you view mine you see what I mean. Showmember.php is easy I will add that to the instructions. Never had to worry about that one before as it was a threads script.
Ahh.. lordy lordy, I suppose that could have been avoided if they matched the darktable. But oh well, sometimes you have to learn things the hard way, lol. It was good to poke around and be forced to learn more though
I know, it seems impopssible, but I was reading that high caffine intake really slows your metabolism down.. so combine that with working from home... you get the idea.
So since it is summer and warm out, I gave up my daily pot of coffee in the morning, and am avoiding all soda beverages. Although.. I think right now it is making me loose my mind
I have a problem with my integration. For some reason the admin area kinda disappeared. When I look at the source of the page it gives me the frames page and nothing else. I thought that it was an issue with the headers but when I removed the headers from the photopost admin index file it didn't work....
In other circumstances I wouldn't mind but creating a new category by hand is a real pain...
Nikos double check the admin files. There are three admin files which are modified. You need to make sure path's to stylesheets etc etc are set. I would look there first. If you can't find the problem contact me privately and we will see whats going on.
Thanks Chuck. I have been meaning to do that (check the files) but never had the time to do it. I will do so though now and if I am not successful I will give you a shout.
Yeah maybe you upgraded to 4.0.1 and forgot to reapply the hacks to the 3 admin files thats my guess if you did upgrade as I assume from your post it originally worked but now isn't.
Awesome hack Omegatron. Thanks for the good work. There is one thing though regarding the table colors. If you take a look at http://www.fish-tails.net/photopost/index.php there's only one table cell with a dark background. Is this correct or do I have something wrong with my stylesheet?
witch version of Photopost ist needed ? normal one or Pro ? The pro version seems a little bit expensive to me. I allready use 'Coppermine' http://www.chezgreg.net/coppermine/
The only thing I miss is a feature to connect Coppermine with UUBt.
Photopost is coded to interact with Threads. I doubt Coppermine has that ability. You might be able to hire a developer to do that but I doubt it would cost you less than buying Photopost. The version you want is Pro.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.