Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Affiliate Program
Hosting Plans
UBBDev.com
UBBSkins.com
Who's Online
0 registered (), 41 Guests and 64 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 01/02/10
Posts: 70
Top Posters (30 Days)
Rick 117
Ruben 99
Sirdude 77
Gizmo 63
Iann128 32
driv 22
GregK 20
teamzr1 20
Chevy454 19
David Dreezer 17
Latest Photos
rss creator
surfing dogs
Secret Falls, Belize
testing gallery
Ultima Online
Page 1 of 3 1 2 3 >
Topic Options
Rate This Topic
#206390 - 02/14/08 07: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
Host With Us!
#206394 - 02/14/08 09:36 PM Re: PhotoPost did not break in this beta [Re: Mors]
AllenAyres Offline

Registered: 12/29/03
Posts: 1934
Loc: Texas ****
grazie mors smile
_________________________
- Allen
- ThreadsDev | PraiseCafe
Top
#206467 - 02/15/08 02:13 PM Re: PhotoPost did not break in this beta [Re: AllenAyres]
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1140
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 03: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 03:39 PM Re: PhotoPost did not break in this beta [Re: Mors]
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1140
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 03: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 03: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 04:50 AM Re: PhotoPost did not break in this beta [Re: Mors]
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1140
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 05: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 12: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 01:07 PM Re: PhotoPost did not break in this beta [Re: Mors]
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1140
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
Upgrade issues in version 7.5.6 (from 7.2.2)
by lcantey
Yesterday at 08:36 PM
deleting your own thread/subject
by VaGunTrader
Yesterday at 05:58 PM
changing the time.
by VaGunTrader
Yesterday at 05:27 PM
question
by Allen2010
Yesterday at 10:03 AM
Search for countries of users?
by tee
09/01/10 04:56 PM
Forum Stats
7909 Members
37 Forums
32927 Topics
173682 Posts

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