vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   mYvBindex v3.1 (https://vborg.vbsupport.ru/showthread.php?t=44691)

pixelpunk 09-04-2003 08:13 PM

Nope. Still running 2.3.0, the version I was using when I installed it.

Zachery 09-04-2003 08:27 PM

have you edited the file at all?

Guz2003 09-04-2003 08:32 PM

Faranth: Whether can you help me? Ñan íou create a small script for mYvBindex or tell as to make it? Archive of news which shows heading only. Looks like on the screenshot at the attach! Please, help me.

Thanks a lot!

Zachery 09-04-2003 08:47 PM

im assuming Guz you dont speak english,

that honestly looks like a differnt portal :\ cuz ive seen it in oter placesl altho you might be able to get the same effect by editing the templates

Guz2003 09-04-2003 08:53 PM

>> im assuming Guz you dont speak english,
SO WHAT?

>>that honestly looks like a differnt portal :\ cuz ive seen it in oter placesl altho you might be able to get the same effect by editing the templates

How I make that so the last 5 of 10 item news looked similarly to screenshot?

LightBringer 09-04-2003 09:11 PM

Will this hack be ported to vbulletin 3.0 when it's released?

Zachery 09-04-2003 09:11 PM

it was just a statement :\ i wasnt trying to be mean, im not sure how to make just the last 5 of ten items look like that

Zachery 09-04-2003 09:12 PM

Quote:

Today at 11:11 PM LightBringer said this in Post #1726
Will this hack be ported to vbulletin 3.0 when it's released?

check out www.digitalkore.net :)

LightBringer 09-04-2003 11:25 PM

Quote:

Today at 04:12 PM Faranth said this in Post #1728
check out www.digitalkore.net :)

You've made me a happy user! =))
Now...spill the beans!

ohlmsjm@charter.net hehe

Zachery 09-04-2003 11:26 PM

no no :) i cant do that

dont worry RC1 will be out soo enuf

LightBringer 09-04-2003 11:29 PM

Quote:

Today at 06:26 PM Faranth said this in Post #1730
no no :) i cant do that

dont worry RC1 will be out soo enuf


LIES! =P

Zachery 09-04-2003 11:29 PM

im beta testing :) so far so good

MikeWarner 09-05-2003 03:43 PM

A few people have complained that this hack takes a while to load. I am also getting this problem. I switched on debug and this is the bit that is holding everything up:

Query: SELECT count(*) AS count FROM post WHERE dateline>='1062712329'
Time before: 0.077859044075012
Time after: 7.0326470136642


Here is a link to the full result:
http://www.migweb.co.uk/myvbindexphp.html

If you want to see how slow it loads:
http://www.migweb.co.uk/myvbindex.php

Any ideas on this? I can't find anything in the thread, but then it is a big thread. I love the hack, but I'm worried many people are leaving the site before it loads - so I may have to remove myvbindex if I can't get it to speed up.

Many thanks for any help given.

Zachery 09-05-2003 04:43 PM

if your still running weather turn it off, this should speed it up quite abit :)

MikeWarner 09-05-2003 05:16 PM

Weather is off and non of the hacks for it have been done.

Zachery 09-05-2003 05:17 PM

what do you mean non of the hacks for it have been done?

MikeWarner 09-05-2003 05:26 PM

During the install it says "only do this if you want the weather block". I didn't want the block, so I didn't do the hacks for it.

Zachery 09-05-2003 05:58 PM

thats the only thing i could think of to slow down the template :\

once i turned weather off i never had any slow problems :\

MikeWarner 09-05-2003 07:10 PM

Through SSH I did TOP and watched the server load and the other info there. I opened my myvbindex page and saw a mysql process take up 35% of CPU resourses. As soon as the page loaded this went away. I tried it again and the same happened. There is nothing else going happening on my site that is using more than a few % of CPU. Something strange is happening.

Zachery 09-05-2003 07:16 PM

try turning all the options off showing the extra templates and see what happens

MikeWarner 09-05-2003 07:17 PM

I've done that - still the long pause.

Zachery 09-05-2003 07:30 PM

i dont understand why it would be doing this, ive been running this script on differnt shared hosts for the longest time and never had a problem :\

