PDA

View Full Version : vBindex v2.1


Pages : 1 2 3 [4] 5 6 7

TECK
10-17-2002, 09:35 PM
Originally posted by NTLDR
Indeed it isn't. Currently it hides all threads for forums that have explicitly been set so that users can't view them and that don't just inherit the parents permission. This is the one major thing to work on now :D i have it done in my script. :)
basically, if you dont have perms the latest thread will not show.

NTLDR
10-17-2002, 09:39 PM
Originally posted by TECK
i have it done in my script. :)
basically, if you dont have perms the latest thread will not show.

You skills are alot better than mine though :D

I'll be attempting to do the same, I have a big vB project to do for uni and I'll need to be able to do it for that :)

groovesalad
10-17-2002, 10:51 PM
NTLDR- I was hoping you could help me out with something. When I set one forum as the news forum, I get this HTML error:

The Latest Threads don't seem to be lined up correctly

http://www.groove-salad.com/vbindex01.jpg

And on the bottom of the page, this is what I get:

http://www.groove-salad.com/vbindex02.jpg

However, when I use a different forum as the news forum, everything is perfect:

http://www.groove-salad.com/vbindex03.jpg




Any ideas? I'm thinking either the Quote Hack I did. Not sure though.

zertox
10-18-2002, 06:51 AM
I get this
Warning: unexpected error in date() in C:\webhost4life aspnet\zertox\forums\admin\functions.php on line 1599

Warning: unexpected error in date() in C:\webhost4life aspnet\zertox\forums\admin\functions.php on line 1599

as error on the vbindex page ... no other pages have this error
anyone know where to look? :s

NTLDR
10-18-2002, 04:27 PM
Originally posted by groovesalad
Any ideas? I'm thinking either the Quote Hack I did. Not sure though.

Do you have any HTML posts in the forum that was causing the errors? Or any posts that go way beond the screenwidth, like when you use [php] and create a long line?

NTLDR
10-18-2002, 04:30 PM
Originally posted by zertox
as error on the vbindex page ... no other pages have this error
anyone know where to look? :s

Looks fine to me, not sure if you have fixed it now as thats no appearing :D

It would be line 1599 of admin/functions.php that contains the key to the error ;)

groovesalad
10-18-2002, 08:56 PM
Originally posted by NTLDR


Do you have any HTML posts in the forum that was causing the errors? Or any posts that go way beond the screenwidth, like when you use [php] and create a long line?

Not that I can think of. I don't allow HTML posts. And the threads were somewhat small in size. No PHP posts.

NTLDR
10-18-2002, 09:00 PM
If you can turn the template comments on in the vBulletin options and save the source of that page and send it to me I'll take a look and see if I can find out whats causing it :)

groovesalad
10-18-2002, 09:03 PM
Thanks :) Check your PM

Jalrock
10-19-2002, 01:59 AM
Everything works fine but when I try to add a usergroup I get this error. Any ideas?

Database error in vBulletin Control Panel 2.2.8:

Invalid SQL: INSERT INTO usergroup (usergroupid,title,usertitle,cancontrolpanel,canmo difyprofile,canviewmembers,canview,canviewvbindex, showgroup,cansearch,canemail,canpostnew,canmove,ca nopenclose,candeletethread,canreplyown,canreplyoth ers,canviewothers,caneditpost,candeletepost,canuse pm,canpostpoll,canvote,canpostattachment,ismoderat or,canpublicevent,canpublicedit,canthreadrate,cant rackpm,candenypmreceipts,maxbuddypm,maxforwardpm,c anwhosonline,canwhosonlineip,cangetattachment)
VALUES (NULL,'Starter','',0,1,1,,,1,1,0,0,0,0,0,0,0,1,0,0 ,1,1,1,1,0,0,0,1,0,0,0,0,1,0,1)
mysql error: You have an error in your SQL syntax near ',1,1,0,0,0,0,0,0,0,1,0,0,1,1,1,1,0,0,0,1,0,0,0,0, 1,0,1)' at line 2
mysql error number: 1064

Limpkinw
10-19-2002, 06:21 AM
Only one issue with this. The smilies in shoutbox do not seem to work. Any idea on this?

NTLDR
10-19-2002, 06:09 PM
Originally posted by Jalrock
Everything works fine but when I try to add a usergroup I get this error. Any ideas?

Database error in vBulletin Control Panel 2.2.8:

You haven't edited usergroup.php correctly.

NTLDR
10-19-2002, 06:13 PM
Originally posted by Limpkinw
Only one issue with this. The smilies in shoutbox do not seem to work. Any idea on this?

You need to make sure the similes have the full URL in the ACP.

Chris M
10-19-2002, 06:28 PM
What are the changes from RC1 to RC2?

If you could post what PHP changes there were, that would be great!:)

Satan

NTLDR
10-19-2002, 06:43 PM
There are 12 changes in vbindex.php, 3 insertions, 1 removal and the rest are edits.

The main change for RC2 was the installer and all the templates re-coded properly.

If you want to send me your vbindex.php if you have made PHP edits then I can merge them for you and upgrade it to RC2 ;)

Chris M
10-19-2002, 06:50 PM
Ah cool:)

PM it to you?

Satan

NTLDR
10-19-2002, 07:14 PM
Sure PM it to me now and I'll do it while I have some free time :)

Chris M
10-19-2002, 07:18 PM
Cool thanks:)

Satan

NTLDR
10-19-2002, 07:30 PM
PM'ed you the upgraded file :D

Chris M
10-19-2002, 07:35 PM
Thanks:)

It appears to work without faults:)

Satan

NTLDR
10-19-2002, 07:45 PM
No problem Satan, glad its working fine :)

Chris M
10-19-2002, 07:46 PM
Yup...

I noticed that there was no "Online Users Today" info in it, so I added that back...

:)

Is that meant to be in RC2?

Satan

NTLDR
10-19-2002, 07:52 PM
Originally posted by hellsatan
I noticed that there was no "Online Users Today" info in it, so I added that back...
Is that meant to be in RC2?

Some users were still reporting that the Number of Online Users Today and the Record amounts were being reset. I therefore saved some queries and removed the code for that so to be sure it isn't this hack causing problems.

Chris M
10-19-2002, 07:56 PM
I see...

Well I added it back to mine:)

I presume the templates have that bit removed;)

I personally prefer it:)

Satan

NTLDR
10-19-2002, 08:03 PM
I liked the feature too, but it was removed to help prevent bugs, I will try and find a way to get this going more efficiently for v2.1 Final.

And yes the v2.1 templates in the installer have it removed :D

Chris M
10-19-2002, 08:08 PM
Cool...

Well I'll keep the old code till you find a way:)

Satan

groovesalad
10-19-2002, 11:55 PM
NTLDR- Once I installed this, I get this error when trying to add a new User Group


Database error in vBulletin Control Panel 2.2.6:

Invalid SQL: INSERT INTO usergroup (usergroupid,title,usertitle,cancontrolpanel,canmo difyprofile,canviewmembers,canview,canviewvbindex, showgroup,cansearch,canemail,canpostnew,canmove,ca nopenclose,candeletethread,canreplyown,canreplyoth ers,canviewothers,caneditpost,candeletepost,canuse pm,canpostpoll,canvote,canpostattachment,ismoderat or,canpublicevent,canpublicedit,canthreadrate,cant rackpm,candenypmreceipts,maxbuddypm,maxforwardpm,c anwhosonline,canwhosonlineip,cangetattachment)
VALUES (NULL,'test','',0,1,1,,,1,1,0,0,0,0,0,0,0,1,0,0,1, 1,1,1,0,0,0,1,0,0,0,0,1,0,1)
mysql error: You have an error in your SQL syntax near ',1,1,0,0,0,0,0,0,0,1,0,0,1,1,1,1,0,0,0,1,0,0,0,0, 1,0,1)' at line 2

