php forum
php mysql forum
php mysql smarty
 
Page 3 of 3 < 1 2 3
Topic Options
#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 3 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