Previous Thread
Next Thread
Print Thread
Rating: 41
Page 6 of 11 1 2 4 5 6 7 8 10 11
kja #216046 06/16/2002 9:08 AM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
No, authentication is not automaticly done by including main.inc.php into your files. When using the send_header function it will authenticate the user if they don't have a user status and retrieve the basic user information if available.

Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
bigger test...

Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
how is 5.0 coming?

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
It came to a grinding hault while I played with other hacks... lol I'll be back on it shortly.


Was kinda nice to work on other stuff.

Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
Understandable. That's why I run two different sites, by the time I play with one for long enough I'm tired of it and can hop on the other site with a lot of ambition. Its a never-ending cycle. lol.. plus one is threads with your IIP and the other is phpnuke with phpbb, so its fun to learn more about both

Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I had thought about setting up a phpnuke site once... a long time back even before I started messing with IIP. I was new to php and it seemed to be a bit more than I wanted to bite off at the time.

heh... I still consider myself "new" to php. LoL way to much left to learn.

Joined: Apr 2001
Posts: 59
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 59
Hi,

I'm using the Integrated Index Page on my forums and it looks fabulous! My users love the look, and so do I! The trouble is, it's taking 20, 30, 40, sometimes 60 seconds to generate the page.

Would anyone be willing to visit my index page (http://forum.foolmoon.com) and tell me what I could do to make the page load in ten seconds or less?

Thanks in advance for any suggestions.

Helice
http://foolmoon.com

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
once the re-direct from ultimatebb.cgi went through, it loaded in maybe 2 seconds for me, looks good too

JustDave:
I remember you saying something about "sideblocks" for the forums, is this still something available? Would be nice to have a link to hide/unhide as well I see that in the phpnuke/vb stuff.


- Allen wavey
- What Drives You?
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Allowing custom blocks of user supplied information is on the list along with the ability to to configure menu items. Right now I'm only working on getting IIP moved over to templated layout with a control panel setup from the admin section of threads.

One of the things I do need to do is make an archival system so that .threads users can move old threads into a seperate table altogether. Forums with tons of posts will make the index slower to generate as there is just way to much information to wade through. I'm willing to bet that a phpnuke display isn't pulling information from 30,000+ posts or better (depending on layout, 3 or 4 pal boxes may need query the same amount of information for different results) for their index, 3 or 4 times for their blocks.

It would seem that starting around that 30 thousand mark, and based on hardware of course, things start to slow down noticabley. Currently 4.3 uses some table joins to lower the number of queries to the database. With 5.0 I have been able to removed all table joins with the exception of the "who's online" one. I'm also caching the "short stats" information. These changes have greatly increased the speed. I have tested it on a 34,000+ post count database, thanks to msula and compared his site it is over 4 times faster.

caspe7 has a website with over 84,000+ (84292 as of this post) posts.
The related page generation info is: Generated in 3.6 seconds. 30 queries. Zlib compression enabled.
Here is caspe7's website: http://www.prowrestlingforum.com/threads/
From the looks of it he is using all of the pal boxes too. (16)

It is strange how things vary though.

msula has a website with 36,000+ (36757 as of this post) posts.
The related page generation info is: Generated in 5.594 seconds. 22 queries. Zlib compression disabled.
Here is msula's website: http://michiganjeepers.com/index.php
From the looks of it he is using 2 less pal boxes. (14)

caspe7's site has well over twice as many posts as msula's and yet the page generation times are almost a full 2 seconds faster. (I pull some hair out of my head daily over this stuff)

Once I have IIP's tempate/control panel stuff done I will work on improving the queries used and will probably cache some more box information too.

My long term goal with IIP is to have people say "*nuke what?"



Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
One of the things I noticed about you index page is that your pulling 9 different forums into the center "news/article" display. Each forum will use 2 queries. So in the center news/article you have 18 queries being used.

I have cut this in half with 5.0

Once I let 5.0 out the door your center section will use only 9 queries for those 9 forums.


For the time being if you limit the center to 2 or 3 boards with a 2 or 3 articles each your page generation times should decrease.

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
Sounds like good stuff... I have a friend's forum with >100k posts to give it a shot on when you are ready

I am convinced a lot of the problems are server-setup related... they are on a dedicated p3 1ghz/ 512mb ram/ and 15k rpm scsi drives and it still takes 3-4 seconds to generate a postlist page.


- Allen wavey
- What Drives You?
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
[]
I have a friend's forum with >100k posts to give it a shot on when you are ready



Sounds great! I will be very interested in seeing how it handles on such a site.

Joined: Apr 2002
Posts: 206
Member
Member
Offline
Joined: Apr 2002
Posts: 206
holy smokes.. quite the big thread we've got here tipsy

Joined: Apr 2001
Posts: 59
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 59
posted by AllenAyres:
once the re-direct from ultimatebb.cgi went through, it loaded in maybe 2 seconds for me, looks good too



Hmmm? I don't have ultimatebb.cgi anywhere on my server, I removed all the UBB.Classic directories and files when I went live with .Threads .

When I load my index page at http://forum.foolmoon.com the debug code says:

Generated in 40.285 seconds. 41 queries. Zlib compression enabled.

Sometimes as little as 15 seconds, sometimes as much as 60.

Joined: Apr 2001
Posts: 59
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 59
posted by JustDave:

For the time being if you limit the center to 2 or 3 boards with a 2 or 3 articles each your page generation times should decrease.


Ok, JustDave, I'll try removing a few articles. I wonder if there's a way to pull up three random forums...? My moderators will accuse me of favoritism if I don't get them on the front page at all. I have 20 public forums; I'd like to pull the news forum every time, and 3 random forums out of the other 19 -- any tips on how I can do that?


Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I think Allen is refering to the "messages" button link at the top. It's linked to: http://forum.foolmoon.com/forum/ultimatebb.cgi


Joined: Apr 2001
Posts: 59
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 59
Ah, thanks for helping me find an old dead link.

I have about 300 pages, I was bound to miss something when I changed over.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
posted by Fool_Moon:


When I load my index page at http://forum.foolmoon.com the debug code says:

Generated in 40.285 seconds. 41 queries. Zlib compression enabled.

Sometimes as little as 15 seconds, sometimes as much as 60.


This last time I visited your site this was the generation time:

Generated in 7.278 seconds. 37 queries. Zlib compression enabled.

Might you be on a shared server by chance? There's quite a difference in times and I'm wondering if serverload in general is a part of this.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
posted by Fool_Moon:
posted by JustDave:

For the time being if you limit the center to 2 or 3 boards with a 2 or 3 articles each your page generation times should decrease.


Ok, JustDave, I'll try removing a few articles. I wonder if there's a way to pull up three random forums...? My moderators will accuse me of favoritism if I don't get them on the front page at all. I have 20 public forums; I'd like to pull the news forum every time, and 3 random forums out of the other 19 -- any tips on how I can do that?





In your configpal.php script find this:


// ---------------- NEWS/REVIEWS VARIABLES --------------- //

// Set this to the board's key word. (blanks will not be displayed)
$postdisplay[0] = "someboard1";
$postdisplay[1] = "someboard2";
$postdisplay[2] = "someboard3";


and change it to this:


// ---------------- NEWS/REVIEWS VARIABLES --------------- //

$BoardGroup1[0] = "board1";
$BoardGroup1[1] = "board2";
$BoardGroup1[2] = "board3";

$BoardGroup2[0] = "board4";
$BoardGroup2[1] = "board5";
$BoardGroup2[2] = "board6";

$BoardGroup3[0] = "board7";
$BoardGroup3[1] = "board8";
$BoardGroup3[2] = "board9";

$RndNum = rand(0,2);

// Set this to the board's key word. (blanks will not be displayed)
$postdisplay[0] = "PermNewsBoardKeywordHere";
$postdisplay[1] = $BoardGroup1[$RndNum];
$postdisplay[2] = $BoardGroup2[$RndNum];
$postdisplay[3] = $BoardGroup3[$RndNum];


Just replace the "board1" - "board9" keywords with your board's keywords.

I think that will work. Let me know how it goes.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Generated in 7.774 seconds. 37 queries. Zlib compression enabled.




Yeah, there's a link to ultimatebb.cgi on your front page: http://foolmoon.com/


- Allen wavey
- What Drives You?
Joined: Apr 2001
Posts: 59
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 59
Wow, that worked great!

I'm down to 28 queries, and loading in about 6 seconds, and the random article choices are working just as they should.

You're a genius! Thanks very much.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Generated in 6.217 seconds. 27 queries. Zlib compression enabled.



- Allen wavey
- What Drives You?
Joined: Mar 2002
Posts: 305
Enthusiast
Enthusiast
Offline
Joined: Mar 2002
Posts: 305
[] I will be very interested in seeing how it handles on such a site.


It got trampled! (I actually need a little crying icon, because I was pretty bummed.)

I set a testboard up and connected it to an empty database we had, then imported a dump of our main board that I did a couple weeks ago. I imported just under 200k posts (192,208).

{Side note -- the alter table from 5.5.1 to 6.0.1 worked perfectly -- importing was the part I was most afraid of. The board itself runs very quickly.}

I installed the IIP and didn't change any of the "default" settings, I just ran it the way it is downloaded. It took anywhere from 30 to 45 seconds to generate. Clearly that won't do! I still have a dial-up connection, so I'm used to slow surfing, but the majority of our members have cable/dsl and they definitely would complain about that kind of wait!

So I started removing one box at a time. After I'd removed more than half of the default ones, it was still more than 20 seconds. So I removed all of the boxes and ran it (just to be sure I hadn't screwed something up) and it was .001 seconds or something. I started adding things back in one at a time, hoping to get some use out of the page and still keep it fast. Unfortunately I was only able to put a few boxes back (search, login, menu, top 3 posters, status, past 9 threads, and 2 posts from each of 3 forums) and it is still taking between 9 and 10 seconds.

