PDA

View Full Version : vBindex v3.0.0 RC5


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

NTLDR
01-21-2004, 09:17 AM
I really enjoy the 'random' poll feature. However, is their someway to limit the date as to how far it goes back on the poll? I'm getting posts pulled up from ages ago. Also, being able to highlight the title of the poll and have a 'thread preview' would be pretty nifty as well (for the polls that don't make a tonne of sense without some information).

In vbindex.php find:


".iif(strtoupper($vbindex['pollsforumid']) != 'ALL', "AND thread.forumid IN ($vbindex[pollsforumid])")."

Add before:

AND poll.dateline > ". TIMENOW - X."

Replacing X with the number of seconds old it can be, for example any poll created within the last 31 days put 2678400.

I'll try and remember to add the thread preview to RC4.

jaliam
01-21-2004, 09:44 AM
Make sure you have uploaded all the files to the correct directories and that you have the right value entered for $admincpdir in includes/config.php
I just verified everything and it all seems to be in the correct places.

NTLDR
01-21-2004, 10:11 AM
The easiest solution is to find in vbiupgradecore.php:

chdir('../'.$admincpdir);

And replace it with the full path to your admin cp directory, eg:

chdir('/home/bogus/public_html/forums/admincp');

Mukashi
01-21-2004, 10:17 AM
It seems to work fine on my site, I'd check your vbindex_side template and make sure it has the following in it:

(Snipped Code for space)

The $vbindex['options'] <if> blocks are the important parts that adjust the width.

The block showed up as


<!-- start side ($currentside) -->
<td width="150" style="vertical-align: top">
<if condition="$currentside == 'left'">
$home[leftblocks]
</if>

<if condition="$currentside == 'right'">
$home[rightblocks]
</if>
</td>
<!-- end side ($currentside) -->


I've edited my template with the corrections. Thanks for the help.

d3nnis
01-21-2004, 04:03 PM
Help! I am stuck at step 7... it says page cannot be found?

I have loaded the following...

/root

vbindex.php
vbiconfig.php

forums/includes/cron

eventcache.php

forums/install

vbiupgrade.php
vbiupgradecore.php
vbifunctions_upgrade.php
vbiupgrade1.php - vbiupgrade3.php (I only see vbiupgrade1.php to vbiupgrade3.php)
vbindex_phrases.xml
vbindex_templates.xml

forums/[myadmin folder]

vbioptions.php

After this I point to http://www.my forum address.com/install/vbiupgrade.php

everything went fine till step 7...

whats wrong??

NTLDR
01-21-2004, 04:05 PM
You haven't uploaded vbiupgraded.php to your install folder.

d3nnis
01-21-2004, 04:11 PM
You haven't uploaded vbiupgraded.php to your install folder.


cool thanks :)

d3nnis
01-21-2004, 04:28 PM
by the way NTLDR , how do I uninstall vbindex?

NTLDR
01-21-2004, 05:43 PM
You need to look through the 4 install files and reverse all queries that do any modifications.

marcjd
01-21-2004, 09:31 PM
In vbindex.php find:


".iif(strtoupper($vbindex['pollsforumid']) != 'ALL', "AND thread.forumid IN ($vbindex[pollsforumid])")."

Add before:

AND poll.dateline > ". TIMENOW - X."

Replacing X with the number of seconds old it can be, for example any poll created within the last 31 days put 2678400.

I'll try and remember to add the thread preview to RC4.
I tried this but it isn't working. I am getting a white screen with:
Parse error: parse error in /home/politics/public_html/index.php on line 685

I made sure there weren't any extra spaces and did it all in plain text. Deleting the extra line and reuploading of course fixes the problem.

Thanks for all of your work on this; it is appreciated by many.

NTLDR
01-21-2004, 09:54 PM
Sorry, I should have said add that line after, and not before :)

marcjd
01-21-2004, 09:59 PM
Still didn't work. Getting the same error. Thanks. :)

NTLDR
01-21-2004, 10:07 PM
OK I tested it this time, it wants the subtraction in brackets:

AND poll.dateline > ".(TIMENOW - X)."

This will work, I promise :) Remember to change X again.

marcjd
01-21-2004, 10:13 PM
Thank you very much; it works great now!!! Yippee!!! :D

Asendin
01-21-2004, 11:04 PM
Thank you very much; it works great now!!! Yippee!!! :D
ok good, now upgrade your vB to RC3 :D

marcjd
01-21-2004, 11:10 PM
I think I will just wait for vb3 gold. I have made some file changes here and there and don't have the time to document them all like I should have from the beginning. Not too many, but just don't want to waste the time with it now. :)

Anarchy
01-22-2004, 12:14 PM
Below is the text i placed in the phpinclude_start template.

$msie = '/msie\s([5-9])\.?[0-9]*.*(win)/i';
$opera = '/opera\s+[0-9]+/i';
if(!isset($_SERVER[HTTP_USER_AGENT]) || !preg_match($msie,$_SERVER[HTTP_USER_AGENT]) || preg_match($opera,$_SERVER[HTTP_USER_AGENT]))

{

$logooutput = "<img border=/"0/" src=/"$vboptions[bburl]/blank.gif/" style=/"border: 0; width: 270px; height: 80px; filter:
progid:DXImageTransform.Microsoft.AlphaImageLoader (src='$vboptions[bburl]/images/header/ttclogo.png', sizingMethod='scale')/" />";

}
else
{

$logooutput = "<img src=/"$vboptions[bburl]/images/header/ttclogo.png/" style=/"width: 270px; height: 80px; border: 0;/" />";

}


I then put $logooutput in my vbindex_header template and nothing happens. What should i do to fix this?

NTLDR
01-22-2004, 12:26 PM
A much better way of doing that would be:

<if condition="is_browser('ie') || is_browser('opera')">ie/opera html<else />other browsers html</if>

zenmasteril
01-22-2004, 02:18 PM
I want to add statistics in a custom block at vBindex..
How do i do that ?
I know how to find the members number ( $home[numbermembers] )
But what about the total post, total threads, best poster ?
And also if it's possible - Top Threader (the one who started the most threads)

Thanks

NTLDR
01-22-2004, 02:20 PM
You'll need to edit vbindex.php and enter the code to collate the stats you want, or wait untill RC4 when it can all be done via the templates.

zenmasteril
01-22-2004, 02:33 PM
You'll need to edit vbindex.php and enter the code to collate the stats you want

I'd be happy to do that... Unfortunately i don't know PHP :disappointed:
Can you tell me where should i put it or something ?
Is it so complicated ? please help anyone..

NTLDR
01-22-2004, 07:33 PM
You haven't set up the options correctly. If you wish to use multiple news forums they must be seperated by commas, eg 12, 2

pcalloway
01-22-2004, 08:11 PM
How can I create a link or set of links in a custom block to the Forums main page?
- I can't find the template to edit anywhere...

Also the polls don't seem to work. On my test board the URL is http://69.93.73.106/~authent/vbindex.php (until i get it working and actually switch my domain name) but when i answer a poll it gives me

vBulletin Message
Invalid Poll specified. If you followed a valid link, please notify the webmaster

I notice though, the url it goes to strips off the /-authent/

Also, how can I add a FORUMS link to the top of the page where "User CP Register FAQ Members List Calendar New Posts Search Quick Links Log Out " links are?

NTLDR
01-22-2004, 09:10 PM
How can I create a link or set of links in a custom block to the Forums main page?
- I can't find the template to edit anywhere...

vbindex_customblock_X (where X is the block number) after you have set the blocks up on the options page.

I notice though, the url it goes to strips off the /-authent/

You have the board URL set wrong in the ACP.

Also, how can I add a FORUMS link to the top of the page where "User CP Register FAQ Members List Calendar New Posts Search Quick Links Log Out " links are?

Edit the navbar template.

Sebastian
01-22-2004, 11:08 PM
any updates on a more accurate count on newpost/threads?
i tried some experimenting myself and couldn't make the newpost/threads counter go down as the users read the posts/threads.. think its even possible?

???`S?LV?R???`
01-23-2004, 02:48 AM
speaking of vbindex rc4... anything we should expect in the next version? updates, fixes, changes?

Cyricx
01-23-2004, 07:06 AM
Don't know if this've been said. But I think there's a small buggie that needs to be chopped.

On the main page (vbIndex), the "logout" link is not linking to the login.php in the /forums/ folder, it's linking to login.php in the same folder where vbindex.php is in.

Cyricx

Natch
01-23-2004, 07:36 AM
For those that wanted a tool to automatically update your smilie path's, here is a quick and ugly automated script:

Place the attached file in your admincp (or equivalent) folder and load it from the browser...

The first page you see prompts you for the extra path you want to add to the start of every smilie in your database: e.g. /forums/ to be added to the start of every images/smilies/{smilie}.gif, you would enter /forums/.

Then u press Update Smilie Path, and it will do it.

