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)

supersimon 01-22-2003 08:48 PM

There seems to have been a slight problem with the LiquidFLO database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.


Database error in vBulletin 2.2.7:

Invalid SQL: SELECT thread.threadid,thread.title,thread.replycount,thr ead.postusername,thread.postuserid,thread.dateline ,thread.views,thread.iconid,thread.votenum,thread. votetotal,post.postid,post.pagetext,post.allowsmil ie,post.showsignature,user.signature,avatar.avatar path,NOT ISNULL(avatardata) AS hascustom,customavatar.dateline AS avatardateline FROM thread LEFT JOIN post USING (threadid) LEFT JOIN user ON (user.userid=post.userid) LEFT JOIN avatar ON (avatar.avatarid=user.avatarid) LEFT JOIN customavatar ON (customavatar.userid=user.userid) WHERE thread.forumid=62 AND isnews='Y' GROUP BY thread.threadid ORDER BY thread.threadid DESC LIMIT 5
mysql error: Got error -1 from table handler

mysql error number: 1030

Date: Wednesday 22nd of January 2003 05:34:42 PM
Script: http://www.liquidflo.com/rap/rap/myvbindex.php
Referer:


iv had my homepage up for 2-3 days and i come home,... and get this ??? can ayone help

Tigga 01-22-2003 09:42 PM

Supersimon - That looks like one of your tables has become corrupt. You should try running the repair.php file in the "extras" folder that came with vBulletin.

papa 01-25-2003 03:37 PM

Hi Guys,
I am trying to password protect my pages that are on myvbindex page so once they are logged in they can view our site. I have found a few things but nothing seems to work right. Is there anything like that in myVBindex?

So if they are not logged in it takes them to a reg. page and if they are it allows them access to the site.

Papa

jeffj 01-25-2003 05:10 PM

Quote:

Originally posted by papa
Hi Guys,
I am trying to password protect my pages that are on myvbindex page so once they are logged in they can view our site. I have found a few things but nothing seems to work right. Is there anything like that in myVBindex?

So if they are not logged in it takes them to a reg. page and if they are it allows them access to the site.

Papa

papa:

this should work for you...assuming you do not want un-registered/un-logged-in users to see your myvbindex.php page;

right after:

require('./global.php');

insert the following code:

PHP Code:

if ($bbuserinfo['userid'] == 0) { eval("dooutput(\"".show_nopermission()."\");"); } 


papa 01-26-2003 01:00 AM

Thanks Jeff,
It worked like a champ blocking me out but if I enter my username and pass it takes me to the member.php page and not the page I was at??? Could this be a setting in the log in page?

One more questions. Can I use:
require('./global.php');
if ($bbuserinfo['userid']==0) {
eval("dooutput(\"".show_nopermission()."\");");
}

on non vb pages can I use the above code as an include to protect those pages.

Thanks in advance

ranger2kxlt 01-26-2003 11:51 PM

plur planet, maybe you can help me with this

https://vborg.vbsupport.ru/showthrea...threadid=48130

please refer there, but we would also like this done on the vbindex pages we have, anyway?

Thanks

jeffj 01-27-2003 12:54 AM

Quote:

Originally posted by papa
Thanks Jeff,
It worked like a champ blocking me out but if I enter my username and pass it takes me to the member.php page and not the page I was at??? Could this be a setting in the log in page?

One more questions. Can I use:
require('./global.php');
if ($bbuserinfo['userid']==0) {
eval("dooutput(\"".show_nopermission()."\");");
}

on non vb pages can I use the above code as an include to protect those pages.

Thanks in advance

