Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2006
Posts: 464
Likes: 1
M
Addict
Addict
M Offline
Joined: Jun 2006
Posts: 464
Likes: 1
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 !!!
Joined: Dec 2003
Posts: 1,796
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,796
grazie mors smile


- Allen
- ThreadsDev | PraiseCafe
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#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.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Jun 2006
Posts: 464
Likes: 1
M
Addict
Addict
M Offline
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?


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Jun 2006
Posts: 464
Likes: 1
M
Addict
Addict
M Offline
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
M
Addict
Addict
M Offline
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 laugh


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=135452
Please visit it and give more information there.

Last edited by Zarzal; 02/17/2008 7:18 AM.

my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Jun 2006
Posts: 464
Likes: 1
M
Addict
Addict
M Offline
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?


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Jun 2006
Posts: 464
Likes: 1
M
Addict
Addict
M Offline
Joined: Jun 2006
Posts: 464
Likes: 1
haha laugh

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


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Aug 2006
Posts: 26
newbie
newbie
Joined: Aug 2006
Posts: 26


Gruss Micky

Sorry for my bad English whistle

Golf Diesel Forum
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.


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Aug 2006
Posts: 583
old hand
old hand
Joined: Aug 2006
Posts: 583
Originally Posted by Zarzal
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.


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Jun 2006
Posts: 464
Likes: 1
M
Addict
Addict
M Offline
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?


http://clubadventist.com/forums

No longer following the carrot
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 smile


- Allen
- ThreadsDev | PraiseCafe
Joined: Jun 2006
Posts: 869
old hand
old hand
Joined: Jun 2006
Posts: 869
ok have done so..... smile


http://clubadventist.com/forums

No longer following the carrot
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
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).


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
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... wink


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...


- Allen
- ThreadsDev | PraiseCafe
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?


http://clubadventist.com/forums

No longer following the carrot
Joined: Jun 2006
Posts: 956
Old Hand
Old Hand
Joined: Jun 2006
Posts: 956
in this thread you can find a ald version from myself and the better version from Allen. Use Allens version, works well.

https://www.ubbdev.com/forums/ubbthreads.php/topics/315789/1.html


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
3 members (rootman, Gizmo, Nightcrawler), 562 guests, and 186 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)