UBB.Dev
Mod Name / Version: UBBThreads Photopost Total Integration Version 4.7

Description: This mod is for the new Photopost 4.7. This mod makes use of the UBBThreads header and stylesheet for a total integration of Photopost within your UbbThreads environment.


Working Under: UBB.Threads 6.2-6.3-6.4

Mod Status: Finished

Any pre-requisites: UBBThreads and Photopost Licenses

Author(s): Omegatron

Date: 02/27/04

Credits: JoshPet for help on Header-Include

Files Altered: photopost------pp-inc.php ppopen.tmpl and ppclose.tmpl

Threads--------header-insert.php


New Files: None

Database Altered: Nope

Info/Instructions: Backup your files before modifing!!!!!

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.


Attached File
your replacement instructions for pp-inc.php dosn't match with the code from pp. I hope I do the hacking correctly, but something iss missing in the instructions. The entrance of the gallery dosnt show correct and the stylesheet for the admin section dnst work. I go to search ....

/edit: first problem found. something wrond with my tablewrapper. I use the original and it works. Replace with tbopen/close (renamed) and it dosnt work. maybe the reletive path that I use. I will continue trying.
Are you sure you are using 4.7?

This is indeed in 4.7

require "languages/$pplang/pp-inc.php";

to give you a further hint that line is line 50 of pp-inc.php

and the printheader function is indeed from 4.7 you are replacing the entire printheader function which as always is the staple of this hack.

As far as the stylesheet in admin section that is not seen by anybody and I considered useless from this hacks standpoint.

You can find the stylesheet call in adm-inc.php and fill out the full path to a stylesheet you want to use but has no value on the workings of the hack which is to change the stylesheet based on a user's stylesheet which is all front end stuff.
I done it. Works well. I misunderstand your instructions about the open/clos and now i got it. The style for Admin is working to. I got the information from the the old description. Thanks.
yes, I use 4.7 I talk about your second hack modification in pp-inc.php:

###
### In pp-inc.php find this:
###


