php forum
php mysql forum
php mysql smarty
 
Page 1 of 3 1 2 3 >
Topic Options
#241129 - 03/19/03 08:33 AM Integrated PhotoPost & ReviewPost Modules (v4)
PhotoPost Offline
Hacker

Registered: 02/03/02
Posts: 989
MOD NAME: Photopost / ReviewPost and Ubbthreads Integrated Index Version 4 <br /> <br />DESCRIPTION: Adds the Photopost Index and/or ReviewPost Index to Threads creating a seemless integration. <br /> <br />BY: Michael Pierce, Omegaton <br /> <br />DATE: 3-19-2003 <br /> <br />CREDITS: Michael Pierce, Omegatron for XHTML compliance and updating for the tablewrappers and various bugfixes, JoshPet for bug fix with the forcats function. <br /> <br />VERSION: 4.0 for UBBThreads 6.2 <br /> <br />REQUIREMENTS: A full version of UBB.Threads 6.2 <br /> <br />COMPATIBILITY: UBB.Threads 6.2 <br /> <br />DEMO: http://www.viperalley.com/ubbthreads.php <br /> <br />FILES MODIFIED: ubbthreads.php, ubbthreads.tmpl <br /> <br />NEW FILES: photopost.inc.php, ubbt_photopost.tmpl, reviewpost.inc.php, ubbt_reviewpost.tmpl <br /> <br />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.


Attachments
73611-pp_rp_ubbt62.zip (84 downloads)



Edited by extremebikini (03/19/03 04:57 PM)
_________________________
[]http://www.danasoft.com/vipersig.jpg[/]
Viper Alley - http://www.viperalley.com
Extreme Fitness - http://www.extremefitness.com[/b]

Top
#241130 - 03/19/03 09:24 AM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: gailg]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Thanks Michael! Great work. Plan to utilize this myself shortly. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#241131 - 03/19/03 09:26 AM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: Daine]
PhotoPost Offline
Hacker

Registered: 02/03/02
Posts: 989
I think that seperating out the tmpl for each into their own files will make working with this hack much easier. Enjoy!
_________________________
[]http://www.danasoft.com/vipersig.jpg[/]
Viper Alley - http://www.viperalley.com
Extreme Fitness - http://www.extremefitness.com[/b]

Top
#241132 - 03/19/03 03:23 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: gailg]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Cool Michael I see you have been busy with getting Reviewpost out the door. Great work with these.<br /><br />Just two minor things. I mean real minor. There is one minor XHTML problem and here is the fix. You forgot the tr tag on the featured photo.<br /><br />FIND in ubbt_photopost.tmpl<br /><br />echo <<<UBBTPRINT<br />$tbopen<br /><tr class="darktable"><br /><td class="tdheader" colspan="5" align="center"><br />Featured Photos<br /></td><br /></tr><br /><br /><br />REPLACE WITH:<br /><br />echo <<<UBBTPRINT<br />$tbopen<br /><tr class="darktable"><br /><td class="tdheader" colspan="5" align="center"><br />Featured Photos<br /></td><br /></tr><br /><tr><br /><br />2) This is a picky thing some people might like. Depending on their site colors etc they may not like the Photo background white so I did this<br /><br />FIND: bgcolor=/"#FFFFFF/" and REPLACE WITH class=/"darktable/"
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#241133 - 03/19/03 04:58 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: sf49rminer]
PhotoPost Offline
Hacker

Registered: 02/03/02
Posts: 989
Thanks! Made those changes and uploaded a new ZIP!
_________________________
[]http://www.danasoft.com/vipersig.jpg[/]
Viper Alley - http://www.viperalley.com
Extreme Fitness - http://www.extremefitness.com[/b]

Top
#241134 - 03/19/03 05:56 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: gailg]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Great work on ReviewPost looks like you outdid your on this one.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#241135 - 03/19/03 06:27 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: gailg]
shortbus Offline
Code Monkey

Registered: 04/19/02
Posts: 631
Loc: Enid, Oklahoma
awesome! I can't wait to get it!