USE THIS AT YOUR OWN RISK - TAKE A DUMP OF YOUR SMILIE TABLE BEFORE USING THIS SCRIPT.

I used it on my site and it worked a charm - if you wanna see the SQL query to run it from your AdminCP, it goes as follows:



UPDATE `smilie` SET `smiliepath`= CONCAT('/forums/',`smiliepath`);



If u use the above SQL query, make sure you append your table prefix to the start of the table name, and alter the /forums/ bit to match your site.

HTH

NTLDR
01-23-2004, 08:51 AM
any updates on a more accurate count on newpost/threads?
i tried some experimenting myself and couldn't make the newpost/threads counter go down as the users read the posts/threads.. think its even possible?

Hopefully it will be in RC4, it is posible I've just got to get the code done to do it :)

NTLDR
01-23-2004, 08:54 AM
On the main page (vbIndex), the "logout" link is not linking to the login.php in the /forums/ folder, it's linking to login.php in the same folder where vbindex.php is in.

Are you sure you edited the navbar template correctly? All the links to login.php should be corrected in the provided template.

NTLDR
01-23-2004, 08:56 AM
speaking of vbindex rc4... anything we should expect in the next version? updates, fixes, changes?

Dynamic PHP powered custom blocks, bug fixes from RC3, improved new thread/post counter, improved installer and hopefull the admin help.

vfxtalk
01-23-2004, 09:01 AM
awesome!!! ...cant wait ;)

Pete
01-23-2004, 02:15 PM
* Pete clicks install
Very nice, thank you.

I was having the excluded forum displaying in latest threads problem, spent 20'ish minutes reading through the whole thread to find the fix here (https://vborg.vbsupport.ru/showpost.php?p=463056&postcount=390). If people didn't ask the same question 20 times, coulda found it in five. You've got a lot of patience :laugh:

I hope you decide to add optional side blocks on forum pages.

Mamochka
01-23-2004, 04:45 PM
And how instead of Custom Block 1 and in it Block 1 Content that to write?

Cyricx
01-23-2004, 05:48 PM
Question:

What file is vbindex calling the navbar from and what varible is it using?

Because I have a custom navbar I made. And it's calling up the old navbar and not linking properly. It's linking to something in the same directory. Not something in the /forums/ directory.

I made a 2nd template with the edits so it links to stuff inside the /forums/ directory. It seems just not want to work, lol. So, can you tell me? :) heh

Cyricx

NTLDR
01-23-2004, 07:46 PM
It uses vB's standard navbar template from whatever style you are using, and has the variable $navbar like in all the other pages :)

Cyricx
01-23-2004, 07:57 PM
Hm, looks like I'm going to have to use conditionals. Now to learn how it works, LOL ...

On vbindex (main page) it's linking to http://test.mydomain.com/index.php for the "Forums" ... And on the forums page, it is linking to http://test.mydomain.com/forums/index.php which is the correct url.

Hummm... So much fun tearing my hair out...

Thanks,

Cyricx

NTLDR
01-23-2004, 08:10 PM
Which bit links there?

Cyricx
01-23-2004, 08:15 PM
English, please? LOL

I'm not up on all that lingo.

Sending you a PM with url for my test site.

Cyricx

NTLDR
01-23-2004, 08:20 PM
Did you remove $navbar from the VBINDEX template?

Cyricx
01-23-2004, 08:21 PM
Changed back to $navbar, heh...

Was trying something else earlier today. Forgot to change that. LOL

Cyricx

NTLDR
01-23-2004, 08:24 PM
I'm assuming you haven't prefixed all the links in the navbar template with $vboptions[bburl]/ ?

Cyricx
01-23-2004, 08:30 PM
Gah, lol, that was it. :p

*goes back to hanging my head in shame* lol

Cyricx

maverick1236
01-23-2004, 09:12 PM
seems everything is correct-but i keep pulling this error:

on step 1:

Warning: file_get_contents(../forum/includes/config.php): failed to open stream: No such file or directory in c:\appserv\www\forum\install\vbiupgradecore.php on line 39

(../forum/includes/config.php)

this is right
the full path is C:\AppServ\www\forum\includes\config.php

what am i doing wrong?

NTLDR
01-23-2004, 09:27 PM
I've no idea how that path got there, in vbiupgradecore.php find:

file_get_contents('../includes/config'.SCRIPT_EXTENSION));

And change the ../includes/config part to the full path to config.php (without the .php), probably c:/appserv/www/forum/includes/config although I've not tried this on Windows.

maverick1236
01-24-2004, 12:24 AM
I've no idea how that path got there, in vbiupgradecore.php find:

file_get_contents('../includes/config'.SCRIPT_EXTENSION));

And change the ../includes/config part to the full path to config.php (without the .php), probably c:/appserv/www/forum/includes/config although I've not tried this on Windows.


***FIXED***

Thank You!!

SRozhon
01-24-2004, 02:59 AM
Great Hack, but how do I change the colors?

RapCheck
01-24-2004, 03:20 AM
vbindex's colors are controled by your style sets. So to change the colors you edit your style in the vb admincp

SRozhon
01-24-2004, 11:52 AM
Yes, I thought so but which ones ecaxtly in the CSS because this is what my forums look llike because I already changed those colors. I don't want to mess my colors up by experimenting. Can someone tell me which ones the colors are coming from in the style? I already changed most of them but it is still blue. Thanks!

xxskullxx
01-24-2004, 12:32 PM
You need to change your image paths in your Catagory Strips and Table header to full paths,
i.e.
#869BBF url(images/gradients/gradient_tcat.gif) repeat-x top left

becomes

#869BBF url(http://yourdomain.com/forums/images/gradients/gradient_tcat.gif) repeat-x top left

Wolfy.2k
01-24-2004, 06:10 PM
hi NDTLR, i got some problems again, i have just put vbindex on to my main forums, (was on a test forum before) and i have now got 2 problems.

1. I have enabled the news, but when it is on the main page, the text does not show, v odd.

also at the top of the page it says:

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

any ideas?

also, on the shoutbox, when i add a shout, it keeps on coming up on the page saying thank u for adding ur shout, when before it didnt use to, i liked it more when it didnt, any idea how to stop that too?

ty for ur help (again) lol

integra99
01-24-2004, 06:46 PM
I think VBIndex needs to add more blocks like VBAdvanced has, such as the search, etc etc

NTLDR
01-24-2004, 06:51 PM
also at the top of the page it says:

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

What version are you using? I'd guess its not RC3 so I'd suggest you upgrade, either way you haven't edited the chdir() path correctly, see the instructions with your zip for details on what to do with your version.

NTLDR
01-24-2004, 06:54 PM
I think VBIndex needs to add more blocks like VBAdvanced has, such as the search, etc etc

vBindex has Unlimited built in blocks, just add the HTML you need. I can't cater for everyone which is why the blocks are based on the most commonly requested items. Besides a search box is redundant, you have one at the top of each page in the navbar by default.

integra99
01-24-2004, 07:08 PM
Understandable, why are some blocks wider than others?

NTLDR
01-24-2004, 07:08 PM
also, on the shoutbox, when i add a shout, it keeps on coming up on the page saying thank u for adding ur shout, when before it didnt use to, i liked it more when it didnt, any idea how to stop that too?

Thats based on your setting in the control panel for wether or not vB should use redirection messages, vBindex just follows the forum setting.

NTLDR
01-24-2004, 07:10 PM
Understandable, why are some blocks wider than others?

vB's mini Calendar is bigger than all the other blocks, unless you edit your mini calenedar template, but that also effects the main calendar. Assuming you have the latest vbindex_sidebar template, see back a few pages for details of it, the side blocks should dynamicly expand to be the correct width if you have enabled it.

Wildthinks
01-24-2004, 07:12 PM
I have trouble ... no news is showing... i have the right Forumsid, news checked and vbwar not.
Any hints ?
RC3 ....

Wolfy.2k
01-24-2004, 07:39 PM
nd, i am using RC3: http://www.nightstalkers.co.uk/forum/vbindex.php

NTLDR
01-24-2004, 07:48 PM
nd, i am using RC3: http://www.nightstalkers.co.uk/forum/vbindex.php

The path to your forums in vbiconfig.php isn't correct, it should be /home/croc/public_html/forum

NTLDR
01-24-2004, 07:49 PM
I have trouble ... no news is showing... i have the right Forumsid, news checked and vbwar not.
Any hints ?
RC3 ....

Admin CP -> Update Counters -> run the two there that reffer to updating threads.

Wolfy.2k
01-24-2004, 07:57 PM
ND, i love u!

thanks for all ur help!

integra99
01-24-2004, 07:58 PM
I don't understand how to get the sidebars to resize to be all the same width, please link me or tell again :)

drumsy
01-24-2004, 09:30 PM
Can someone please list all the queries needed to run to remove this, since I'm not adapt at reading through install files and changing queries.

digitalSite
01-25-2004, 04:56 PM
You'll need to reverse all the queries found in the install files. I doubt you have messed it up enough to need to uninstall to re-install though. An uninstaller is planned for the final version.

