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)

Zachery 11-30-2003 11:19 PM

Quote:

Originally Posted by jarvis
I have a question about the $getnewposts routine and am not enough of a coder to get past my self-inflicted mySQL errors. ;)

Anyways, I mirror some Usenet groups on our fourms and would like to have the getnewposts routine in myvbindex not count these posts during the welcome tasks.

PHP Code:

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

I would think that I should be able to add a WHERE forumid!=XX somewhere in that statement, but have not been able to get that to work.

Any suggestions? Thanks for the awesome hack, as I've continued to use it for almost a year now (and have hacked it up a bit myself for graphics ;) )

Thanks again!!

try searching for it, i belive its been done before :D

jarvis 11-30-2003 11:38 PM

Try searching this thread? If so, I did and did not see anything that jumps out at me. I have been successful at excluding my usenet forums from the "Latest Posts" area, but have not been able to figure out how to exclude the count from the usenet forums in the welecome text, i.e. 500 New Posts since Last Visit, when there may have only been 50 in the registered forums.

I may be confusing you even more, but hopefully not. Thanks! :D

eclectica 11-30-2003 11:51 PM

I am running vBulletin 2.3.3. I set my news forums to be forum #5 and forum #7. I found what appears to be a bug in the hack. I allow unregistered guests to post in forums 5 and 7. When they reply to a post in forum 5, it is their post that appears on the index page rather than the first post of the thread. If a registered member replies in the thread, it works okay. Also, when unregistered guests reply in forum 7, it appears properly.

So the bug specifically only affects the threads in one of my two news forums, and only happens when guests reply in the threads.

The actual details of how I got both forums working is written in post #1879.

Zachery 11-30-2003 11:52 PM

Quote:

Originally Posted by jarvis
Try searching this thread? If so, I did and did not see anything that jumps out at me. I have been successful at excluding my usenet forums from the "Latest Posts" area, but have not been able to figure out how to exclude the count from the usenet forums in the welecome text, i.e. 500 New Posts since Last Visit, when there may have only been 50 in the registered forums.

I may be confusing you even more, but hopefully not. Thanks! :D

oh im sorry :\ mmm im not exactly sure how to do that :\ sorry

nycunderground 12-01-2003 01:19 AM

blah i wanted to check out vb3 version but for some reason cant download it :(

Zachery 12-01-2003 04:04 AM

please read the announcments at vbulletin.nl :)

Neogen 12-01-2003 12:43 PM

lo all need help
i tried to install a shoutbox hack onto the portal, however it does not work so i removed everything asociated with it an d now for some reason news posted in the forums is no longer showing up on the portal!!

Please help me LOL

Thanks
Neogen

MindTrix 12-01-2003 02:09 PM

Neogen, Is that after a new install of the portal or have you been running it for some time now?

Tigga 12-01-2003 04:51 PM

Jarvis - Unfortunatly there's really not a good way to exclude forums from the new posts query. The post table does not contain a column for the forumid that the post is in (only a threadid), so there's really not a way to only exclude certain forums using that query. It *may* be possible if the thread table was joined, but I'm really not sure. I'll take a look a little later and if I come up with something I'll let you know. ;)


eclectica - I tried taking a look at your site to test the problem you're describing, but I didn't see any current posts from forum 5 on your homepage. I would almost bet money though that something else in the news query had to be changed... Specifically, the statement in there that says "WHERE isnews = 'Y'". If that is there, or if it's not there and you're unsure of how to add it back, please post the entire news query here so I can have a look at it. Unless I'm missing something though, there's no way it should be able to display a reply to a thread since only the first post in a thread will have a 'Y' in the isnews column.



Neogen - Was it working before? Have you tried downloading the file from here and uploading the clean/unhacked version? Have you upgraded your vBulletin to a new version lately and perhaps forgotten to make the change to newthread.php?

Neogen 12-01-2003 06:08 PM

it was working perfect before mate working very nice. went to install the shoutbox that is linked to from the 1st post in this forum, tried to install and it did not work, i have managed to get the news back linking to the portals by trying the workaround provided a couple pages before.
Now i would like to know how to reintergrate the shoutbox and I would like to know if there are any other things that I can add to it as I really like this portal and after wasting a load of cash on Virtuanews i want to stick with this one.
If anyone fancies helping me then my MSN is : imallways@hotmail.com and I will allways give full credit to anyone helping

Thanks
Neogen

Dep 12-02-2003 10:55 PM

is there a version that works wuth vb3 is will there be 1 soon

Zachery 12-03-2003 01:24 AM

Quote:

Originally Posted by Dep
is there a version that works wuth vb3 is will there be 1 soon