sure. I use it all the time...make sure you've got
require(./global.php');

at the beginning to make all the vb variables available.

papa 01-27-2003 04:33 PM

This is the error I get Jeff,
Parse error: parse error, unexpected T_REQUIRE in /home2/mmdclab/mmdclab-www/forums/v_blur_tool.php on line 1

????

papa 01-27-2003 05:22 PM

OK I got the require thing going but now I get this at the top of the pages:
Warning: Cannot add header information - headers already sent by (output started at /home2/mmdclab/mmdclab-www/forums/v_blur_tool4.php:3) in /home2/mmdclab/mmdclab-www/forums/admin/functions.php on line 1573

You can enter your username and pass and it will work ok but I am not sure where this error is coming from.

papa 01-27-2003 07:39 PM

ok we are making progress.
We do not get an error and it works everytime as long as the file we add this code to is in the forums directory. If we place the file in a folder it will not work. It keeps taking us to the member.php file and it is looking for it in the folder our protected file is in.

Anyone have any solutions to this? I guess we could just place all of our files we want to require registration in our forums folder but that would just get crazy.

Thanks in advance.

XtReMaTriX 01-28-2003 02:53 AM

For some reason my "Latest Forum Topics" does not work... when i enter in 0 for the value the header shows up. and if it. if i enter in 10 then i still get just the header...

what should i do to fix this???

DarkDraco07 01-28-2003 03:21 AM

i havnt been up to date on this thread. has that mini hack addon been made yet?

Tigga 01-28-2003 05:13 AM

I apologize for not being around to help these last few days. My normal job is a club promoter and this weekend was our 2 year anniversary event, and one of the biggest we've done yet. Things were extremely busy around here so I haven't had much time to check vb.org... Plus I kinda had to take a day to relax and recover from the weekend. Now I'll see if I can help with some of the questions. :)


Ranger - Open your myvbindex.php file and look for:
PHP Code:

$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user'); 

Replace that with:
PHP Code:

$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE usergroupid!=3'); 


Papa - Is it looking for the member.php file in the wrong directory and resulting in a blank page when you first try to go to the password protected page, or is it just redirecting you to the member.php file after you log in from one of those pages?


Matrix - Was the latest threads part working before and suddenly stopped, or has it not ever worked? Have you modified your myvbindex file at all? If so, try uploading a fresh version and name it something other than what the current file is called and see if it works on that one. You could also try checking your index_threadbit template and make sure it's not blank, and your index template to make sure the $threadbits variable is in there right below the header part.


DarkDraco - I'm assuming you mean a hack to keep the index page open if the forums are closed. If so, sorry but I haven't had time to work on that yet.

XtReMaTriX 01-28-2003 10:58 PM

I can only remember my latest threads working the very first time i loaded it. after that it had never worked... and it stopped working before i tried 2 modify the file. i loaded a fresh copy onto my server and when i view it still nothing for it. and for my index_threadbit well here is the code in it...

Code:

<tr><td bgcolor="$getbgrow">$thread[icon]<normalfont><a href="$bburl/showthread.php?s=$session[sessionhash]&threadid=$thread[threadid]"><b>$title</b></a></normalfont><br>
<smallfont color="{timecolor}">$thread[date]</smallfont><br>
<smallfont> by <a href="$bburl/member.php?s=$session[sessionhash]&action=getinfo&userid=$thread[postuserid]">$thread[postusername]</a><br>
Replies: $thread[replycount] | Views: $thread[views]</smallfont></td></tr>


Mono 01-30-2003 08:07 PM

Ok lets say in my custom boxes I decide to make them into a nav bar how would I go about making a new page like a staff page where the things on the left and right are the same but where news is is the new tables and stuff. If it's been posted already Im sorry I went through 16 pages looking for it.

XtReMaTriX 01-31-2003 06:40 AM

Mono - I did something similar to what you are asking with the WEBTEMPLATES hack
you just have to put in some extra code like
PHP Code:

$getbgrow=getrowcolor();
  eval(
"\$custom1 .= \"".gettemplate('index_custom1')."\";"); 

The thing that i could get to show without having it mess up was the "most users ever online" but i just removed that for the new pages...

Here is a live demo of myvbindex: XtReMoDs
WEBTEMPLATES: Template

If you PM me then i can tell you more about what code to add...

Tigga 01-31-2003 12:47 PM

Mono - Something like that could be done fairly easily. I know I already explained how to do it somewhere in this thread, but I couldn't find it by searching, so I'll just explain it again. :)

If you'll open your myvbindex.php file and look for this line:

// News

Right above that you'll want to place some coding like this:

PHP Code:

if ($action=="newpage") {
eval(
"\$newsbits = \"".gettemplate('index_newpage')."\";");
} else { 

Then you'll want to look for this line:
PHP Code:

$DB_site->free_result($getnews);
unset(
$news);


Right below that you will want to add another }