Hello:

I am brand new to vb 3.0. Can you please explain what you mean by "reverse the queries" - I have no idea what this means. I would like to uninstall vBindex.

Thank you.

NTLDR
01-25-2004, 06:25 PM
Do the exact oposite of each one that makes any modification. As I've already said an unistaller or detailed instructions won't be avalible untill after vB3/vBindex 3 final.

M.C.
01-25-2004, 06:53 PM
good stuff!

Only few comments:

1. Make available show full post in news or just few first characters like it made in vBadvanced Homepage version 1.0
2. I`d love to define for blocks like Latest Threads and Polls not only Right and Left but Center as well (that`s enough for me, but i think it`ll be usefull for other users if it`s ON for all blocks ;)). Same with Welcome Box... I`d love to move Welcome Box to left or right collumn or even disable it (anyway there is small welcomebox in breadcrumbs - it`s enough for me ;))
3. Why is default icon enabled for that hack when in vbOptions it`s disabled?

that`s my wishes for improvement, what do you think? :nervous:

Now few questions:

1. My style choose menu in botton doesn`t work
2. And i`ve got some more java-script problems with hide buttons for side blocks

may be it was already told here, so give me just link to post in thread, if not what i did wrong?

Nice hack! Good Luck

NTLDR
01-25-2004, 09:14 PM
1. Make available show full post in news or just few first characters like it made in vBadvanced Homepage version 1.0

There is a hack for this at Core Forums (http://www.coreforums.net/forums/showthread.core?threadid=116&coreid=2) (if your not registered and licenced there see the code at the bottom of this post), however its not yet a default option as it has some issues if the cutoff point is mid way through some vB Code.

2. I`d love to define for blocks like Latest Threads and Polls not only Right and Left but Center as well (that`s enough for me, but i think it`ll be usefull for other users if it`s ON for all blocks ;)). Same with Welcome Box... I`d love to move Welcome Box to left or right collumn or even disable it (anyway there is small welcomebox in breadcrumbs - it`s enough for me ;))


There is an option to disable it on the vBindex Options page ;) I'll look into a side block version. Center blocks are planned too :)

3. Why is default icon enabled for that hack when in vbOptions it`s disabled?

Its not, at least on vB3 Gamma it works correctly, if the thread has an icon it shows it, otherwise it takes the value from the vB Options.

1. My style choose menu in botton doesn`t work
2. And i`ve got some more java-script problems with hide buttons for side blocks

Both are due to incorrect template edits, see the included HTML files in the zip for default versions that work correctly.

Character Limit: In vbindex.php find:

$news['pagetext'] = fetch_censored_text(parse_bbcode($news['pagetext'], $news['forumid'], 1));

Replace with, changing 394 to your character limit (Note, for some reason vB seems to place extra spaces in so fetch_trimmed_title has no spaces unlike bellow):

$news['pagetext'] = fetch_censored_text(parse_bbcode(strip_bbcode(fetc h_trimmed_title($news['pagetext'], 394), true, true), $news['forumid'], 1));

M.C.
01-25-2004, 10:25 PM
Character Limit: In vbindex.php find
thanks a lot! perfect work!
There is an option to disable it on the vBindex Options page
Yes, there is options but it doesn`t remove full Welcome box, just some in it, but table is still on....
I'll look into a side block version. Center blocks are planned too
waiting for new release! ;) I think you need to change it like that:
Now you have options for Left blocks# and right blocks# to chose what will be in that blocks, but i think better way to make chose menu in News, Latest Threads and etc. to chose where that block should be...

And one good thing will be, if I can modify Custom Blocks #1-4 straight in vBindex Options

One more good isea: you have options: Show Sticky Threads, I think if i can show only sticky topics without posts and link on them it`ll be great
Its not, at least on vB3 Gamma it works correctly, if the thread has an icon it shows it, otherwise it takes the value from the vB Options.
unfortunatly i`ve got that problem on vB 3.0.0 RC3
Both are due to incorrect template edits, see the included HTML files in the zip for default versions that work correctly.
Ok, thanks... just change templates called like HTML-files called?

and last stupid question: why that hack doesn`t take header and footer from forum?

Anyway! Superb job and superb hacker! I`d love to see yours hacks get Hack of the Month award and i already called you Hacker of the Month! All the Best!

NTLDR
01-25-2004, 10:31 PM
Yes, there is options but it doesn`t remove full Welcome box, just some in it, but table is still on....

Good point ;) *add to the todo list for RC4*

unfortunatly i`ve got that problem on vB 3.0.0 RC3

I'll look into that one for you :)

Ok, thanks... just change templates called like HTML-files called?

Yep, each one has the same name as the template, if you haven't edited yours yet just cut and paste.

Anyway! Superb job and superb hacker! I`d love to see yours hacks get Hack of the Month award and i already called you Hacker of the Month! All the Best!

Thanks for the kind words :D

M.C.
01-25-2004, 10:37 PM
you`re rocket :) i was edit my post but you post answer already... mad workoholic :D

NTLDR
01-25-2004, 10:45 PM
Using the forum header/footer would mean more template edits to get the links working correctly so I've opted not to use them. Plus the footer has some extra text in it thats not on or needed on the forum pages.

M.C.
01-25-2004, 11:23 PM
okay... got it

RapCheck
01-25-2004, 11:27 PM
I did the charater limit hack for the news, which works, but how would I change that hack to show the whole post for a sticky thread?

drumsy
01-26-2004, 01:27 AM
Do the exact oposite of each one that makes any modification. As I've already said an unistaller or detailed instructions won't be avalible untill after vB3/vBindex 3 final.

The problem I have is that I do not know how to do this. I do not know how to find the queries and change them, but I do know how to run them via the Admin CP. Can someone take just a few moments of your time and help me?

NTLDR
01-26-2004, 10:34 AM
I did the charater limit hack for the news, which works, but how would I change that hack to show the whole post for a sticky thread?

Instead of replacing it with the code above use:


if ($news['sticky']) {
$news['pagetext'] = fetch_censored_text(parse_bbcode($news['pagetext'], $news['forumid'], 1));
} else {
$news['pagetext'] = fetch_censored_text(parse_bbcode(strip_bbcode(fetc h_trimmed_title($news['pagetext'], 394), true, true), $news['forumid'], 1));
}


Again replacing 394 with the number of characters to show for non-sticky news.

FlyingDutchman
01-26-2004, 01:12 PM
i just installed it on vb3 rc2 and i ran into a problem, i believe it's a cookie-problem...

Everything on the forums itself works 100% fine, so that's no problem, but if i visit domain/vbindex.php i get a login page, and if i login (yes, i edited the links) it tells me that i'm logged in and it will redirect me, and i get back to the same page, the login screen...

i have my cookie-path set to "/vb3/" if that mattes anything?
please help,

FD

NyCwill
01-26-2004, 01:15 PM
how do you uninstall vbindex?

NTLDR
01-26-2004, 01:29 PM
i have my cookie-path set to "/vb3/" if that mattes anything?

Set your cookie path to '/'.

NyCwill
01-26-2004, 01:47 PM
umm can someone tell me how to uninstall vbindex??

pcalloway
01-26-2004, 04:15 PM
I recently converted my forum at http://www.authentic-campaigner.com/ to vBindex but some of my users are reporting that they can't stay logged in from one page to the other. They have to keep relogging...

As one of my moderators put it:
I am having a tremendously difficult time with something here... either my system or the forum software simply refuses to let me stay logged-in... I've checked the "remember me" button, erased cookies, set our system to accept cookies from this site, and I still can't stay logged on from one page to the next... If I go to respond to a post, or do some admin to a thread, I'm logged out when I move to the next page, and can't perform the functions.

I can't view page 2 of any discussion, nor pull up any "new posts."


ANY suggestions?

NTLDR
01-26-2004, 05:48 PM
You path and or cookie domain are probably wrong. Path: / Domain .mydomain.com is the format they should be in.

NyCwill
01-26-2004, 06:02 PM
is my question a stupid question?? No one is replying to my question :(

NTLDR
01-26-2004, 06:17 PM
Your question has been answered countless times. If bothered to A) read the thread or B) search you'd find the answer.

SRozhon
01-26-2004, 09:21 PM
thank you so much, the colors work great now!

SilverDawn
01-26-2004, 09:54 PM
I've downloaded, I'll install it later. :)
no surpise I installed it :)

I love this hack!

RapCheck
01-27-2004, 01:36 AM
Instead of replacing it with the code above use:


if ($news['sticky']) {
$news['pagetext'] = fetch_censored_text(parse_bbcode($news['pagetext'], $news['forumid'], 1));
} else {
$news['pagetext'] = fetch_censored_text(parse_bbcode(strip_bbcode(fetc h_trimmed_title($news['pagetext'], 394), true, true), $news['forumid'], 1));
}


Again replacing 394 with the number of characters to show for non-sticky news.
perfect! thanks