Top
#241136 - 03/19/03 06:44 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: wilstephens]
PhotoPost Offline
Hacker

Registered: 02/03/02
Posts: 989
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. <img src="/forum/images/graemlins/laugh.gif" alt="" /> <br /> <br />And to think I already have 3.4 running on my test site! <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
[]http://www.danasoft.com/vipersig.jpg[/]
Viper Alley - http://www.viperalley.com
Extreme Fitness - http://www.extremefitness.com[/b]

Top
#241137 - 03/19/03 07:24 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: gailg]
shortbus Offline
Code Monkey

Registered: 04/19/02
Posts: 631
Loc: Enid, Oklahoma
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.

Top
#241138 - 03/19/03 08:20 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: wilstephens]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
thanks for the update to a great set of addons Michael <img src="/forum/images/graemlins/laugh.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#241139 - 03/19/03 08:34 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: SurfMinister]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
3.4 Michael??<br /><br />Isn't 3.3 still in beta?<br /><br />Or is 3.4 Review posts version number.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#241140 - 03/20/03 09:05 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: sf49rminer]
PhotoPost Offline
Hacker

Registered: 02/03/02
Posts: 989
PhotoPost 3.3 has been released; PhotoPost 3.4 is under development already. ReviewPost 1.0 is the released version.
_________________________
[]http://www.danasoft.com/vipersig.jpg[/]
Viper Alley - http://www.viperalley.com
Extreme Fitness - http://www.extremefitness.com[/b]

Top
#241141 - 03/20/03 09:51 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: gailg]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Cool I see that now I get to play and hack away at 3.3 to get it fully integrated into Threads cool.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#241142 - 03/21/03 09:55 AM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: sf49rminer]
PhotoPost Offline
Hacker

Registered: 02/03/02
Posts: 989
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. <br /> <br />Basically, I saved the attachement as ubbt_online.php and then at the top of each PhotoPost/ReviewPost file I added: <br /> <br />include "ubbt_online.php"; <br /> <br />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. <br /> <br />$ubbt_lang['gallery'] = "Viewing Photo Galleries"; <br />$ubbt_lang['reviews'] = "Viewing Product Reviews"; <br /> <br />You can modify the "gallery" tag to put in "reviews" for ReviewPost.


Attachments
73798-whoonline.txt (48 downloads)

_________________________
[]http://www.danasoft.com/vipersig.jpg[/]
Viper Alley - http://www.viperalley.com
Extreme Fitness - http://www.extremefitness.com[/b]

Top
#241143 - 03/21/03 03:47 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: gailg]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
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.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#241144 - 03/23/03 06:44 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: gailg]
Pasqualist Offline
Member

Registered: 01/30/03
Posts: 285
Loc: Amsterdam, The Netherlands
I'm having trouble getting this to work :-(<br /><br />I followed all the steps in the txt file very carefully, but I keep getting the following error: <br /><br /> []Parse error: parse error in /home/virtual/site12/fst/var/www/html/forum/templates/default/ubbt_photopost.tmpl on line 47<br /> [/] <br />(the path is correct)<br /><br />I run version 3.2.1 of photopost and UBBt 6.2.2<br /><br />What could have gone wrong here ?<br /><br />Regards,<br /><br />Pasquale

Top
#241145 - 03/23/03 07:09 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: 10k]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
did you happen to delete the ; after the path <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Here try downloading this template and edit the path and upload.


Attachments
74083-ubbt_photopost.tmpl (61 downloads)

_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#241146 - 03/23/03 07:15 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: sf49rminer]
Pasqualist Offline
Member