mysql error number: 1064

Date: Saturday 19th of October 2002 05:52:56 PM
Script: http://groove-salad.com/forum/forum/admin/usergroup.php
Referer: http://www.groove-salad.com/forum/admin/usergroup.php?action=add&s=


any ideas?

groovesalad
10-20-2002, 04:29 PM
top

NTLDR
10-20-2002, 04:48 PM
The answer has allready been posted, please read the thread first. You haven't edited usergroup.php correctly.

Theres never any need to bump a thread less that 24hrs minimum after it has been posted.

groovesalad
10-20-2002, 05:02 PM
Read 52 pages of thread? Ok. I followed the hack.txt to a T and still the error exists.

groovesalad
10-20-2002, 05:32 PM
I followed what you said on this post
https://vborg.vbsupport.ru/showthread.php?postid=285700#post285700

And still I have the same issue. I even replaced my usergroup.php file with the original one and re did the hack. Still the same problem. It's calling www.groove-salad.com/forum/forum when it should only have one forum in the URL. Any ideas?

groovesalad
10-23-2002, 10:35 PM
Once I upgraded to 2.2.8 I am getting a Parse error: parse error in /www/g/groove_salad/htdocs/forum/vbindex.php on line 191

Can you tell me how to uninstall 2.0.1 and 2.1 RC 2 completely so I can start over?

NTLDR
10-23-2002, 10:37 PM
Originally posted by groovesalad
Can you tell me how to uninstall 2.0.1 and 2.1 RC 2 completely so I can start over?

There is an uninstaller provided in RC2 vbi_install.php

Chris M
10-23-2002, 10:50 PM
@groovesalad - Perhaps if you posted the parse error, we could help you fix it:)

Satan

groovesalad
10-24-2002, 12:35 AM
Parse error: parse error in /www/g/groove_salad/htdocs/forum/vbindex.php on line 191

posted it above :)

LightBringer
10-24-2002, 04:26 AM
Hey NTLDR, I don't suppose you're taking requests for features to be included in vbindex are ya? :)

NTLDR
10-24-2002, 11:34 AM
Originally posted by LightBringer
Hey NTLDR, I don't suppose you're taking requests for features to be included in vbindex are ya? :)

Indeed I am :D I'm allways looking out for good extra features that can be included.

I will be starting work on my full blown portal system in the next few weeks as part of my University Degree so any ideas let me know ;)

NTLDR
10-24-2002, 11:35 AM
Originally posted by groovesalad
Parse error: parse error in /www/g/groove_salad/htdocs/forum/vbindex.php on line 191

hellstatan meant what code is on line 191 (and just above/below) ;)

Buddha
10-24-2002, 01:01 PM
not to rush you ntldr... just curious... any word on when you'll be releasing the final?

NTLDR
10-24-2002, 01:07 PM
Hopefully tonight or tomorrow, I've just got the instructions for the install to write up now then its all done ;)

Chris M
10-24-2002, 01:17 PM
Cool:)

I cant wait;)

Satan

LightBringer
10-24-2002, 01:36 PM
Originally posted by NTLDR


Indeed I am :D I'm allways looking out for good extra features that can be included.

I will be starting work on my full blown portal system in the next few weeks as part of my University Degree so any ideas let me know ;)

An image or picture of the day box that pulls the pics from a specified forum and resizes via GD functions and displays the pic on the front vbindex page in a nice, neat, box.

Formatted for caption and description, and when the image is clicked, either a template with the full blown image is shown, or even just a javascript window would be cool.

:)

Chris M
10-24-2002, 01:43 PM
Hmmm...

How about something like a Staff Members Box or something?

Satan

NTLDR
10-24-2002, 02:00 PM
Originally posted by LightBringer
An image or picture of the day box that pulls the pics from a specified forum and resizes via GD functions and displays the pic on the front vbindex page in a nice, neat, box.

Nice idea, I like it :D I'll look into this one. Not sure if I can test it very well as I don't know if GD works properly on my server, but I'll look into it.

NTLDR
10-24-2002, 02:02 PM
Originally posted by hellsatan
How about something like a Staff Members Box or something?

Should be pretty easy and its only a one query job, I may add this in before the 2.1 final :D

Chris M
10-24-2002, 02:06 PM
Cool:)

Satan

LightBringer
10-24-2002, 02:08 PM
Originally posted by NTLDR


Nice idea, I like it :D I'll look into this one. Not sure if I can test it very well as I don't know if GD works properly on my server, but I'll look into it.

I second Hellsatan...."cool"!

Buddha
10-24-2002, 02:18 PM
Originally posted by NTLDR
Hopefully tonight or tomorrow, I've just got the instructions for the install to write up now then its all done ;)

excellent. i've been holding off on my other styles, as i don't have to be changing too many extra sets of templates.

looking forward to it.

groovesalad
10-24-2002, 11:43 PM
Originally posted by NTLDR


hellstatan meant what code is on line 191 (and just above/below) ;)

Well, here's what I seemed to have figured out. I uploaded the vbi_install.php file for the RC2 vbindex. I clicked to uninstall 2.1 completely and it said it uninstalled it correctly.

So then I clicked on upgrade from 2.0.1 and here is what I got.


Database error in vBulletin Control Panel 2.2.8:

Invalid SQL: ALTER TABLE thread ADD tpostid int( 10 ) unsigned DEFAULT '0' NOT NULL
mysql error: Duplicate column name 'tpostid'

mysql error number: 1060

Date: Thursday 24th of October 2002 05:42:48 PM
Script: http://groove-salad.com/forum/forum/admin/vbi_install.php?step=upgrade201
Referer: http://www.groove-salad.com/forum/admin/vbi_install.php


Not sure how to uninstall 2.0.1 after I uninstall 2.1. Any ideas?

LightBringer
10-25-2002, 12:30 AM
Groovesalad,


Database error in vBulletin Control Panel 2.2.8:

Invalid SQL: ALTER TABLE thread ADD tpostid int( 10 ) unsigned DEFAULT '0' NOT NULL
mysql error: Duplicate column name 'tpostid'

mysql error number: 1060

Date: Thursday 24th of October 2002 05:42:48 PM
Script: http://groove-salad.com/forum/forum...step=upgrade201
Referer: http://www.groove-salad.com/forum/admin/vbi_install.php



What this code is telling you is that MYSQL is attempting to alter a table known as THREAD by adding a column called TPOSTID to it. Notice the error: "Duplicate column name 'tpostid'"?
This means that it already exists.

Here's what you do:
Go into myphpadmin or sql server admin of choice, drop that table.

Run the install for 2.1 THEN do setpostid.php if and only if your news doesn't show up.

Hope that helps.

groovesalad
10-25-2002, 01:49 AM
When I went into myphpadmin, I didn't see a table called "tpostid". Where should I look?

LightBringer
10-25-2002, 01:51 AM
Look closer at my post groovesalad. :)

the table is called THREAD.

groovesalad
10-25-2002, 01:55 AM
ha ha. You know what's funny? When I go to work, I'm required to help assist in surgery, where I've got to think a lot. Seems as though my brain just wants to quit after work and can't seem to focus in on the small things. Thanks Light! :)

groovesalad
10-25-2002, 01:58 AM
Light- I went into THREAD and clicked on BROWSE. I noticed it contained a lot (if not all) of my threads. If I drop that table, does it delete all my threads?

LightBringer
10-25-2002, 02:08 AM
no groovesalad, do not drop the entire table.

if you're going to drop anything, ONLY drop the field called tpostid.