drumsy
01-27-2004, 02:50 PM
Your question has been answered countless times. If bothered to A) read the thread or B) search you'd find the answer.

Unfortunately, some of us are not very knowledgable on the process. Can you or someone else please take just a few minutes of your time to list all of the correct queries to run to uninstall this hack. You say you are working on an uninstaller, then you must have these queries available. Please share them! :nervous:

NTLDR
01-27-2004, 03:06 PM
As I've said before and uninstaller will be done after the final of vB3/vBindex 3, I will not be releasing an uninstaller or working out the queries to remove the 8 different versions of vBindex a user could have untill then, I simply don't have the time. None of the vBindex edits effect how vB runs or cause problems for upgrades hence this isn't a priority now.

wowiee
01-27-2004, 05:31 PM
i installed it and it doesnt show up i dont know why i did everything the instructions said

Briboy923
01-28-2004, 05:35 PM
Hi. I get

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

when I try to access VBIndex , this is fresh install of VBIndex RC3 on VB3 RC3

NTLDR
01-28-2004, 06:04 PM
Make sure you have set all the options correctly in the ACP and saved them if you still get the error post the entire contents of the email in [code] tags here.

Zaeolos
01-28-2004, 06:17 PM
There are 2 things I need help with...

1. My smilies do not work in the Shoutbox and I have changed the path in the database to the full path of the image.

2. How can I make the width of the vbindex portion of the main page the same width as the nav bar?

NTLDR
01-28-2004, 06:20 PM
1. They can't be the correct path if they don't show. Make sure its a full URL like http://www.mysite.com/forum/images/smilies/smile1.gif

2. Edit the VBINDEX template to suit your needs.

Zaeolos
01-28-2004, 06:22 PM
1. They can't be the correct path if they don't show. Make sure its a full URL like http://www.mysite.com/forum/images/smilies/smile1.gif

2. Edit the VBINDEX template to suit your needs.
When I right click the properties of the image placeholder in the shoutbox, it does not show the same path as what I changed it to in the database. I have checked all that I know.

Also if it was wrong, then they would not work in the forums, and they do.

NTLDR
01-28-2004, 06:24 PM
What path is in the HTML and what path is in the smilie manager?

Zaeolos
01-28-2004, 06:27 PM
What path is in the HTML and what path is in the smilie manager?
The path that the placeholder shows is:

http://www.mysite.com/images/smilies/biggrin.gif

And the path that is in the smilies manager is:

http://www.mysite.com/forums/images/smilies/biggrin.gif

Also NTLDR, do you think you can set me up as Licensed over at Coreforums?

NTLDR
01-28-2004, 06:45 PM
Seems vB isn't updating the smilies properly, create a file with the following content:


<?php

require_once('./global.php');
require_once('./includes/adminfunctions.php');

build_image_cache('smilie');

?>


That should rebuild the smilies and update the correctly. Once you have confirmed your email I can mark you as licenced.

Zaeolos
01-28-2004, 07:00 PM
That worked perfectly. It might not have been VBulletin. I used that script in this thread to manualy update the database with the path and that may have been the cause. I have 50 smilies and thought that may have been quicker than going through one by one.

Thanks for everything.

Z

Natch
01-28-2004, 07:13 PM
That worked perfectly. It might not have been VBulletin. I used that script in this thread to manualy update the database with the path and that may have been the cause. I have 50 smilies and thought that may have been quicker than going through one by one.

Thanks for everything.

Z
You have to be very careful with that script - it will make the changes that YOU ASK FOR.

NyCwill
01-28-2004, 10:31 PM
Your question has been answered countless times. If bothered to A) read the thread or B) search you'd find the answer.

sorry, before when i search the search feature didnt work for me...... im sorry

chas_h
01-29-2004, 01:58 AM
I have seen a post or two about editing the path to smilies to get them to appear on the vbindex page but where exactly do you edit the paths? In the admin cp I find paths to alot of image groups but not smilies (?)

Chas.

Natch
01-29-2004, 02:06 AM
Check out this -> https://vborg.vbsupport.ru/showpost.php?p=466954&postcount=528 <- if you feel comfortable with that ...

Otherwise, in Smilies > Smilie Manager > edit each smilie entry manually ...

chas_h
01-29-2004, 02:33 AM
Thanks, I got it working now besides screwing it up the first time :P I used your script but I think I needed to leave out the trailing '/' to make it work, and subsequent attempts to use it just added on more paths before the original '/forum/' entry that I made.
I was able to fix it in the smilie manager as you mentioned. I am saving that script for when I get a whole bunch of custom smilies, that will make fixing multiple paths very easy.

Chas.

webrats
01-29-2004, 02:42 AM
how can i add the bars to everypage??

also how can i create new pages that integrate the bars

RapCheck
01-29-2004, 02:58 AM
i just made a replacement variable for smilies. easy enough

NTLDR
01-29-2004, 09:08 AM
also how can i create new pages that integrate the bars

The first post links to the tutorial with exact instructions on howto do this.

Ed FvC
01-29-2004, 07:41 PM
Is there any way to have [img] tags NOT shown in vbIndex? I'd rather them turn up as links instead of images. Is this possible?

NTLDR
01-29-2004, 07:42 PM
Only by turning it off in the said forum or in the ACP currently.

Ed FvC
01-29-2004, 07:46 PM
Okie, that's what I thought. Thanks. :)

chas_h
01-30-2004, 05:04 AM
Any idea how I could make my calendar smaller so that I can show all 7 days??
I tried to mix and match some of the hacks from the 'other' portal choice but I'm not having any luck.
I prefer to stick with Vbindex for my portal, but the calendar thing is important to me.

Chas.

NTLDR
01-30-2004, 08:04 AM
You need to edit the 'calendar_smallmonth_day_other','calendar_smallmon th_header' and 'calendar_smallmonth_week' template and adjust the sizes there, in particular the fon't size.

PranK
01-30-2004, 09:57 AM
damn, 41 pages... any tutorials on creating custom side blocks?

Thanks guys!

Christian

Bloch
01-30-2004, 10:44 AM
damn, 41 pages... any tutorials on creating custom side blocks?


Well, I give it a try:
First, define how many custom blocks you want to have within the vbioptions-panel. Save this and then you can assign the new boxes wherever you want them.

To fill content into your custom boxes, go into the admin panel from your VBulletin board:
Go into style manager, and then into "Edit Templates"
Under custom templates, you should see "Vbindex" and further down the list your custom boxes: "vbindex_customblock_1", "vbindex_customblock_2", etc.

Edit these (all within the template editor in VBulletin).

Hope this helps. Took time for me to figure it out, but now works flawless.

PranK
01-30-2004, 12:26 PM
ahhhh sweeeet!!!

Thanks Bloch!! I didn't notice them before!

Christian

???`S?LV?R???`
01-30-2004, 01:08 PM
btw is gonna be a new version out anytime soon? (just curious) :)

NTLDR
01-30-2004, 01:11 PM
When its done :p There won't be many changes in the next release.

SRozhon
01-30-2004, 01:59 PM
Set your cookie path to '/'.
I am having the same login problem. Where do I check the cookie path at?

NTLDR
01-30-2004, 02:51 PM
ACP -> vBulletin Options

chas_h
01-30-2004, 05:42 PM
You need to edit the 'calendar_smallmonth_day_other','calendar_smallmon th_header' and 'calendar_smallmonth_week' template and adjust the sizes there, in particular the fon't size.


Hmmm... as an experiment I already tried pasting the suggested changes from the vbadvanced version of portal (as that has worked for me on a test machine) but somehow they don't seem to work with Vbindex at my main site. I wonder if something is overiding those settings. (?)
Another question, other than the font settings, what else can you change in there? It doesn't seem like there is that much info in some of those templates. And does it refer to a stylesheet somewhere that defines 'class="smallfont"', maybe that can be edited directly?

Chas.

NTLDR
01-30-2004, 06:20 PM
The font sizes etc can be adjusted from Style Manager, the Smallfont section. You can of course change the text in the calender templatesto be any size etc by removing the class and changing it to your own definition.

chas_h
01-30-2004, 07:37 PM
The font sizes etc can be adjusted from Style Manager, the Smallfont section. You can of course change the text in the calender templatesto be any size etc by removing the class and changing it to your own definition.

Ok, thanks. I'll do some more fooling with it there. I appreciate your help.

Chas.

???`S?LV?R???`
01-30-2004, 10:56 PM
Oh i see.. just curious lol :)

Sun Boy
01-31-2004, 02:08 PM
The polling is not working because there is an error in the database and the news is not working because there is no file call vnews.php as I saw in vbindex.php on line 541 and the navbar is not working and I saw an error page in vbindex.php

I think that there is edit in the html files and one file missing (vnews.php)

i have vB 3.0.0 RC3

chas_h
01-31-2004, 02:40 PM
The polling is not working because there is an error in the database and the news is not working because there is no file call vnews.php as I saw in vbindex.php on line 541 and the navbar is not working and I saw an error page in vbindex.php