yes, please check vbulletin.nl :)

mmmender 12-03-2003 07:04 AM

tigga, first of all let me say that this is an amazing hack. i'm a serious vb newbie and have been lurking around here for about a year installing the odd small hack here and there....but this one really caught my eye so i installed it.

i've sat patiently and read through all 129 pages of this thead (no joke!) in search of a solution to my problem but i can't seem to find it. i installed your 'forums.txt' addition and followed all the steps then went through them all again with a fine tooth comb. after all of this my regular forums do not display correctly under the $newsbits. all that is visible is the table layout but the content is missing!

my forums are currently offline until this problem is sorted but as i've read - you've got a million other queries to try and solve....we're all just eager to get this great hack perfected on our forums! if you could help me out in any way at all i would be very grateful.

(running vB2.3.2, installed mYvBindex 3.2.2 with no previous installs of mYvBindex)

leesa@cocteautwins.org

MaDCaT75 12-03-2003 07:41 AM

I wonder why this hack doesnt work on my forum :ermm:

Zachery 12-03-2003 02:17 PM

madcat i assisted you with your forum, you hacked it right, please dont comment here again unless you haev a post for support.


mmmender, did it work before you installed the addon?

Tigga 12-03-2003 03:44 PM

mmmender - I'm not sure what you're referring to by "forums.txt". Could you post a link to it? Or, if you would prefer, you could PM me your FTP info and I'll be glad to take a look.
One thing I just thought of as well - You may want to try going to your myvb_install.php file and choose the option to update your news posts to see if that helps.

mmmender 12-03-2003 04:01 PM

Quote:

Originally Posted by Faranth
mmmender, did it work before you installed the addon?

well the mYvBindex didn't include code to display all forums on the main page so the answer to your question would be no. but if you're asking if the index page worked before i added the forums hack then the answer is yes....but the rest of the page displayed fine before hand as well. i'm sorry, perhaps i'm just not sure what you're asking me.

Quote:

Originally Posted by Tigga
mmmender - I'm not sure what you're referring to by "forums.txt". Could you post a link to it? Or, if you would prefer, you could PM me your FTP info and I'll be glad to take a look.
One thing I just thought of as well - You may want to try going to your myvb_install.php file and choose the option to update your news posts to see if that helps.

tigga, i did the post updates and still nothing. i also can't seem to find the post in this thread where the forums.txt file is located but it's the file that begins like this.......

Code:

In your myvbindex.php file look for:

// vbPortal mini calendar - by wajones

Right Above that Add:

function makeforumbit($forumid,$depth=1,$permissions='') {
  global $DB_site,$bbuserinfo,$iforumcache,$ipermcache,$imodcache,$session,$accesscache,$usergroupdef,$noperms;
  global $showlocks,$hideprivateforums,$showforumdescription,$forumhomedepth,$dateformat,$timeformat,$enableaccess;

the only thing i've been able to think might possibly be the problem is that the original mYvBindex.php file does not contain the forumbits templates found near the beginning.....

Code:

$templatesused =
would this affect things? or am i way off the mark? if it does have an effect, which templates should i add and where should i add them to the .php file?

thanks very much for your offer to help out, please check your PM's for my FTP info.

-leesa-

P???t?l??k 12-04-2003 07:36 AM

I installed myvbindex correct but my 1 problem is when i turn on the weather it gives me and error when loading the home page.

Fatal error: Call to undefined function: fsockopen() in /users/blahblah.com/mysitehere/index.php on line 614

Here's how my line 614 looks.

$rawdata = fsockopen('www.msnbc.com',80,$num_error,$str_error ,30);

Please if anyone could help i would be grateful.

Tigga 12-04-2003 02:03 PM

Pøîñtßlåñk - What version of PHP are you running? According to the error, it's saying that there is no function for fsockopen, which is a standard function in PHP 3 and later...

Zachery 12-04-2003 08:57 PM

Quote:

Originally Posted by Tigga
P???t?l??k - What version of PHP are you running? According to the error, it's saying that there is no function for fsockopen, which is a standard function in PHP 3 and later...

could it be a problem with php as cgi in windows IIS?

xug 12-06-2003 12:52 AM

Any update for vB3Gamma?

P???t?l??k 12-06-2003 01:10 AM

Quote:

Originally Posted by Tigga
P???t?l??k - What version of PHP are you running? According to the error, it's saying that there is no function for fsockopen, which is a standard function in PHP 3 and later...

How can i find out what version i'm running i'm using someones host.

Zachery 12-06-2003 02:28 AM

Quote:

Originally Posted by P???t?l??k
How can i find out what version i'm running i'm using someones host.

upload phpinfo.php from you extras folder into your forums directy and either post or pm me or tigga the link (or both of us ^^)

Zachery 12-06-2003 02:28 AM

Quote:

Originally Posted by xug
Any update for vB3Gamma?

Xug that info would be on vbulletin.nl vb3 hacking is still not allowed

P???t?l??k 12-06-2003 03:42 PM

I uploaded the phpinfo file and tried to load the url and got this error.

Fatal error: Call to undefined function: phpinfo() in /users/myweb.com/mysighthere/forums/phpinfo.php on line 2

Do i have to edit that php file?
Here's line 2 in the php file.

phpinfo();

MindTrix 12-06-2003 03:59 PM

Check your phpinfo.php file and double check it has this

PHP Code:

 <?php phpinfo(); ?>


P???t?l??k 12-06-2003 05:21 PM

Is that suppose to be in one line?

P???t?l??k 12-06-2003 05:23 PM

1<?php
2phpinfo();
3?>

Thats how it is in the file.

MindTrix 12-06-2003 05:29 PM

Yup thats fine, nothing wrong with it.

Can you provide us with a link to the file?

Also try putting it outside of the forum folder (the folder that holds the Forum folder)

P???t?l??k 12-06-2003 05:38 PM

Also trying mysqlinfo and gettin this error aswell.

Fatal error: Call to undefined function: system() in /users/mysite.com/mysitehere/forums/admin/mysqlinfo.php on line 70

Zachery 12-06-2003 11:37 PM

Quote:

Originally Posted by P???t?l??k
Also trying mysqlinfo and gettin this error aswell.

Fatal error: Call to undefined function: system() in /users/mysite.com/mysitehere/forums/admin/mysqlinfo.php on line 70

does your host support PHP ?

P???t?l??k 12-07-2003 01:07 AM

My host supports PHP4.

Zachery 12-07-2003 01:26 AM

Quote:

Originally Posted by P???t?l??k
My host supports PHP4.

your vb runs? lol ^^

Tigga 12-07-2003 02:50 PM

Quote:

Originally Posted by Faranth
your vb runs? lol ^^

Was thinking the same thing. ;)