groovesalad
10-25-2002, 02:17 AM
Ok good, I'm glad I asked first. Can you tell I'm new to all of this?

LightBringer
10-25-2002, 02:18 AM
Originally posted by groovesalad
Ok good, I'm glad I asked first. Can you tell I'm new to all of this?

hehe, so am I.

Just let me know if you find it or cant find it :)

groovesalad
10-25-2002, 02:25 AM
I droped tposdid. Went back into vbi_install.php and clicked to uninstall, which went fine. Now when I click to upgrade from 2.0.1, it says it adds the templates and everything is fine, however, when I go into ACP, no VBIndex templates exist and I still get this error when viewing vbindex.php

Parse error: parse error in /www/g/groove_salad/htdocs/forum/vbindex.php on line 191

groovesalad
10-25-2002, 02:28 AM
"You have now completed the install of vBindex. Please read post-install.txt for further instructions"

Know where I can find this? I don't have it in any of the zips

LightBringer
10-25-2002, 02:31 AM
umm, why would you want to upgrade from 2.0.1 if you've completely uninstalled it?

My advice, start with a clean install of the newest version 2.1.

There is no post-install.txt with the exception of the earlier versions of vbindex which is where you can find it.

groovesalad
10-25-2002, 02:35 AM
Oh sorry. I thought when you uninstalled 2.1 it reverted back to 2.0.1. Does it uninstall it completely?

groovesalad
10-25-2002, 02:37 AM
I get this with a fresh install


Database error in vBulletin Control Panel 2.2.8:

Invalid SQL: ALTER TABLE usergroup ADD canviewvbindex SMALLINT (6)
mysql error: Duplicate column name 'canviewvbindex'

mysql error number: 1060

Date: Thursday 24th of October 2002 08:36:56 PM
Script: http://groove-salad.com/forum/forum/admin/vbi_install.php?step=install
Referer: http://www.groove-salad.com/forum/admin/vbi_install.php

groovesalad
10-25-2002, 02:40 AM
Ok, went in and dropped the canviewbvindex. Did a fresh install. Said everything went fine, but the templates weren't added and I still get that Parse error. HMmmmm. I have no idea what to try next.

groovesalad
10-25-2002, 02:41 AM
It says this "Adding Templates...Done!"...but it doesn't ever actually do it.

LightBringer
10-25-2002, 02:47 AM
It DOES add the templates hehe.

However...those templates do not fall under the proper category (Maybe NTLDR can address this)

The fix for this is to run the vbi_install.php again and choose to reinstall the templates option ONLY. :)

groovesalad
10-25-2002, 02:56 AM
You're right. It did add those templates. Still getting the error. Should I have something in my phpinclude template?

groovesalad
10-25-2002, 03:21 AM
Ok, I played around with it until my brain started hurting. Here's what I've got so far

http://groove-salad.com/forum/vbindex.php

I set the forumid's correctly in ACP, but the threads don't show up. I even ran setpostid.php and nothing. Any ideas?

LightBringer
10-25-2002, 04:09 AM
Originally posted by groovesalad
Ok, I played around with it until my brain started hurting. Here's what I've got so far

http://groove-salad.com/forum/vbindex.php

I set the forumid's correctly in ACP, but the threads don't show up. I even ran setpostid.php and nothing. Any ideas?

Double check and make sure you've got the right forumid listed for news.

If you look here you'll see additional instructions that NTLDR posted after the release.

https://vborg.vbsupport.ru/showthread.php?postid=310825#post310825

I'm not sure if the setpostid.php file in the original attachment is the working version Groovesalad.
You can also try this one:
https://vborg.vbsupport.ru/showthread.php?postid=310920#post310920

NTLDR
10-25-2002, 01:11 PM
Originally posted by LightBringer
However...those templates do not fall under the proper category (Maybe NTLDR can address this)

It should add all the templates as far as I know, how do you mean they don't fall under the correct catagory?

You are correct in saying that post-install.txt doesn't exist, I am working on this now with full instructions of the changes that need to be made than can't be done automaticlly.

If you can let me know about the installer issue then that would be great, I want to release v2.1 Final today.

NTLDR
10-25-2002, 01:12 PM
Originally posted by groovesalad
Oh sorry. I thought when you uninstalled 2.1 it reverted back to 2.0.1. Does it uninstall it completely?

When you choose uninstall then all the vBindex templates and DB settings are deleted, it doesn't revert you back to v2.0.1.

NTLDR
10-25-2002, 02:18 PM
vBindex v2.1 Final Screenshot :D

LightBringer
10-25-2002, 02:22 PM
Originally posted by NTLDR
vBindex v2.1 Final Screenshot :D

Looks good NTLDR. :)

What kind of changes have been done since the latest release candidate?

NTLDR
10-25-2002, 02:30 PM
Originally posted by LightBringer
What kind of changes have been done since the latest release candidate?

The only changes to vbindex.php are the Version Number, and removing maxloggedin from $templatesused as it shoutldn't be there.

There have been a few cosmetic fixes to the templates, correcting instances of <normalfont> and removing the Online Today: text.

I've also made a text file that lists all the changes that need to be made to usergroup.php, misc.php, newthread.php and template.php and setpostid.php is now integtrated with the Update Counters section.

Also fixed the tpostif column not being removed upon uninstall.

I shall be releasing shortly :D

NTLDR
10-25-2002, 02:39 PM
vBindex v2.1 ACP Options.

NTLDR
10-25-2002, 02:40 PM
vBindex v2.1 Usergroup Option.

NTLDR
10-25-2002, 02:41 PM
vBindex v2.1 Update Counters Option.

(Was setpostid.php in RC1 & RC2)

LightBringer
10-25-2002, 02:58 PM
Nice integration of setpostid. :)

Chris M
10-25-2002, 03:01 PM
Yey!

Cant wait until 2.1 [FINAL] is released;)

Satan

Buddha
10-25-2002, 03:16 PM
ntldr... did you find a way to set it up for those that are using vbindex for multiple pages, so that it could be run through the admin cp, perhaps as a dropdown menu to choose which page to edit the options for.

NTLDR
10-25-2002, 03:50 PM
It would probablt be easier for me to make the changes to vBindex and send them just for you. The easiest way is to edit the code for the poll, news, threads etc, so that it displays based on what page you are on, for example:

if ($newsonoff!=0 && $page=="") {

You make it so you have to have news enabled and will only display for the home page. I can't currently see any easy way to intgrate this into the CP.

Buddha
10-25-2002, 05:14 PM
no problem... i'll just copy and paste vbindex.php then and make the necessary code changes like i did with the current one.
thanks for the offer to help... very much appreciated.
actually, i've got a pretty good idea how i'll be able to breeze through this... so looking forward to it.

thanks again for the quick reply.
keep up the good work bud!

Chris M
10-25-2002, 05:17 PM
@NTLDR - How would I make an extra right-hand sidebar, underneath the Shoutbox information, specifically with a heading Advertisements ?

Satan

NTLDR
10-25-2002, 07:00 PM
Add the following HTML after $homeshoutbox in the home_right template:


<tr><td { secondaltcolor }align="center"><smallfont><b>TITLE HERE</b></smallfont></td></tr>
<tr>
<td bgcolor="{ firstaltcolor }" align="center">
YOUR STUFF HERE</td>
</tr>

Chris M
10-25-2002, 07:06 PM
Thanks:)

Satan

Chris M
10-25-2002, 07:10 PM
Check it out:)

http://www.darkblazes.com/

Look under the Shoutbox:)

Satan

LightBringer
10-25-2002, 07:13 PM
Originally posted by hellsatan
Check it out:)

http://www.darkblazes.com/

Look under the Shoutbox:)

Satan

Very nice hellsatan :)