I think that there is edit in the html files and one file missing (vnews.php)

i have vB 3.0.0 RC3


Make sure that you actually have a poll to use and that you correctly identify the forum ID number of both the 'news' forum and the 'poll' forum, otherwise you will get a database error on your home page.
Sometimes it is better to disable those features, temporarily, while you set up the Vbindex homepage.

Chas.

gmarik
01-31-2004, 03:14 PM
It would be fine, if, for example, I could have my poll box not on the side, but as the first top thread in the center, where the latest new come up - you could add that function. Another good thing would be a random photo box from a picture gallery or atleast a random member with his avatar ...

Tradjick
01-31-2004, 04:39 PM
I've got this?

Warning: main(./global.php): failed to open stream: No such file or directory in C:\Documents and Settings\Teilchenbeschleunige\Desktop\Site\vbindex .php on line 132

Fatal error: main(): Failed opening required './global.php' (include_path='.;c:\php4\pear') in C:\Documents and Settings\Teilchenbeschleunige\Desktop\Site\vbindex .php on line 132

Anybody knows what I could do???

mtf169
01-31-2004, 04:48 PM
I've got the same threads showing up in my center column and "latest threads." Any idea on how to stop this? Right now I've got forums 1 and 3 for the center news area, and I'm trying to exclude forums 1 and 3 from the latest threads but it isn't working.

Here's where you'll see the duplicate entries:
http://www.numbmonkey.com/index.php

I tried the fix below and it gave me a parse error.

Any ideas?

Thanks.

Someone else reported this but I can't find it now. Anyway its fixed, in vbindex.php find:


$limitfids = array(explode(',', $vbindex['limitfids']));

Replace with:

$limitfids = array();
$limitfids = explode(',', $vbindex['limitfids']);

And it should work as expected :)

pcalloway
01-31-2004, 06:04 PM
I've got a small problem where the footer to my website seems to be showing up in the 3d column rather then at the bottom of some users browsers. Not all... just some.

This stretches out that 3d column and makes it huge. Any suggetions?

www.authentic-campaigner.com

NTLDR
01-31-2004, 06:30 PM
The polling is not working because there is an error in the database and the news is not working because there is no file call vnews.php as I saw in vbindex.php on line 541 and the navbar is not working and I saw an error page in vbindex.php

I think that there is edit in the html files and one file missing (vnews.php)

i have vB 3.0.0 RC3

You have not settup the options correctly. Also don't enable the vBwar option (which will come with vnews.php) as its not even been released yet so you can't use it. Please make sure you have followed every step in the instructions.

NTLDR
01-31-2004, 06:32 PM
I've got this?

Warning: main(./global.php): failed to open stream: No such file or directory in C:\Documents and Settings\Teilchenbeschleunige\Desktop\Site\vbindex .php on line 132

Fatal error: main(): Failed opening required './global.php' (include_path='.;c:\php4\pear') in C:\Documents and Settings\Teilchenbeschleunige\Desktop\Site\vbindex .php on line 132

Anybody knows what I could do???

You haven't edited vbiconfig.php correctly as per step one of the install. If your *positive* you have done it correctly try editing the '\' so its C:/Docuuments.... etc So '\' becomes '/'.

NTLDR
01-31-2004, 06:36 PM
I've got the same threads showing up in my center column and "latest threads." Any idea on how to stop this? Right now I've got forums 1 and 3 for the center news area, and I'm trying to exclude forums 1 and 3 from the latest threads but it isn't working.

Please restore the Winter Systems and Jelsoft copyright to your vBindex footer as per the terms in the first post of this thread. Thank you :)

NTLDR
01-31-2004, 06:39 PM
I've got a small problem where the footer to my website seems to be showing up in the 3d column rather then at the bottom of some users browsers. Not all... just some.

This stretches out that 3d column and makes it huge. Any suggetions?

www.authentic-campaigner.com

Have you edited the templates at all? The vbindex_footer template should close the main table and appear in the center. This is probably caused by either the navbar or the vbindex_footer template.

pcalloway
01-31-2004, 06:58 PM
Have you edited the templates at all? The vbindex_footer template should close the main table and appear in the center. This is probably caused by either the navbar or the vbindex_footer template.

Yes, I have edited the navbar template to add a few options such as a chatroom. I also have edited the vbindex_footer to add a link at the bottom of the page but my problem was occurring BEFORE I did the footer edit.

www.authentic-campaigner.com

NTLDR
01-31-2004, 07:11 PM
You've missed the closing </tr> before the </table> tag in your quick links custom block.

pcalloway
01-31-2004, 07:19 PM
You've missed the closing </tr> before the </table> tag in your quick links custom block.
Ok, thank you. I've made that change, but it hasn't correct the problem unfortunately. I have another computer here which is still displaying the footer in the 3d column.

NTLDR
01-31-2004, 07:34 PM
Take a look through the W3C (http://validator.w3.org/check?uri=http%3A%2F%2Fwww.authentic-campaigner.com%2F&charset=%28detect+automatically%29&doctype=HTML+4.01+Transitional) validator and correct the problems shown there at least, there are far to many errors on the page for me to go through them all I'm afraid.

mtf169
01-31-2004, 07:46 PM
Whoops! I restored the copyright text ... sorry about that.

Any idea why I'm getting the same posts under the center news and my "latest posts"? The fix I found that you posted earlier only gave me a parse error.

Thanks.

Please restore the Winter Systems and Jelsoft copyright to your vBindex footer as per the terms in the first post of this thread. Thank you :)

Tradjick
01-31-2004, 08:55 PM
You haven't edited vbiconfig.php correctly as per step one of the install. If your *positive* you have done it correctly try editing the '\' so its C:/Docuuments.... etc So '\' becomes '/'.

Thank you! It helped!

NTLDR
01-31-2004, 09:16 PM
Whoops! I restored the copyright text ... sorry about that.

Any idea why I'm getting the same posts under the center news and my "latest posts"? The fix I found that you posted earlier only gave me a parse error.

Thanks.

Thank you :)

What have you entered into the news forum ids option? The latest threads should exclude them automatically, you don't need to add the to the exclude option as that should exclude them from the news too ;)

Are you sure you did the fix exactly as shown? Its works fine for me.

mtf169
02-01-2004, 12:07 AM
I have forums 3,4 for my news and also had them listed in the forum exclusion. After removing them from the exclusion list I made the code change again and get this error:

Parse error: parse error in /home2/www/numbmonkey/index.php on line 189

This is what the code looks like in my index.php file:

// 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);
}

I'm so stumped as to what I'm doing wrong.

Thank you :)

What have you entered into the news forum ids option? The latest threads should exclude them automatically, you don't need to add the to the exclude option as that should exclude them from the news too ;)

Are you sure you did the fix exactly as shown? Its works fine for me.

EvilCrow
02-01-2004, 04:12 AM
/me *Clicks Install*

mknott
02-01-2004, 07:09 AM
installed like a dream.. only problem i got was when i tried to link vbindex options in the admin control pannel.

i have insurted

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

after

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

but the link does not show up, the drop down menu gets about 4 pixels bigger but not enough to see any of the txt. Its enough to click to get to the vbindex options.


Also when i was adding it i noticed that

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

was infact

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



please help as i cant figer out what is wrong

Sun Boy
02-01-2004, 07:41 AM
the instructions is very prefly for editing the html files ... can you give us more detail please

mknott
02-01-2004, 12:29 PM
ok here goes.... ya know you can put a link in the vb admin panel for vbindex options, well when i do it the link is not visable, the box is there but only just visable.

i can give a screen shot of it if it helps

xxskullxx
02-01-2004, 01:02 PM
Use construct_nav_option ('vBIndex','vbioptions.php?null=0', '<br />'); instead of construct_nav_option(construct_phrase($vbphrase['x_options'], 'vBindex'), 'vbioptions.php?', '<br />');
in your admincp/index.php

mknott
02-01-2004, 01:30 PM
cool thanks :) it works

NTLDR
02-01-2004, 05:13 PM
I have forums 3,4 for my news and also had them listed in the forum exclusion. After removing them from the exclusion list I made the code change again and get this error:

Parse error: parse error in /home2/www/numbmonkey/index.php on line 189

This is what the code looks like in my index.php file:

// 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);
}

I'm so stumped as to what I'm doing wrong.

Those 4 + symbols shouldn't be there.

NTLDR
02-01-2004, 05:16 PM
the instructions is very prefly for editing the html files ... can you give us more detail please

Overwrite your templates with the content provided in the HTML files (which the file name is the template name).

PET
02-01-2004, 07:19 PM
hi there.

How can i create other news categori ? I know how i can create new links...but i want another NEWS category.

thanx.

NTLDR
02-01-2004, 07:31 PM
If you want two forums for news then just add the ids seperated by commas. If you want them visually seperated then you'll need to either duplicate all the news code or see if the MySQL GROUP BY clause will do the job.

