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

o0stephane0o 04-07-2003 10:49 AM

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:

// Custom Boxes
$custom1 '';
$custom2 '';
if (
$showcustom1) {
  
$getbgrow getrowcolor();
  eval(
"\$custom1 = \"".gettemplate('index_custom1')."\";");
}
if (
$showcustom2) {
  
$getbgrow getrowcolor();
  eval(
"\$custom2 = \"".gettemplate('index_custom2')."\";");
}
  
Replace by:

// Custom Boxes
$custom1 '';
$custom2 '';
$custom3 '';
if (
$showcustom1) {
  
$getbgrow getrowcolor();
  eval(
"\$custom1 = \"".gettemplate('index_custom1')."\";");
}
if (
$showcustom2) {
  
$getbgrow getrowcolor();
  eval(
"\$custom2 = \"".gettemplate('index_custom2')."\";");
}
if (
$showcustom3) {
  
$getbgrow getrowcolor();
  eval(
"\$custom3 = \"".gettemplate('index_custom3')."\";");


And then execute the following sql request:

$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..

o0stephane0o 04-07-2003 09:51 PM

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?

Tigga 04-08-2003 12:31 AM

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:

if ($showcustom1

Change that to:
PHP Code:

if ($showcustom1 AND $bbuserinfo[usergroupid]==6) { 

Amongthethugs - You would just change your News Forum ID (first option under the myvbindex opts) to 3 or forumid=8
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:

    $thread['date'] = vbdate("m-d-y $timeformat"$thread['dateline']); 

PHP Code:

  $dateposted vbdate("M d, Y - g:i A",$news['dateline']); 

PHP Code:

  $lastvisit vbdate("m-d-y g:i a"$bbuserinfo['lastvisit']); 

You should be able to change the date format in those three places, and if there are any I've forgotten let me know.
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.

o0stephane0o 04-08-2003 10:05 AM

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.

Intex 04-12-2003 04:31 PM

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.

Tigga 04-12-2003 05:14 PM

Intex - Yes, it is possible to have "sticky" news posts. Just open your myvbindex.php file and look for:
PHP Code:

ORDER BY thread.threadid DESC $newsmax"); 

Replace that with:
PHP Code:

ORDER BY sticky DESC,thread.threadid DESC $newsmax"); 


PKRWUD 04-12-2003 05:30 PM

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?

Tigga 04-12-2003 05:37 PM

Yup, see this post. ;)

PKRWUD 04-12-2003 05:44 PM

You're the best!

Intex 04-13-2003 11:35 AM

Thx Tigga :).


Quote:

Yesterday at 07:08 PM Tigga said this in Post #1056
Intex - Yes, it is possible to have "sticky" news posts. Just open your myvbindex.php file and look for:
PHP Code:

ORDER BY thread.threadid DESC $newsmax"); 

Replace that with:
PHP Code:

ORDER BY sticky DESC,thread.threadid DESC $newsmax"); 



PKRWUD 04-14-2003 12:28 AM

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?

PKRWUD 04-14-2003 06:23 AM

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?

Tigga 04-14-2003 06:57 AM

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.

PKRWUD 04-14-2003 07:08 AM

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.

:)

PKRWUD 04-14-2003 07:20 AM

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

certify 04-14-2003 11:56 AM

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/

PKRWUD 04-14-2003 12:47 PM

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

jjj0923 04-14-2003 04:16 PM

question:

My version of myvbindex.php says 2.0 in the source code.

why upgrade instructions should I follow?

Tigga 04-14-2003 04:40 PM

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.

o0stephane0o 04-15-2003 04:53 PM

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..

PKRWUD 04-15-2003 10:23 PM

My site is on a shared server. What can I do?

o0stephane0o 04-16-2003 12:10 PM

Change server...
That´s what I had to do..

kerpen 04-17-2003 04:07 AM

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

Tigga 04-17-2003 04:15 AM

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.

Airs 04-17-2003 04:58 AM

Quote:

12-04-02 at 05:29 AM Tigga said this in Post #196
alkatraz - No, that wouldn't be hard at all. At the very bottom of the myvbindex.php file look inbetween the following lines:

PHP Code:

if ($showcustom2) {
  
$getbgrow=getrowcolor();
  eval(
"\$custom2 = \"".gettemplate('index_custom2')."\";");


And:
PHP Code:

$getbgrow=getrowcolor();
eval(
"dooutput(\"".gettemplate('index')."\");");

?> 

In that space you can add code for it to call more custom templates. You would just add something like the following:

PHP Code:

eval("\$custom3 = \"".gettemplate('index_custom3')."\";"); 

The variable $custom3 there can be called whatever you would like and would be what you would use in the index template to call that template. Then the part index_custom3 should be renamed to whatever you are calling your new template. Also, if you would like to be able to use the $getbgrow function in that template to alternate between your firstaltcolor & secondaltcolor, you should add the following above that code as it is with the others.

$getbgrow=getrowcolor();


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!.

Tigga 04-17-2003 05:05 AM

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.

Airs 04-17-2003 05:37 AM

Quote:

Today at 06:05 AM Tigga said this in Post #1076
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.

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

kerpen 04-17-2003 04:21 PM

Quote:

Today at 05:15 AM Tigga said this in Post #1074
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.

Thanks:

http://cross-x.com/indextestexplain.html

I commented out the new posts query and it made a big difference.

Tigga 04-17-2003 10:33 PM

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. :)

PKRWUD 04-18-2003 12:28 AM

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
  • Page Generation 0.02327 seconds
  • Memory Usage 1,896KB
  • 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
  • (14)bbcode_php_printable
  • (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