NTLDR
10-25-2002, 07:17 PM
Good to see people customising there vBindex :D

I'm just about to release v2.1 Final, hold on for a few mins and all will be given :p

NTLDR
10-25-2002, 07:19 PM
vBindex v2.1 Final Has just been released :D

Chris M
10-25-2002, 07:22 PM
Cool:)

Thanks LightBringer - And NTLDR for vBindex;)

Satan

Chris M
10-25-2002, 07:33 PM
NTLDR - Have you got a list of changes for vBindex 2.1 from vBindex 2.1 RC2?

Edit: I have done all the file changes (thanks Beyond Compare:)) - What other changes do I need to make (i.e. New Templates, SQL Queries etc)??

Satan

NTLDR
10-25-2002, 07:46 PM
No SQL Changes :D
There were only a few template edits, you need to change the orrcurances of <normalfont to <smallfont in:

home_postshout;
home_shoutboxbit
home_shoutbox

Only a cosmetic change to make them match the rest of the site ;)

Chris M
10-25-2002, 07:53 PM
I see:)

Thanks NTLDR:)

Satan

zertox
10-25-2002, 08:06 PM
thanks !!! i'm nog going to upgrade :p

I love your hack

Chris M
10-25-2002, 08:17 PM
Is that "now" or "not"?:confused:

Satan

zertox
10-25-2002, 08:48 PM
wel not and now :p
i just checked the differences and changed it to my likings :p

Chris M
10-25-2002, 08:58 PM
Ok cool:)

Satan

LightBringer
10-25-2002, 10:51 PM
Looks Great!
Thanks NTLDR!

http://www.brainphreeze.com/forums/vbindex.php

NTLDR
10-25-2002, 10:57 PM
Thanks LightBringer, you may want to remove Online Today: from your home_left template as thats no longer there anymore ;)

As your site is very customised may I add it as a demo site on the first post?

LightBringer
10-25-2002, 11:10 PM
Originally posted by NTLDR
Thanks LightBringer, you may want to remove Online Today: from your home_left template as thats no longer there anymore ;)

As your site is very customised may I add it as a demo site on the first post?

Hehe, I must have missed the "online today" since I did the installation manually due to the customization of my templates and what not.

Sure you can use it as a demo site on the first post. :)

Buddha
10-26-2002, 12:24 AM
ok, working on upgrading ntldr, but i'd hoped that you would have more detailed info in the install.txt explaining what was changed in certain files (especially the templates).
do you have that info handy?
which templates need to be changed, and what parts are different. that would be great to know. thanks!

LightBringer
10-26-2002, 12:31 AM
Originally posted by Buddha
ok, working on upgrading ntldr, but i'd hoped that you would have more detailed info in the install.txt explaining what was changed in certain files (especially the templates).
do you have that info handy?
which templates need to be changed, and what parts are different. that would be great to know. thanks!

Buddha, look a few posts up from this and you'll see what was changed in the templates.

Originally posted by NTLDR
No SQL Changes
There were only a few template edits, you need to change the orrcurances of <normalfont to <smallfont in:

home_postshout;
home_shoutboxbit
home_shoutbox

Only a cosmetic change to make them match the rest of the site


My advice is just upload the vbindex.php file with the code changes that need to be made inside (Adding lines 142-202 of original 2.2.8 root/index.php file) where noted.

Then bring up those 3 templates in the ACP and change the <normalfont occurences to <smallfont.

There's no SQL changes, and the only REAL change done to vbindex.php was the removal of maxloggedinusers and the change in version #'s. :)

Buddha
10-26-2002, 12:48 AM
thanks lightbringer... i read the post you're referring too, but i thought that was the only edits to the templates from the RC to the final... i'm upgrading from 2.01... so i know there are more edits than that... an example being the newsbit that adds the "Read more..." feature.
(trust me buddy, i've read each and every post in this massive freakin' thread many times... i don't ask for help unless i'm sure someone hasn't beat me to it.

Buddha
10-26-2002, 12:50 AM
by the way, is anyone else having problems with the smilies showing up?
i know it was mentioned earlier to make certain to have the full url of the smilies in the admin cp, but that was for a problem with the shoutbox. i can't get the smilies for my posts, although i used to be able to with vbindex v.2.01.
i have changed the url to include the full address, but they still don't show.

*edit*
also, i've been going through the vbindex to make the modifications i'd made previously, and i can't find this anywhere

// variables
// -------------------------
// news forumid
$newsforum=75;


that's what i used to change the news forum for each additional page that i made (the copies of vbindex). now that it's set in the admin cp (for the main index), where am i going to be able to change the code in the copies.

thanks.


ps. only 23 querries on my heaviest page. that's with ten topics. great work man. thanks!

fsck
10-26-2002, 12:44 PM
Warning: unexpected error in date() in c:\fsckstuff\forums\admin\functions.php on line 1599

was just trying it out on my home computer and encountered this error, php 4.2.3 and apache 1.3 any ideas?

NTLDR
10-26-2002, 05:08 PM
Originally posted by fsck
Warning: unexpected error in date() in c:\fsckstuff\forums\admin\functions.php on line 1599

Shouldn't be anything to do with this hack, no changes are made to functions.php, but not knowing whats on line 1599 of functions.php I can't say.

NTLDR
10-26-2002, 05:08 PM
Originally posted by fsck
Warning: unexpected error in date() in c:\fsckstuff\forums\admin\functions.php on line 1599

Shouldn't be anything to do with this hack, no changes are made to functions.php, but not knowing whats on line 1599 of functions.php I can't say.

NTLDR
10-26-2002, 05:12 PM
Originally posted by Buddha
*edit*
also, i've been going through the vbindex to make the modifications i'd made previously, and i can't find this anywhere

These have been replaced by a batch of new variables:

$newsforum //news forumid
$newsposts //number of news posts
$maxvbithreads //number of latest threads
$pollsforum //poll forumid


Just replace all occurances of these and declare your own at the top, like vBindex v2.0.1 did.

How much have you changed your templates?

Buddha
10-26-2002, 06:09 PM
thanks ntldr.
i'll try it out in a few... not able to this very minute.

as for the templates... quite a bit... just moving things around, changing the right and left quite a bit and adding different replacements and advertisements and such. and the header is changed and added the total members and total reviews that we'd spoken about before... and then i had to create a crapload extra templates for all of the other pages...
which templates were changed from 2.01 to 2.1?

again, thanks for the help.

NTLDR
10-26-2002, 06:24 PM
There are very few major template changes at all that may be of importance to you.

The main change to the v2.1 templates was to make them so when you turn an item off in the CP (threads for example) the it compleatly disapears from the side bar.

Other than that $readmore was added to home_newsbit, there are the shoutbox templates added and buddy templates have been reworked to show and appear only when a buddy is online, and Users Online Today: was removed from the home_left template. Thats all the changes I can think of.

Buddha
10-26-2002, 06:55 PM
thanks. i'll look through and add the few extras... as for the threads, buddy, shoutbox and online info, none of that matters to me anyway, as it has been turned off.

that's great... i'll work them all over later and let you know how it goes.

thanks for all the help.

NTLDR
10-26-2002, 07:07 PM
No problem Buddha, I hope the upgrade goes well :)

groovesalad
10-26-2002, 07:11 PM
NTLDR-

After installing, I got this in my ACP when I chose "Options"

Is there any way to get rid of the other two vbindex links?

dmw
10-26-2002, 07:11 PM
Greetings,

I just updated vbindex to 2.1. All went well except that now the news does not show up. I have news turned on in CP and set for 5 news items showing 500 characters.

Any ideas?

Cheers!
David
www.cadchat.com

