MOD NAME: Photopost / ReviewPost and Ubbthreads Integrated Index Version 4
DESCRIPTION: Adds the Photopost Index and/or ReviewPost Index to Threads creating a seemless integration.
BY: Michael Pierce, Omegaton
DATE: 3-19-2003
CREDITS: Michael Pierce, Omegatron for XHTML compliance and updating for the tablewrappers and various bugfixes, JoshPet for bug fix with the forcats function.
NEW FILES: photopost.inc.php, ubbt_photopost.tmpl, reviewpost.inc.php, ubbt_reviewpost.tmpl
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.
I must say the response has been amazing; we've had a tremendous volume of sales today on both of our products. As the only guy doing the coding for all three products, that makes me very happy.
And to think I already have 3.4 running on my test site!
well, for my site, it is the perfect addition. I could not have asked for anything more specific to my needs, other than maybe a 10 star rating system as opposed to five stars. It will need a tiny bit of customization, and maybe an extra field or two, but hey, I'm ecstatic as this is the first time something has came out that I wanted before I paid someone to have it custom done. Usually, it's right after.
I also wrote a snippet of code which I inserted in my index.php and showphoto.php/showproduct.php files which allows me to register people in these areas in the Who'se Online.
Basically, I saved the attachement as ubbt_online.php and then at the top of each PhotoPost/ReviewPost file I added:
include "ubbt_online.php";
Of course you have to add the "gallery" tag (or "reviews") to the languages/*/online.php files for the text to show up in the Who'se Online page.
The good part is going to be writing up the code to get Photopost to use Threads stylesheets and put the 7 new classes in those stylesheets. I worked on it a bit with the beta but now that 3.3 is done I better hurry up and finish.
I have two categories in my forum and after installing this module, I have a table with 4 random photopost images below it. How can I place this table between my two categories in stead of below them ?
I hope this image makes it all clear []http://www.multifire.nl/example.jpg[/] So what I would like, is to have the images between the two categories, and not below them...
This is the way it was designed. The Photopost template is placed after the Threads categories. I know I could place the random photos up top of Threads categories. To do what you suggest would require a bit more hacking as in removing a part of the Photopost hack and placing it in essence between the category loop to the next one but on multiple category boards this would look bad. I have like 7 categories so you see what I am getting at? If you must want to begin with the Photopost hack then list Threads do this
Find the UBBTPRINT; up the top of the ubbthreads.tmpl file right after this and before the echo <<<UBBTPRINT place your line
Michael any idea why the categories would just dissapear. Photopost is running fine. The categories just up and dissapeared on this integration hack. The photo's are still there.
Quick question: is there a way to integrate the threads .css with both products? As in if a user has chosen a style sheet other than the default that the stylesheet will also be used in RP and PP?
A bit off topic but thought somebody might now how to do this...
Is is possible to exclude a category from being shown on the index page ? I would need this because sometimes the random gallery shows pictures which are not very "suitable" for the main page
[]// leave blank for no customization, otherwise list cats you only want images to appear from $forcats = "500,502,503,504,505,506,507,510,513,514,515,516,517,518,519,520,521,523"; [/]
Even with one or less numbers I get "Query Failed" on the index page.
Ok great, thanks! But isn't it possible to exclude a certain cat ? Now I will always need to keep ubbt_photopost.tmpl up-to-date with new categories.... Also it seems to me that it slows down the query execution.
I have to be a pain in the arse and have different ubbthreads.tmpl coding. The section in question in the instructions looks slightly different in my code. Here is the area:
[] </tr> UBBTPRINT; } //UBBTREMARK echo <<<UBBTPRINT <!-- END OF FORUM LOOP --> $tbclose <br />
UBBTPRINT; } //UBBTREMARK echo <<<UBBTPRINT <!-- END CATEGORY LOOP -->
$tbopen <tr> [/]
I've tried sticking the code in various places to no avail. Any idears?
Below: [] UBBTPRINT; } //UBBTREMARK echo <<<UBBTPRINT <!-- END CATEGORY LOOP --> [/] and above: [] $tbopen [/] . . .and I get a "Query failed" and the rest of the page (footer) does not render.
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.