Registered: 01/30/03
Posts: 285
Loc: Amsterdam, The Netherlands
That worked! Thanks a lot....<br />(but I still don't see the difference between my tmpl file and yours) <img src="/forum/images/graemlins/confused.gif" alt="" /><br /><br />Ciao,<br /><br />Pasquale

Top
#241147 - 03/23/03 08:08 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: 10k]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
You most likely have a stray ascaii character.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#241148 - 03/26/03 06:18 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: sf49rminer]
Pasqualist Offline
Member

Registered: 01/30/03
Posts: 285
Loc: Amsterdam, The Netherlands
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 ?

Top
#241149 - 03/26/03 07:04 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: 10k]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Can you post a url to your forums so I can see what you have? <br /> <br />By default you will have the threads forums then the picture index then the Photopost forums.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#241150 - 03/26/03 11:07 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: sf49rminer]
shortbus Offline
Code Monkey

Registered: 04/19/02
Posts: 631
Loc: Enid, Oklahoma
just purchased my copy! not sure where to download it though?

Top
#241151 - 03/27/03 01:34 AM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: sf49rminer]
Pasqualist Offline
Member

Registered: 01/30/03
Posts: 285
Loc: Amsterdam, The Netherlands
I hope this image makes it all clear <img src="/forum/images/graemlins/smile.gif" alt="" /><br /> []http://www.multifire.nl/example.jpg[/] <br />So what I would like, is to have the images between the two categories, and not below them...

Top
#241152 - 03/27/03 05:07 AM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: 10k]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
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<br /><br />Find the UBBTPRINT; up the top of the ubbthreads.tmpl file<br />right after this and before the echo <<<UBBTPRINT place your line <br /><br /> require ("/PATH/TO/ubbthreads/templates/default/ubbt_photopost.tmpl");<br /><br /><br />
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#241153 - 03/27/03 01:57 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: sf49rminer]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
A slight error in the instructions Michael<br /><br />In the ubbt_photopost.tmpl:<br /><br />Find<br />print "<td align=\"center\" class=/"darktable/" width=\"20%\">";<br />print "<br /><a href=\"". $url_path ."showphoto.php?photo=". $line["id"]. "\">";<br />$temp_user = ($line["userid"]);<br /><br />and change it to<br /><br />print "<td align=\"center\" class=\"darktable\" width=\"20%\">";<br />print "<br /><a href=\"". $url_path ."showphoto.php?photo=". $line["id"]. "\">";<br />$temp_user = ($line["userid"]);<br />
_________________________
Nikos

Top
#241154 - 03/27/03 03:31 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: Hal_dup2]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
That might have been me Nikos. Back on the first page I must have been dislexic.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#241155 - 03/27/03 06:16 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: sf49rminer]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
LOL - It happens to the best of us Chuck!
_________________________
Nikos

Top
#241156 - 04/18/03 04:30 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: Hal_dup2]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
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.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#241157 - 04/23/03 11:34 AM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: sf49rminer]
chillin Offline
Journeyman

Registered: 01/26/03
Posts: 127
Loc: bend, OR USA
Indeed, both of these scripts are wonderful.<br /><br />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?<br /><br />A bit off topic but thought somebody might now how to do this...<br /><br />chillin
_________________________
i see threads people
http://www.chinooktc.com

Top
#241158 - 04/23/03 03:13 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: kwalenta]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Chillin, <br /> <br /> I wrote up the hack for this. You can see it at my site. <br /> <br />http://www.reeftalk.com <br /> <br /> Here is the link to the thread where the hack is located here in the Forum Design Integration forum. <br /> <br />http://www.ubbdev.com/forum/showflat.php...amp;amp;fpart=1
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#241159 - 05/07/03 08:18 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: sf49rminer]
Pasqualist Offline
Member

Registered: 01/30/03
Posts: 285
Loc: Amsterdam, The Netherlands
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 <img src="/forum/images/graemlins/smirk.gif" alt="" /><br /><br />Thanks,<br /><br />Pasquale <img src="/forum/images/graemlins/laugh.gif" alt="" />

Top
#241160 - 05/07/03 08:36 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: 10k]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
In ubbt_photopost.tmpl look for the code below<br /><br />// leave blank for no customization, otherwise list cats you only want images to appear from<br />$forcats = "";<br /><br />in between the quotes put the category NUMBERS for the ones you want listed example 502,504,503,501<br />
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#241161 - 05/08/03 01:47 AM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: sf49rminer]
Pasqualist Offline
Member

Registered: 01/30/03
Posts: 285
Loc: Amsterdam, The Netherlands
That doesn't work. Here's my code: <br /> <br /> []// leave blank for no customization, otherwise list cats you only want images to appear from <br />$forcats = "500,502,503,504,505,506,507,510,513,514,515,516,517,518,519,520,521,523"; [/] <br /> <br />Even with one or less numbers I get "Query Failed" on the index page. <br /> <br />Thanks for helping me! []http://img.neoseeker.com/m/26412_photo.gif[/]

Top
#241162 - 05/08/03 01:24 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: 10k]
PhotoPost Offline
Hacker

Registered: 02/03/02
Posts: 989
If you look at the $query below, you'll notice that you have to format the query in that string.<br /><br />$forcat = "AND cat IN (500,502,503,504,505,506,507,510,513,514,515,516,517,518,519,520,521,523)";
_________________________
[]http://www.danasoft.com/vipersig.jpg[/]
Viper Alley - http://www.viperalley.com
Extreme Fitness - http://www.extremefitness.com[/b]

Top
#241163 - 05/08/03 02:33 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: gailg]
Pasqualist Offline
Member

Registered: 01/30/03
Posts: 285
Loc: Amsterdam, The Netherlands
Ok great, thanks! <br />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.

Top
#241164 - 05/20/03 03:28 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: 10k]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
I have to be a pain in the arse and have different ubbthreads.tmpl coding. <img src="/forum/images/graemlins/grin.gif" alt="" /> The section in question in the instructions looks slightly different in my code. Here is the area:<br /><br />[]<br /></tr><br />UBBTPRINT;<br />} //UBBTREMARK<br />echo <<<UBBTPRINT<br /><!-- END OF FORUM LOOP --><br />$tbclose<br /><br /><br /><br />UBBTPRINT;<br />} //UBBTREMARK<br />echo <<<UBBTPRINT<br /><!-- END CATEGORY LOOP --><br /><br />$tbopen<br /><tr><br />[/]<br /><br />I've tried sticking the code in various places to no avail. Any idears? <img src="/forum/images/graemlins/grin.gif" alt="" />

