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)

Asendin 04-04-2003 02:43 PM

Quote:

Today at 11:28 AM attroll said this in Post #1040
Did you insert the text into your myvbindex.php and did you also turn it on in your admincp panel?

someone turned it off, lol


thanks

o0stephane0o 04-05-2003 10:14 AM

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

Tigga 04-05-2003 04:54 PM

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.

attroll 04-05-2003 06:30 PM

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.

o0stephane0o 04-05-2003 09:55 PM

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 ;)

o0stephane0o 04-05-2003 11:11 PM

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.

o0stephane0o 04-06-2003 01:00 AM

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:

$dayname_s "<td width=\"*\" bgcolor=\"{firstaltcolor}\" align=\"center\"><smallfont>S</smallfont></td>";
  
$dayname_m "<td width=\"*\" bgcolor=\"{firstaltcolor}\" align=\"center\"><smallfont>M</smallfont></td>";
  
$dayname_t "<td width=\"*\" bgcolor=\"{firstaltcolor}\" align=\"center\"><smallfont>T</smallfont></td>";
  
$dayname_w "<td width=\"*\" bgcolor=\"{firstaltcolor}\" align=\"center\"><smallfont>W</smallfont></td>";
  
$dayname_f "<td width=\"*\" bgcolor=\"{firstaltcolor}\" align=\"center\"><smallfont>F</smallfont></td>";
  if (
$bbuserinfo[startofweek]==1) {
    
$calendar_daynames "$dayname_s$dayname_m$dayname_t$dayname_w$dayname_t$dayname_f$dayname_s";
  } else if (
$bbuserinfo[startofweek]==2) {
    
$calendar_daynames "$dayname_m$dayname_t$dayname_w$dayname_t$dayname_f$dayname_s$dayname_s";
  } else if (
$bbuserinfo[startofweek]==3) {
    
$calendar_daynames "$dayname_t$dayname_w$dayname_t$dayname_f$dayname_s$dayname_s$dayname_m";
  } else if (
$bbuserinfo[startofweek]==4) {
    
$calendar_daynames "$dayname_w$dayname_t$dayname_f$dayname_s$dayname_s$dayname_m$dayname_t";
  } else if (
$bbuserinfo[startofweek]==5) {
    
$calendar_daynames "$dayname_t$dayname_f$dayname_s$dayname_s$dayname_m$dayname_t$dayname_w";
  } else if (
$bbuserinfo[startofweek]==6) {
    
$calendar_daynames "$dayname_f$dayname_s$dayname_s$dayname_m$dayname_t$dayname_w$dayname_t";
  } else if (
$bbuserinfo[startofweek]==7) {
    
$calendar_daynames "$dayname_s$dayname_s$dayname_m$dayname_t$dayname_w$dayname_t$dayname_f";

And 
replace by:

$dayname_di "<td width=\"*\" bgcolor=\"{firstaltcolor}\" align=\"center\"><smallfont>D</smallfont></td>";
  
$dayname_lu "<td width=\"*\" bgcolor=\"{firstaltcolor}\" align=\"center\"><smallfont>L</smallfont></td>";
  
$dayname_ma "<td width=\"*\" bgcolor=\"{firstaltcolor}\" align=\"center\"><smallfont>M</smallfont></td>";
  
$dayname_me "<td width=\"*\" bgcolor=\"{firstaltcolor}\" align=\"center\"><smallfont>M</smallfont></td>";
  
$dayname_je "<td width=\"*\" bgcolor=\"{firstaltcolor}\" align=\"center\"><smallfont>J</smallfont></td>";
  
$dayname_ve "<td width=\"*\" bgcolor=\"{firstaltcolor}\" align=\"center\"><smallfont>V</smallfont></td>";
  
$dayname_sa "<td width=\"*\" bgcolor=\"{firstaltcolor}\" align=\"center\"><smallfont>S</smallfont></td>";
  if (
$bbuserinfo[startofweek]==1) {
    
$calendar_daynames "$dayname_di$dayname_lu$dayname_ma$dayname_me$dayname_je$dayname_ve$dayname_sa";
  } else if (
$bbuserinfo[startofweek]==2) {
    
$calendar_daynames "$dayname_lu$dayname_ma$dayname_me$dayname_je$dayname_ve$dayname_sa$dayname_di";
  } else if (
$bbuserinfo[startofweek]==3) {
    
$calendar_daynames "$dayname_ma$dayname_me$dayname_je$dayname_ve$dayname_sa$dayname_di$dayname_lu";
  } else if (
$bbuserinfo[startofweek]==4) {
    
$calendar_daynames "$dayname_me$dayname_je$dayname_ve$dayname_sa$dayname_di$dayname_lu$dayname_ma";
  } else if (
$bbuserinfo[startofweek]==5) {
    
$calendar_daynames "$dayname_je$dayname_ve$dayname_sa$dayname_di$dayname_lu$dayname_ma$dayname_me";
  } else if (
$bbuserinfo[startofweek]==6) {
    
$calendar_daynames "$dayname_ve$dayname_sa$dayname_di$dayname_lu$dayname_ma$dayname_me$dayname_je";
  } else if (
$bbuserinfo[startofweek]==7) {
    
$calendar_daynames "$dayname_sa$dayname_di$dayname_lu$dayname_ma$dayname_me$dayname_je$dayname_ve"

I hope it will be usefull to someone.

Red Blaze 04-06-2003 04:13 AM

Heck the weather always gave a problem, I just uninstalled the weather. Everything else works fine. :)

Yuber 04-06-2003 08:46 PM

Thanks Tigga. Don't forget to update the subject to the Hack Thread.

Amongthethugs 04-07-2003 08:32 AM

Quote:

03-29-03 at 08:06 PM Tigga said this in Post #973
Amongthethugs - It's possible to pull more than one poll, but that's something I'll have to play with and post instructions for later when I have the time. As for pulling news from more than one forum, you would just change your News Forum ID in the admin options to "XX OR forumid=YY" - And you would just change XX and YY to your forum id's.

ok so say I want to pull news from forum id 3 and 8 then where in my options page in admin i change the 3 that is there now to 3 or forumid=8 ?

also i created index_custom3 and in the index template I added $custom3 but nothing loads from the index_custom3 template


All times are GMT. The time now is 11:10 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.02703 seconds
  • Memory Usage 1,774KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)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