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)

spick 06-08-2003 05:02 PM

um why does it show images from my image folder

when i did a replacement for it do get images from elsewhere.?

Tigga 06-09-2003 01:00 AM

reismarktq2 - I'm really not sure why that wouldn't work... Most of the code there was taken from the postbit section for the flags hack, so it should work. I checked one of the flags in your postbit section and it was working fine and did contain %20 in the url, so perhaps it's something else? If you can't figure it out, if you could post the url that the image is pointing to I will try to help you figure out the problem.

ivanmcp - Checked and replied. ;) I'll try to re-write the calendar section for the hack as soon as I get the time. It does at least work properly if someone hasn't changed their "Start of the week" in their profile, so at least it shouldn't affect too many people. Re-writing the calendar part will require a bit of work and these last couple of weeks have been very busy for me. Hopefully though the next couple won't be quite as bad and I'll have the time to re-write the calendar, but unfortunatly I can't make any promises.

spick - I'm assuming you mean the URL for your header images and such is pointing to /images/ instead of /forum/images? If so then you need to modify your images path for each style you have as instructed in the install file.

scotty 06-09-2003 11:13 AM

Quote:

Yesterday at 09:57 AM ivanmcp said this in Post #1370
Lol, calendar has gone weird again. 8th of June does not belong anywhere. :confused:
hm - I changed (beside of the daynames) two lines and it is now working for me:

first
find:
Code:

$today = vbdate('m-d',time());
replace:
Code:

$today = vbdate('d-m-Y',time());
(this is my date-format, as entered in the CP and I have the "today"-hack installed...)

second
find:
Code:

        if (!$bbuserinfo['startofweek']) {
                $bbuserinfo['startofweek'] = '1';
        }

replace:
Code:

        if (!$bbuserinfo['startofweek']) {
                $bbuserinfo['startofweek'] = '2';
        }

Now the start of the weeks is monday, as used in germany.
and the calculation of the weeks is working now.

reismarktq2 06-09-2003 07:43 PM

Figured it out, Tigga - $bburl should have preceded images in the img SRC. Working now. :)

Skipsoutdoors 06-09-2003 09:24 PM

I have it installed, but haven't made it my home page just yet. Probably will shortly. I like the calendar atatchment. I have been using home lite but really wanted my calendar included.

Anyhow, I have a few other things I'm wanting to do.

There are 2 custom templates included with the program which I have utilized. 1 is going to be my navigation setup, the other will probably be some links. I would like to figure out how to add other custom templates to the set up that could be turned on and off from the Admin panel and used in a similar manner. Is this possible?

I also want to eventually build pages that break out the individual forums from the board. Example: I run an outdoor site and have included a separate Forum for each of the lakes in this area. I want to build pages for the lakes that have specific lake information other than the reports from the board as well as advertising for those local businesses. Somewhere in that page, I want to put its forum. I haven't yet figured out how to do that. I'm no programmer, just trying to figure out how to get this system to do what I want it to do. I notice that with the index template, you use something like this to include other templates in it $calendar. How could you include other templates not in group of myVbindix. Example $forumid135 or $home_quicklinks. Maybe you have to add the other templates to the myVbindex group. If so, how do you do that?

Skip

jdmuniverse 06-10-2003 12:13 AM

It says this on my index page...

Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site30/fst/var/www/html/index.php:6) in /home/virtual/site30/fst/var/www/html/forums/admin/functions.php on line 1614

This happened when I changed from an HTML index page to myvBindex as my index page. The funny thing is it doesn't do it ALL the time.

Any help, ideas??

Thanks in advance!

Tigga 06-10-2003 01:42 AM

reismarktq2 - Glad you figured out the problem. :)

Skipsoutdoors - If you'll refer to this post I have updated the instructions there to include options to turn these new templates on/off. If you are trying to include other templates on your homepage, you would have to follow the same instructions there, except you would change the name of the custom template to the name of your current template.

jdmuniverse - Have you modified your original myvbindex.php file in any way? Can you post here or PM me with a link to your site?

Skipsoutdoors 06-10-2003 02:53 AM

That should help. This is a really nice hack, and I appreciate your taking the time to help people like me who are constantly having troubles.

Skip

Intex 06-10-2003 06:16 PM

Tigga - another quickie if you don't mind :). Today my homepage is taking an eternity to display. I used the old ?explain=1 at the end of the link to see what queries / times were being executed. It produced the following:

Code:

Query: SELECT * FROM weather_userdata WHERE userid='1'
Time before: 0.22496795654297
Time after:  0.22560501098633

table type possible_keys key key_len ref rows Extra
weather_userdata  const  PRIMARY  PRIMARY  4  const  1   


--------------------------------------------------------------------------------

Query: SELECT findword,replaceword FROM replacement WHERE replacementsetid IN(-1,'14') ORDER BY replacementsetid DESC,replacementid DESC
Time before: 20.499752998352
Time after:  20.501306056976

table type possible_keys key key_len ref rows Extra
replacement  ALL  replacementsetid        120  where used; Using filesort 


--------------------------------------------------------------------------------

Page generated in 20.499583959579 seconds with 33 queries,
spending 0.098888039588928 doing MySQL queries and 20.400695919991 doing PHP things.
Query: UPDATE session SET lastactivity=1055272282,location='/myvbindex/index.php?explain=1',styleid=11 WHERE sessionhash='c7402ff04c96a36383b780512e15ad35' Time before: 20.525825977325 Time after: 20.526376008987
--------------------------------------------------------------------------------
Query: UPDATE user SET lastactivity=1055272282,inforum='0' WHERE userid='1' Time before: 20.526528000832 Time after: 20.526996970177

Its taking anywhere between 20-30 seconds to produce the main page for some reason today. It pauses in the weather area as you can see above. Is this due to a really bad connection problem to the website providing the weather? Nothing else has changed really and it used to be very quick.

Thx. for any advice.


Update

I've just turned off the weather display and the page loads fine. So I guess it must be down to the website providing the weather. As this is out of our control and would produce a timeout after 30 seconds for php execution, would it be possible to incorporate some sort of time limit on display of the weather and if it doesn't display in that time then don't display it? Otherwise we're all at the mercy of an independently run site.

ivanmcp 06-11-2003 04:58 PM

Thanx scotty :)


All times are GMT. The time now is 12:29 PM.

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.02306 seconds
  • Memory Usage 1,758KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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