NTLDR
10-26-2002, 07:14 PM
Originally posted by dmw
[B]I just updated vbindex to 2.1. All went well except that now the news does not show up. I have news turned on in CP and set for 5 news items showing 500 characters.

In the CP go to update counters and then run the one that updates the postids, this should slove the problem for all posts prior to vBindex v2.1 and the required change to newthread.php that is now needed.

NTLDR
10-26-2002, 07:15 PM
Originally posted by groovesalad
Is there any way to get rid of the other two vbindex links?

You will need to manual go into your DB and remove them from the settinggroup table.

dmw
10-26-2002, 07:28 PM
NTLDR,

ok...did reset. News still won't display. Any other suggestions?


NEVER MIND...I'm an IDIOT! I missed a step updating one of the .php files. All is working now. Sorry for wasting your time. Lesson learned... read twice, do once.


Cheers!
David
www.CADchat.com

Buddha
10-26-2002, 07:56 PM
actually ntldr, i'm still having the problem with the smilies not showing up in the newsbit.
i've added the full url in the admin cp.
any thoughts?

NTLDR
10-26-2002, 07:58 PM
Originally posted by Buddha
actually ntldr, i'm still having the problem with the smilies not showing up in the newsbit.
i've added the full url in the admin cp.
any thoughts?

How are they appearing? As text or a broken image? I've changed the code in this version to have less queries when dealing with vBcode and Smilies, its seemed fine on my test site.

NTLDR
10-26-2002, 07:59 PM
Originally posted by dmw
NEVER MIND...I'm an IDIOT! I missed a step updating one of the .php files. All is working now. Sorry for wasting your time. Lesson learned... read twice, do once.

No problem, glad its working now for you :D

Buddha
10-26-2002, 08:08 PM
they appear as text.

groovesalad
10-26-2002, 08:09 PM
Originally posted by NTLDR


You will need to manual go into your DB and remove them from the settinggroup table.

I went in and didn't see what exactly I was supposed to get rid of. Could I PM you a username and password so you could take a look around?

NTLDR
10-26-2002, 08:15 PM
Originally posted by Buddha
they appear as text.

Try changing:

$newstext=censortext(bbcodeparse($news[pagetext],0,1));

To:

$newstext=censortext(bbcodeparse($news[pagetext]));

Or if that doesn't work (or if this one results in less queries):

$newstext=censortext(bbcodeparse($news[pagetext],$newsforum,1));

The last option is what vBindex v2.0.1 used so that will work, the first option may use less queries and work correctly.

I've double checked on a fresh vB 2.2.8 and vBindex v2.1 Final install and smilies work fine for me with the origional code.

NTLDR
10-26-2002, 08:17 PM
Originally posted by groovesalad
I went in and didn't see what exactly I was supposed to get rid of. Could I PM you a username and password so you could take a look around?

Sure, its just a couple of enteries in the DB which are easy to find and remove if you know how ;)

groovesalad
10-26-2002, 08:23 PM
awesome! check your pm :)

NTLDR
10-26-2002, 08:29 PM
Originally posted by groovesalad
awesome! check your pm :)

Checked, Sorted, Replied :D

groovesalad
10-26-2002, 08:44 PM
Cool, thanks. Sent you another PM. Last one as I know you don't do support via PM.

groovesalad
10-26-2002, 09:04 PM
Should I use the old setpostid.php to get my posts to show up?

NTLDR
10-26-2002, 09:16 PM
Theres no need to use setpostid.php any more, this has been added to ACP -> Update Counters -> Update postids

Provided you made the edits to admin/misc.php ;)

groovesalad
10-26-2002, 09:40 PM
Yeah, I did that but for some reason it didn't add it. You can look at the ACP if you'd like to

NTLDR
10-26-2002, 09:43 PM
I just ran the Update postid's For Threads and the news appears fine on the home page for me :paranoid:

groovesalad
10-26-2002, 09:45 PM
Where did you go in the ACP to do that?

NTLDR
10-26-2002, 09:47 PM
Under: Import & Maintenance, click Update Counters and then Update postid's For Threads and click the update button on that table ;)

groovesalad
10-26-2002, 09:47 PM
ah, I see. Did I not install the update counters correctly via misc.php?

NTLDR
10-26-2002, 09:48 PM
You should have, it seemed to run fine to me without a problem, perhaps you just ran the wrong one?

Buddha
10-26-2002, 11:06 PM
wonder if it is because i grabbed the code from a fresh 2.28 but my forum uses 2.27.

groovesalad
10-27-2002, 02:23 AM
Where do I go again in ACP to add some more navigation buttons to vbindex?

fsck
10-27-2002, 05:09 AM
that would be in templates. i can't remember what ones off teh top of my head but wherever you see links to index.php, search.php etc. on a image just add whatever image and link you want. maybe somebody could elaborate on this its been a year scince i touched my vB.

TheComputerGuy
10-27-2002, 11:34 AM
Parse error: parse error in /home/gunandga/public_html/upload/forums/vbindex.php on line 410

any help would be great on this fantastic hack

Chris M
10-27-2002, 01:06 PM
TheComputerGuy...

Can you post the lines around 410 of the vBindex file here?

Satan

Buddha
10-27-2002, 01:43 PM
groovesalad, what do you mean more navigation buttons?
like navigation links in the left menu?

TheComputerGuy
10-27-2002, 02:00 PM
406// only allow home_extra_ templates for security reasons
407eval("dooutput(\"".gettemplate("home_extra_$page")."\");");
408}
409?>


There is no 410.....

Buddha
10-27-2002, 02:05 PM
Originally posted by NTLDR


Try changing:

$newstext=censortext(bbcodeparse($news[pagetext],0,1));

To:

$newstext=censortext(bbcodeparse($news[pagetext]));

Or if that doesn't work (or if this one results in less queries):

$newstext=censortext(bbcodeparse($news[pagetext],$newsforum,1));

The last option is what vBindex v2.0.1 used so that will work, the first option may use less queries and work correctly.

I've double checked on a fresh vB 2.2.8 and vBindex v2.1 Final install and smilies work fine for me with the origional code.

the first option you suggest here didn't work, however the second one did. problem is, it adds 2 querries. which is just not worth it for smilies. i'll have to see what this might be.
i wonder if it does have to do with the fact that i'm still on 2.27?

groovesalad
10-27-2002, 03:33 PM
Originally posted by Buddha
groovesalad, what do you mean more navigation buttons?
like navigation links in the left menu?

No, like the ones on the top right ( User CP, Members, FAQ).

Buddha
10-27-2002, 03:53 PM
you can add those through the home_header template... add as many as you want. personally, i prefer to have the options in the left navigational menu, so i took all of the header buttons out and added the options as links in the left menu (which i can then set to vary whether someone is a member or not).
but yeah, just create the button, upload it, then go into home_header and find the other options. copy one of the lines of code, and insert it wherever you want the new button to appear. change the name for the img src and the url for the target, and you're off to the races my friend.
if you need any more help on this one, just let me know.

take care.

dmw
10-27-2002, 03:54 PM
I did an upgrade to vbindex yesterday. I screwed it up initially then got it working. I only have one thing left that doesn't want to work, the Online Today value. Where would I look to get this working.

Cheers!
David
www.CADchat.com

Buddha
10-27-2002, 04:08 PM
that option was taken out dmw.
check back a few pages if you'd like more info.

you can always go through the 2.01 version of vbindex and cut and paste the code into 2.1

dmw
10-27-2002, 04:11 PM
Thank Buddha...I'll do a little research on that. I liked that option.

Cheers!
David

Asso
10-27-2002, 04:11 PM
nice hack :)

Buddha
10-27-2002, 04:13 PM
ntldr had mentioned that the code for the online wasn't necessarily that stable which is why he took it out. also adds querries (if you're counting calories).