Then you'll want to create a template called index_newpage (of course you can call it whatever you'd like, just be sure to change the name in the code above).

Then to link to that page, you would use the url http://yoursite.com/myvbindex.php?s=$session[sessionhash]&action=newpage
And again the "newpage" part after the action can be changed to whatever you'd like, just be sure to change that in your coding as well.

attroll 01-31-2003 11:16 PM

Awesome hack. I love it but I have two problems.

1. When I go to install the weather_install.php. I get a "The page cannot be displayed". This page is in my admin directory and I don't know why I get this error when trying to execute it.

2. When my calendar shows it has the current time and date but the date that is highlited on the calendar is the wrong one. What can I do to fix this.

My site that I installed this mod on is a test site for my main site. The hack can be viewed on http://lifestrails.com

Colon33 02-01-2003 09:39 PM

I keep getting an ERROR here when i post a poll.

Code:

Fatal error: Call to undefined function: get_bbarraycookie() in /home/moguslan/public_html/myvbindex.php on line 251

Can anyone help me out?

Mono 02-01-2003 11:05 PM

Quote:

Originally posted by PlurPlanet
Mono - Something like that could be done fairly easily. I know I already explained how to do it somewhere in this thread, but I couldn't find it by searching, so I'll just explain it again. :)

If you'll open your myvbindex.php file and look for this line:

// News

Right above that you'll want to place some coding like this:

PHP Code:

if ($action=="newpage") {
eval(
"\$newsbits = \"".gettemplate('index_newpage')."\";");
} else { 

Then you'll want to look for this line:
PHP Code:

$DB_site->free_result($getnews);
unset(
$news);


Right below that you will want to add another }

Then you'll want to create a template called index_newpage (of course you can call it whatever you'd like, just be sure to change the name in the code above).

Then to link to that page, you would use the url http://yoursite.com/myvbindex.php?s=$session[sessionhash]&action=newpage
And again the "newpage" part after the action can be changed to whatever you'd like, just be sure to change that in your coding as well.

Thank you oh so much

and before I forget ... *clicks install*

Tigga 02-02-2003 07:22 AM

Attroll - That's strange that it would be giving you an error like that for the weather part. I know one other person was having a similar problem before and we never could figure out why. Double check that the file was uploaded to your forums/admin folder and that you are going to the right url in your browser. If it still doesn't work for you let me know and I will post a file here with the queries so you could run the queries through phpMyAdmin instead.
As for the calendar, that should work correctly and highlight the current date according to the time that is set in your Admin CP. I just checked your site and it has the correct date highlighted. If you're still having problems with it though let me know and I'll try to figure out what's wrong.


Colon33 - Are you running vBulletin 2.2.5 or lower? That's a function that was apparently changed in 2.2.6, and that's the lowest version I've had to test it with. For the time being, I believe you could remove this code from your myvbindex.php file:
PHP Code:

get_bbarraycookie('pollvoted'$pollid) or 

However, that will not check the cookie on people's computer to check if they have voted on the poll or not, so it would make it a little easier for people to vote more than once if they wanted to. If someone could email me (brian@plurplanet.com) their admin/functions.php file from v2.2.5 I could take a look there to find out what the function was changed from and post a fix for those users.

Mono - Thanks for installing the hack. Hope you enjoy it. :)

Tigga 02-02-2003 07:37 AM

Actually, this may work too for the cookie function problem. This is the function from 2.2.9, so if it was added in it should fix the problem. Just open your myvbindex.php file and look for:

require('./global.php');

Right below that Add:
PHP Code:

$bbcookiecache = array();
function 
get_bbarraycookie($cookiename$id) {
    
// gets the value for a array stored in a cookie
    
global $HTTP_COOKIE_VARS;
    global 
$bbcookiecache;

    if (!isset(
$bbcookiecache[$cookiename])) {
        
$bbcookiecache[$cookiename] = @unserialize($HTTP_COOKIE_VARS["bb$cookiename"]);
    }
    return 
intval($bbcookiecache[$cookiename][$id]);


Let me know if that works. :)

TotlKaos 02-02-2003 01:55 PM

