Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
3 registered (id242, SteveS, Mike L), 24 Guests and 16 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/21/10
Posts: 58
Top Posters (30 Days)
Ruben 61
SD 53
Gizmo 48
gliderdad 33
Dunny 21
driv 18
dbremer 16
Mark S 13
Stan 13
Iann128 11
Latest Photos
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Gizzo Marx
Page 1 of 3 1 2 3 >
Topic Options
#206390 - 02/14/08 08:00 PM PhotoPost did not break in this beta
Mors Offline
addict
Registered: 06/26/06
Posts: 471
Loc: So. California
I know there was a question or 2 around this. I just upgraded and nothing is broken laugh Everything still works like a champ..

just an FYI
_________________________
Happy Customer !!!
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#206394 - 02/14/08 10:36 PM Re: PhotoPost did not break in this beta [Re: Mors]
AllenAyres Offline

Registered: 12/29/03
Posts: 1982
Loc: Texas
grazie mors smile
_________________________
- Allen
- ThreadsDev | PraiseCafe
Top
#206467 - 02/15/08 03:13 PM Re: PhotoPost did not break in this beta [Re: AllenAyres]
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1142
Loc: Berlin, Germany
Mors, do you use the integration or just the random display box? The integration of PP in Threads from http://www.ubbdev.com/forums/ubbthreads.php/topics/311899/PhotoPost_BB_Code_Popup.html#Post311899
needs modification. I take a look to /ubb_js/standard_text_editor.js and /templates/standard_text_editor.tpl

Both files have some modification in java script so I m not sure how to modify the files the correct way. Anyone do it?
_________________________
my board: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Top
#206478 - 02/15/08 04:28 PM Re: PhotoPost did not break in this beta [Re: Zarzal]
Mors Offline
addict
Registered: 06/26/06
Posts: 471
Loc: So. California
I didn't change anything zarzal .. the random script still works and the programs still work .. hmm
_________________________
Happy Customer !!!
Top
#206481 - 02/15/08 04:39 PM Re: PhotoPost did not break in this beta [Re: Mors]
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1142
Loc: Berlin, Germany
I dont mean the random display box. Please follow the link. Do you apply this modification to your board?
_________________________
my board: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Top
#206482 - 02/15/08 04:43 PM Re: PhotoPost did not break in this beta [Re: Zarzal]
Mors Offline
addict
Registered: 06/26/06
Posts: 471
Loc: So. California
ya sorry bro. I didn't apply that mod.. just the random display box and a vanilla photopost install
_________________________
Happy Customer !!!
Top
#206547 - 02/16/08 04:48 PM Re: PhotoPost did not break in this beta [Re: Mors]
Mors Offline
addict
Registered: 06/26/06
Posts: 471
Loc: So. California
I take it back.. it seems that some of the security settings are jacked now.. non admin's can't post or basically have any access.. hmmm laugh
_________________________
Happy Customer !!!
Top
#206574 - 02/17/08 05:50 AM Re: PhotoPost did not break in this beta [Re: Mors]
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1142
Loc: Berlin, Germany
Which version of random display do you use? My old version or the new one from Allen?

But ... I think ... it doesn't matter. The problem is the PP UBB.threads integration itself. So we have to switch over to PP support and hope they have a solution. Maybe they are modification necessary to /forums/threads7.php

I open a thread in the PP support forum:
http://www.photopost.com/forum/showthread.php?t=135452
Please visit it and give more information there.


Edited by Zarzal (02/17/08 06:18 AM)
_________________________
my board: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Top
#206597 - 02/17/08 01:45 PM Re: PhotoPost did not break in this beta [Re: Zarzal]
Mors Offline
addict
Registered: 06/26/06
Posts: 471
Loc: So. California
Yes your old version works very well and didn't break.



// Set it up to your path settings !
require_once("D:/webroot/YOURSITE/photopost/inc_photopost.php");

// Set this to your PhotoPost db prefix
$pp_db_prefix = "pp_";

function pp_get_ext( $filename ) {
return substr($filename, strrpos($filename,"."));
}

function pp_is_image( $filename ) {
$retval = 0;

$mediatypes = array( ".jpg", ".gif", ".png", ".bmp" );
$ext = pp_get_ext( $filename );

if ( in_array(strtolower($ext), $mediatypes) )
$retval = 1;

return( $retval );
}

//
// Featured Photos Code
// Follow down to End Feature Photos Code
//

// which type of images do you want to show
$q_switch = "random";

switch ($q_switch) {
case "most_view":
$query = "SELECT p.id,p.user,p.userid,p.cat,p.title,p.bigimage,p.views
FROM {$pp_db_prefix}photos p
LEFT JOIN {$pp_db_prefix}categories c ON c.id=p.cat
WHERE c.password = ''
ORDER BY c.views DESC";
break;
case "lastest":
$query = "SELECT p.id,p.user,p.userid,p.cat,p.title,p.bigimage,p.views
FROM {$pp_db_prefix}photos p
LEFT JOIN {$pp_db_prefix}categories c ON c.id=p.cat
WHERE c.password = ''
ORDER BY date DESC";
break;
case "random":
$query = "SELECT p.id,p.user,p.userid,p.cat,p.title,p.bigimage,p.views
FROM {$pp_db_prefix}photos p
LEFT JOIN {$pp_db_prefix}categories c ON c.id=p.cat
WHERE c.password = ''
ORDER BY RAND()";
break;
}
$result = mysql_query($query);

$counted = 0; $featured = "";

while ( list($pid, $puser, $puserid, $pcat, $ptitle, $photo, $pviews) = mysql_fetch_array($result)) {
if ( pp_is_image($photo) ) {
$photolen = strlen($photo);
$theext = pp_get_ext($photo);
$photo_name = str_replace( $theext, "", $photo );

$temp_user = $line['userid'];
$thumbtag = "{$full_path}{$pcat}/thumbs/{$photo}";
$mthumb = "<img border=\"0\" src=\"{$data_dir}/{$pcat}/thumbs/{$photo}\" alt=\"$thumbtag\" />";

// One box for each feature
$featured .= <<<PPPRINT

<tr align="center"><td align="center" class="alt-1">
<a href="{$url_path}/showphoto.php?photo={$pid}">$mthumb</a>
<br />by {$puser}
</td></tr>

PPPRINT;

$counted++;
}

if ( $counted == 5 ) break;
}
mysql_free_result($result);

// change the dbname to your ubb7 database name
mysql_select_db ("YOURDB")or die("Could not select database");

$body = <<<PPPRINT

$featured

PPPRINT;
?>
_________________________
Happy Customer !!!
Top
#206599 - 02/17/08 02:07 PM Re: PhotoPost did not break in this beta [Re: Mors]
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1142
Loc: Berlin, Germany
Moers, what is your problem exactly? The random box seems to work for you but you write about problems with uploading and accessing.

This relates to the PP threads integration itself and not the random display box. I'm right?
_________________________
my board: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Top
Page 1 of 3 1 2 3 >



Moderator:  AllenAyres, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Edit Post
by Bert
01:19 PM
A positive note
by SteveS
09:36 PM
How to locate links to particular site if they are only used in images?
by Conrad
02/10/12 09:41 PM
Pictures not displaying
by Marker23
02/09/12 10:04 PM
Issue with logging out constantly
by Flanuva
02/09/12 07:05 PM
Forum Stats
10213 Members
36 Forums
33667 Topics
180917 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image