After reading what you mentioned above, I think I should limit it down to 1 forum (how do you pick 1 out of 50? ) for the middle column, just for announcements or whatever. That should help.

If you'd like to have a look at it just let me know.


[:"red"]Lisa[/]
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Hey JustDave,

Just to drive you more nuts and show that there is no consistency.... my board has 20,070 posts. I'm using all the pal boxes (I think - maybe I turned off one) and pulling 3 forums into newspal.

Generated in 2.278 seconds. 31 queries. Zlib compression enabled.

Sometimes Things don't make sense.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
posted by Fool_Moon:
Wow, that worked great!

I'm down to 28 queries, and loading in about 6 seconds, and the random article choices are working just as they should.

You're a genius! Thanks very much.




That's good news.


I'm sure you will see more improvement with 5.0 when it's released.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Yes, Lisa I would be very interested to see how 5.0 handles your site when I release it.

I think you will want to use the archival system I'll be creating on it first. It's unfortunately natural to have queries slow down as the amount of information is increased in searches.

Joined: Aug 2001
Posts: 128
Member
Member
Joined: Aug 2001
Posts: 128
Dave Question... How can I umm change that "Private - Pal..." to say "My Domain Index - Pal..."??

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
To the online.php inside your language files.....

Add something like this:
code:

$ubbt_lang['index'] = "Viewing the Front Page";