Top
#241165 - 05/20/03 05:37 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: eslmix]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
<img src="/forum/images/graemlins/tongue.gif" alt="" />ulling out hair: <img src="/forum/images/graemlins/grin.gif" alt="" />

Top
#241166 - 05/20/03 05:39 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: eslmix]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Here is what mine looks like for 6.2.3<br /><br />What version are you running?<br /><br />UBBTPRINT;<br />} //UBBTREMARK<br />} //UBBTREMARK<br />echo <<<UBBTPRINT<br /><!-- END CATEGORY LOOP --><br /><!-- END OF FORUM LOOP --><br />$tbclose<br />UBBTPRINT;<br /> require ("/usr/local/blah/blah/blah/ubbt_photopost.tmpl");<br />echo <<<UBBTPRINT<br /><br /><br /><br />Look for the close of the Threads category and forum tables and add this directly after filling the path in to the template<br /><br />UBBTPRINT;<br /> require ("/usr/local/blah/blah/blah/ubbt_photopost.tmpl");<br />echo <<<UBBTPRINT<br /><br /><br /><br />
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#241167 - 05/20/03 05:51 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: sf49rminer]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
I am running 6.3b4.<br /><br />My template is different though, since I don't use the stock template.<br /><br />I will attach my .tmpl file.


Attachments
81282-ubbthreads.zip (13 downloads)


Top
#241168 - 05/20/03 05:57 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: eslmix]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
I've placed:<br />[]<br />UBBTPRINT;<br />require ("/home/drumlin/public_html/threads/templates/default/ubbt_reviewpost.tmpl");<br />echo <<<UBBTPRINT<br /><br /><br />[/]<br /><br />Below:<br />[]<br />UBBTPRINT;<br />} //UBBTREMARK<br />echo <<<UBBTPRINT<br /><!-- END CATEGORY LOOP --><br />[/]<br />and above:<br />[]<br />$tbopen<br />[/]<br />. . .and I get a "Query failed" and the rest of the page (footer) does not render.

