php forum
php mysql forum
php mysql smarty
 
Page 5 of 5 < 1 2 3 4 5
Topic Options
#268436 - 07/01/04 10:00 AM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: Duck]
Gary_dup1 Offline
User

Registered: 06/25/02
Posts: 38
Yeah... you do... really! It's a total bitch to skin (although nowhere NEAR as difficult as UBBT!) and unless your server is the zenith of recent technological marvels, it's gonna be a bitch to install, and a TOTAL drain on your CPU resources... but it is damn pretty, and my GOD will your visitors love it!
_________________________
The world's best online headshop and cannabis resource: EveryoneDoesIT.com

Top
#268437 - 07/01/04 10:09 AM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: sonolum]
DrChaos Offline
Coder

Registered: 09/12/03
Posts: 816
Loc: Hollywood Florida.
[] but it is damn pretty, and my GOD will your visitors love it! <br /> [/] <br /><br />LMAO!
_________________________
DrChaos
LeetGamers

Top
#268438 - 09/24/04 09:00 AM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: Duck]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 806
Loc: Berlin, Germany
is there a Threads V6.5 version of this hack avaible ? <br /> <br />/edit: I bring it to work. Follow the instructions for pppanel.php but change the include path zo ./includes/ubbt.inc.php <br /> <br />edit ubbt_instant_ubbcode.tmpl as decribed <br /> <br />Then do not edit showflat and showthread but do edit on quickreply.tmpl like this: <br /> <br />##search for: <br />function openGraemlinPanel() { <br /> graemlinWindow=window.open('{$config['phpurl']}/graemlinpanel.php','graemlinpanel','scrollbars=yes,resizable=yes,width=800,height=400'); <br /> if (graemlinWindow.opener == null) graemlinWindow.opener = self; <br />} <br /> <br />## insert under: <br />function openPhotoPanel() { <br /> photoWindow=window.open('{$config['phpurl']}/pppanel.php','pppanel','scrollbars=yes,resizable=yes,width=465,height=500'); <br /> if (photoWindow.opener == null) photoWindow.opener = self; <br />} <br /> <br />## search for: <br /><a href="javascript:void(0)" onclick="openGraemlinPanel()"><table class = "darktable"><tr><td class = "buttons">{$ubbt_lang['MORE_G']}</td></tr></table></a> <br /> <br />## insert under: <br /><a href="javascript:void(0)" onclick="openPhotoPanel()"><table class = "darktable"><tr><td class = "buttons">Use My Photos</td></tr></table></a> <br /> <br />save, finish. it work.


Edited by Zarzal (09/24/04 10:39 AM)
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#268439 - 12/23/04 10:39 PM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: landyphil]
ksanuk Offline
Member

Registered: 02/06/02
Posts: 297
Loc: Bangkok, Thailand
Hi,<br /><br />Okay, read through the entire thread making changes to the code all the way through, but it still isn't working.<br /><br />I get the following error messages:<br />
Code:
<br />SQL ERROR: Database error only visible to forum administrators<br /><br />Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /export/data1/vhosts/board64.nanaplaza.com/httpdocs/mysql.inc.php on line 160<br /><br />Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /export/data1/vhosts/board64.nanaplaza.com/httpdocs/mysql.inc.php on line 133<br />
<br /><br />The SQL call is :<br />
Code:
<br />SELECT id,cat,title,bigimage,medsize FROM photos WHERE userid = 6 ORDER BY date DESC LIMIT 0,16<br />
<br /><br />which seems correct. Had to make some changes to this as well as userid was not '6' but 'p' using the original code.<br /><br />Sanuk!<br /><br />PS Still on 6.4b1

Top
#268440 - 12/30/04 08:09 PM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: Deyth_Combine]
ksanuk Offline
Member

Registered: 02/06/02
Posts: 297
Loc: Bangkok, Thailand
Hi,<br /><br />Just spend another hour or so on this, but cannot get it to work <img src="http://www.ubbdev.com/forum/images/graemlins/frown.gif" alt="" /><br /><br />My code looks like this:<br />
Code:
<br />// configure your database settings<br />$host = "localhost"; // Server Name<br />$user= "***"; // Username<br />$password= "***"; // Password<br />$database="***"; // Photopost database name or forum database name<br /><br />// Connecting, selecting database<br />$link = mysql_connect ("$host", "$user", "$password") or die ('I cannot connect to the database.');<br />mysql_select_db ("$database")or die("Could not select database $database");<br /><br />$query = "SELECT id,cat,title,bigimage,medsize FROM {$pp_prefix}photos WHERE userid = {$UBBTuser} ORDER BY date DESC LIMIT $page,16";<br />$result = mysql_query($query);<br />$sth = $dbh -&gt; do_query($query);<br />$numrows = $dbh -&gt; total_rows($sth);<br /><br />$host = "localhost"; // Server Name<br />$user= "***"; // Username<br />$password= "***"; // Password<br />$database= "***"; // Threads database name or forum database name<br /><br />$link = mysql_connect ("$host", "$user", "$password") or die ('I cannot connect to the database.');<br />mysql_select_db ("$database")or die("Could not select database $database");<br /><br />if ( $numrows &lt; 16 ) $nextpage = 0;<br />
<br /><br />As far as I can tell all the info is correct. Added an 'or die' after '$result = mysql_query($query);' and that statement seemed to execute fine, which to me seems to indicate that the SQL statement is okay.<br /><br />Anybody any solutions or suggestions?<br /><br />Sanuk!

Top
#268441 - 03/10/05 08:56 AM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: sf49rminer]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 806
Loc: Berlin, Germany
Hi Omegatron,<br /><br />with the release of PP5 comes a lot of changes and it seems that this little mod needs an update. I read this in the PP5 announce:<br /><br />If you are running any scripts that pull information from the PhotoPost database, that script probably uses the -thumb and {userid}{filename}.jpg convention - those scripts would have to be modified to just use the {bigimage} filename and not use the userid at all.
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#268442 - 03/15/05 09:58 PM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: landyphil]
donJulio Offline
Code Monkey

Registered: 06/17/02
Posts: 682
Loc: CA, USA
This mod definitely does need updating, by anyone. Adding it to the forum is almost the same as in the instructions, with the only difference in adding it to the quickreply.tmpl file now. Now the problem is the pppanel.php script itself, for us PhotoPost 5.0 users. I myself just noticed that it is now broken <img src="http://www.ubbdev.com/forum/images/graemlins/frown.gif" alt="" />
_________________________
Too many men. There's too many people making too many problems, and not much love to go around. Can't you see this is the Land of Confusion? <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" />

Top
#268443 - 04/28/05 10:32 AM Re: Beta-[6.3-6.4] My Photos 1.0 [Re: luan]
Gary_dup1 Offline
User

Registered: 06/25/02
Posts: 38
I've just changed server, and now my threads and pp databases use different authentication information... <br /><br />I've looked all through this thread, and EVERYONE seems to be using the same username and password details... can someone give me the syntax if I want to use different details for each database?<br /><br />Cheers.
_________________________
The world's best online headshop and cannabis resource: EveryoneDoesIT.com

Top
Page 5 of 5 < 1 2 3 4 5


Moderator:  Ian_W 
Who's Online
0 registered (), 24 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Today at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
Yesterday at 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks