Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Affiliate Program
UBBDev.com
UBBSkins.com
Who's Online
3 registered (Harold, Bad Frog, 1 invisible), 32 Guests and 48 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/05/06
Posts: 494
Top Posters (30 Days)
Sirdude 134
Gizmo 82
Rick 80
lightningrod 80
Ruben 55
Bad Frog 33
Wisc.Tiger 32
David Dreezer 28
JAISP 24
Chosen 21
Latest Photos
Tower Speakers, everyone needs them!
Going old style
the Frog
My Tractor Design and Build Project
Tombstone AZ
Page 1 of 3 1 2 3 >
Topic Options
Rate This Topic
#206390 - 02/14/08 05: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
#206394 - 02/14/08 07:36 PM Re: PhotoPost did not break in this beta [Re: Mors]
AllenAyres Offline
Registered: 12/29/03
Posts: 1901
Loc: Texas ****
grazie mors smile
_________________________
- Allen
- ThreadsDev | PraiseCafe
Top
#206467 - 02/15/08 12:13 PM Re: PhotoPost did not break in this beta [Re: AllenAyres]
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1137
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 01: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 01:39 PM Re: PhotoPost did not break in this beta [Re: Mors]
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1137
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 01: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 01: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 02:50 AM Re: PhotoPost did not break in this beta [Re: Mors]
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1137
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 03: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 10:45 AM 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 11:07 AM Re: PhotoPost did not break in this beta [Re: Mors]
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1137
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, Gizmo, Harold, Ian, Ron M, Sirdude 
Shout Box

Facebook Page
Today's Birthdays
No Birthdays
Recent Topics
Automatic PM to new users
by TxConx
Today at 12:19 PM
Domain names and facebook
by Rimex
Today at 09:26 AM
Scial characters
by Robje01
Today at 07:55 AM
Domo different then download? Need Help
by Hook them Lipps
Yesterday at 05:19 PM
User getting logged off......
by wish
Yesterday at 10:22 AM
Forum Stats
6745 Members
35 Forums
32460 Topics
170125 Posts

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