Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBSkins.com
Who's Online
1 registered (Flyin V), 13 Guests and 37 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/04/06
Posts: 12825
Top Posters (30 Days)
Ruben 116
Rick 44
Gizmo 41
JAISP 19
24hourcampfire 18
pinkmelon 16
Daryl Fawcett 14
Ian 14
FordDoctor 13
bakerzdosen 12
Latest Photos
Gizmo goes Locks of Love...
Sleepy eyes
Hang Time
Our get away hobby
This is a test
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: 460
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: 1847
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: 1128
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: 460
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: 1128
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: 460
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: 460
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: 1128
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: 460
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: 1128
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, usrbingeek 
Shout Box

Today's Birthdays
wmearn
Recent Topics
Gallery Permissions
by Willzter
07/01/09 08:50 PM
SERIOUS EMERGENCY. NEED A QUICK ANSWER STAT
by 24hourcampfire
07/01/09 02:18 PM
What do I have to do to have a forum where only users with 200 plus post can post?
by pinkmelon
07/01/09 02:06 PM
New host, but I don't know full path
by SAPA IT Guy
07/01/09 12:54 PM
Problems on a new Host
by rich_ay
07/01/09 12:07 PM
Forum Stats
4443 Members
33 Forums
31485 Topics
162438 Posts

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