Top
#241169 - 05/20/03 05:59 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: eslmix]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
And yes, my ubbthreads.php file does include:<br /><br />[]<br /> // ---------------------<br /> // Grab the tablewrapper<br /> list($tbopen,$tbclose) = $html -> table_wrapper();<br /><br /> $sth = $dbh->do_query("<br /> SELECT COUNT(B_Topic), SUM(B_Counter) <br /> FROM {$config['tbprefix']}Posts<br /> GROUP BY B_Topic<br /> ORDER BY B_Topic<br /> ");<br /> list($num_replies, $num_threads, $num_thread_views) = array(0, 0, 0);<br /> $num_rows = $dbh->total_rows($sth);<br /> if ($num_rows >= 1) {<br /> list($num_replies) = $dbh->mysql_fetch_row($sth);<br /> if ($num_rows >= 2) {<br /> list($num_threads, $num_thread_views) = $dbh->mysql_fetch_row($sth);<br /> }<br /> }<br /> $dbh->finish_sth($sth);<br /> $num_posts = $num_threads + $num_replies;<br />[/]

Top
#241170 - 05/20/03 07:30 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: eslmix]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Josh, <br /> <br /> I run beta4 on my test site. This hack works fine. Your template is a bit whacked from a stock template. Here is where it needs to be. Add everything between the $tbclose and $tbopen <br /> <br /><!-- END CATEGORY LOOP --> <br /><!-- END OF FORUM LOOP --> <br />$tbclose <br /><br /> <br />UBBTPRINT; <br /> require ("/usr/local/blah/blah/blah/templates/default/ubbt_photopost.tmpl"); <br />echo <<<UBBTPRINT <br /><br /> <br />$tbopen <br /> <br />Also did you fill out the photopost.inc.php file with your settings and upload it to your threads directory?
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#241171 - 05/20/03 07:49 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: sf49rminer]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
Okay, but my code doesn't look like that. <img src="/forum/images/graemlins/grin.gif" alt="" /><br /><br />But think I got it right with what I tried before. It still says Query failed though. So I think I have it in the right place in ubbthreads.tmpl, the problem is somewhere else.<br /><br />I'm using this for ReviewPost, BTW. I filled-out and uploaded reviewpost.inc.php to the folder above my root. This is where I keep my config.inc.php file, and the instructions said to put it in the same folder. For good measure, I copied the file to my threads directory as well, but that did not help.

Top
#241172 - 05/20/03 07:51 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: eslmix]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Thats right you took the free Reviewpost.<br /><br />If it says Query failed then it is a MYSQL problem connecting. I would double check the settings.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#241173 - 05/20/03 07:54 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: sf49rminer]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
Roger that.....

Top
#241174 - 05/20/03 08:00 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: eslmix]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
Settings are all correct<br /><br />$rpurl_path...check<br />$rpdata_dir...check<br />$rphost...check<br />$rpuser...check<br />$rppassword...check<br />$rpdatabase...check<br /><br />What file calls reviewpost.inc.php anyway?

Top
#241175 - 05/20/03 08:06 PM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: eslmix]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
The ubbthreads.tmpl calls reviewpost.tmpl and that template calls the reviewpost.inc.php


Attachments
81314-ubbthreads.txt (101 downloads)

_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#241176 - 06/24/03 05:36 AM Re: Integrated PhotoPost & ReviewPost Modules (v4) [Re: eslmix]
jluerken Offline
Member

Registered: 08/27/02
Posts: 233
same for me
_________________________
Ciao jluerken
--------------------
www.uce-clan.de www.clanforums.com

[]http://www.uce-clan.de/images/uce_banner2.gif[/]

Top
Page 1 of 3 1 2 3 >



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks