Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 5 1 2 3 4 5
gailg #242875 04/19/2003 9:04 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Oh it works for me. It works fine on the left. It works fine on the right on every page but ONE. The main index which of course has Photopost. Now if I remove the ubbt_photopost.tmpl require from the ubbthreads.tmpl the sidebar comes up fine with no sql

Sponsored Links
gailg #242876 04/19/2003 9:07 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Oh it works for me. It works fine on the left. It works fine on the right on every page but ONE. The main index which of course has Photopost. Now if I remove the ubbt_photopost.tmpl require from the ubbthreads.tmpl the sidebar comes up fine with no SQL errors on the main index. I did notice the code differences in the instructions but found where things needed to go. Interesting that this might be a MYSQL thing as maybe the mysql is not closing from Photopost who knows.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Omegatron... you might check if any of the variables in use by IIP Sidebarpal are also used by photopost. It might get monkeyed up if something you have is trying to use the same variable.

Daine #242878 04/20/2003 7:45 AM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
I see well Photopost program itself calls the Threads main.inc.php due to the heavy integration I have. I think I might just have to remove the code for users to change it from left to right until I can figure a workaround. But that is when you are running Photopost. So if I understand what your saying the problem has to located in reality to Michael's integration on the main forum. If I do remove that hack from the main forum we know the problem goes away. I do not understand why Michael's hack would interfere ,Since basically all that is happening is we are opening a MYSQL connection to the photopost database and pulling information. All tables are created within his hack. So it should not pull from the Photopost program itself where it might cause a problem because I make Photopost use Threads headers/footers and CSS. In that case I can understand the double global call issue.

Thanx for the tip.


Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
I double checked that hack and there are NO GLOBAL CALLS.

Interesting.

Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
it boggled my mind to no end too when I tried to combine them


- Allen wavey
- What Drives You?
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
which one was that one Allen.

the sidebar and photopost

or

photopost and threads.

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Just an update to this hack.

Seems that it was not so much a global call issue as the inability to switch between MYSQL databases. I stating thinking why Michael did not have any problems and I did. From helping others I noticed that alot of people use ONE database when they have both Threads and Photopost. Well I always maintained separate databases. I decided to try different things so I put the Photopost tables into my Threads database. Well guess what that solved the issue. So it seems that one can only have one database as otherwise there is a problem switching back and forth between connections.

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Except that I have two databases (well, three if you count the RP database which also is seperate).

gailg #242884 04/20/2003 10:54 AM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Interesting then as combining the two databases solved my problems.

Maybe then it is a server related MYSQL issue.

Sponsored Links
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Try this, in ubbt_photopost.tmpl change:

if (!$firstpass) {
if ($j != 0) { print "</table></tr></td></table><br />"; }

I think the problem is that the tables arent being closed out properly when you have more than one cat with no thumbs...?

gailg #242886 04/21/2003 11:49 AM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
well I solved it by moving them to all one database.

I think that the tables are fine as the hack itself validates with XHTML fine. If the tables were not closing correctly then the site would not validate. All my categories have thumbs also.

I really think it is some weird mysql server setting that maybe it is not switching from one connection to the other. I think the connection to the Photopost database was not closing and the sidebar was trying to pull info from the Photopost database instead of Threads. Thus the SQL errors. There could be some setting with mysql that we have different that allows it to work on your server and not on mine.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
That's a good theory.

You could try adding this to the top of the sidebar

mysql_select_db(threadsDBname);

to see if that makes it switch back.


Daine #242888 04/21/2003 12:10 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Well I already went through the trouble of combining the databases. Easier to backup that way anyway but I will try that out on my test site and see what happens.

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
I noticed the problem on one of my sites where there were more than one category within PhotoPost - if all the cats are in one grouping, then it should be okay. I have to check my hack docs.

gailg #242890 04/21/2003 2:32 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Yes I see what your getting at. That would be another problem though I thought you solved that one before.

I am going to give this a shot on my test site and do what recreate the problem and then do what Josh said. I really really think the problem is what I stated. Unlike alot of other servers that configure MYSQL for you when you create a database I have full control and need to apply permissions et all when I create a database which leads me to beleive there is something different in the two mysql setups that prevent the switching back and forth.

Daine #242891 04/21/2003 5:37 PM
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
I have it installed on my site:

http://drumlines.org/threads/ubbthreads.php?Cat=

But I seem to have some kind of table problem or something when I chose to display the sidebar on the right. The sidebar repeats itself at the bottom at 100%

Login: test
Pass: threadsdev

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Ooops, my bad.

Last edited by extremebikini; 04/21/2003 5:51 PM.
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
My only guess would be that somehow you are including the right sidebar close template twice. It would almost have to be to make it appear twice.

Daine #242894 04/21/2003 8:43 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
By the way Josh this solved the problem I stated

mysql_select_db(threadsDBname);


Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
So somehow it didn't switch back on it's own.

Well... maybe this will help someone else.
Thanks for trying it.

Daine #242896 04/21/2003 9:18 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
No problem. Told ya I would test it.

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
You might want to change that to

mysql_select_db(threadsDBname) or die('Failed to select database threadsDBname');

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
cool, glad you found the solution


- Allen wavey
- What Drives You?
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Dave always the wizard.

Daine #242900 04/27/2003 5:33 AM
Joined: Jan 2003
Posts: 263
Member
Member
Joined: Jan 2003
Posts: 263
Can anyone tell me how I can place new menu items ? For example I would also like "forum index" to be in the menu.

Thanks!

10k #242901 04/27/2003 7:06 AM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
pasqualist,

If you edit sidebarpal.php you will see the list in their of what to include. Just mark off in order 1,2,3,4,5,etc what order you would like things included on the sidebar.

Joined: Jan 2003
Posts: 263
Member
Member
Joined: Jan 2003
Posts: 263
No that's not what I mean. In the sidebarpal I only selected "$sidebar_include['menu'] = "1";". In this menu I would also like other items like "forum index" or "links". I think I should do something in "menupal.php", but it seems very complicated in PHP

10k #242903 04/27/2003 8:18 AM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Okay your question was a little vague and was in the sidebarpal thread.

Okay in menupal.php open it and do the following.

Above:

echo "$tableEnd</td></tr>$tbclose<br />";


Add:

echo "$rowStart<a href="$phpurl/$FrontPage.php?Cat=">Main Index</a>$rowEnd";
echo "$rowStart<a href="$phpurl/linksphp/links.php?op=Links">Links</a>$rowEnd";


That will put the Main Index and Links if you have TLD installed by Fishtails. You should be able to get the jist of how to add something there now.

Joined: Jan 2003
Posts: 263
Member
Member
Joined: Jan 2003
Posts: 263
I agree my posting wasn't very clear My english isn't that good

Thank you very much for the explanation! Works just like I wished. Only....

On the portal screen the link to the Main Index points to "http://www.mydomain.com/.php?Cat=". In the sidebar it works good. (http://www.mydomain.com/forum/ubbthreads.php?Cat=)

10k #242905 04/27/2003 8:59 AM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Okay just change it to this then forgot this has to be Threads PHPURL

echo "$rowStart<a href="{$config['phpurl']}/ubbthreads.php?Cat">Main Index</a>$rowEnd";

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Well, looks like I'll want to take a closer look. Today we hit > 110 users on my boards and it crawled:

Generated in 19.429 seconds in which 19.209 seconds were spent on a total of 47 queries. Zlib compression enabled.

This number does not include the 36 queries for the PhotoPost hack. So, 83 queries per page!

I turned off the SideBar and was left with:

31 queries for UBBThreads
16 queries for the SideBar
36 queries for PhotoPost

I turned off sidebars, but left the PhotoPost in place and my times were reduced:

Generated in 2.328 seconds in which 2.157 seconds were spent on a total of 31 queries. Zlib compression enabled.

(adding in the 36 for PP, that makes 67 queries) - but still in 2.1 seconds.

Clearly the SideBars are adding in some significant time for processing that adversely effects the board when I get alot of users online.

gailg #242907 04/28/2003 7:16 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Seems to be the same ole problems with IIP and alot of users on board generating the IIP page as well.

gailg #242908 04/28/2003 7:20 PM
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
With 73 members online each test run within seconds of each other:

With Sidebar
- Generated in 6.315 seconds in which 6.051 seconds were spent on a total of 47 queries. Zlib compression enabled.
- Generated in 13.029 seconds in which 12.807 seconds were spent on a total of 47 queries. Zlib compression enabled.
- Generated in 12.414 seconds in which 12.289 seconds were spent on a total of 47 queries. Zlib compression enabled.

Without SideBar
- Generated in 5.024 seconds in which 4.92 seconds were spent on a total of 31 queries. Zlib compression enabled.
- Generated in 1.576 seconds in which 1.451 seconds were spent on a total of 31 queries. Zlib compression enabled.
- Generated in 1.762 seconds in which 1.601 seconds were spent on a total of 31 queries. Zlib compression enabled.

I ran each test alternating - on/off/on/off/on/off (imagine those users were a little confused).

I have my code in place to only UPDATE every 10 minutes; but either that isnt working or the remaining queries are still gobbling up alot of processing power.

gailg #242909 04/28/2003 7:22 PM
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Seems my code isn't caching properly some of the pages.... The Ca_TimeStamp is incrementing continually.

Generated in 41.25 seconds in which 40.716 seconds were spent on a total of 47 queries. Zlib compression enabled.

gailg #242910 04/28/2003 7:55 PM
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Okay, the problem is that $date gets overwritten by a bunch of the pals. I had to rename $date in sidebarpal.php to $iipdate so that my changes would work.

Now my times have decreased significantly as the reload isnt being done on every page load. However, there is still a large load when IIP is being used (almost twice the page generation time).

With 44 online users....

Threads/SideBar/PhotoPost
Generated in 3.235 seconds in which 3.049 seconds were spent on a total of 40 queries. Zlib compression enabled.

Threads/PhotoPost
Generated in 1.626 seconds in which 1.477 seconds were spent on a total of 31 queries. Zlib compression enabled.

Run within seconds of each other - there is still a load that doubles the time to generate the page by the SideBar/IIP code.

gailg #242911 04/28/2003 8:03 PM
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
I am running with a couple IIPs:

Short Stats
Status Login
Whos Online
Top Posters
Hot Topic
ShoutBox
New User

In running through the list turning one off at a time, I didnt not much of a time difference EXCEPT for New User.

By turning off New User, my times dropped .6 seconds to a full 2 seconds over the averages with New User included.

Dont mind me - just talking through this as I go. But the "problem child" appears to be New User.


gailg #242912 04/28/2003 8:06 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
eek that's a lot... If we can't find a way to improve on it some more, we'll definitely need to put a warning in the initial post. It's doubling the time on ~30% more queries, even with your fixes.

Is this for the initial forum summary page? Or for the postlist pages too?


- Allen wavey
- What Drives You?
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Well, for my setup I only put the sidebars on ubbthreads - I reversed the logic so as to only include it on pages I want it on. So my $iip_call is only set to 1 in ubbthreads to include it there. With sidebars, I turned off the Summary page and have everyone load ubbthreads.php.

All my other pages are nice and snappy; just the index page was giving me problems. With 110+ users online, I'm sure I lost alot when they didnt have their page load for 30+ seconds!

I think its safe to say on any page sidebar is loaded this will be an issue.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Hmmm.... we only get 28 queries on the main index here, and we're running full new post tracking.

I'm wondering if tehre's something with your IIP caching. I run it on measurection and have the photopost sidebar, plus a bunch of other things that use queries and the main index... and in the evenings, when there's usually about 50-70 people online, it seems to zip right along. I'm no longer running the shoutbox. But that was just because I wanted to use the space for some ads.

Page 2 of 5 1 2 3 4 5

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,574
Posts293,926
Members13,850
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)