Obviously you can use whatever text you wish.

zf98844 #216074 06/22/2002 9:47 AM
Joined: Jun 2002
Posts: 303
Enthusiast
Enthusiast
Joined: Jun 2002
Posts: 303
Hello,

I'm getting no display of the news in the center column. I've checked my config several times, and tried the suggestion refered to hotbabes, but I still get nothing displayed. Here's a link to the install. My keywords are talk, centerline, and bs. http://www.natcazjx.org/forum/

Great script btw. Everything seems to work except pulling my latest posts. Any ideas?

#216075 06/22/2002 9:51 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I get attempt to load URL failed.

Are you sure the URL you posted here is correct?

Daine #216076 06/22/2002 11:41 AM
Joined: Jun 2002
Posts: 303
Enthusiast
Enthusiast
Joined: Jun 2002
Posts: 303
yes, it's correct. I get that every now and then as well, but not with ubbt. This happens when I have my keywords entered into palconfig. Now, if I leave the variables blank, I get my index page back and not the 404 error as you'll now see. http://www.natcazjx.org/forum/

Here's my setup when I get the page not found:

// Set this to the board's key word. (blanks will not be displayed)
$postdisplay[0] = "talk";
$postdisplay[1] = "centerline";
$postdisplay[2] = "bs";

// Set this to the maximum number of posts to display.
$postmax[0] = 1;
$postmax[1] = 3;
$postmax[2] = 3;

// Ignore sticky posts? 1=yes 0=no
$ignoresticky[0] = 0;
$ignoresticky[1] = 0;
$ignoresticky[2] = 0;

When I remove the talk, centerline and bs, I get the proper display, but without the new, of course.

Strange.

Oh, I don't know if it matters, but there are several private forums. One of them is bs. I don't know if that matters or not.

Last edited by fishtails; 06/22/2002 11:45 AM.
#216077 06/22/2002 12:43 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I tend to check the simple things first...
But in your config pal....
Do you have the "news" turned on.... it needs to have a "1" next to it, instead of a "0"...like this:

code:

// middle column includes (1 = display it, 0 = don't)
$menupal2 = 0;
$searchpal2 = 0;
$statpal2 = 0;
$pollpal2 = 0;
$currentthreadspal2 = 0;
$threadspal2 = 0;
$newuserpal2 = 0;
$newspal2 = 1;
$loginpal2 = 0;
$onlinepal2 = 0;
$posterpal2 = 0;
$topratedpostpal2 = 0;
$hottopicpal2 = 0;
$lastseenpal2 = 0;
$randprofilepal2 = 0;


