ThreadsDev FusionBB Greeting Cards FusionBBDev.com Measurection.com VertexHost NASCAR Racing MouseFunFacts.com Myrtle Beach Info UBB.Threads Modifications threadsdev.net
FusionBB

Trans-D Tropin
Use Coupon Code '1004' to Save $20 Off Your Initial Order of Trans-D Tropin®
V6 Threads Development >> Modifications

Pages: 1
Omegatron
Pooh-Bah
****

Reged: 03/07/02
Posts: 3173
Loc: Abingdon,Maryland
Finished-[6.5] MyPhotos v2.0
      #126475 - 03/21/05 03:05 PM Attachment (40 downloads)

Mod Name / Version: MyPhotos v2.0

Description: This modification will place a box and link along with the rest of the ubbt_instantcode where a user's photos from photopost will be listed when clicked and they can be inserted into the post with the ubbcode image tag formatted.

Working Under: UBB.Threads 6.5

Mod Status: Finished

Any pre-requisites: Photopost 5.0 and UBBThreads 6.5

Author(s): Photopost

Date: 03/21/05

Credits: MyPhotos updated for Photopost 5 by Omegatron

Files Altered: ubbt_instant_ubbcode.tmpl,showflat.tmpl and showthreaded.tmpl


New Files: pppanel.php

Database Altered: Nope

Info/Instructions: Mod assumes PhotoPost and Threads are installed into same database. If you have them in seperate databases, you will need to use a mysql_select_db() to switch to PP and then back to threads in the pppanel.php file.


Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Zarzal
Enthusiast
*****

Reged: 03/30/03
Posts: 437
Loc: Berlin, Germany
Re: Finished-[6.5] MyPhotos v2.0 [Re: Omegatron]
      #126497 - 03/22/05 03:50 AM

litte bugfix.

search for:
$mthumb = "<img border=\"0\" src=\"{$data_dir}/{$ppcat}/{$user['U_Number']}{$photo_name}-thumb{$theext}\" alt=\"\" />";

replace with:
$mthumb = "<img border=\"0\" src=\"{$data_dir}/{$ppcat}/thumbs/{$photo}\" alt=\"\" />";


Post Extras: Print Post   Remind Me!   Notify Moderator  
JayDee
Journeyman


Reged: 12/03/03
Posts: 129
Loc: Canada
Re: Finished-[6.5] MyPhotos v2.0 [Re: Omegatron]
      #126501 - 03/22/05 08:49 AM

Quote:

Omegatron said:
Info/Instructions: Mod assumes PhotoPost and Threads are installed into same database. If you have them in seperate databases, you will need to use a mysql_select_db() to switch to PP and then back to threads in the pppanel.php file.




Hi Omegatron,

