Mod Name / Version: Photopost / ReviewPost and Ubbthreads Integrated Index Version 4
Description: Adds the Photopost Index and/or ReviewPost Index to Threads creating a seemless integration.
Working Under: UBB.Threads 6.2-6.3
Mod Status: Finished
Any pre-requisites: A full version of UBB.Threads 6.2 or 6.3 and Photopost and or Reviewpost
Author(s): ExtremeBikini,Omegatron
Date: 04/28/03
Credits: Michael Pierce, Omegatron for XHTML compliance and updating for the tablewrappers and various bugfixes, JoshPet for bug fix with the forcats function.
Files Altered: ubbthreads.php, ubbthreads.tmpl
New Files: photopost.inc.php, ubbt_photopost.tmpl, reviewpost.inc.php, ubbt_reviewpost.tmpl
Database Altered: No
Info/Instructions: This new release builds on the preior work and also includes a version for the newly released ReviewPost. This Hack can be used to add one or both of the Integrated Index pages.
Well actually this is not my hack. This hack was written by Michael Pierce the creator of Photopost. I merely did XHTML compliance and a few minor other things. I posted it here from the beta modifications when Josh made this wonderful new Modification Index.
The instructions are a fine from what I see. They clearly state to change PATH INFORMATION to your own. I see he put his own path information which was an example. I updated them to make it even more clearer so the example Michael gave of
On the Admin thing when I got adm-inc.php the page dosnt finish and only the UBBmenu shows, but if I go directly to adm-menu.php it works I think its the frames it dosnt like, I have completely un hacked it and folowed the instructions above to the letter but it still does it, any ideas ?>
You need to follow the all steps in the instructions for the menu frameset to work.
If you don't mind I have no problem looking at your admin files and seeing what is not correct. My email is public just email me the three admin files and I will look at em or PM me here.
Ok I tested a little bit more and it has something to do with the queries. I am using UBBT 6.2.3 and PP4 and want to have pictures on my forum main index by random from PP.
Can someone help me or check the queries?
I am not using reviewpost.inc and the reviewpost template file, only the photopost stuff is needed.
This has been updated to take into account Table Prefix's in the new Software by Photopost. Some people where having trouble with query fails as a result of the prefix.
Did you not send that to Josh. He said he recieved it. I did the integration with the first beta. I am sure Josh when he gets time can place the $tbopen and $tbclose where they need to be. If he wants me to do it I am sure he will send it over. I know we at Threadsdev are glad the hard work you do to give us wonderful products.
I still need to upgrade my Photopost to 4.0.1 Just need to get the time to modify it
After installation I'm getting this error: "Parse error: parse error, unexpected T_STRING in /home/virtual/site101/fst/var/www/html/test/templates/default/ubbt_reviewpost.tmpl on line 49" The photopost index integration works fine, but below that I got this error.
Well...it made the error disappear, but the integrated review index doesn't appear Before this error I did see the extra information table, but now it also doesn't show...
If nothing shows up most likely the error is that you did not fill out the necessary MYSQL access information in reviewpost.inc.php thus it is hanging at the template call.
Now that the template error is corrected go back and redo the instructions for this hack. I just installed this at my test site fine.
Ok, step 3 ... (still getting an error!!) "Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/virtual/site101/fst/var/www/html/test/templates/default/ubbt_reviewpost.tmpl on line 252
Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/virtual/site101/fst/var/www/html/test/templates/default/ubbt_reviewpost.tmpl on line 253"
This error appears between the review image and the review cats. That should be the statistics part...
Can I simply remove these lines from ubbt_reviewpost.tmpl ?:
[] $query = "SELECT SUM(views) as tviews, COUNT(*) AS tphotos FROM products"; $totalv = mysql_query($query, $rplink); list( $totalpviews, $products ) = mysql_fetch_row($totalv); mysql_free_result($totalv);
I probably had a bad hacking of some files but now I have Login/Logout problems (Only in Photopost):
Warning: Cannot add header information - headers already sent by (output started at /home/sites/site185/web/Forum/templates/default/ubbt_header.tmpl:18) in /home/sites/site185/web/Foto/logout.php on line 32
Warning: Cannot add header information - headers already sent by (output started at /home/sites/site185/web/Forum/templates/default/ubbt_header.tmpl:18) in /home/sites/site185/web/Foto/logout.php on line 33
Warning: Cannot add header information - headers already sent by (output started at /home/sites/site185/web/Forum/templates/default/ubbt_header.tmpl:18) in /home/sites/site185/web/Foto/logout.php on line 34
And than I'm still logged in, similar error for people trying to login and after the error they are still logged out...
I may add this later, but right now I want to get the registered and unregistered template files showing up in my photopost installation. Could someone tell me which file/files I need to alter in photopost 4.01 to add the threads menu? Thanks.
[]Rutto said: Uh, thank you for the tip but I'm not able to understand what you mean... Wich file should I doublecheck ? [/]
Usually 'header already sent' errors are extra spaces after the PHP closing tag ?> at the end of the file. Make sure there's nothing after that closing tag.
OK, it is a problem related to the Hacking of pp-inc.php in fact I have re-uploaded the original pp-inc.php and it worked fine. I re-hacked it following the instruction, uploaded it again and... same error.
well try copying a line or so at a time instead of the whole thing. This is working on many sites. However I have seen one or two sites with that specific problem. Like Ian said most likely a stray character is being displaced somewhere. Alot of times this would be at the end before the closing tag. If not this then it could be a server specific thing from a PHP config.
The ubbthreads registered/unregistered templates are send along with the headers. There is no specific call to those templates alone. It is part of the whole hack.
[]Omegatron said: well try copying a line or so at a time instead of the whole thing.[/]
Ok, I followed your suggestion and found out that this is the exact part of the instructions that create the problem. I see a triple /// but changing it don't solve.
Code
<br />Find:<br /><br />require "config-inc.php";<br />require "languages/$pplang/pp-inc.php";<br /><br /><br />Insert Below this and set path to main-inc.php:<br /><br />if ( basename($GLOBALS['SCRIPT_NAME']) != "adm-index.php" && basename($GLOBALS['SCRIPT_NAME']) != "adm-menu.php" ){ <br /> <br />/// Require the library. Edit the path to the<br />// main.inc.php file if necessary.<br /> require ("/PATH/TO/main.inc.php");<br /><br />// If you use IIP's sidebar you may want to uncomment the line below<br />// to disable the sidebar on Photopost pages<br />// $config['iip_call'] = 1;<br /><br />// ---------------------<br />// Send the page to them<br /><br /> $html = new html;<br /> $html -> send_header($Cat,0,$user);<br /><br />// ---------------------<br />// Grab the tablewrapper<br /> list($tbopen,$tbclose) = $html -> table_wrapper();<br /><br /> // If they don't have a stylesheet pref we use the default<br /> if (!$fstyle) {<br /> if (isset($user['U_StyleSheet'])) {<br /> $fstyle = $user['U_StyleSheet'];<br /> }<br /> }<br /> if ( (!$fstyle) || ($fstyle == "usedefault") ) {<br /> $fstyle = $theme['stylesheet'];<br /> }<br /><br /> $theme['css_wrapper'] = $fstyle;<br /><br /> // --------------------<br /> // set the style sheet<br /> $stylesheet = "{$config['stylepath']}/$fstyle.css";<br /><br />}<br />
Contact me privately as I will and we can see what can be done with this. However you are talking in the wrong thread as this is not the hack you are trying to do. Email me and I will see what your problem is. As I stated I have seen this on one or two sites. It could be a server setting with Header issues.
This hack just places Photopost on the main index. If you want to make Photopost look like Threads and use the header and stylesheets like here and other sites you need to download this hack I did here at this link
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.