Daine #216078 06/22/2002 1:01 PM
Joined: Jun 2002
Posts: 303
Enthusiast
Enthusiast
Joined: Jun 2002
Posts: 303
Yes, it's set to 1.

// middle column includes (1 = display it, 0 = don't)
$menupal2 = 0;
$searchpal2 = 0;
$statpal2 = 0;
$pollpal2 = 0;
$currentthreadspal2 = 0;
$threadspal2 = 0;
$newuserpal2 = 1;
$newspal2 = 1;
$loginpal2 = 0;
$onlinepal2 = 0;
$posterpal2 = 0;
$topratedpostpal2 = 0;
$hottopicpal2 = 0;
$lastseenpal2 = 0;
$randprofilepal2 = 0;

I do appreciate your time, btw.

#216079 06/22/2002 1:12 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Well... one more simple thing I would check.... and then we've reached the end of my debugging skills. LOL

It does seem to be working otherwise... so you've got it properly configured.

Make sure the center colum is set with a width:

code:

// left column width
$leftcolwidth = "24%";

// center column width
$centercolwidth = "52%";

// right column width
$rightcolwidth = "24%";



I would also try re-uploading a clean copy of the newspal.php and newuserpal.php from a fresh unzip in case it's corrupt somehow. It could either one of those screwing things up.

Another thing.. in case there is a bug somewhere....
I see your last user was registered on 5/28... by default this is set to 7 days:

code:

// How many days old can someone still be a new member?
// 0 will disable and they will be displayed untill the next person joins.
$newbielimit = 7;



Might try making it 30 to see if theres some sort of bug when there's no new user to list. I looked at this because you've got "new user" set to display before the news and that could be messing it up.

If not.. then I'm sure JustDave will know the "real" solution.

Daine #216080 06/22/2002 2:30 PM
Joined: Jun 2002
Posts: 303
Enthusiast
Enthusiast
Joined: Jun 2002
Posts: 303
Tried changing the new user to 30 as well as 60 days. I'll have to wait til I get home from work to try uploading fresh copies of those files you mentioned.

Right now I have the newspal2 turned off, and turned on current threads for the middle column. I tried turning on newspal1 in the left column but it has the same effect, page not found.

#216081 06/22/2002 7:59 PM
Joined: Jun 2001
Posts: 176
Member
Member
Offline
Joined: Jun 2001
Posts: 176
humm hey I have not been following your problem .
but your getting a page not found ?
1 make sure the file is on your server <-- possible

2 make sure the files at least are CHmod 644 <-- possible also .

edit
ok I just looked at your site .
did you make sure to list the "keyword" or "keywords" for the board your going to use with the news ?

Last edited by Dslam; 06/22/2002 8:04 PM.
Daine #216082 06/22/2002 10:33 PM
Joined: Jun 2002
Posts: 303
Enthusiast
Enthusiast
Joined: Jun 2002
Posts: 303
Ok, I just uploaded a fresh copy of newspal.php and still no joy. Something is going on with this newspal somewhere, I just can't pinpoint it. You would think that if there's some sort of bad query it would give me an error message or something not a page not found.

#216083 06/22/2002 10:39 PM
Joined: Jun 2002
Posts: 375
Enthusiast
Enthusiast
Offline
Joined: Jun 2002
Posts: 375
Dunno if this helps, but I had to set my keywords to UBB1 UBB2 etc. My UBBT 6.0.1 was upgraded from a older version of UBB (now classic) and those were the forum names that worked for me.

neuron #216084 06/22/2002 10:59 PM
Joined: Jun 2002
Posts: 303
Enthusiast
Enthusiast
Joined: Jun 2002
Posts: 303
Tried that too even though this was an upgrade from wwwthreads 5.1.4 . It did however gave me a display rather then a 404 error as previously mentioned. Matter of fact, you can type anything you want in there and the page displays, of course no news. But, when you put any keywords from BO_keyword it craps out with the 404.

Thanks anyway. I'll keep trying. If I figure it out I'll be sure to post here. Then again, sometimes I can't see the trees because of the forest.

Joined: Mar 2002
Posts: 305
Enthusiast
Enthusiast
Offline
Joined: Mar 2002
Posts: 305
Could someone tell me how to add an additional link in the menupal? I know which file to edit, but I don't know how to stick the link in there! TIA!


[:"red"]Lisa[/]
Page 6 of 11 1 2 4 5 6 7 8 10 11

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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
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 20221218)