MikeWarner 09-05-2003 08:03 PM

Right - I just logged out and tried it and it loads straight away.

I can't explain why, but maybe this will help narrow it down.

MikeWarner 09-05-2003 08:21 PM

Ok - from /myvbindex.php?explain=1 I see this:

Query: SELECT count(*) AS count FROM post WHERE dateline>='1062795588'
Time before: 0.075654983520508
Time after: 7.8819960355759

I know it is only something that effects logged in users.....

I am assuming the above is checking the number of posts since the last visit - which isn't a standard vBulletin figure right?

I removed the welsome box that holds this info but it still gets stuck on it, so I assume this is something that is checked if the user is logged in, regardless of which templates are being used.

I am quite happy to lose this figure from the script.

Assuming the above is correct, how would I go about removing the bit that does this post count check?

Thanks.

MikeWarner 09-05-2003 08:27 PM

Found it - I have removed this from myvbindex.php:

$getnewposts=$DB_site->query_first("SELECT count(*) AS count FROM post WHERE dateline>='$bbuserinfo[lastvisit]'");
$newposts = number_format($getnewposts['count']);

In the "Welcome" templete I changed:

<a href="$bburl/search.php?s=$session[sessionhash]&action=getnew">New Posts</a>: $newposts<br>

to

<a href="$bburl/search.php?s=$session[sessionhash]&action=getnew">Show New Posts</a><br>

If anyone can figure out what is causing this bit to slow things up, do let us all know.

It now loads within one second!

arracing 09-05-2003 09:49 PM

if I have more than 1 database and forum on my site and have the myvbindex page as a portal. How do I set the cookies so that both databases operate normally? Also how will that login panel work on the myvbindex portal, which database will it go to?

Any tips on how to do all this. Basically right now I just have the one database but Im trying to add another forum to the site.

Zachery 09-05-2003 10:56 PM

@arracing it will select whatever database for your site that it you have it set to change directorys for :\, about cookies im not sure :\ ive never goten it to work quite right personally.

@Mike, i asked if you turned all the options off and it looks like you havent, GO INTO the admin cp and turn on and off each setting and watch the load time for each one, this will help you figure out whats causing the drastic load times

my guess would be Latest Forum Topics(very active and l;arge forum)
Home Stats queerys the database for the top poster wich with your forums size could be a problem
and maybe acitve users, due to the fact that if your loged in it checks for buddys lists(i think)

arracing 09-06-2003 03:46 AM

I set the cookie domain for the forum affecting the myvbindex portal to teamrevolution.net and set the cookie to save in the forum directory that its using so /forums/

Then I set my other new forum (database) cookie domain to divisions.teamrevolution.net and the cookie to save in forum directory /divisions/

However when I log in using the individual forums it works fine but when I use the myvbindex login box it doesnt log me in.
I dont understand why because i set one of the settings to affect the entire domain so it should log me in.

Has anyone got more than 1 forum to work right with myvbindex. Please post if you do.

MikeWarner 09-06-2003 05:36 AM

Quote:

Today at 12:56 AM Faranth said this in Post #1747
@arracing it will select whatever database for your site that it you have it set to change directorys for :\, about cookies im not sure :\ ive never goten it to work quite right personally.


@Mike, i asked if you turned all the options off and it looks like you havent, GO INTO the admin cp and turn on and off each setting and watch the load time for each one, this will help you figure out whats causing the drastic load times

my guess would be Latest Forum Topics(very active and l;arge forum)
Home Stats queerys the database for the top poster wich with your forums size could be a problem
and maybe acitve users, due to the fact that if your loged in it checks for buddys lists(i think)

See my posts above. I did turn everything off and the same happened. I've fixed it now (see above).

arracing 09-06-2003 05:52 AM

Okay I have been messing with these cookies and this is where I am at.

Forum1 (v2.3.0 forums includes the myvbindex)
Forum2 (V3 beta 5 forums)

Forum1 cookie domain is .teamrevolution.net and path is /forums

Forum2 cookie domain is blank and path is /divisions

