|
Joined: Jun 2006
Posts: 464 Likes: 1
Addict
|
Addict
Joined: Jun 2006
Posts: 464 Likes: 1 |
I know there was a question or 2 around this. I just upgraded and nothing is broken Everything still works like a champ.. just an FYI
Happy Customer !!!
|
|
|
|
Joined: Dec 2003
Posts: 1,796
Pooh-Bah
|
Pooh-Bah
Joined: Dec 2003
Posts: 1,796 |
grazie mors
|
|
|
|
Joined: Jun 2006
Posts: 956
Old Hand
|
Old Hand
Joined: Jun 2006
Posts: 956 |
Mors, do you use the integration or just the random display box? The integration of PP in Threads from https://www.ubbdev.com/forums/ubbthreads.php/topics/311899/PhotoPost_BB_Code_Popup.html#Post311899needs 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?
|
|
|
|
Joined: Jun 2006
Posts: 464 Likes: 1
Addict
|
Addict
Joined: Jun 2006
Posts: 464 Likes: 1 |
I didn't change anything zarzal .. the random script still works and the programs still work .. hmm
Happy Customer !!!
|
|
|
|
Joined: Jun 2006
Posts: 956
Old Hand
|
Old Hand
Joined: Jun 2006
Posts: 956 |
I dont mean the random display box. Please follow the link. Do you apply this modification to your board?
|
|
|
|
Joined: Jun 2006
Posts: 464 Likes: 1
Addict
|
Addict
Joined: Jun 2006
Posts: 464 Likes: 1 |
ya sorry bro. I didn't apply that mod.. just the random display box and a vanilla photopost install
Happy Customer !!!
|
|
|
|
Joined: Jun 2006
Posts: 464 Likes: 1
Addict
|
Addict
Joined: Jun 2006
Posts: 464 Likes: 1 |
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
Happy Customer !!!
|
|
|
|
Joined: Jun 2006
Posts: 956
Old Hand
|
Old Hand
Joined: Jun 2006
Posts: 956 |
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=135452Please visit it and give more information there.
Last edited by Zarzal; 02/17/2008 6:18 AM.
|
|
|
|
Joined: Jun 2006
Posts: 464 Likes: 1
Addict
|
Addict
Joined: Jun 2006
Posts: 464 Likes: 1 |
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 !!!
|
|
|
|
Joined: Jun 2006
Posts: 956
Old Hand
|
Old Hand
Joined: Jun 2006
Posts: 956 |
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?
|
|
|
|
Joined: Jun 2006
Posts: 464 Likes: 1
Addict
|
Addict
Joined: Jun 2006
Posts: 464 Likes: 1 |
haha I am having issues with the permissions now in PP. I never had any issues with the random image box. Originally I thought I wasn't having any issues at all until I checked it by logging into the system as a non admin user. Only admin users can post, update or have access to categories. I agree it's a PP issue now to stay complaint with UBB.
Happy Customer !!!
|
|
|
|
Joined: Jun 2006
Posts: 956
Old Hand
|
Old Hand
Joined: Jun 2006
Posts: 956 |
|
|
|
|
Joined: Aug 2006
Posts: 26
newbie
|
newbie
Joined: Aug 2006
Posts: 26 |
|
|
|
|
Joined: Jun 2006
Posts: 956
Old Hand
|
Old Hand
Joined: Jun 2006
Posts: 956 |
The group resync only works if you dont have 'spare' groups in ubb.Threads. These comes from deleting groups and after resync in PP you have empty groups in the list. I will see what happen if I switch to 7.3 Maybe Chuck will correct it. Lets wait and see.
|
|
|
|
Joined: Aug 2006
Posts: 583
old hand
|
old hand
Joined: Aug 2006
Posts: 583 |
The group resync only works if you dont have 'spare' groups in ubb.Threads. These comes from deleting groups and after resync in PP you have empty groups in the list. I will see what happen if I switch to 7.3 Maybe Chuck will correct it. Lets wait and see. By "Spare Groups" you mean like if your Threads has other groups that ou have created, then the re sync wont work? So if I delete all the "Spare" groups the re-sync should work? And then once I resync can I then add the other groups back to Threads? Basil
|
|
|
|
Joined: Jun 2006
Posts: 956
Old Hand
|
Old Hand
Joined: Jun 2006
Posts: 956 |
If you delete groups in threads they will not removed from the table. They still exists as empty and disabled groups in the table. In threads you dont see them anymore. But if you go to PP and say import/resyc groups from host all groups including the empty ones will pulled. Its an little issue from PP and Chuck say he will look into it next weeks.
I let them in my PP but revoked any rights. Under PP 5.61 and Threads 7.2.2 this worked for me.
I'm not sure what happen if you try it under 7.3.b4 Backup your PP tables first so you can go back if you run in trouble.
|
|
|
|
Joined: Jun 2006
Posts: 464 Likes: 1
Addict
|
Addict
Joined: Jun 2006
Posts: 464 Likes: 1 |
Thanks bro.. looking forward to this fix
Happy Customer !!!
|
|
|
|
Joined: Jun 2006
Posts: 869
old hand
|
old hand
Joined: Jun 2006
Posts: 869 |
Is there anyone willing to take some of my hard earned money to install my licensed copy of photopost on my 1and1.com VPS?
|
|
|
|
Joined: Dec 2003
Posts: 1,796
Pooh-Bah
|
Pooh-Bah
Joined: Dec 2003
Posts: 1,796 |
I can do it Stan, pm me details if you like
|
|
|
|
Joined: Jun 2006
Posts: 869
old hand
|
old hand
Joined: Jun 2006
Posts: 869 |
ok have done so.....
|
|
|
|
Joined: Jun 2006
Posts: 16,373 Likes: 129
|
Joined: Jun 2006
Posts: 16,373 Likes: 129 |
It's true, the early bird (allen) does catch the worm (stan)! lol...
Wow, people still use 1and1? They used to grossly oversell (I have 3 free accounts from a special they had and I don't even use them it was that bad last i checked).
|
|
|
|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
And probably no better now, after seeing the reviews while researching a new host...
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Dec 2003
Posts: 1,796
Pooh-Bah
|
Pooh-Bah
Joined: Dec 2003
Posts: 1,796 |
It's actually pretty zippy, much better than webintellects has been recently...
|
|
|
|
Joined: Jun 2006
Posts: 869
old hand
|
old hand
Joined: Jun 2006
Posts: 869 |
Does anyone have the code to show random photopost picts on the Threads sidebar?
|
|
|
1 members (Morgan),
69
guests, and
100
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|