I would like to replace the News part on the front page with just the forums.. so that way you have the forums with the info boxes on the left and the right..
Is this possible to do?

Russ

Tankmech 02-02-2003 02:50 PM

Hi there,

Nice Hack, it's working great here.

Is it possible to prevent the latest forums topics portion from showing threads that they do no have access to. Sometimes the subject of the message gives information you don't want the whole board to see.

XtReMaTriX 02-02-2003 03:52 PM

Quote:

Originally posted by PlurPlanet
Mono - Something like that could be done fairly easily. I know I already explained how to do it somewhere in this thread, but I couldn't find it by searching, so I'll just explain it again. :)

If you'll open your myvbindex.php file and look for this line:

// News

Right above that you'll want to place some coding like this:

PHP Code:

if ($action=="newpage") {
eval(
"\$newsbits = \"".gettemplate('index_newpage')."\";");
} else { 

Then you'll want to look for this line:
PHP Code:

$DB_site->free_result($getnews);
unset(
$news);


Right below that you will want to add another }

Then you'll want to create a template called index_newpage (of course you can call it whatever you'd like, just be sure to change the name in the code above).

Then to link to that page, you would use the url http://yoursite.com/myvbindex.php?s=$session[sessionhash]&action=newpage
And again the "newpage" part after the action can be changed to whatever you'd like, just be sure to change that in your coding as well.

Do you have to use Action for this? can you call it whatever you want?

KeneticKangaroo 02-03-2003 03:08 AM

This is the error:

Quote:

Warning: ChDir: No such file or directory (errno 2) in /usr/local/psa/home/vhosts/airwavescomms.co.uk/httpdocs/myvbindex.php on line 13

Warning: Unable to access ./global.php in /usr/local/psa/home/vhosts/airwavescomms.co.uk/httpdocs/myvbindex.php on line 17

this is my vbindex file:
PHP Code:

// Enter The Full Path To Your Forums Here
chdir('/forums');
// No Further Editing Necessary


require('./global.php'); 

on the require ('./global.php'); bit i dont know why there is a
Quote:

.
there

but If i change
PHP Code:

require('./global.php'); 

to
PHP Code:

require('forums/global.php'); 

i get this error
Quote:

Warning: Unable to access /admin/db_mysql.php in /usr/local/psa/home/vhosts/airwavescomms.co.uk/httpdocs/forums/global.php on line 139
instead of

Quote:

Warning: Unable to access ./global.php in /usr/local/psa/home/vhosts/airwavescomms.co.uk/httpdocs/myvbindex.php on line 17

KeneticKangaroo 02-03-2003 03:23 AM

ok the chdir bit is sorted, its the global bit i still have a problem with

XtReMaTriX 02-03-2003 04:04 AM

OK, I have a question about the whole action= thing.

Whenever u put action="pagename" can u make that the template name. so then i would not have to make an if then statement for each page i make. so if i type:
myvbindex.php?action="templatename" then the template would come up.

Am i explaining this right?

certify 02-03-2003 06:04 AM

I can't edit the thread, check ip or warn as it keep showing the same postid. Every time I click edit my post or someone else post it goes and edit the first thread. Goto the thread below and you will know what I am talking about.
http://www.bmwclub.com.my/forums/sho... s=&threadid=2

Tigga 02-03-2003 09:21 AM

TotlKaos - Yes, that would be possible with a bit of hacking. I'll test it out and try to post instructions on what you would change a little later.


Tankmech - Private topics in the latest threads part are only visible to those who have permission to view them. If you log out or log in as a user that does not have access to those forums, those threads should not be visible. If they are still visible, you should make sure your forum permissions are set so that those usergroups are not allowed to see other's threads in that forum.


Matrix - Yes, you should be able to change "action" to pretty much whatever you would like. It would just need to be changed in the code and the url. Just adding templates alone would not work though. If you wanted to have more than one seperate page like that, you would need to add something like this:

PHP Code:

if ($action=="newpage") {
eval(
"\$newsbits = \"".gettemplate('index_newpage')."\";");

} elseif (
$action=="newpage2") {
eval(
"\$newsbits = \"".gettemplate('index_newpage2')."\";");

} elseif (
$action=="newpage3") {
eval(
"\$newsbits = \"".gettemplate('index_newpage3')."\";");

} else { 

Then if you wanted more than 3 different templates that could be pulled in place of the news, you would just add another elseif statement in there before the else part at the end.


KeneticKangaroo - The path to your fourms should be /usr/local/psa/home/vhosts/airwavescomms.co.uk/httpdocs/forums and you should not have changed the require part.


certify - That wouldn't have anything to do with this hack. It looks like something has been messed up either in the code or your postbit template. The best thing I can suggest is for you to make a backup of your postbit template and then revert it to it's original to see if that's where the problem is. If that doesn't work, you should try uploading an unhacked version of your admin/functions.php and/or showthread.php files. The problem would most likely be in that template or one of those files.

certify 02-03-2003 11:15 AM

Thanks for the tip. :)

!2eS!n 02-04-2003 09:13 PM

Nothing is showing up in the middle section of my front page now... Am i doing something wrong?! Everything else is 100% just its balnk in the middle row, but both sides are fine?!?!

attroll 02-05-2003 03:50 AM

OK. The calendar started working. I guess it was just a glitch. I reuploaded weather_install.php to my forum/admin folder and tried to run it again and now I get the following error:

Parse error: parse error in /usr/local/etc/httpd/htdocs/lifestrail/forum/admin/weather_install.php on line 35444

Is this because it is trying to create an SQL database file? If so I can not do that on my own my host has to create it for me.

Tigga 02-05-2003 03:55 PM

!2eS!n - Were the posts in your news forum made before or after you installed the script? The scirpt will only recognize posts that were made after it was installed. If you need to update those posts, search this thread for phpMyAdmin and you should be able to find how to update those posts. If the posts were made afterwards, then your News Forum ID is not set correctly, or you did not edit your newthread.php file correctly.

attroll - I double checked that line of code in the weather_install.php file and there's nothing there that could cause that error. It's possible though that the file got cut off during transfer, which would result in an error like that. I would suggest to try re-uploading the file and make sure it is uploaded completely, and then run the script again. If that doesn't work let me know.

attroll 02-06-2003 03:37 AM

I tried uploading the file in binary and asc and not matter what I keep getting the same problem when I try to execute the file.

The page cannot be displayed
The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings.

I kept getting this error the every time until the other night when I reuploaded and got the last error message in my last post. But this current one is the one I was getting every other time.

Man what the hell is going on?

redstaing0 02-06-2003 09:56 AM

i have a problme plsea help me why

Adding city values 1-10,000...



Database error in vBulletin Control Panel 2.2.6:

Invalid SQL: INSERT INTO weather_city VALUES ('AYXX0007', 'Base Arturo Prat', 263)
mysql error: Duplicate entry 'AYXX0007' for key 1

mysql error number: 1062

Date: Thursday 06th of February 2003 09:54:14 AM
Script: http://localhost/vbbb/vbbb/admin/wea...all.php?step=4
Referer: http://localhost/vbbb/admin/weather_install.php?step=3

Tigga 02-06-2003 03:47 PM

attroll - I'm really not sure why it would be doing that. One other person has had a problem like that before, but I have no idea why. About the only thing I can suggest is to run the queries manually through phpMyAdmin. Here's a link to the thread that has the queries and instructions - https://vborg.vbsupport.ru/showthrea...513#post318513


redstaing0 - That's most likely a result of you hitting the "next" link twice when installing the weather. The best thing I can suggest for you to do is to upload the myvb_uninstall.php file to your forums/admin folder and go to this url - http://yoursite.com/forums/admin/myv...all.php?step=3
That should remove all changes for just the weather part, and then you can run the weather_install.php script again.

redstaing0 02-06-2003 10:39 PM

i will try it agen today

but it is cool hack thankes

i will try it agen now i hop they help to install

Units 02-07-2003 12:22 AM

I cannot get the news to show on the page! weird :(

Prophet2002 02-07-2003 02:12 AM

Would there be some way to exclude specific forum or thread id's from the "Latest Forum Topics" section on the main page?


All times are GMT. The time now is 11:33 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.02914 seconds
  • Memory Usage 1,891KB
  • 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
  • (16)bbcode_php_printable
  • (8)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