NTLDR
10-27-2002, 04:13 PM
Originally posted by Buddha
the first option you suggest here didn't work, however the second one did. problem is, it adds 2 querries. which is just not worth it for smilies. i'll have to see what this might be.
i wonder if it does have to do with the fact that i'm still on 2.27?

That may be the reson why it doesn't work, I know the smiles appear in my 2.2.8 testboard. I changed it to reduce the number of queries, like you said, its not worth it for the extra load.

The code you copy from index.php is only used to generate the users online bit, so it doesn't matter if its taken from 2.2.4, 2.2.6 or 2.2.8 etc..

NTLDR
10-27-2002, 04:15 PM
Originally posted by TheComputerGuy
There is no 410.....

You either have white space after the ?> or you haven't copied and pasted the code in correctly.

NTLDR
10-27-2002, 04:16 PM
Originally posted by dmw
Thank Buddha...I'll do a little research on that. I liked that option.

Indded you can copy the code from vBindex v2.0.1 like Budda said, it will still work but as some users seemed to get the record being reset I removed it till I can come up with an alternative.

Buddha
10-27-2002, 04:18 PM
david, i was checking out your site and noticed that you have the text set as the same color as the bg for the bottom table in the polls that contains the votes totals... the white table.
don't know if you were already aware of that... thought i'd let you know.

Buddha
10-27-2002, 04:21 PM
Originally posted by NTLDR


That may be the reson why it doesn't work, I know the smiles appear in my 2.2.8 testboard. I changed it to reduce the number of queries, like you said, its not worth it for the extra load.

The code you copy from index.php is only used to generate the users online bit, so it doesn't matter if its taken from 2.2.4, 2.2.6 or 2.2.8 etc..

thanks buddy.
it's too bad that it can't work without adding the querries... but i'll just have to make due without it.
i've installed far too many hacks to go through a complete reinstall of 2.28, so it'll have to do.

NTLDR
10-27-2002, 04:44 PM
Not sure how you site and that is set up, but you could allways use IMG code or HTML to add the smilies, a pain I know, but its something to think about :)

Buddha
10-27-2002, 04:45 PM
that's a good point, which i will keep in mind. for the most part, i cannot imagine i will need them that much.
if i do, for whatever reason though, i will remember that suggestion.
thanks bud!

NTLDR
10-27-2002, 04:47 PM
No problem. If I get a chance I may do a test install on a test 2.2.7 board to see if I get the same problem as you :)

groovesalad
10-27-2002, 05:19 PM
NTLDR - Do you take requests for other hacks?
https://vborg.vbsupport.ru/showthread.php?s=&threadid=45069

Buddha
10-27-2002, 05:22 PM
that request is along the lines of the one i submitted where people could have a collection listed on the forum. it's like the MyBookmarks hack, but it would be for a collection (yours is the concerts, mine is for dvds). no one ever commented on my request.

groovesalad
10-27-2002, 05:27 PM
Buddha - Hmmm, that's too bad. I like the MyBookmarks hack, it's just not exactly what I need it to do. If only I knew how to change that hack, I would.

Buddha
10-27-2002, 05:31 PM
exactly my point groovesalard. i ave the mybookmarks hack installed on my forum, and i think it's fantastic. and it's very close to what we would need... know what i mean.

if i ever have a few minutes, i'll check to see how much changing it would take to turn it into a different type of collections database.

groovesalad
10-27-2002, 05:40 PM
Buddha - Someone just messaged me to install the Journal hack and change that around. I'll look into it and see if it's easy to change around, or if that's the style I'd like.

Buddha
10-27-2002, 05:45 PM
i haven't installed the journal hack. i can see what they mean, but i would like more control of the collection (categories and such)... which i know the mybookmarks offers.

good luck though.

groovesalad
10-27-2002, 05:54 PM
Yeah, I looked at that. Not what I wanted. I need something that looks like this:
http://www.anyoneseenthebridge.com/msgboard/EditList.cgi?s=

dmw
10-27-2002, 06:54 PM
ntldr had mentioned that the code for the online wasn't necessarily that stable which is why he took it out. also adds querries (if you're counting calories).

Ok...I can live without it, but how do I stop the text "Online Today" from displaying? I don't see it in the "home_left" template.

NTLDR
10-27-2002, 06:57 PM
Its towards the bottom of the home_left template unless you have moved it else where.

dmw
10-27-2002, 07:01 PM
Okay....this is what I have:

<tr>
<td bgcolor="#13486D"><smallfont><a href="$bburl/online.php?s=$session[sessionhash]">Online Now</a>: <b>$totalonline</b><br>
<b>$numberregistered</b> Members | <b>$numberguest</b> Guests<br>
$activeusers<br></smallfont>
</td>
</tr>

What am I looking for?

Cheers!

Buddha
10-27-2002, 07:06 PM
take that all out.
you'll notice that tablerow will be removed from your left menu.

ntldr, i've found another glitch with mine, and this one is serious enough.
when i post html in my post (and the forum allows html), it displays the html code on the vbindex... actually shows the text code. it doesn't render it.
i'm thinking this is probably the same problem that's causing the smilies not to show up either.

any thoughts?

*edit*
testing many things...

any help will be greatly appreciated.
thanks in advance.

NTLDR
10-27-2002, 07:25 PM
If you use the code I gave for the smilies that added 2 queries did does that parse the HTML? Or does it still show up as HTML source? I'm thinking perhaps removing those 2 queries has done this.

Buddha
10-27-2002, 07:32 PM
yeah, that was the first thing i did... put that line of code in. in fact, i tried both lines you suggested and only the second one worked (adds 2 querries) ... still fooling around with it but it seems to allow the html.

it's having some problems with deep nested tables, but i'll work around that.

the extra querries tick me off, but it's still better than before.

if you come up with anything, please let me know. thanks for the help.

NTLDR
10-27-2002, 07:40 PM
I'll look into that, the best bet for smilies to show is via IMG code if that works. I'll try and install 2.2.7 on localhost tomorrow and have a look, but comparing the fuctions.php for both the bbcodeparse function is the same.

Buddha
10-27-2002, 07:55 PM
here's another kicker for you... it's not that it has a hard time with nested tables, but rather, if the post is long enough that it needs to add the "..." for the read more feature, well this is what happens.
(check attached image)

NTLDR
10-27-2002, 08:07 PM
Theres nothing that can be done about that I'm afraid.

This is how it works, it takes the first X characters of the post text and then bins the rest, even if its in the middle of vBcode or HTML. I'm think perhaps thats what your problem may be? Have you tried the origional code with the character limiter switched off (set to 0)?

BTW good job on the design, its looking great :D

Buddha
10-27-2002, 08:56 PM
yeah, if i have the limiter switched to 0, then i'm alright. and your explanation as to why it's cut off makes perfect sense... guess i won't be able to use that feature... ah well.

thanks for the compliment on the design.
i didn't change too much of your original placement of things... my next style for this though will be quite different.

anyway, thanks for all the help buddy.

wolfe
10-28-2002, 08:22 PM
getting error

Parse error: parse error in /usr/local/psa/home/vhosts/s2k2.com/httpdocs/vbindex.php on line 115

on vbindex.php

NTLDR
10-28-2002, 08:26 PM
As I have said many times:


No one can help if you don't post whats around the lines you get the parse error as we don't know what code is there.
Check you have edited the files correctly. I know for a fact you haven't

wolfe
10-28-2002, 08:35 PM
the code on that line is

} // end of vB

Chris M
10-28-2002, 08:36 PM
@NTDLR - It isnt like that when the tags cuts out...

I had an error with it when I used a [php] tag...It sent the entire column smack-bang into the right bar...

Satan