powelly
02-01-2004, 09:25 PM
<font color="Yellow">*Powelly clicks install*</font>
What can I say, cracking work NTLDR! :speechless: Checking this out on my dev site.

AN-net
02-02-2004, 02:06 AM
how do i make custom blocks?

Natch
02-02-2004, 02:52 AM
how do i make custom blocks?
Seek and u will find ...

gmarik
02-02-2004, 06:26 AM
Natch - just give a link to it ./..

Loyalty4Life
02-02-2004, 09:10 AM
Some help, please. Two questions

1) When I go to http://www.ducknation.net/, I made an html document to where it automatically redirects you to http://www.ducknation.net/vbindex.php. The reason I did this is because when I had went to http://www.ducknation.net/, all I saw was unprotected directories. What do I have to do to make the vbindex page appear at http://www.ducknation.net/? I have the vbindex.php file in public_html, for what it's worth.


2) I'd like to have guests see two links in the nav bar that are not currently there. One link goes to the Forum index page (/index.php), and the other goes to the arcade (/arcade.php). What do I have to do add these links so users that are not logged it will see this?

Any help is truly appreciated! Great hack, btw. :)

NTLDR
02-02-2004, 09:17 AM
1) Rename vbindex.php index.php

2) Add the links in the navbar template outside of any <if> conditions so that they will appear for everyone.

Loyalty4Life
02-02-2004, 09:32 AM
Your answer to #1 worked great! Thanks. As for my second question, I understand what you're saying, but it's not working


You wouldn't be able to make me the code that goes in the nav page that would go along with my request? With the Forum and Arcade link being available to all. And I'd like the Forum link to be the first link, and the Arcade link to be after the Calendar link.

You're an advanced coder, so that's why I'm asking you. You'd really help me perfect my website! Any help is appreciated. :)

NTLDR
02-02-2004, 10:38 AM
Overwrite your navbar template with the contents of the attached file, note this will remove any changes you have made to it.

Lissa
02-02-2004, 10:44 AM
What happens to the shoutbox posts on this page:

http://www.lissaexplains.com/vbindex.php?action=shoutbox

Do they just keep adding on?

NTLDR
02-02-2004, 12:44 PM
When a sensible limit is reached, 25 is what its set to, you'll get the page navigation bar at the bottom of the page to view the entire shoutbox history.

Lissa
02-02-2004, 12:58 PM
Awesome, thanks! :D

Loyalty4Life
02-02-2004, 05:36 PM
NTLDR - It worked. Thanks a bunch!! :) I have one more small thing to inquire:

http://www.ducknation.net (http://www.ducknation.net/)

The calendar says that it's the third of the month (Tuesday), when it's actually Monday, the second. How do I fix this? Also, how do I edit the Powered by vBindex in the title and replace it with something else?

Thanks.

NTLDR
02-02-2004, 06:13 PM
The calendar problem is a vB issue, its the same on your actual calendar. All the text can be found within the phrase system.

gmarik
02-02-2004, 08:02 PM
NTLDR - have you thought about an Affiliate block as well?
With textfields where I can copy the code and than to order in the way I want them?

Sun Boy
02-02-2004, 08:20 PM
I don’t now what navbar.html need to edit to run correctly and headinclude.html and pm_popup_script.html and there is no Instructions for it in READ_ME_1ST.txt or the installing process
on the other hand if the vnews.php is not released then way it's wrote in vbindex.php ?

NTLDR
02-02-2004, 08:30 PM
I don?t now what navbar.html need to edit to run correctly and headinclude.html and pm_popup_script.html and there is no Instructions for it in READ_ME_1ST.txt or the installing process

Copy the HTML from them and overwrite your templates with it.

on the other hand if the vnews.php is not released then way it's wrote in vbindex.php ?

Because its ~3 lines of code which means as soon as vBwar is released you'll be able to use the portal function with vBwar instead of waiting for the next vBindex release.

pcalloway
02-02-2004, 08:32 PM
NTLDR - As you noted over the weekend, I have a LOT of errors on my homepage. Rather then going in and trying to debug all those errors, I'm wondering if I could somehow generate a new copy of my index page -vbindex.php - and carefully edit my "Fixes" back in.

NTLDR
02-02-2004, 08:34 PM
All those errors were HTML related from the edits you have applied to the templates and not vbindex.php.

gmarik
02-02-2004, 08:50 PM
What about post #665 ?

NTLDR
02-02-2004, 10:06 PM
Thats just a simple template mod that will take you all of 2 mins to do :)

mtf169
02-03-2004, 01:41 AM
Those 4 +'s showed up in the post, but weren't actually in my code. You can see the error message here:
http://www.numbmonkey.com/index_new.php

Here's the current homepage with the duplicate posts in the latest threads:
http://www.numbmonkey.com/index.php

And here's the code in index_new.php:

// 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);
}


Any ideas?

Those 4 + symbols shouldn't be there.

solent
02-03-2004, 06:56 AM
i have done everything as you said in your readme file and installation proccess finished without any errors at all.

but then when i open my home page i get the following error

Unable to add cookies, header already sent.
File: /home/virtual/site120/fst/var/www/html/vbiconfig.php
Line: 1

and i dont know why is like that. i have changed the vbiconfig.php file as you said in the first page when running the vbiupgrade.php

Can you please tell what is wrong.

MischiefThought
02-03-2004, 07:48 AM
Im having a little problem. I'd like to edit the side blocks for User CP but can't seem to find the template. I don't want to publicly display the URL to the design because its still in the works. Please help me.

NTLDR
02-03-2004, 12:36 PM
Those 4 +'s showed up in the post, but weren't actually in my code. You can see the error message here:
http://www.numbmonkey.com/index_new.php

Here's the current homepage with the duplicate posts in the latest threads:
http://www.numbmonkey.com/index.php

Which of those lines are 188? They are all correct.

NTLDR
02-03-2004, 12:36 PM
i have done everything as you said in your readme file and installation proccess finished without any errors at all.

but then when i open my home page i get the following error

Unable to add cookies, header already sent.
File: /home/virtual/site120/fst/var/www/html/vbiconfig.php
Line: 1


and i dont know why is like that. i have changed the vbiconfig.php file as you said in the first page when running the vbiupgrade.php

Can you please tell what is wrong.

You probably have white-space before or after the <?php or ?> in vbiconfig.php.

NTLDR
02-03-2004, 12:37 PM
Im having a little problem. I'd like to edit the side blocks for User CP but can't seem to find the template. I don't want to publicly display the URL to the design because its still in the works. Please help me.

There is no side block for the user cp. You need to make your own.

gmarik
02-03-2004, 12:59 PM
NTLDR
Can not figure out the Affiliate block.
It should be something like smilies categorys, misc. categorys, different ones shown on different pages. At least think about the block idea, ok?!

fly
02-03-2004, 01:51 PM
Hmmmm

Tried to run the fresh install file and got this error:

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in ./vbiupgradecore.php(47) : eval()'d code on line 26

Parse error: parse error in ./vbiupgradecore.php(47) : eval()'d code on line 102




Unable to add cookies, header already sent.
File: ./vbiupgradecore.php(47) : eval()'d code
Line: 26

Any ideas guy(s)?

gmarik
02-03-2004, 05:13 PM
How to make the chatbox show on the tom of the FORUMHOME?

NTLDR
02-03-2004, 06:02 PM
NTLDR
Can not figure out the Affiliate block.
It should be something like smilies categorys, misc. categorys, different ones shown on different pages. At least think about the block idea, ok?!

You just add the links into a custom block, as I said a simple template edit and nothing more.

NTLDR
02-03-2004, 06:03 PM
Hmmmm

Tried to run the fresh install file and got this error:

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in ./vbiupgradecore.php(47) : eval()'d code on line 26

Parse error: parse error in ./vbiupgradecore.php(47) : eval()'d code on line 102




Unable to add cookies, header already sent.
File: ./vbiupgradecore.php(47) : eval()'d code
Line: 26

Any ideas guy(s)?

Re-uploade vbiupgradecore.php if you still have the problem then something is wrong in your config.php file.