Now both forums stay logged in and that works just fine.
The thing that doesnt work is the login box for myvbindex. When I try and log in to that login box it says thanks for logging in and then returns me to the myvbindex page and doesnt actually log me in. I want that log in box to control Forum1 since that is my big main forum. Forum 2 is an exclusive special forum for certain people.

It just doesnt make sense to me why those settings are not working. I mean Forum one domain says the cookie should effect the whole domain however it doesnt and only effects the /forums

Any help is appreciated. I dont want to have to do away with the login box on the myvbindex but I will if I have to because that is the only thing not working. I still think their should be some fix for this. I cant be the only person with more then 1 forum on a domain using a portal.

Zachery 09-06-2003 03:20 PM

because originally with mYvBindex it tells you to change the cookie domain to effect .domain.com so if it isnt effecting the root where the portal is your not gonna have much luck

arracing 09-06-2003 04:05 PM

Forum1 cookie domain is .teamrevolution.net and path is /forums

My cookie domain was set tho to effect the whole domain. Thats why I couldnt understand why it was not working.

Zachery 09-06-2003 04:47 PM

have you cleared your cookies after making the changes?

phenomenon 09-08-2003 09:41 AM

I read up to about page 30 and didn't see an answer, forgive me for not reading all.

Somewhere in there I saw a request from Tigga for new features. Is it plausible to keep track of a specific thread using mYvBindex? Or would that bog things down too much?

example: we have a very funny fellow who has an "Ask Blahblah" thread, where people post questions and he replies with amazingly comedic things. I'd like to have the latest post from that single thread tracked on the index page. Is that possible already? Did I miss it?

phenomenon 09-08-2003 11:10 PM

<edit>I had a poll problem, but it was a PEBCAK error: Problem exists Between Chair And Keyboard</edit>

second problem: i am trying to modify the $welcometext to sit in the $index_header (basically making it a long thin strip to sit in a central <td>). I edited the mYvBindex header, made a table, made a <td>, entered $welcometext and </td>. Nothing showed up when I tested it.

I was able to copy the code out of $welcometext and alter it to fit in my header, but if I log in as unregistered or logout, I don't get the login/pw script like I do with the $welcometext control panel. I don't understand it well enough to know why $welcometext won't show up when inserted into another mYvBindex template? Any ideas?

Thanks!

zeidlern 09-08-2003 11:21 PM

Quote:

Today at 01:10 AM phenomenon said this in Post #1755
<edit>I had a poll problem, but it was a PEBCAK error: Problem exists Between Chair And Keyboard</edit>

second problem: i am trying to modify the $welcometext to sit in the $index_header (basically making it a long thin strip to sit in a central <td>). I edited the mYvBindex header, made a table, made a <td>, entered $welcometext and </td>. Nothing showed up when I tested it.

I was able to copy the code out of $welcometext and alter it to fit in my header, but if I log in as unregistered or logout, I don't get the login/pw script like I do with the $welcometext control panel. I don't understand it well enough to know why $welcometext won't show up when inserted into another mYvBindex template? Any ideas?

Thanks!

There is a order that things are called the the index file. If something is below something else it won't show up.

phenomenon 09-08-2003 11:26 PM

hmm. So if the welcome text is called out of order (for example anywhere before or during the index_header), then it won't work right? Is that what you mean?

Zachery 09-08-2003 11:30 PM

because its not getting evaled

take a look at index.php inside your forums directory and look for $welcometext

this should show a few lines of code that make welcometext get evaled copy whats under it into the end of myvbindex.php before the ?>

that should work

phenomenon 09-09-2003 12:39 AM

I opened the myvbindex.php and found that there is an eval in there --

eval("\$welcometext = \"".gettemplate('index_logincode')."\";");

should I replace that with the forum index eval?

this doesn't make sense to me -- the $welcometext works in the myvbindex index template, but not in the index_header template.

phenomenon 09-09-2003 01:14 AM

Quote:

Today at 05:30 PM Faranth said this in Post #1758
because its not getting evaled

take a look at index.php inside your forums directory and look for $welcometext

this should show a few lines of code that make welcometext get evaled copy whats under it into the end of myvbindex.php before the ?>

that should work


doh. nope that didn't work.


All times are GMT. The time now is 02:28 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03319 seconds
  • Memory Usage 1,829KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete