Okay what this does is expand upon the work of JustDave and Dalantech and make Photpost use the table wrappers for a more uniform Threads site.
You can attempt this if you own Photopost as well as Threads and want them to look the same. This is compatable with Threads 6.2,6.2.1 and Photopost 3.2.1.
Now this is superficial now. If you see what I have done you basically need to do that to every Photopost file that has a table. I also took out the hard-coding of colors and replaced with CSS class variables so that when I change theme's color's change something Photopost does not do.
[]Come on buddy how many of us have both Threads and Photopost[/]
I use them both, too. I'm in the process of attempting this hack (I'm still on the Threads Table Wrappers Mod step), although all the "if you dare!" statements in your instructions leave me feeling a bit intimidated. I love anything that makes my site look more cohesive, and appreciate the work folks put into hacks like these. Thanks!
omega rules I haven't implimented the table wrapper mods yet as I haven't had time for any redesigning, but this will be of great benefit for making a seamless transition
how does this handle multiple stylesheets? I know photopost has the forum colors, links, text, etc all specified within the database. It doesn't use CSS yet.
So, I'm assuming this hack will only work with the colors you specify inside photopost correct? For example right now I have 4 color schemes people can use, but photopost is stuck using only one Just wonder if this is something your mod changes, or we have to wait until PP begins using templates and CSS
You are correct Photopost will use CSS and templates next version. My hack only does one style. However I am writing up a small chart for those that dare to convert CSS in Photopost. The changes are too intensive to list an exact hack but this is not that hard. I have done this on my site to all the major files so that people can change stylesheets and Photopost changes. It is a simple but time consuming thing but anyone can do it. Example below:
bgcolor="{$Globals['bordercolor']}"
would be
class="tableborders"
or
bgcolor="{$Globals['maincolor']}"
would be
class="darktable"
or
bgcolor="{$Globals['headcolor']}"
would be
class="tdheader"
Like I said I am going to write up a short comparison so those that want to do this can do this and this should provide full integration until Photopost catch's up with the CSS and template thing.
I got ya covered Msula I know a die hard Photopost guy like you wants the whole thing. Let these guys digest the first part and they can finish for multiple stylesheets next. I will have a comparison probally tonight or tommorow morning.
When you installed JustDave's CSS table wrapper mod did you declare the background images in the tbopen and tbclose files that you made, or did you use CSS classes?
The reason why I'm asking is that after reading the mod it makes more sense to put the path for the background images in the tbopen and tbclose templates that you make for each style sheet.
Dave's mod changes nothing from your mod. All his does is make threads aware whether there is a wrapper or not.
Currently in your mod tbopen and tbclose has the 10pixel spacers which show up in every stylesheet whether you have a stylesheet graphic specified or not. So if I did not use wrappers for greenday in your mod I would have a 10pixel border around my tables. With his mod installed I would not. You simply put a clean copy or tbopen and tbclose in your template directory. For every stylesheet where you define the CSS classes with images you would create a tbopen-(stylesheet name).tmpl and tbclose-(stylesheet name)/tmpl with your mods. You see the difference? This allows use of multiple stylesheet use without displaying that empty table and making your site look a little funky. I called the images from CSS classes just like you did. I just name the templates ending name the stylesheet name. I have only made stylesheets for my default stylesheet and greenday so if you choose infopop you will see the normal tables.
Your mods go together like peanut butter and jelly.
I would say your mod is quite easy to install. How hard is it to copy 8 graphics to a directory. Add eight CSS classes to a stylesheet and edit the path to the graphic. Then make a few small changes to two templates.
I must be sleeping as I looked at your site and am missing something.
If you also want to make Photopost use Threads CSS classes you can edit the global color calls in all the following files in Photopost to make about a 95% integration feel and look.
Now this does not change the admin area or anything behind the scenes but this should be most of the files needed to get the look you want with multiple stylesheets. You can see a demo here
Hey man, that text on your site is pretty hard on the eyes. Just wanted to let you know my experience in case it helps you to make it better. I couldn't look at it for too long. I think it is the pink on the purple that does it. Anyway, just wanted to let you know.
[]Hey man, that text on your site is pretty hard on the eyes. Just wanted to let you know my experience in case it helps you to make it better. I couldn't look at it for too long. I think it is the pink on the purple that does it. Anyway, just wanted to let you know. [/]
I hope your not talking to me? My site is not pink on purple so I am lost here.
I'm using photopost at my fish-tails.net site, but I haven't upgraded that one to 6.2.1 and the latest photopost. Hopefully I can get around to it in the next week or so. Did anyone experience any problems with compatibility between the latest threads (new user system) and photopost?
[]Did anyone experience any problems with compatibility between the latest threads (new user system) and photopost?[/]
The only problem I found was that Photopost wanted me to login to the admin account with my UBBT display name, as opposed to my username. Once I figured out that little trick, everything worked fine.
Fish - You also need to hack photopost a bit or else the links to profiles don't work. (It tries to look them up by username... the new threads needs user number).
The Photopost hacking actually we could do without all the extra's. If you applied this hack without the tablewrappers you would still have a super integrated Photopost without table wrappers.
I should have just called it SUPER INTEGRATION HACK LOL
But then again having the table wrappers is what forced me to do this.
The Photopost page looks like it's part of threads now, and also with the sidebar-pals from Josh it looks like part of Dave's IIP, and not forgetting Dalantech's wrappers, so all in all it's worked out great.
Now I will need to look at the colours in photopost.....
has anyone seen problems with this and mozilla/opera? Something like a LOT of gibberish (binary code looking stuff) right below where the threads header gets called? It looks fine in IE6 and validates at w3, but for some reason doen't work at all in mozilla.
I just ran Mozilla 1.2.1 and no problems. Now suffice it to say nothing in life is perfect.
Maybe there are some characters that made there way in there? That would be my first guess or an upgrade to a newer Mozilla if its an older copy.
Try browsing my Photopost index and see if you see the same error. This will tell you whether its your version of Mozilla or not (If your not runnung 1.2.1) since I am posting to you and viewing that page with the new Mozilla. Would life not be simple if things were as easy as an upgrade.
I can view your site fine... the only thing I did differently was skip the header mod, as I still don't see how it's needed with the way this mod pulls in the threads header already in pp_inc.php. Maybe it's the server this is being run on...
This mod pulls in the Threads header as it does in pp-inc.php however it pulls a header that uses the $tbopen and $tbclose variables. If you pull the header from pp-inc.php it does not include the new templates.
Yeah I think your right it might be there server. If you want to post the site url I can see if I view the same thing or if you do not want to post that url you can always PM me. I would be more than happy to help try and solve the problem.
thanks, I'll need to re-add it and pm you... will do so this weekend when the site isn't so busy
I edited the files as described in the instructions in this thread, which edits pp_inc.php so that it pulls in the tbopen and tbclose subs from threads. I actually meant I didn't do dalantech's generic header mod as requested in the first thread as it doesn't seem to have anything to do with this mod
Dalantech's mod enables your header to use the tbopen and tbclose templates. As it stands now the header is separate from the new tbopen and tbclose variables. It does not make that big of a deal if you do not use table wrappers but if you do the header will not have them unless you install the generic header mod.
If you are planning to install this modification, please first check if you have included the following:
Code
<br />// UBBThreads Headers<br />// Set $PathToThreads to the path of your threads installation (INCLUDE TRAILING SLASH /)<br />// or leave blank if this page is located the threads directory<br />// Provided by JustDave from https://ubbdev.com<br /><br /> $PathToThreads = "C:/www/htdocs/development/forum/";<br /> require ("{$PathToThreads}main.inc.php");<br /> $userob = new user;<br /> $html = new html;<br /> if ($title == "") {$title = $config['title'];}<br /> $html -> send_header($title,$Cat,0,$user);<br />
in your header-inc.php then using the instructions of this mod you need to comment this line:
Actually this hack is written for Photopost 3.2 and Ubbthreads 6.2. It is even specified as such.
You can adapt it for prior versions and and just simply remove the header include. So instead of trying to comment out the main-inc.php file just do not use the header-inc.php file. In fact is you look close at the header-inc.php with Photopost 3.2 it only supports vbportal and vbulletin boards.
This hack works just fine the way it stands since Photpost 3.2 does not use the header include for Threads any longer. That was thrown out when Michael wrote 3.2 since it was causing so many problems.
I think you have 3.1 which also uses the exif info.
3.2 does not support ubbthreads through the header-inc.php file. The code in that file was deleted by Michael Pierce. It only support the two boards mentioned above. If one wanted to add head tags in Photopost 3.2 they would have to create a separate html file and link it in the admin section. I know until I did this hack I had to do this in 3.2. I use to always use the header-inc till 3.2 to load my CSS file for the background image as bgcolor tags for body is no longer XHTML compliant.
I have updated the attachment on the first post to include Beyond Compare difference reports in html so to try and make it easier. My files have all the CSS changes needed for integration.
The one thing for sure I kept thinking you had an earlier version is you kept on saying header-inc.php. That file like I said no longer has any threads support. 3.2.1 is what I have as well. I just posted beyond compare difference reports in the zip if you have not made all the CSS changes yet. I also added reports for 2 more files that are used on the front viewable end of this program as well.
I don't have the full hack running.. Josh I tried [] pp-inc.phpFind this: $profilelink = "{$Globals['vbulletin']}/showprofile.php?Cat=&user=$tusername";
Change to this: $profilelink = "{$Globals['vbulletin']}/showprofile.php?Cat=&User=$tuserid"; [/]
hmmmm probably needs the database update too? But when I asked it to find my profile it said I didn't exist in database
[]I am glad you got this working for Leigh Ann Josh however minor server issues? [/]
I never did truly get it to work. I finally gave up and cheated.
I added the code for tbopen and tbclose into the pp-inc.php file and made them global variables (like {$Globals['tbopen']}) and then used the local global variables throughout.
So I am using the tablewrappers without using the threads send header command or requiring main.inc.php as that seemed to freak it out.
Then I tweaked the photopost authentication to fetch the user's stylesheet (or default to the board's default) and then call the threads stylesheet.
It ain't pretty. But it works!
She wasn't planning on changnig the tbopen,tbclose templates too often. If so, the code would also need to be edited in the pp-inc.php file. But the stylesheets are still called from threads.
Thats a major server issue. LOL You got it as hard coded as you can get. I think we both agree she should be able to call threads in another program if main.inc.php is called. Still scratching my head on that one?
I would be intrested in the code you used to make it pull the board stylesheet. Photopost 3.3 actually uses CSS sheets and there are only about 6 classes existing users of Threads need to add to their stylesheets. I think being able to set it to the boards stylesheet is the best way.
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.