MischiefThought
02-03-2004, 06:28 PM
Hey NT, I have attached a screen shot to better explain what i am trying to do. This must be done (On my end) in order to complete the design :(.

Is there anyway at all to edit these side blocks?

fly
02-03-2004, 06:30 PM
Re-uploade vbiupgradecore.php if you still have the problem then something is wrong in your config.php file.

Reuploaded, still got the same error. Any idea what could be wrong in my config.php file? The file is pretty straight forward, unless maybe it has something to do with my ID being unalterable...

NTLDR
02-03-2004, 06:36 PM
Hey NT, I have attached a screen shot to better explain what i am trying to do. This must be done (On my end) in order to complete the design :(.

Is there anyway at all to edit these side blocks?

Thats not vBindex.

NTLDR
02-03-2004, 06:39 PM
Reuploaded, still got the same error. Any idea what could be wrong in my config.php file? The file is pretty straight forward, unless maybe it has something to do with my ID being unalterable...

Assuming you haven't added extra lines I'd guess the error is on the line that looks like this:

$servername = 'localhost';

If it looks OK in vbiupgradecore.php find:


if (PHP_VERSION >= '4.3.0') {
$config = str_replace(array('<?php', '?>'), array('', ''), file_get_contents('../includes/config'.SCRIPT_EXTENSION));
} else {
@ob_start();
readfile('../includes/config'.SCRIPT_EXTENSION);
$config = @ob_get_contents();
@ob_end_clean();
$config = str_replace(array('<?php', '?>'), array('', ''), $config);
}
eval($config);
unset($config);
chdir('../'.$admincpdir);


And replace with:


chdir('../ACP_DIR_HERE');

Replacing ACP_DIR_HERE with the name of your admin directory, ie admin or admincp

GsxrTony
02-03-2004, 06:46 PM
Ok I've ran into every problem listed in this thread and lost at least an inch off my hairline. I've done every fix in here. I'm down to what I hope is my last problem, I'm only getting a white blank page as my index pagenow. Anybody know the fix to this, I've been working on this and reading this thread for 5 hours now.

Someone should really make an FAQ for this thread. My god reading through 600 plus posts to find a specific problem is getting really hard.

SandsUSA
02-03-2004, 07:32 PM
Ok I've ran into every problem listed in this thread and lost at least an inch off my hairline. I've done every fix in here. I'm down to what I hope is my last problem, I'm only getting a white blank page as my index pagenow. Anybody know the fix to this, I've been working on this and reading this thread for 5 hours now.


Someone should really make an FAQ for this thread. My god reading through 600 plus posts to find a specific problem is getting really hard.
When I was at that point (blank page) it was because I had no vbindex templates in my current style. Added them manually and suddenly the page was blank no longer. :)

dpakman91
02-03-2004, 08:15 PM
the install went well, just a couple questions...i haven't touched any of my templates yet, wanted to ask first. i can't imagine i overwrite the three templates that must be edited with what is in the html files, since for example in the headinclue.html file, there is only this:

$style[css]

a little help on what exactly i need to do to the templates would be great.

NTLDR
02-03-2004, 08:54 PM
the install went well, just a couple questions...i haven't touched any of my templates yet, wanted to ask first. i can't imagine i overwrite the three templates that must be edited with what is in the html files, since for example in the headinclue.html file, there is only this:

$style[css]

a little help on what exactly i need to do to the templates would be great.

You need to copy the contents of the file, not whats shown in the web browser.

NTLDR
02-03-2004, 08:56 PM
Ok I've ran into every problem listed in this thread and lost at least an inch off my hairline. I've done every fix in here. I'm down to what I hope is my last problem, I'm only getting a white blank page as my index pagenow. Anybody know the fix to this, I've been working on this and reading this thread for 5 hours now.


Someone should really make an FAQ for this thread. My god reading through 600 plus posts to find a specific problem is getting really hard.

If you have finished the install process without any errors and the vBindex templates (VBINDEX, vbindex_somename) are not in your style then use the style importer in the ACP to import the vbindex_templates.xml file into your style.

If the templates exist then you haven't edited vbiconfig.php correctly.

dpakman91
02-03-2004, 09:10 PM
You need to copy the contents of the file, not whats shown in the web browser.

i'm an idiot. :rolleyes:
thanks.

dpakman91
02-03-2004, 09:15 PM
ok, i set up all my templates...the problem i'm having is that all that shows up on my vbindex home is the welcome box...what am i doing wrong?

check it out www.thevividedge.com/vbindex.php

NTLDR
02-03-2004, 09:16 PM
Untill you setup the options for vBindex thats all that will display.

dpakman91
02-03-2004, 10:37 PM
Untill you setup the options for vBindex thats all that will display.

ahh, i just eralized i selected what i wanted on and off but didnt' go through the "box" selections...how can i get back into the vbindex setup? i don't see anythign listed for it in my admincp.

GsxrTony
02-03-2004, 10:39 PM
If you have finished the install process without any errors and the vBindex templates (VBINDEX, vbindex_somename) are not in your style then use the style importer in the ACP to import the vbindex_templates.xml file into your style.

If the templates exist then you haven't edited vbiconfig.php correctly.


Hey thanks, that was the problem :D


My front page is up. Now I gotta go back through here and find out how to resize some of the boxs, I would like the center colums to be larger and the side colums to be smaller.

My test site is tonyspage.net if you have any ideas how to do that it would be appreciated.

-Tony

gmarik
02-04-2004, 12:20 AM
Hey NT, I have attached a screen shot to better explain what i am trying to do. This must be done (On my end) in order to complete the design :(.

Is there anyway at all to edit these side blocks?
Would you be interested in exchanging
the blocks and add-ons? PM me if interested, ok?!

Lost Prophesy
02-04-2004, 01:51 AM
I messed up my image path, where do I edit them in my Admin CP??

Found it nvm!

Great hack clicks install

- LP

mknott
02-04-2004, 11:28 AM
Is it possiable to get pages that i have created to be shown inbetween the left and right coloms (where the news / welcome is)

Caspartheghost
02-04-2004, 11:32 AM
I'm trying to install this and following the install instructions it says to edit these two files:

navbar.html
pm_popup_script.html

Where are these two places to edit?

I've already edited the 'headinclude' by cut and pasting the text from headinclude.html.

I'm on vb3rc3


EDIT: I also got this error, all the way through the install steps:

Notice: Constant SCRIPT_EXTENSION already defined in d:\accounts\wbprimary\forum\install\vbiupgrade2.ph p on line 33

NTLDR
02-04-2004, 11:38 AM
Is it possiable to get pages that i have created to be shown inbetween the left and right coloms (where the news / welcome is)

There is a link to the extra page tutorial in the first post.

NTLDR
02-04-2004, 11:39 AM
I'm trying to install this and following the install instructions it says to edit these two files:

navbar.html
pm_popup_script.html

Where are these two places to edit?

I've already edited the 'headinclude' by cut and pasting the text from headinclude.html.

I'm on vb3rc3


EDIT: I also got this error, all the way through the install steps:

You do exactly the same for the navbar and pm_popup_script as you have done for the headinclude one. You can ignore the notice that appeared during the install as its not important.

NTLDR
02-04-2004, 11:40 AM
ahh, i just eralized i selected what i wanted on and off but didnt' go through the "box" selections...how can i get back into the vbindex setup? i don't see anythign listed for it in my admincp.

http://www.mydomain.com/forum/admin/vbioptions.php where admin is your ACP directory.

Caspartheghost
02-04-2004, 11:43 AM
You do exactly the same for the navbar and pm_popup_script as you have done for the headinclude one. You can ignore the notice that appeared during the install as its not important.


Ok, but where are these two?..within admincp?

NTLDR
02-04-2004, 11:44 AM
They are templates just like headinlcude.

DestinyIslands
02-04-2004, 11:45 AM
If I wanted to add this to my vBOptions so I don't have to type ..../admincp/vbioptions.php ... what would I have to do?

NTLDR
02-04-2004, 11:47 AM
You can't, vBindex's options aren't compatible with vB's. Search the thread and you'll find the details for Gamma/RC1/RC2/RC3 to add the vBindex Options link in the ACP.

Caspartheghost
02-04-2004, 11:49 AM
They are templates just like headinlcude.

Within Style Manager -> my chosen style -> Common Templates. where the headerinclude is located...

All I have for editable regions are:

header
headinclude
footer
phpinclude_start
phpinclude_end


am I just being daft, but where else would they be?

NTLDR
02-04-2004, 11:51 AM
ACP -> Style Manager -> Click '<<>>' for each parent style -> find the templates in the list.

DestinyIslands
02-04-2004, 11:54 AM
There's 48 pages .. can you link me to the right reply?

Caspartheghost
02-04-2004, 11:56 AM
ACP -> Style Manager -> Click '<<>>' for each parent style -> find the templates in the list.

Nice one, found it! thx :)

Ok, finished the install but the vbindex.php shows me this when I try and view it.


Warning: main(./global.php) [function.main]: failed to create stream: No such file or directory in d:\accounts\wbprimary\forum\vbindex.php on line 132

Fatal error: main() [function.main]: Failed opening required './global.php' (include_path='.;c:\php4\pear') in d:\accounts\wbprimary\forum\vbindex.php on line 132

Caspartheghost
02-04-2004, 11:57 AM
There's 48 pages .. can you link me to the right reply?

I think it's this... :)


Optional File Edit: vBindex Options Link in the ACP
----------------------------------------------------

Optionally you can do the following edit to your ACP's index.php (forums/admin/index.php or /forums/admincp/index.php):

Find:

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

Add after it:

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

This will show a link to vBindex Options, just under the vBulletin Options one.

Caspartheghost
02-04-2004, 11:58 AM
re: problem on post #711

I'm running

WINNT / PHP v4.3.1
v4.0.13-nt

fly
02-04-2004, 12:01 PM
Assuming you haven't added extra lines I'd guess the error is on the line that looks like this:

$servername = 'localhost';

If it looks OK in vbiupgradecore.php find:


if (PHP_VERSION >= '4.3.0') {
$config = str_replace(array('<?php', '?>'), array('', ''), file_get_contents('../includes/config'.SCRIPT_EXTENSION));
} else {
@ob_start();
readfile('../includes/config'.SCRIPT_EXTENSION);
$config = @ob_get_contents();
@ob_end_clean();
$config = str_replace(array('<?php', '?>'), array('', ''), $config);
}
eval($config);
unset($config);
chdir('../'.$admincpdir);


And replace with:


chdir('../ACP_DIR_HERE');

Replacing ACP_DIR_HERE with the name of your admin directory, ie admin or admincp

That did it!

mossyuk
02-04-2004, 12:53 PM
i have done the bit that says to add construct_nav_option(construct_phrase($vbphrase['x_options'], 'vBindex'), 'vbioptions.php?', '<br />');

However, although the link seems to work (it creates a new row in the table in the admincp), its blank so its:

MENU NAV BOX
Options (title + image)
vBulletin Options (first row)
('blank' row that links to vBindex options)
END OF NAV BOX

fly
02-04-2004, 01:10 PM
i have done the bit that says to add construct_nav_option(construct_phrase($vbphrase['x_options'], 'vBindex'), 'vbioptions.php?', '<br />');

However, although the link seems to work (it creates a new row in the table in the admincp), its blank so its:

MENU NAV BOX
Options (title + image)
vBulletin Options (first row)
('blank' row that links to vBindex options)
END OF NAV BOX

I'm having the same problem.

mossyuk
02-04-2004, 01:26 PM
Also - I know its possible to add a dynamic page - but that looks hard. Is it not possible to use an include to pull a PHP page kinda like an IFrame would do?

Caspartheghost
02-04-2004, 01:44 PM
Ok, finished the install but the vbindex.php shows me this when I try and view it.


Warning: main(./global.php) [function.main]: failed to create stream: No such file or directory in d:\accounts\wbprimary\forum\vbindex.php on line 132

Fatal error: main() [function.main]: Failed opening required './global.php' (include_path='.;c:\php4\pear') in d:\accounts\wbprimary\forum\vbindex.php on line 132


I'm running

WINNT / PHP v4.3.1
v4.0.13-nt

any ideas?

mossyuk
02-04-2004, 01:47 PM
have you changed the CH_DIR variable to fit your site, in vbiconfig.php (if thats a bit sketchy, its in the READ_ME.TXT)

Caspartheghost
02-04-2004, 01:56 PM
have you changed the CH_DIR variable to fit your site, in vbiconfig.php (if thats a bit sketchy, its in the READ_ME.TXT)

yeah, I copied and pasted it:

define('CHDIR_PATH', 'd:\\accounts\\wbprimary\\forum\\install');


but just to check...why does it point to the install DIR?

Caspartheghost
02-04-2004, 02:05 PM
ahah! I removed the \\install bit and now i works :)

