![]() |
Quote:
someone turned it off, lol thanks |
Does anyone know what is the error and how i can solve it?
Warning: fsockopen() [function.fsockopen]: php_hostconnect: connect failed in /home/psx/public_html/cgi-bin/myvbindex.php on line 608 Warning: fsockopen() [function.fsockopen]: unable to connect to www.msnbc.com:80 in /home/psx/public_html/cgi-bin/myvbindex.php on line 608 |
That means the script is having a problem connecting to msnbc's server to get the weather info. The weather seems to be working for me though, so if it's still giving you problems let me know. And you also should be able to turn that option off and solve the error for now if you're still getting it.
|
This may be off the subject now. But is there a way to make it so that one of the index_custom's will only be able to be viewed by admins when they are on myvbinxdex page.
|
Very strange, I have uninstalled the whole forum, deleted the sql base and reinstalled everything and still getting the same error.
I have then tried in another server and get the same error. Maybee msnbc had changed something in his config? Would be a pity, such a great hack, I have installer the vbindex and love it but the weather hack brings something so nice to it. Hope someone will find a fix ;) |
By the way, I have also another question for tigga ;)
Is there anyways to change the dates into another language? In the vbindex.php files, they appears in the news like Apr 05th and in the rest of the site like saturday 05 April etc How could I translate the dates and time into any languages? I have found some in calendar php and some more in the templates but I cannot find the missing ones. |
Ok, I don?t know if someone want to use some days in french butI have modified a bit the calendar hack of wajones so the day appears in french...
Here is the code: Look for: PHP Code:
|
Heck the weather always gave a problem, I just uninstalled the weather. Everything else works fine. :)
|
Thanks Tigga. Don't forget to update the subject to the Hack Thread.
|
Quote:
also i created index_custom3 and in the index template I added $custom3 but nothing loads from the index_custom3 template |
You should do the following i think but backup your database in case it messes it up..
Create a new template called index_custom3 with the same content as the previous 2. then modify the myvbindex.php file like that: look for: PHP Code:
$DB_site->query("INSERT INTO setting VALUES (NULL,50,'Show Custom Template 3?','showcustom3','0','Show your third customized template.','yesno','30');"); Then put in your myvbindex.php $custom3 wherever you?d like your third custom template to be. I haven?t tested it but i guess it should work. I repeat again, backup before doing any changes... Let me know how it went.. |
Tigga, i still have the same problem with the weather hack,
Warning: fsockopen() [function.fsockopen]: php_hostconnect: connect failed in /home/psx4gued/public_html/forum/index.php on line 389 Warning: fsockopen() [function.fsockopen]: unable to connect to www.msnbc.com:80 in /home/psx4gued/public_html/forum/index.php on line 389 any idea how to solve it? |
attroll - Yes. Assuming you wanted to do this to your Custom 1 template, here is what you would do... Open your myvbindex.php file and look for:
PHP Code:
PHP Code:
As for creating more custom templates, see the instructions in this post. o0stephane0o - As for changing the date format, there are 3 places in the myvbindex.php file you should look for: PHP Code:
PHP Code:
PHP Code:
As for the weather... What version of myvbindex are you running? Have you tried applying both of the fixes listed in JJR512's thread? If those don't work, please post here or PM me with a link to your site. |
Ok great, I just want to change the language of the date and time, I mean, instaed of 8th April something like 8 de Abril or 8 avril...
I have installed the v3.2 and it still not working but i will try on another server in case the problem is due to the actual one. |
Tigga - quick question:
I'd like to have one of the news items posted stuck at the top. This would be for a general website introduction that will always appear there, then other news posts below. Is this possible without altering the database date / time post for that thread everytime a new news post is created that would take priority position? Thx. |
Intex - Yes, it is possible to have "sticky" news posts. Just open your myvbindex.php file and look for:
PHP Code:
PHP Code:
|
I used one of the custom templates to put an item there.
Speaking of which, how do we add more custom templates? I know how to make the template, but the control panel only has options for two. Is there a way to add more? |
Yup, see this post. ;)
|
You're the best!
|
Thx Tigga :).
Quote:
|
I lost weather again, and am getting the following error warning on my homepage:
Warning : fsockopen() [ function.fsockopen ]: php_hostconnect: connect failed in /home/pkrwud/public_html/myvbindex.php on line 588 Warning : fsockopen() [ function.fsockopen ]: unable to connect to www.msnbc.com:80 in /home/pkrwud/public_html/myvbindex.php on line 588 Any thoughts? |
Okay, this got worse. At some point this evening, my website could not be accessed at all, through the myvbindex page. It took me a while to realize that by redirecting traffic to the forum home page instead, you could get to the forums, but the myvbindex page still came back as data cannot be accessed from this address, or something similar. On a hunch, I went into my control panel, and turned off the weather option. Low and behold, after cancelling the redirect, myvbindex page now works again, just like old times, minus the weather.
Does this mean that weather is gone for good? Any thoughts at all? |
That's really strange. The weather's working fine on my site and a few others I checked. Which version of mYvBindex are you running? If it's below 3.2, try uploading the weather.php file in that version, go to it, and click on "Force Update". If that doesn't work, try applying the fix lemarsu posted here in the Weather Mk thread.
|
I made lemarsu's change that same week (that it was posted), and all was well until yesterday or the day before, when the weather stopped working, and the error warning appeared above the header on, and only on, my myvbindex page. I am using version 3.1. I will find the upgrade, and do as you suggest. Thanks for looking into it for me.
:) |
Uploading the weather.php file from the 3.2 download corrected the problem. I don't understand why, but that's why I'm an automotive mechanic, not a computer mechanic. lol.
Thanks again so much for your help!!! Take care, ~Chris |
Part of my news are empty which leads to No post specified. Everything was working normal until now. I tried to upgrade to 3.2 but that does not help either. :(
http://www.bmwclub.com.my/ |
Please disregard my last post. It is not fixed afterall. I got the same fsock open warnings, so I re-downloaded the new weather.php file, then uploaded it to my vBulletin folder, ran it, and selected forced update, and now I get this warning:
Warning : fsockopen() [ function.fsockopen ]: php_hostconnect: connect failed in /home/pkrwud/public_html/vbulletin/weather.php on line 36 Warning : fsockopen() [ function.fsockopen ]: unable to connect to www.msnbc.com:80 in /home/pkrwud/public_html/vbulletin/weather.php on line 36 I am going to just turn off the weather in the cp before my myvbindex page gets blocked out again. If you can think of anything, please let me know. pkrwuds@pacbell.net |
question:
My version of myvbindex.php says 2.0 in the source code. why upgrade instructions should I follow? |
PKRWUD - Check your PMs. ;)
certify - That's really strange. Have you changed something to have it pull news posts from more than one forum? Have you installed any other hacks lately that could have affected it? jjj0923 - There have been MANY changes since v2.0 of this hack. I would recommend uninstalling v2.0 (using the uninstall file included with that version) and then doing a fresh install of v3.2. Then once you install 3.2, go back to the install file and click on "Click here to update your news posts". That will update all your news posts, so as long as you do that you shouldn't have any problems. |
The error your are getting is dut to your serve configuration, I´ve been trying and trying ten times and I had the same error, once the vbindex would work, later it woundt anymore.
I finally changed and trie on my hard driuve and it works perfect.. |
My site is on a shared server. What can I do?
|
Change server...
That´s what I had to do.. |
I tried this but it loads incredibly slowly even when there's very little load on my server. Any idea why? Even when I disable many feaqtures to reduce queries it takes a really long time. Page is ehre:
http://cross-x.com/home/indextest.php |
That's strange. It should load in less than 1 second most of the time. Could you put your board in debug mode and show me the results of an explain=1 on that page?
In case you're not sure what I mean, you would open your admin/config.php. Right before the ?> at the end of that file, add the code: $debug="1"; Then upload that file and go to the url - http://cross-x.com/home/indextest.php?explain=1 If you wouldn't mind doing that and pasting the results of that page here I'll be glad to take a look and see if I can figure out why it's loading so slow. |
Quote:
Hi im using the recent version of myvbb and i tried this and it dosent work it is pretty simple and im very sure i did it right..but it dosent show up in the admin panel? what am i doing wrong? thnx in advance!. |
With that method of adding more custom templates, there's no need to turn them on or anything in the Admin CP. Just add the variables in the index template and it should work fine. Or if you particularly want to be able to turn them off let me know and I'll post instructions on how to do that.
|
Quote:
Not sure if you understood me right >< what i wanted to do was add extra templates so i could write up more content to link from the main page to another index with a diffrent nav pertaining to the section etc..etc..u know running everything off myvbb. But i have no idea how to put more templates in the myvbb template area >< |
Quote:
http://cross-x.com/indextestexplain.html I commented out the new posts query and it made a big difference. |
Airs - I'm still not sure I follow you here... Are you just trying to add more "boxes" to your myvbindex page that will have links in them? Or are you saying you want more pages like the myvbindex page but with different content replacing the news or something to that effect?
kerpen - Check your PMs. :) |
Tigga-
Just wondering if you got my PM. The problem came back. Also, because I just felt like being really stupid, I tried what you suggested above (the debug thing), and it wiped out my admin/config file, and did something else so that my server decided I was instantly 800mb's over my limit, which made it so that I couldn't copy my backup admin/config file to the admin folder. It was a very lively 10 minutes before I decided to try moving it instead of copying it. That worked. Anyway, check your PM's. :) |
All times are GMT. The time now is 12:19 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|