wolfe
10-28-2002, 08:37 PM
also if its before the forums dir if its in the main dir what would i put here

chdir('x');

would it be

chdir('.');

or

chdir('./');

or

chdir('/');

NTLDR
10-28-2002, 08:47 PM
Originally posted by wolfe
the code on that line is

} // end of vB

You haven't followed the install instructions and added the code that needs to be added to vbindex.php

NTLDR
10-28-2002, 08:50 PM
Originally posted by hellsatan
@NTDLR - It isnt like that when the tags cuts out...

I had an error with it when I used a [php] tag...It sent the entire column smack-bang into the right bar...

I'm not sure what you saying, do you mean you got an error when using [php] vBcode in newsposts?

And LOL @ hellsatan's Dictionary of Terms... on DarkBlazes :D

NTLDR
10-28-2002, 08:51 PM
Originally posted by wolfe
also if its before the forums dir if its in the main dir what would i put here

You put:

chdir('./forums');

Assuming you forums are in a directory called forums.

Chris M
10-28-2002, 09:01 PM
Hehe...Funny...It'll grow over time;)

About the [php] tags...

I tried to use a [php] tag in one of my news items, and because it was in the boundary of 300 characters, it displaced the page...

Satan

Chris M
10-28-2002, 09:01 PM
Hehe...Funny...It'll grow over time;)

About the [php] tags...

I tried to use a [php] tag in one of my news items, and because it was in the boundary of 300 characters, it displaced the page...

Satan

NTLDR
10-28-2002, 09:09 PM
Originally posted by hellsatan
I tried to use a [php] tag in one of my news items, and because it was in the boundary of 300 characters, it displaced the page...

The only thing that can be done to change that is modifying the vBcode for it as its the same with the forums, makes a real mess of the post when its longer than the width.

wolfe
10-28-2002, 09:14 PM
getting problem with it

