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)

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.


All times are GMT. The time now is 08:57 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.02576 seconds
  • Memory Usage 1,773KB
  • 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
  • (8)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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