It sounds like your host has limited a few common PHP functions. I would contact them and ask that the fsockopen function be enabled, plus you may want to make sure fputs and fgets are enabled as well. If they say they can't do that, then I would recommend finding a better host.

SlowRoasted 12-08-2003 09:09 PM

does this work for vb3 gamma?

Zachery 12-08-2003 09:20 PM

Quote:

Originally Posted by SlowRoasted
does this work for vb3 gamma?

why would you think a hack for vb 2.x would work on 3?


try vbulletin.nl and look for vBadvanced

Neogen 12-12-2003 09:46 PM

hi all
can anyone help me, since i installed the portal my registrations page wont come up!!
can anyone help as i am getting no registrations, and this has only been happening after i installed myvbportal, im wondering if i have made a mistake installing it

TIA
Neogen

eclectica 12-13-2003 04:14 AM

Quote:

Originally Posted by Tigga
eclectica - I tried taking a look at your site to test the problem you're describing, but I didn't see any current posts from forum 5 on your homepage. I would almost bet money though that something else in the news query had to be changed... Specifically, the statement in there that says "WHERE isnews = 'Y'". If that is there, or if it's not there and you're unsure of how to add it back, please post the entire news query here so I can have a look at it. Unless I'm missing something though, there's no way it should be able to display a reply to a thread since only the first post in a thread will have a 'Y' in the isnews column.

At the time you checked I had set it back to just displaying the news from just one forum, forum #7, so when you checked that's why you didn't see it. Right now I just tried to restore it back for you, and instead it showed the content of forums 2 and 7, even when I had it set as 5 & 7 or 7 & 9 in the index.php. I can't even reproduce the former error, but I have a new one instead (showing threads from forum #2). So I restored it back to just 7 in the admin control panel rather than leaving it that way. Here is how my line looks now in the index.php:
Quote:

WHERE forumid='$newsforum' AND isnews='Y' AND open<>10

P???t?l??k 12-13-2003 05:07 AM

Quote:

Originally Posted by Faranth
your vb runs? lol ^^

Yes my VB runs fine.

P???t?l??k 12-13-2003 05:08 AM

Quote:

Originally Posted by Tigga
Was thinking the same thing. ;)

It sounds like your host has limited a few common PHP functions. I would contact them and ask that the fsockopen function be enabled, plus you may want to make sure fputs and fgets are enabled as well. If they say they can't do that, then I would recommend finding a better host.

Ok will do thx alot for your time and help.
It's funny when i disable weather it runs fine.
It only gives me that error when i enable weather.


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