I have Threads and Photopost using their own separate databases (database names, ie: fa_threads & fa_photopost), and both programs are installed in different folders on the server (ie: www.flightattendants.org/ubbthreads/ ... and ... www.flightattendants.org/photopost/ ...

I've installed the mod, but don't understand where to make the appropriate changes in pppanel.php. When I click on "Insert My Photos Into Post" I get the could not select database error message.

This is how I've currently got it set up in pppanel.php:

//Connecting, selecting database
$link = mysql_connect ("$host", "$user", "$password") or die ('I cannot connect to the database.');
mysql_select_db ("mysql_connect")or die("Could not select database. This feature has not yet been enabled. Please try again later.");


require ("/includes/main.inc.php");


$pp_prefix="";

$data_dir = "http://www.flightattendants.org/photopost/data/" ;


....and at the bottom I uncommented the mysql line as instructed.

Thanks for any advice you can offer!

Jason

--------------------
"Always remember you're unique ...just like everybody else."


Post Extras: Print Post   Remind Me!   Notify Moderator  
Zarzal
Enthusiast
*****

Reged: 03/30/03
Posts: 437
Loc: Berlin, Germany
Re: Finished-[6.5] MyPhotos v2.0 [Re: JayDee]
      #126502 - 03/22/05 09:02 AM

I'm not Omegatron but I try to help You have to edit the pppanel.php. On top you find:

// configure your database settings
$host = "ip or dnsname of host for pp"; // Server Name
$user= "username for pp db"; // Username
$password= "password for pp db"; // Password
$database="databasename of pp db"; // Photopost database name or forum database name

// Connecting, selecting database
$link = mysql_connect ("$host", "$user", "$password") or die ("I cannot connect to the database.");
//mysql_select_db ("$database")or die("Could not select database");

require ("./includes/main.inc.php");

$pp_prefix="pp_";
$data_dir = "http://insert your url here/photopost/data" ; //URL of your photo dir where those jpeg stored (with n

### search for:
else {
$nextpage = $page + 1;
if ( $page > 1 ) $prevpage = $page - 1;
else $prevpage = 0;

$page = ($page*16);
}

### insert under it:
mysql_select_db ("name of your PP DB here")or die("Could not select database");

### now, search for the following:
$i=0;
$color = "lighttable";
$photorow="";
$photopanel="";


### under it insert:

mysql_select_db ("name of your THREADS db here")or die("Could not select database");

on bottom of the file you have:
//mysql_select_db ("UBBTHREADSDATABASE")or die("Could not select database");

leave it with // or delete the line.

It should work now.


Post Extras: Print Post   Remind Me!   Notify Moderator  
JayDee
Journeyman


Reged: 12/03/03
Posts: 129
Loc: Canada
Re: Finished-[6.5] MyPhotos v2.0 [Re: Zarzal]
      #126503 - 03/22/05 09:49 AM

Quote:

Zarzal said:
I'm not Omegatron but I try to help You have to edit the pppanel.php. On top you find:

// configure your database settings
$host = "ip or dnsname of host for pp"; // Server Name
$user= "username for pp db"; // Username
$password= "password for pp db"; // Password
$database="databasename of pp db"; // Photopost database name or forum database name




Thanks for your input, Zarzal. Unfortunately I still wasn't able to get it working.

// configure your database settings
$host = "here I inserted localhost"; // Server Name
$user= "here I inserted my PP_db username"; // Username
$password= "I inserted my PP db password"; // Password
$database="I inserted my PP_database name"; // Photopost database name or forum database name

Under:

$i=0;
$color = "lighttable";
$photorow="";
$photopanel="";

...I added:

mysql_select_db ("I added my threads_database name here")or die("Could not select database");

...and commented out on the last lines:
//mysql_select_db ("UBBTHREADSDATABASE")or die("Could not select database");

I still get the could not select database error message.

Am I missing something else?

Sorry for not getting it, but thanks for your help!

Jason


Post Extras: Print Post   Remind Me!   Notify Moderator  
Zarzal
Enthusiast
*****

Reged: 03/30/03
Posts: 437
Loc: Berlin, Germany
Re: Finished-[6.5] MyPhotos v2.0 [Re: JayDee]
      #126504 - 03/22/05 09:56 AM

have you done this too:

### search for:
else {
$nextpage = $page + 1;
if ( $page > 1 ) $prevpage = $page - 1;
else $prevpage = 0;

$page = ($page*16);
}

### insert under it:
mysql_select_db ("name of your PP DB here")or die("Could not select database");


Post Extras: Print Post   Remind Me!   Notify Moderator  
JayDee
Journeyman


Reged: 12/03/03
Posts: 129
Loc: Canada
Re: Finished-[6.5] MyPhotos v2.0 [Re: Zarzal]
      #126505 - 03/22/05 10:03 AM

Nope, I hadn't... thanks for pointing that out!

Unfortunately I still get the same error message:

"Could not select database. This feature has not yet been enabled. Please try again later."

I customised the message in:

//Connecting, selecting database
$link = mysql_connect ("$host", "$user", "$password") or die ('I cannot connect to the database.');
mysql_select_db ("mysql_connect")or die("Could not select database. This feature has not yet been enabled. Please try again later.");

require ("./includes/main.inc.php");

...so it would appear it's not making it past:

// configure your database settings
$host = "LOCALHOST"// Server Name (in lowercase)
$user= "PHOTOPOST DATABASE USERNAME"; // Username
$password= "PHOTOPOST DATABASE PASSWORD"; // Password
$database="PHOTOPOST DATABASE NAME"; // Photopost database name or forum database name

...also, in:

$database="PHOTOPOST DATABASE NAME"; // Photopost database name or forum database name

...I tried inserting my THREADS DATABASE NAME, but that didn't work either. My password for both threads and photopost databases are the same, so it can't be that either.

Any ideas, Zarzal? Thanks!

Jason

--------------------
"Always remember you're unique ...just like everybody else."


Post Extras: Print Post   Remind Me!   Notify Moderator  
Zarzal
Enthusiast
*****

Reged: 03/30/03
Posts: 437
Loc: Berlin, Germany
Re: Finished-[6.5] MyPhotos v2.0 [Re: JayDee]
      #126514 - 03/22/05 01:27 PM Attachment (12 downloads)

Quote:

//Connecting, selecting database
$link = mysql_connect ("$host", "$user", "$password") or die ('I cannot connect to the database.');
mysql_select_db ("mysql_connect")or die("Could not select database. This feature has not yet been enabled. Please try again later.");





Thats wrong mysql_select_db ("mysql_connect"....

I append my script here, just modify it for your settings. I have done some little modifications.


Post Extras: Print Post   Remind Me!   Notify Moderator  
JayDee
Journeyman


Reged: 12/03/03
Posts: 129
Loc: Canada
Re: Finished-[6.5] MyPhotos v2.0 [Re: Zarzal]
      #126527 - 03/22/05 08:32 PM

Sorry, I don't follow what you mean. What am I supposed to change?

Thanks,

Jason

--------------------
"Always remember you're unique ...just like everybody else."


Post Extras: Print Post   Remind Me!   Notify Moderator  
JayDee
Journeyman


Reged: 12/03/03
Posts: 129
Loc: Canada
Re: Finished-[6.5] MyPhotos v2.0 [Re: JayDee]
      #126531 - 03/23/05 05:29 AM

Sorry, I hadn't noticed you had a download in your post.

Okay, it's making it further, but now the script won't go past line 89 - cause I don't know what to put in there.

mysql_select_db ($database)or die("Could not select database"); // switch to PP DB

Do I manually enter my PP database name on this line? I thought $database would pull it from the $database value I entered at the top of the script. No?

Also, if you are not using a database prefix (i.e. pp_), do you enter "0" or just leave it blank between the ""'s?

Sorry to be such a pain & thanks very much for your help,

Jason

--------------------
"Always remember you're unique ...just like everybody else."


Post Extras: Print Post   Remind Me!   Notify Moderator  
Zarzal
Enthusiast
*****

Reged: 03/30/03
Posts: 437
Loc: Berlin, Germany
Re: Finished-[6.5] MyPhotos v2.0 [Re: JayDee]
      #126533 - 03/23/05 12:57 PM

Quote:

mysql_select_db ($database)or die("Could not select database"); // switch to PP DB

Do I manually enter my PP database name on this line? I thought $database would pull it from the $database value I entered at the top of the script. No?




this should pull the dbname that you entered on top in the script. You can try to enter here your dbname in (" ")

Quote:

Also, if you are not using a database prefix (i.e. pp_), do you enter "0" or just leave it blank between the ""'s?




Sorry, I dont know this. you have to try it. I guess its "" if you are using no prefix.


Post Extras: Print Post   Remind Me!   Notify Moderator  
JayDee
Journeyman


Reged: 12/03/03
Posts: 129
Loc: Canada
Re: Finished-[6.5] MyPhotos v2.0 [Re: Zarzal]
      #126599 - 03/25/05 10:20 AM

Zaral,

hmmm I did try your suggestion but again met a brick wall. Oh well, it was a good thought to try and get it working. It's not for lack of trying that I can't get this mod to work. Thanks again very much, you've been very helpful.

Jason

--------------------
"Always remember you're unique ...just like everybody else."


Post Extras: Print Post   Remind Me!   Notify Moderator  
fishtails
Enthusiast
*****

Reged: 06/19/02
Posts: 308
Loc: Fernandina Beach, FL
Re: Finished-[6.5] MyPhotos v2.0 [Re: Zarzal]
      #129205 - 09/08/05 08:56 AM

I upgraded my photopost to 5.14 from 4.8 the other day. Noticed that the myphotos needed correcting. Little did I realize until investigating some complaints about broken photos that when I upgraded to 5.14, all my images which were -med.jpg or -thumb.jpg disappeared and were moved/renamed into a mediums and thumbs directory. Ok, that's good, but now I have broken images all over the place in my forums from because now there is no -med or-thumb! I looked up one of the posts in phpmysql and removed the -med from the image url. That fixed the problem for one post. Problem is, there's over 10,000 posts ! I was wondering if anyone could help me construct a query to update my image links. I've already purchased fusionbb and was getting ready to import my data and hook up photopost, but now I'm delayed due to this huge problem. This looks like a complicated query and I'm not sure of where to start.

Thanks for any help.

--------------------
Fish or Cut Bait! http://www.fish-tails.net



Air traffic control? It has its ups and downs. http://www.natcazjx.org


Post Extras: Print Post   Remind Me!   Notify Moderator  
fishtails
Enthusiast
*****

Reged: 06/19/02
Posts: 308
Loc: Fernandina Beach, FL
Re: Finished-[6.5] MyPhotos v2.0 [Re: fishtails]
      #129207 - 09/08/05 11:11 AM

Never mind. I downloaded a dump and used a text editor to search and replace, then re-uploaded it. Thanks anyway.

One thing to note on the config though: where you have the instructions:

Code:
 $data_dir = "http://www.domain.com/photopost/data/" ; //URL of your photo dir where those jpeg stored (with / at end) 



if you add a trailing slash then the url ends up looking like this with two slashes between data and the dir.

Code:
 http://www.fish-tails.net/photopost/data//500/medium/2IMG_0012.JPG 



O left out the trailing slash and the url is correct now.

Thanks again.

--------------------
Fish or Cut Bait! http://www.fish-tails.net



Air traffic control? It has its ups and downs. http://www.natcazjx.org


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 24 anonymous users are browsing this forum.

Moderator:  JoshPet, Gardener, Ian_W, Anno 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 4464

Rate this topic

Jump to
 
Hot Topic
No posts have caught fire as of yet.

Developers for Hire
Are you looking for custom modifications? Upgrades? Installs?
We have developers who can help!
View Our Services Page for information.

Login
Enter your username and password to login. If you do not have a username you can register one HERE.
username:
password:

Send Password
Remember Me

Online
113 guests have been online with in the last 90 minutes.

ThreadsDev.com
Trans-D Tropin

Current Threads
No current threads found...

Modifications
Recently Added:
· View Private Messages v0.9.3
· Stop Guests from seeing "Who's Online." [6.5.5]
· User List Display Limited by Post Count 1.0
· Paginate PMs 1.0
· Today and Yesterday

Most Downloaded:
· Inline Images 3.1
· Quote Username 1.0
· Games Arcade Deluxe v1.8
· UbbThreads and Photopost Total Integration Version 4
· Tool Tip Body Preview 3.0

Highest Rated:
· Mass Threads Move for 6.3
· Update Last Posts 1.0
· Update B_Parent User 1.0
· Integrated Index Page (IIP) 5.3.1
· IIP SideBarPal 1.1

Recent Stylesheets:
· Mix-Colors_2-0_3D for UBBT v6.3 - 6.5
· Mix-Colors_2-0 for UBBT v6.3 - 6.5
· Dark-Grey_3-0 for UBBT v6.3 - 6.5
· Green-Orange_1-0 for UBBT v6.3 - 6.5
· ebay_1-0 for UBBT v6.3 - 6.5

Recent Template Mods:
· Postlist modification - line separates new topics and replies
· I need some help with my postlist.tmpl file
· Edit, reply, and quote buttons mod for Facelift 6.5
· Google Add Sense add on for Threads 6.5
· Article templates for Thread 6.5

Shout Box

Short Stats
New Members:
4 Last 24 hours
20 Last 7 days
107 Last 31 days

Boards:
11676 Total topics
73324 Total replies

Totals:
5728 Members
85000 Posts

Max Online:
814 Total
(06/01/06 09:46 AM)


Web Hosting Provided by
VertexHost Web Hosting

Content ©2003-2006 ThreadsDev.NET
Powered By UBB.threads™ 6.5.5

 .: IIP 5.5 by David Lozier ©2003 :. 
Distributed by ThreadsDev.net

Visit Our Sister Sites!
JoshuaPettit.com and ThreadsAddons.com
Web Hosting Provided by
VertexHost Web Hosting

Generated in 0.284 seconds in which 0.256 seconds were spent on a total of 26 queries. Zlib compression enabled.


Whiplash Claims - Gold Necklace - Whiplash - Jewellery