first off the totle online aint working :( and the news aint showing :(

i can fix the table colours but please help me :D

https://vborg.vbsupport.ru/

wolfe
10-28-2002, 09:17 PM
also when you fix this can u add the hack that adds Reviews :D

NTLDR
10-28-2002, 09:18 PM
You haven't copied the code properly. Follow the instructions already in this thread to get the news posts to appear correctly.

wolfe
10-28-2002, 09:21 PM
what page d00d :D

FleaBag
10-28-2002, 09:40 PM
All working well with 2.2.8. Thanks again for everyone's work! :)

wolfe
10-28-2002, 10:41 PM
i have redesigned the New bit but with this you can see where the news should be. I have put an arrow.


also i can't find the fix in this thread


http://www.s2k2.com/prob2.gif

wolfe
10-29-2002, 12:05 AM
also 1 last favour can u please edit this so its conpatible with vBindex

scopeman
10-29-2002, 12:11 PM
hi

how can i exclude private forums from the latest threads box? i don't want that guests or user can see the title of the threads!


much thx :D

Chris M
10-29-2002, 12:33 PM
@wolfe - Have you made the changes to admin/misc.php?

If so, goto "Update Counters" in your Admin Control Panel, and do the "Update postid's For Threads" option - That should get your news back...

@scopeman - The private forum's threads cannot be seen...You can only see them because you are an Admin...Try creating a new thread in one of the private forums, logging out, then viewing the vBindex - You will find that you cannot see it...When you login however, you will be able to - This is because you are an Admin, and by default have access to all forums:)

Satan

NTLDR
10-29-2002, 12:33 PM
Originally posted by scopeman
how can i exclude private forums from the latest threads box? i don't want that guests or user can see the title of the threads!

If you have explicity set the permissions for each group for the forums and they don't inherit the permissions then they won't show, otherwise they will. I've already posted the details on how to exclude forums in this thread.

sHORTYWZ
10-29-2002, 12:34 PM
I have the same question as scopeman.. I tried logging out and I was still able to see the subjects for threads posted in the private boards.. anyway to fix this?

Great hack BTW, absolutely love it.

Chris M
10-29-2002, 12:45 PM
Make sure that you have "Is Private Forum?" switched on in the Forum options...

If that doesnt work, make sure your Forum permissions dont allow Guests to view Threads;)

Satan

scopeman
10-29-2002, 01:03 PM
Originally posted by sHORTYWZ
I have the same question as scopeman.. I tried logging out and I was still able to see the subjects for threads posted in the private boards.. anyway to fix this?

Great hack BTW, absolutely love it.



yes the same :ermm:

wolfe
10-29-2002, 01:14 PM
Originally posted by hellsatan
@wolfe - Have you made the changes to admin/misc.php?

If so, goto "Update Counters" in your Admin Control Panel, and do the "Update postid's For Threads" option - That should get your news back...

Satan

thanx d00d lol forgot stupid me lol

wolfe
10-29-2002, 01:17 PM
1 more thing my users online and my guests aint working :(

sHORTYWZ
10-29-2002, 03:11 PM
weird.. post didn't show up -

anyways..

I have everything setup correctly permissions wise - people can't view the threads, read them, anything using the normal forum interface.

Buddha
10-29-2002, 03:13 PM
Originally posted by wolfe
1 more thing my users online and my guests aint working :(

check back several pages buddy. that's been brought up more than once. ntldr took that feature out... but it's still in the template. you'll have to manually remove it.

hope that helps.

NTLDR
10-29-2002, 03:58 PM
Originally posted by wolfe
1 more thing my users online and my guests aint working :(

If you mean currently active users then as I've already told you numerous times, you haven't followed the install instructions.

If you mean number online today, then Buddha is correct it has been removed from vBindex v2.1.

wolfe
10-30-2002, 01:06 AM
ok sorted and did redesign but 1 more problem i have made tables for a few things but is there a way of making the Buddies list show

"You Currently Have No Buddy"

if you have none heres the code what do i change :D


// start buddies
// -------------------------
$datecut = time() - $cookietimeout;
$buddyuserssql=str_replace(" ","' OR user.userid='",$bbuserinfo[buddylist]);
$sql="SELECT userid,username,invisible,lastactivity
FROM user
WHERE (user.userid='$buddyuserssql')
ORDER BY username";
$buddys=$DB_site->query($sql);

$onlineusers="";
$offlineusers="";
while ($buddy=$DB_site->fetch_array($buddys)) {
if ($doneuser[$buddy[userid]]) {
continue;
}
$doneuser[$buddy[userid]]=1;

if ((!$buddy[invisible] or $bbuserinfo['usergroupid']==6) and $buddy[lastactivity]>$datecut) {
$onoff="on";
$color="#00D200";
} else {
$onoff="off";
$color="#FF0000";
}

eval("\$var = \"".gettemplate("home_buddy2")."\";");

if ($onoff=="on") {
$onlineusers.=$var;
} else {
$offlineusers.=$var;
}
}
// -------------------------
// end buddies

wolfe
10-30-2002, 02:14 AM
well fixed that problem :D

but here the new look i made also i will post it with the new buddy layout when one of my buddy are on :D

http://www.s2k2.com/new.gif





also i get a problem i set all group settings right but my guests can't see the vBindex page whats up :(

wolfe
10-30-2002, 02:15 AM
please help me out :D

wolfe
10-30-2002, 02:17 AM
this was the original layout see the difference :D

oh **** noticed i lost my menu well will fix that in a few mins :D

http://www.s2k2.com/prob.gif

Buddha
10-30-2002, 11:34 AM
looks like you just have borders around the tables... other than that looks fine.
it's in the news and newsbit templates.

NTLDR
10-30-2002, 12:00 PM
Originally posted by wolfe
also i get a problem i set all group settings right but my guests can't see the vBindex page whats up :(

If guests cannot view the board they cannot view vBindex.

wolfe
10-30-2002, 12:39 PM
how can i change it so they can view vBindex and the news but they can't go on the board thats like a sneak peek then they register :D

wolfe
10-30-2002, 12:50 PM
also can u look @ that reviews.php i have got the table in the bd already all i need is the file fixing :D

Buddha
10-30-2002, 12:53 PM
Originally posted by wolfe
how can i change it so they can view vBindex and the news but they can't go on the board thats like a sneak peek then they register :D

allow them to view forum home, but not read the posts within the forum until they register.

wolfe
10-30-2002, 12:53 PM
ok also can u look @ the reviews.php i will try on my end but it will be better to have a few doing it :D

Buddha
10-30-2002, 01:01 PM
can't help you with the php dude.
what's the problem you're having?

wolfe
10-30-2002, 01:02 PM
well i want to turn this vBPortal reviews page into a vBIndex one so i can add it to vBIndex :D

Buddha
10-30-2002, 01:03 PM
sorry, but i definitively can't help you there.
good luck though.

wolfe
10-30-2002, 01:06 PM
yep when its done it will be top to add to vBIndex :D

FleaBag
10-30-2002, 06:45 PM
The templates in the installer are royally screwed up. If you put a quote in a news post, it messes up the display of the whole page.

NTLDR
10-30-2002, 07:04 PM
Quoting in news posts and the shoutbox works fine with the default vBcode, if you have changed it, its your changes that are causing it to display incorrectly.

Buddha
10-30-2002, 07:04 PM
just tested that on mine gamer, and it looks fine.
can you post a screenshot?

also, do you have the character limiter on? if so, i'll cut off the post after that amount of characters regardless of whether or not it reaches the [ / quote ].
know what i mean?

FleaBag
10-30-2002, 07:07 PM
I hadn't changed anything, it was a fresh install. I re-installed it 5 times before I realised the quote was the problem.

FleaBag
10-30-2002, 07:15 PM
Oh and for an example go to www.GamerForums.com - excuse the horrible style, I just lost my default one trying to install a hack. :(

NTLDR
10-30-2002, 07:20 PM
You have the PHP, Code and Quote boxes installed, this doesn't work with vBindex.

FleaBag
10-30-2002, 07:28 PM
Ah right, I kinda forgot that was a hack I'm so used to it. Thanks. :) Any idea on how I can make them work with it? They used to work in earlier versions...

NTLDR
10-30-2002, 08:07 PM
There have been no changes to home_news or home_newsbit since v2.0.1 that would cause this.

Chris M
10-30-2002, 08:18 PM
I also use the PHP/Code/Quote changes...

Thats probably what caused my screen to go all strange;)

Satan

haste
10-30-2002, 10:24 PM
I just installed this hack. It's working well, except that none of the images (except for avatars) are not showing up. The index page is located in the directory under the forums, and I did the chdir line in the file. Any ideas what could be causing this?

NTLDR
10-30-2002, 10:38 PM
{imagesfolder } needs to be set to the Full URL.

Buddha
10-30-2002, 11:10 PM
hey ntldr, just thought i'd let you know i upgraded all of my twenty odd pages today to 2.1 and it went off without a hitch. didn't worry too much about the template changes, and i'm saving querries like crazy.
i appreciate all the help and hard work.
thank you very much.

wolfe
10-31-2002, 01:08 AM
well mine works fine :D

wolfe
10-31-2002, 01:08 AM
d00d it might be ending in the middle of the code so it might mess up if you got XX characters set :D

Larry@IOG
10-31-2002, 01:48 AM
How do I get the top 10 posters and top 10 online on the vbindex page?

Thanks

Larry

menace86
10-31-2002, 03:42 AM
Parse error: parse error in /usr/local/www/data-dist/azn/vbulletin/upload/vbindex.php on line 112

copied everything correctly too. could use some help! thanks.

NTLDR
10-31-2002, 06:34 AM
Originally posted by Buddha
[B]hey ntldr, just thought i'd let you know i upgraded all of my twenty odd pages today to 2.1 and it went off without a hitch. didn't worry too much about the template changes, and i'm saving querries like crazy.[B]

Glad to hear it all went smoothly Buddha :D

NTLDR
10-31-2002, 06:35 AM
Originally posted by Larry@IOG
How do I get the top 10 posters and top 10 online on the vbindex page?

You need to add the code from that hack to vbindex.php and add the variables to the vBindex templates.

NTLDR
10-31-2002, 06:36 AM
Originally posted by menace86
Parse error: parse error in /usr/local/www/data-dist/azn/vbulletin/upload/vbindex.php on line 112

copied everything correctly too. could use some help! thanks.

You haven't added the code correctly and as I've said before the information you have posted is useless, no-one can help from that alone.

Buddha
10-31-2002, 03:54 PM
hey ntldr, i have a quick question. where can i change it so that when there's a quote in the post, it doesn't say Quote:.
it's not the default quote template, as i've changed that.
don't know where to find it for vbindex.

thanks.

NTLDR
10-31-2002, 04:00 PM
You need to edit the Quote vBcode in the ACP to remove that part ;)

Or did you just want that line removed in news posts only?

Buddha
10-31-2002, 04:07 PM
actually, just removing the line would be great.

NTLDR
10-31-2002, 04:11 PM
Should work, find:

$newstext=bbcodeparse($getnews[pagetext],0,1);

Add after:

$newstext=str_replace("quote:", "", $newstext);

Change quote: to the exact text that is being removed (thats the deafault for vB.)

Buddha
10-31-2002, 04:18 PM
thank you very much buddy. nice to know i can rely on you for help.
works like a charm, granted i had to cap the 'q' in Quote... seems to be the default on mine.

thanks again.
(just starting the work on the second theme... having a blast with your script... gotta tell ya.)

kreatiV
11-01-2002, 04:49 PM
I am just wondering, hopefully this won't sound too stupid ;)

I bought a style/templateset for my vB ( TREN_Z ) - if I install vBindex 2.1 will it use the graphcis inside my bought style or will it be the standard "purple"?

NTLDR
11-01-2002, 04:54 PM
It will use the cololrs and graphics specified in the style you are using. You may have to make some edits if they haven't used the standard vB images names.

haste
11-01-2002, 11:57 PM
I'm having a problem: only the newest news item shows a message icon, even though all of them have icons assigned. Any ideas?

Buddha
11-02-2002, 02:30 AM
hey ntldr, i've installed the "allow admins to use HTML always" hack, but it still shows up as text html in vbindex unless html is allowed via admin cp.
is there a way to code it so that if the post is made by admin usergroup, it will allow html regardless of whether it's allowed in the admin cp.

thanks.

sHORTYWZ
11-02-2002, 05:41 AM
ntldr - still having problems with posts showing up in the "latest threads" that the user doesn't have access to.. everything on my board is set to require login except for viewing of forum home yet you can see posts from all of my boards in the box..

Any help would be appreciated! Thanks.

Chris M
11-02-2002, 10:21 AM
@sHORTYWZ - Check that Guests / Registered cant see the private forums at all;)

Satan

lemarsu
11-02-2002, 12:26 PM
Hi,

I have installed VBI 2.1 with no problem....
Except that the news content is not showing up!
If I put Number of Characters in News to 25 I get "Read Full Post" but still no text shows up….

I can’t see what is going wrong can anyone help pls.

LeMarsu

Chris M
11-02-2002, 12:28 PM
Goto your Admin CP:

Click "Update Counters" from the sidebar menu...

Then run the "set postids" option...

Satan

lemarsu
11-02-2002, 12:43 PM
Cheers hellsatan,

It worked a treat....
but now the Avatar is showing.. I have disabled it in vBulletin Options.

I Can alway change the Template (quick fix) but is there an other way ?

LeMarsu