 |
 |
 |
 |
#268438 - 09/24/04 09:00 AM
Re: Beta-[6.3-6.4] My Photos 1.0
[Re: Duck]
|
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)
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#268440 - 12/30/04 08:09 PM
Re: Beta-[6.3-6.4] My Photos 1.0
[Re: Deyth_Combine]
|
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 /> <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 -> do_query($query);<br />$numrows = $dbh -> 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 < 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
|
|
|
|
 |
 |
 |
 |
|
|