function printheader( $thecat, $titlereplace, $slideshow=0, $printheader="yes" ) {
global $Globals, $User, $link, $slidedelay, $slideurl, $vbheader, $skip_exheader;

if ( $Globals['printheader'] == "yes" ) return;
(...)

###
### Change to this:
###


function printheader( $thecat, $titlereplace, $slideshow=0, $printheader="yes" ) {
global $Globals, $User, $link, $slidedelay, $slideurl, $vbheader, $skip_exheader;
(...)

and this dosnt match with V4.7 wich I just download. I replace as I mean its correct and it seems to work. But I miss a feature:

A highlight of new features and improvements in PhotoPost 4.7 include:
- Collapsible/Expandable categories on Main Index

I cannot find this.
Ah you mean my printheader function does not have the vb call

Got ya.

Yes you replace the entire printheader function

As far as collapsable cats I do not think that made it into this version or I do not see them either
yes, yes, it exists, but not as you describe in your modification text. That what I mean.



ps please dont print entire code blocks on screen
thanx Chuck.
Thx Chuck. Up an running!
Chuck, I posted some things on the PP board that might effect the templates end of your mod. Read more
test it JC and let us know
they are mainly design issues, not functionality. Although a couple could result in broken tables. I have it all running on mine.

Photopost Install
I did your changes on my testboard although you put down 1 wrong file.. you listed index.tmpl but it should be indexhead.tmpl
Yup saw Michaels post, I started the list before dinner and left in the middle..lol
yeah I can't post there Michael don't let me...
I dont do templates with this mod anymore. LOL

I just have you match the tbopen and tbclose variables and copy them to ppopen and ppclose.

Makes it alot easier on my and maybe the less steps involved the less mistakes someone can make installing the hack.
I dont bring the popup help to work. I know in the past it work on my site. While testing the V4.7 I only get the yellow alert from IE and no window.

I verify the header-insert, try your and the original one, but no luck.
This line

PopUpHelpWindow = window.open("{$Globals['maindir']}/"+url,"Smilies","scrollbars=yes,width=300,height=400,"+pos);

Change the {$Globals['maindir']} to the actual url to photopost directory
I hate Java it dosnt work. Or do I mistake ? the window.open should be on my site:

PopUpHelpWindow = window.open("http://www.dragonclan-forum.de/photopost/"+url,....

Is this correct or is there a syntax error in it ?
no as long as you escape the quotes out you should be ok so by doing

PopUpHelpWindow = window.open("http://www.dragonclan-forum.de/photopost/"+url,....

instead of

PopUpHelpWindow = window.open("http://www.dragonclan-forum.de/photopost/"+url,....

you should be fine.
I need some help on this one, as I have never integrated these before (always left them separate).

Two questions:

http://www.bladekeep.com/forums/gallery/showgallery.php?cat=516

Why do I have a blank column over there, is this something I did during integration?

http://www.bladekeep.com/forums/gallery/index.php

Is there an easy way in the templates to fix the dark gray behind the "Recent Posts: last day...etc? I have ZERO knowledge of the photopost templates.

Thanks guys.
One suggestion for your mod Chuck would be to find a way to move the PP menubar to the footer. With the threads bar and the pp just below it, it looks cluttered.. I usually move mine to the footer on the main page. Also the profile and logout tags in the pp menubar are not needed, since the threads bar has em My souliton was to empty out the menubar template, (except for the needed PP tags etc) and put this at the bottom of the index page.

Code
 <br />echo<<<PPPRINT <br /></form> <br /><br /> <br />$ppopen <br />        <tr> <br />        <td class="tddetails" align="center" width="100%"> <br />$menu <br /></td> <br /></tr> <br />$ppclose <br /> <br /><br /> <br /><br /> <br />PPPRINT; <br />


What do you think?
[]Medar said:
I need some help on this one, as I have never integrated these before (always left them separate).

Two questions:

http://www.bladekeep.com/forums/gallery/showgallery.php?cat=516

Why do I have a blank column over there, is this something I did during integration?
[/]

remove the integration and look again cause yeah that is something wrong there.

[]
http://www.bladekeep.com/forums/gallery/index.php

Is there an easy way in the templates to fix the dark gray behind the "Recent Posts: last day...etc? I have ZERO knowledge of the photopost templates.

Thanks guys. [/]

you mean the background? the background will be whatever the css you have is..

I personally started by deleteing all the files except the ones in upload and data and then pushed the new files over and set permissions. then ran the install script then the upgrades from the upgrade directory for me it was 45 46 467..
btw I see the SWG ss's what server you on?
quick notice: V4.7e with several fixes in the templates and other bugfixes is avaible.
I still work on the %§%$" Java-help. Dont work but I dont go to sleep before it work
My guild is on Bria, but I do not personally play the game. Still holding out for WoW, heh.

Will review the mod, I am guessing it has something to do with a spare TD or TR in there.
yeah I gave up SWG after 8 months of Beta Testing and 4 months of game.. found it wasn't improving any.. I am waiting for City of Hero's..
Medar you need to download the latest Photopost

There was one put out this afternoon with some templates changes which broke some things. The templates have been rolled back.
so in English Omego if I downloaded this and and installed it wednesday I should be ok but if I downloaded the new one today or yesterday I need to update er rollback?
No your fine from wednesday unless you want the member gallery all image index back in. Update D had some attempted template corrections that made things look terrible thats why I told Medar to download the latest Photopost which is 4.7e
ok cool. thanx
Beleive my my head has been spinning

We released Photopost 4.7

and members did not like the new members gallery specifically the fact we got rid of the old perl style member's gallery showing all of a members images in the members gallery regardless of cat. So we add it back in

Hense 4.7-1

Then to fix some specific forum moderation codes and the attempted few suggested template changes

we release 4.7d

The come to find out the suggested template changes made things look whacky as can be seen on Medar's install

so we release 4.7e

All in two days
ok so how is your integration changed any? or not?
No not at all
yup. Although there still are graphical bugs in categories.php on my board at least that I fixed by changing tdnothumbs to menubar2
Hmm...I thought I had 4.7e installed. Will have to double check that.
Eeesh....think I'll just wait a another week or two until these minor updates stop coming out.
Scroungr there is not a class called menubar2 and thats why 4.7f came out LOL
heh thats okay I just added it to my stylesheets
Yap, my issue was that I updated with 4.7e - which had a few goofed templates, etc.

4.7f fixed everything up.
thats okay they will be releasing 4.7z by the end of the week
Bleh! Well at least the integration into UBB.Threads is easy!
OK the reason they did a bunch of mini releases was to take care of minor issues with certain customers. Nothing Major

Most of these except for the template thing you would never notice since you run threads. There were alot of new things like signature and avatar support added and group moderation.

The release notice said these features were only avaiable to threads and VB3 customers. Other customers freaked and did not want to wait. So they were added in. Thus you saw the many mini revisions. Most of which never would effect you.
Uh, now there's a 4.7g release....when will the madness stop!

Yea, yea...I understand...minor stuff...hence the letter designators. Just seems pretty funny is all...and that's why this hombre will wait til the madness slows down on the releases.
I hear Jimmy the Greek has a Vegas Line set on 4.7z by the end of the week
What is the easiest way to fix the "Welcome" background color?

Screen shot attached:

Attached picture 109599-screenshot.JPG
go into your stylesheet and find .welcome{ yadda; yadda; color: ;} and change the hex code color to another..
thanks for this update Chuck, much less files to edit == mo betta mod
[]scroungr said:
go into your stylesheet and find .welcome{ yadda; yadda; color: ;} and change the hex code color to another.. [/]
Looks like that one changes the threads welcome and not the photopost welcome. Any other input here?

Thanks,

BWilliams
you didn't say which welcome anyways do the following.. this is what I do on most pages anyways.. select all text around the area you want to change and then look at it's source. most browsers allow you to look at the source.. that gives you a hint as to which class in the css to fix. like on yours where it says Welcome to yadda yadda in the yellow the source is..

[]
<font class="welcome"> Welcome to the SoCAPS Photo Gallery!</font>
[/]

so by looking at it appears to be the welcome class and is probably either the lackof a background: #yadda yadda or the wrong color in the welcome yadda yadda..
Got it

.welcome {
background-color: #BCBDBD;
color: #000000;
background: transparent;
}

Thanks
cool.
[]scroungr said:
cool. [/]
Gotta love this site, I learn something new everyday
real problem is trying to yank out some of the old knowledge to make room for the new stuff...
Okay, I've screwed up my PhotoPost each time I've done upates....yea, I know...I'm a knuckle-head and this is why I'm bringing this up before I end up with another headache and members sending Gweedo to my house to take me out.

Appears there is now a PhotoPost v4.7i out. I was going to wait until these minor updates stopped coming out, but I'd like to get the new features running on my site.

I'm currently running PhotoPost v4.6 and would like to update to 4.7i. Problem is as I explained...I always manage to screw up my database when I do these updates....so, here is where I need your help.

How will I properly go about an upgrade to version 4.7i? I have looked Chuck's instructions over but I didn't see specific guidance for knuckle-heads like me attempting to do an upgrade.

Any guidance on this is greatly appreciated...

Gonzo
Well this is a hack. You need to follow these instructions to install the hack. To upgrade Photopost you must follow the steps in the UPGRADE.TXT file in the documentation folder in the photopost distribution.

Simply put upload all files to your photopost directory EXCEPT config-inc.php. Then run these upgrade scripts in order.

upgrade46.php
upgrade467.php

YOUR DONE. Then apply this hack.
Chuck, believe I've replaced all the files as you've explained here in the past....but it screwed up the images.

For instance....if I replace the directories 2 and 500....I have files in both directories. If I replace them with the empty directories that are supplied with the archive...won't that delete my images in those directories?
Chuck, in your instructions for pp-inc.php you note:

"Find and delete this line:

<link rel="stylesheet" href="{$Globals['maindir']}/stylesheets/default.css" type="text/css" />
"

I did a search and don't find this code.

I did find this however:

<link rel="stylesheet" href="{$Globals['maindir']}/stylesheets/{$Globals['theme']}.css" type="text/css" />

More than likely just a typo in your instructions....but it's worth noting for the others.
Yep typo

No overwriting directories does not overright or delete files.
Mmmm.....getting the following error as I attempt to upload .jpg files.

Fatal error: Call to undefined function: imagegif() in /home/smoknz28/public_html/ubbthreads/gallery/image-inc.php on line 113

Here's my line of code on line 113 of image-inc.php:

case 1: $return_val = ImageGIF( $full_id, $new_image_file_path ); break;

I have been uploading images all day on and off with no errors til recently.

Any ideas?

I've attempted to upload several other images as well...but with the same error.
How about you post over at Photopost Support


You are using GD as your image processor and it does not support gif images. You will need to unselect it as an allowable image in your admin options or switch to ImageMagick as a processor.
[]Omegatron said:
How about you post over at Photopost Support [/]

Yes sir...
I think I may have the issue resolved on the uploads...

Now, got another one....

Which part in my stylesheet do I change to modify this color?

[]http://members.cox.net/gonzo_family/misc/photopost.gif[/]
If your using the integration you forgot to copy over the tdnothumbs stylesheet class to that threads stylesheet. This is the one that needs to be set to the same as the tdheader.

I see you asked the question over Photopost and Don helped you although I gave you the same answer above to fix it as well
Got it....argh...I was editing a stylesheet that I don't have avail to users....hell!

Thanks Chuck.
[]Omegatron said:I see you asked the question over Photopost[/]

Yes I did, as you told me to.

[]Omegatron said:How about you post over at Photopost Support[/]

[]Omegatron said:and Don helped you although I gave you the same answer above to fix it as well [/]

Yes, Don did...and no, you did not give the same answer. Your answer was partial, but it would not have solved my issue entirely. I needed to FTP into my uploads directory for the gallery and delete all .gif files that were sitting in the subdirectories.

However, I do appreciate your assistance in solving part of my issue....I just wanted you to know that you did not give the same answers as Don did.

You told me to post over there....so I did, and then you still come back on here and shoot me in the leg.... Well, I'm confused....

Oh well....as always, your help is always appreciated even if you like to take pop shots at this hombre and then cover up with a smilie.

It is working correctly now and hopefully I have imageMagick installed so that I can accept .gif images.
[]Oh well....as always, your help is always appreciated even if you like to take pop shots at this hombre and then cover up with a smilie. [/]

Meeeeow.

The only reason Omega stated such is that Photopost and Threads are 100% separate products, and therefore you will get Photopost support on the Photopost member forums.

Questions about integration with Threads are best asked here...anything related to Photopost is best asked there.
Eaxctly

The reason I stated that is half the questions or problems brought up the integration threads in every version I post ends up being photopost support related things.
I've tried doing this before, and gave up, I must be stupid.

As I have a problem with my current Photopost permissions wise, ive reinstalled it, and I want to use this hack, but I cannot get it to work.

I've made the changes, but get a blank screen when I goto the gallery now.
Wooohooo I've got it working..

Although the stylesheets all seem to be wonky.. it doesnt seem to be pulling in the right info..

if you look at www.bm3w.co.uk\ug you will see what I mean..

Which stylesheet should we be editing, the UBB or the PP? I did both, but still no joy.

Thanks
You would need to add the specified CSS styles into your threads Stylesheets.
Yeah I've added them but it seems to be ignoring them.. if I change the settings it doesnt change the appearance either...
Actually, has this been tested with 4.7 revision j?

I've just had to back it out as when you upload and it goes to the preview page you get a CGI error regarding headers.

Grrrr this seems such a simple mod, and I can't bloody well do it.
I have a previous letter of 4.7 (really not sure which...but it works so I am not screwing with it).

It should work fine with any 4.7, as I do not believe any of the "letter" revisions have changed anything dramatically as to the layout and structure.
are you sure you have all the photopost stsyle sheet classes in all the style sheets for threads?
As far as I am aware yes.

But more serious is the fact that uploads do not work when this patch is applied.
Maybe someone can mail me a modded pp-inc.php file that only this one mod on and is working (from version 4.7j) as mine definately doesn't work.

Thanks ([email protected])
Matt,

You have not set the classes for Photopost in your Threads stylesheets
Maybe I just don't understand your instructions then, as I am fairly certain I have added them.

Would that also be related to the CGI error on uploading preview?
Its pretty self explanatory

Copy and paste all the styles and set them
to the class color as instructed.

.tdnothumbs {
font-size: 9pt;
font-weight: ;
color: #000000;
background: TDHEADER COLOR;
font-family: Verdana, Helvetica, sans-serif;
}
.tddetails {
background: DARKTABLE COLOR;
color: #000000;
}

.tdbackground {
font-size: 9pt;
font-weight: ;
color: #000000;
background: DARKTABLE COLOR;
font-family: Verdana, Helvetica, sans-serif;
}
.catcolumn {
font-size: 8pt;
font-style: ;
text-align: ;
background: DARKTABLE COLOR;
color: #000000;
}

.photocol {
font-size: 8pt;
font-style: ;
text-align: ;
background: LIGHTABLE COLOR;
color: #000000;
}

.commentscol {
font-size: 8pt;
font-style: ;
text-align: ;
background: DARKTABLE COLOR;
color: #000000;
}

.lastphocol {
font-size: 8pt;
font-style: ;
text-align: ;
background: DARKTABLE COLOR;
color: #000000;
}

.lastcommcol {
font-size: 8pt;
background: LIGHTABLE COLOR;
color: #000000;
}
OK purchased Photopost... Now... help me out just a little... Do you all mean I need to modify ALL the templates and change something?

Do I need to modify all the stylesheets and put those other styles in? Little more explination on this part will greatly help me... please...
Modification is pretty simple. No you do not modify all templates. You can tweak the ppopen and ppclosed template to match your tbopen and tbclosed.

The directions are pretty self explanatory.
I am running a UBBT 6.4 site with some very popular image forums. It contains loads of threads with multiple replies and lots and lots of attached images.

I am thinking of integrating PhotoPost with my site, to give users who just want to browse an easier way to look av the pics. Also I want to use photopost to get the great e-card stuff, ant use it with pal.

Is it possible to use this integration so that PhotoPost by itself creates new galleries when a new attachment filled thread is posted to a specified UBBT forum?
Gregori this is a design integration.

Photopost 4.8 has this built in

Your asking about another hack altogether which has not been created
Really?! Sounds great!

I couldn´t find anything about this in the Photopost feature list for the latest version.

Any idea on when 4.8 will be released? (Guess it should be asked at the Photopost forum, but since you are everywhere... ) A month or a year from now?
The forum integration is listed on the 4.8 features list. We currently automatically grab the stylesheets from VB UBBThreads phpBB and InvisionBoard.

We are currently on a stable RC3 release. There is no definate date set for a final yet. We currently have all 3 products on a beta cycle at the moment using the forums style integration and going through correctly any bugs that are reported. I will say Photopost is pretty stable in the RC3 and we are working on catching any bugs from Reviewpost and Classifieds. I think we are shooting to release GOLD versions of all 3 products. However the developer has the final work on any release time lines. I hopefully forsee a release within a month.
Anyone using this w/ 6.5b?
This should work fine for 6.5 - just make sure the path to main.inc.php is correct at the top of you pp-inc.php file.
yup using it with 6.5
How do you do it here on Threadsdev to display the Threadsheader in PP V4.8 ? I only get the default PP header. Is there a integration avaible ? I need this
cause you need to read the instructions. you need to change the photopost print header function so it uses your threads header instead..
The instructions for PP 4.7 dosnt match anymore with PP 4.8, there are lots of differences. PP now offer to user header and footer .htm files witch can be selected in the config options. Can this be a smarter way to get a result without modify the script itself ?

I'm not a coder and dont have a clue I see that PP runs here well and I like do it the same way on my site if it possible.
It's not integrated here - because Michael often runs beta - we just use a header which looks like our threads header. Photopost here is 100% stock.
I am trying to install PP for the first time but I get an sql error.

And cannot log in.

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/sdbs/public_html/photopost/forums/threads.php on line 2
Ok nevermind I got it working...
The only thing I haven't figured out is how to display the Navigation bar so users can get back to the forums?
Photopost 4.8 by default pulls the stylesheet so this mod is not really needed for 4.8

I basically mocked up a navbar template on my install

http://www.reeftalk.com/gallery
OceanWest

Here is my navbar for photopost which is included in my header

It has the important stuff like control panel admin link etc etc so you can model after this

Code
<br /><?<br /><br />echo <<<PPPRINT<br /><br /><table width="100%" align="center" border="0" cellspacing="0" cellpadding="0"><br /><tr><br /><td class="tlc"><br /><img border="0" src="http://www.reeftalk.com/ubbthreads/stylesheets/images/spacer.gif" width="10" height="10" alt="" /></td><br /><td align="left" class="topleft"><br /><img border="0" src="http://www.reeftalk.com/ubbthreads/stylesheets/images/spacer.gif" width="70" height="10" alt="" /></td><br /><td width="100%" class="top"><br /></td><br /><td align="right" class="topright"><br /><img border="0" src="http://www.reeftalk.com/ubbthreads/stylesheets/images/spacer.gif" width="10" height="10" alt="" /></td><br /><td class="trc"><br /><img border="0" src="http://www.reeftalk.com/ubbthreads/stylesheets/images/spacer.gif" width="10" height="10" alt="" /></td><br /></tr><br /><tr><br /><td class="left"><br /><br /><img border="0" src="http://www.reeftalk.com/ubbthreads/stylesheets/images/spacer.gif" width="10" height="10" alt="" /></td><br /><td width="100%" colspan="3"><br /><table width="100%" align="center" cellpadding="0" cellspacing="0" class="tablesurround"><br /><tr><br /><td><br /><table cellpadding="2" cellspacing="1" width="100%" class="tableborders">  <br /><tr class="tdheader"><br /><td colspan="3" align="center">Welcome to ReefTalk</td><br /></tr><br /><tr><br /><td class="logo"><br /></td><br /></tr><br /><br /></table><br /></td><br /><br /></tr><br /></table><br /></td><br /><td class="right"><br /><img border="0" src="http://www.reeftalk.com/ubbthreads/stylesheets/images/spacer.gif" width="10" height="10" alt="" /></td><br /></tr><br /><tr><br /><td class="blc"><br /><img border="0" src="http://www.reeftalk.com/ubbthreads/stylesheets/images/spacer.gif" width="10" height="10" alt="" /></td><br /><td align="left" class="botleft"><br /><img border="0" src="http://www.reeftalk.com/ubbthreads/stylesheets/images/spacer.gif" width="10" height="10" alt="" /></td><br /><td width="100%" class="bottom"><br /></td><br /><td align="right" class="botright"><br /><img border="0" src="http://www.reeftalk.com/ubbthreads/stylesheets/images/spacer.gif" width="10" height="10" alt="" /></td><br /><td class="brc"><br /><img border="0" src="http://www.reeftalk.com/ubbthreads/stylesheets/images/spacer.gif" width="10" height="10" alt="" /></td><br /><br /></tr><br /></table><br /><br /><br /><br /><br /><table width="100%" align="center" border="0" cellspacing="0" cellpadding="0"><br /><tr><br /><td class="tlc"><br /><img border="0" src="http://www.reeftalk.com/ubbthreads/stylesheets/images/spacer.gif" width="10" height="10" alt="" /></td><br /><td align="left" class="topleft"><br /><img border="0" src="http://www.reeftalk.com/ubbthreads/stylesheets/images/spacer.gif" width="70" height="10" alt="" /></td><br /><td width="100%" class="top"><br /></td><br /><td align="right" class="topright"><br /><br /><img border="0" src="http://www.reeftalk.com/ubbthreads/stylesheets/images/spacer.gif" width="10" height="10" alt="" /></td><br /><td class="trc"><br /><img border="0" src="http://www.reeftalk.com/ubbthreads/stylesheets/images/spacer.gif" width="10" height="10" alt="" /></td><br /></tr><br /><tr><br /><td class="left"><br /><img border="0" src="http://www.reeftalk.com/ubbthreads/stylesheets/images/spacer.gif" width="10" height="10" alt="" /></td><br /><td width="100%" colspan="3"><br /><table width="100%" align="center" cellpadding="0" cellspacing="0" class="tablesurround"><br /><tr><br /><td><br /><table cellpadding="2" cellspacing="1" width="100%" class="tableborders"><br /><tr><br />PPPRINT;<br />if ( $User['userid'] > 0 ) {<br />echo <<<PPPRINT<br /><td align="left" valign="bottom" width="25%" class="menubar"><br />Welcome {$User['username']}.<br />[<a href = "http://www.reeftalk.com/ubbthreads/logout.php">Logout</a>]<br /><br /><br /><a href = "http://www.reeftalk.com/ubbthreads/login.php">My Home</a><br /> ·<br /><a href = "http://www.reeftalk.com/ubbthreads/contact/mycontacts.php" $target>My Contacts</a><br />PPPRINT;<br />}<br />echo <<<PPPRINT<br /><td align="left" valign="bottom" width="75%" class="menubar"><br />PPPRINT;<br />if ( $User['adminedit'] == 1 ) {<br />echo <<<PPPRINT<br /> <a href = "http://www.reeftalk.com/ubbthreads/admin/index.php">Admin</a><br /> ·<br />PPPRINT;<br />}<br />echo <<<PPPRINT<br /> <a href="http://www.reeftalk.com/ubbthreads/ubbthreads.php/Cat/">Main Index</a><br /> ·<br /><a href =" http://www.reeftalk.com/index.php/Cat/" target="_top">Entrance</a><br /> ·<br />PPPRINT;<br />if ( $User['userid'] > 0 ) {<br />echo <<<PPPRINT<br /> <a href = "$phpurl/mypaymentpal/mypaymentpal.php" $target>Subscription Area</a><br /> ·<br />PPPRINT;<br />}<br />echo <<<PPPRINT<br /> <a href =" http://www.reeftalk.com/ubbthreads/search.php?Cat=" target="_top">Search</a><br /> ·<br /><a href =" http://www.reeftalk.com/ubbthreads/online.php?Cat=" target="_top">Who's Online</a><br /> ·<br /><a href =" http://www.reeftalk.com/ubbthreads/faq.php?Cat=" target="_top">FAQ</a><br /><br /> ·<br /><a href =" http://www.reeftalk.com/bio.php">Staff Bio's</a><br /> ·<br /><a href =" http://www.reeftalk.com/sponsor.php">Sponsor's</a><br /> ·<br /><a href =" http://www.reeftalk.com/gallery/index.php">Photo Gallery</a><br /> ·<br /><a href =" http://www.reeftalk.com/reviews/index.php">Reviews</a><br /> ·<br /><br /><a href =" http://www.reeftalk.com/ubbthreads/chat/chat.php">Chat Room</a><br /> ·<br /><a href =" http://www.reeftalk.com/ubbthreads/links.php">Site Links</a><br /> ·<br /><a href =" http://www.reeftalk.com/shop.php">Reeftalk Store</a><br /> ·<br /><a href =" http://www.reeftalk.com/ubbthreads/calendar.php?Cat=" target="_top">Calendar</a><br /></td><br /></tr><br /><br /><tr><br /><td colspan="2" align="center" class="darktable"><br /><a href='http://www.reeftalk.com/plugins/phpAdsNew/adclick.php?n=a95d6f32' target='_blank'><img src='http://www.reeftalk.com/plugins/phpAdsNew/adview.php?what=zone:1&amp;n=a95d6f32' border='0' alt='' /></a><br /></td><br /></tr><br /><tr class="tdheader"><br /><br /><td colspan="2" align="center">Support our Sponsor's</td><br /></tr><br /><br /></table><br /></td><br /></tr><br /></table><br /></td><br /><td class="right"><br /><img border="0" src="http://www.reeftalk.com/ubbthreads/stylesheets/images/spacer.gif" width="10" height="10" alt="" /></td><br /></tr><br /><tr><br /><td class="blc"><br /><img border="0" src="http://www.reeftalk.com/ubbthreads/stylesheets/images/spacer.gif" width="10" height="10" alt="" /></td><br /><td align="left" class="botleft"><br /><img border="0" src="http://www.reeftalk.com/ubbthreads/stylesheets/images/spacer.gif" width="10" height="10" alt="" /></td><br /><br /><td width="100%" class="bottom"><br /></td><br /><td align="right" class="botright"><br /><img border="0" src="http://www.reeftalk.com/ubbthreads/stylesheets/images/spacer.gif" width="10" height="10" alt="" /></td><br /><td class="brc"><br /><img border="0" src="http://www.reeftalk.com/ubbthreads/stylesheets/images/spacer.gif" width="10" height="10" alt="" /></td><br /></tr><br /></table><br /><br /><br /><br /><br />PPPRINT;<br /><br />?><br />
What I would love to see is Which picture is being viewed on the "Who's online" page. Would something like that be possible/easy to do ?
not really because all the online.php uses for the info of what they are viewing is the nameof.php to say where they are looking thats why all files must basically be split into several files to know where the person is viewing so in other words why there are addressbook.php myhome.php online.php showflat.php etc..
Omegatron,

Thank You for pointing me in the right direction. I learn best by example and that helped me get on the right track. I am getting a broader understanding of hacking and I really do appreciate it.

Thanks Again

Stephen
It could be done with modification but an extensive one. You would need to intertwine the photopost online with threads online tables.
Question...

Why do I get different spacing? (www.sandiegobariatric.com) toggle between the photo gallery and the forums. There are no extra breaks in the header of the pp
Do I need to use this for PhotoPost 4.8.1? This is the most recent version of this integration, so I'm not sure yet. Thanks!
No no need to use this with 4.8.1

The css is automatically pulled.
And the Threads headers and footers too?
Although you can have a CSS file - and a photopost sidebar - couldn't see any obvous method to add the same sidebar as the forums would use. Not without further hacking.

I would stress that I have not played with the new version very much - but initial inspection would seem to indicate that.

Que Chuck to correct me
is there an easy way to get the headers working ? ie, header.tmpl and ubbt_registerednav.php or unreg.... ?
[]Turbosport said:
is there an easy way to get the headers working ? ie, header.tmpl and ubbt_registerednav.php or unreg.... ? [/]

If you're referring to version 4.8.1 of PhotoPost using the threads header/footer & ubbt_registerednav.tmpl/ubbt_footer.tmpl, It is possible to do this. I teased it out by reading these instructions and making the first two edits to pp-inc.php mentioned in the instructions.

The first thing they tell you to add I added after the line requiring config.inc.php. The second part (the really long bit of code to replace) has changed, but you should still be able to tell where it starts and ends, then cut it out and paste the new code from the instructions. The last part about deleting one line you can ignore, because that line isn't there any more anyways (as far as I could tell).

Now I have my header/footer, nav bar, footer and IIP side bar all appearing in PhotoPost the way it did before. I hope that helps!
Sorry m8 no help at all, I cannot find the nav templates memtioned in these instructions ? (I take it you mean the instructions attached to the top of this post? )

can you show me the bit to change from you pp-inc file ?
I'll write it up for you tomorrow after I get off work
Your a star
[]Turbosport said:
Your a star [/]

This SHOULD (I hope) do it. It it the original file for the modification, though I've changed what needs to be edited in the pp-inc.php file. I don't know if you need to edit the ubbthreads header_insert.php file or not, but mine has been edited following these instructions and I'm not having any problem. I also don't know if you need to edit the stylesheets anymore because supposedly PhotoPost can now read the threads stylesheets. If you do do this following the changes that worked for me, you won't need to turn on stylesheet synchronization in PhotoPost because it's part of this mod. Nor do you have to set the path to the header or footer. Good luck!

Attached File
mmm still dosnt get the menu up for me

I am using 6.5b6 and PP 4.81
I have a stupid question. Do you have to purchase PhotoPost? It seems a lot of you are using it or just tinkering with it and that's usually not the case when it's a 'pay for' type of thing. No insults meant of course.
I believe those using it have paid for it. It's not real expensive as far as software goes
Yeah, I can certainly see why people are getting it. I just got it myself and am loving it - although it's proving difficult for me to install all the way. I went through the setup (a number of times now!) and opted to use my UBBT user table for the users and it's all fine and good now except for one thing - how do I get to the admin section??? I can login using my UBBT accounts but nothing allows me to get into the admin section, not even my UBBT admin account.
Also, any help on the following error I'm getting five times at the top of every page would really make my day!!

Code
 Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/mydomain/public_html/photopost/forums/threads.php on line 285 


Here is what is at and around line 285..

Code
 foreach ( $ubbgroups as $groupvalue ) {<br />        if ( is_numeric($groupvalue) ) {<br />            $query = "SELECT groupid,cpaccess,modaccess,diskspace,uploadsize,uploads,comments,editpho,editposts,useralbums,reqmod,canassign FROM {$Globals['pp_db_prefix']}usergroups WHERE groupid='$groupvalue' LIMIT 1";<br />            $result = ppmysql_query($query,$link);<br />            ********Line 285********list( $usergroup,$cpaccess_a,$modaccess_a,$diskspace_a,$uploadsize_a,$uploads_a,$comments_a,$ueditpho_a,$ueditposts_a,$useralb_a,$reqmod_a,$assign_a ) = mysql_fetch_row($result); *******END OF LINE********<br />            ppmysql_free_result($result); 
© UBB.Developers