NTLDR
02-04-2004, 02:05 PM
yeah, I copied and pasted it:

define('CHDIR_PATH', 'd:\\accounts\\wbprimary\\forum\\install');


but just to check...why does it point to the install DIR?

Probably an issue with windows, use the following instead:

define('CHDIR_PATH', 'd:/accounts/wbprimary/forum');

Which should do the trick.

NTLDR
02-04-2004, 02:06 PM
Also - I know its possible to add a dynamic page - but that looks hard. Is it not possible to use an include to pull a PHP page kinda like an IFrame would do?

Just use a standard extra page and use an <iframe> in the HTML.

NTLDR
02-04-2004, 02:08 PM
For the admin cp link on Gamma/RC1/RC2/RC3/RC4 see this post:

https://vborg.vbsupport.ru/showpost.php?p=463287&postcount=407

mossyuk
02-04-2004, 02:35 PM
I think your DIR path should point to the 'virtual' path - relative to your web site root, rather than your physical disk location.

My CH_DIR path points to /vb303/

as an example, my 'root' web dire looks like:

vbindex.php
vbiconfig.php
vb303 (DIR - the 'forums' DIR that vb3 rc3 comes in, but renamed as im running a test site)

define('CHDIR_PATH', 'vb303');

other examples would be like ../vb303 ./vb303 /vb303 /my/path/to/vb303 etc etc

Hope that helps!

mossyuk
02-04-2004, 02:36 PM
Just use a standard extra page and use an <iframe> in the HTML.

cheers, i will try that tomorrow ;)

gmarik
02-04-2004, 05:33 PM
Why does the chatbox looks so strange?
Is it not possible to make it wider, so small posts don't resize it 100 Km?

mknott
02-04-2004, 05:46 PM
dunno if it been asked before but is it possiable to put a custom box in the middle above the news but under the welcome box

GsxrTony
02-04-2004, 07:52 PM
Quick question, can someone take a look at www.tonyspage.net (this is my test site)

Look at the top under the bulletin logo. I keep getting that weird little error where it keeps saying "script type="text/javascript">"

I cant find where I made a mistake.

RapCheck
02-04-2004, 08:11 PM
Quick question, can someone take a look at www.tonyspage.net (this is my test site)

Look at the top under the bulletin logo. I keep getting that weird little error where it keeps saying "script type="text/javascript">"

I cant find where I made a mistake.
you need to add '<' infront of that tag

its right above

<!--
function log_out()

looks like probably in the header template

RapCheck
02-04-2004, 08:14 PM
dunno if it been asked before but is it possiable to put a custom box in the middle above the news but under the welcome box
you could edit the vbindex template, and find the welcome box html and add below it to show what you want

Giveit2u43
02-04-2004, 09:09 PM
dunno if it been asked before but is it possiable to put a custom box in the middle above the news but under the welcome box
in the vbindex template.. find:

<!-- /welcome box -->

Your code can be placed there, just before the $home[news]

GsxrTony
02-04-2004, 10:38 PM
you need to add '<' infront of that tag

its right above

<!--
function log_out()

looks like probably in the header template


Thanks so much, That was truly a dumb mistake on my part.

BeyRevRa
02-05-2004, 03:08 AM
Hey, for some reason like 3/4s of my images duplicated the url when I used your script. Please tell me what's wrong with this...

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

thanks, great work btw.

RapCheck
02-05-2004, 03:21 AM
I'd double check the path to icons in the acp

BeyRevRa
02-05-2004, 03:29 AM
where do you change that path, I don't see it in the styles, closest I see is item status icon folder.

RapCheck
02-05-2004, 03:43 AM
you change the image paths, in the admin control panel... You click on on 'style manager' then in the drop down menu of your style pick 'stylevars'. There you need to change the paths to your image folders, to the full url of their location.

BeyRevRa
02-05-2004, 03:50 AM
I did it and it didn't do anything :(

NTLDR
02-05-2004, 09:12 AM
You need to make your icons use the format /images/icons for the URL in the Icon Manager or edit the vbindex_newsbit and vbindex_latestthreadbit templates and remove the $vboptions[bburl] from the icon URL.

BeyRevRa
02-05-2004, 09:41 PM
I did that and that made none of them work... take a look www.starcraftdream.com/vbindex.php

BeyRevRa
02-05-2004, 09:42 PM
forget that, i got it

BeyRevRa
02-05-2004, 09:45 PM
Ok, however that did not work for my latest thread for some reason

NTLDR
02-05-2004, 09:48 PM
You still have $vboptions[bburl] in your vbindex_latestthreadbit template I suspect.

BeyRevRa
02-05-2004, 09:56 PM
Hmm, I think I fixed it, it doesn't make sense though, I just removed everything from the image url= and it works...

BeyRevRa
02-05-2004, 10:17 PM
Thanks alot NTDLR for all the help and the really nice script!

BeyRevRa
02-05-2004, 10:31 PM
ok, one last question, where do I go to modify the links on the forum pannel? The one at the top that says User CP, FAQ, ect. They don't work on my site only on the vbindex, everywhere else it works fine.

SandsUSA
02-05-2004, 11:52 PM
ok, one last question, where do I go to modify the links on the forum pannel? The one at the top that says User CP, FAQ, ect. They don't work on my site only on the vbindex, everywhere else it works fine.
The navbar template has those item -- you need to have the complete forum path for each of the options.

BeyRevRa
02-07-2004, 12:13 AM
Ok, I got a couple more problems. If you go to www.starcraftdream.com the nav bar drop downs don't work. Also, the feature that lets the menus collapse doesn't work. Users can't log in on that nav bar and finally if someone receives a private message on that page it won't open.

RapCheck
02-07-2004, 12:17 AM
You need to do the headinclude template change

BeyRevRa
02-07-2004, 12:39 AM
is that in the readme?