vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBindex v3.0.0 RC5 (https://vborg.vbsupport.ru/showthread.php?t=59524)

RapCheck 01-12-2004 10:06 PM

Quote:

Originally Posted by NTLDR
Try the vbindex.php from the latest zip file, just upload and replace your existing one. I've also re-sent you activation email.

done and still showing the regular index page.

NTLDR 01-12-2004 10:25 PM

Did you definatly add the template to the right style and with the correct title? I know its not working for you but I've tried it on my site and it works fine. Do you know what PHP version you have?

RapCheck 01-12-2004 10:30 PM

Only have one style thats active. I've double triple :D checked its in the right style and spelling.

PHP version is 4.0.6

NTLDR 01-12-2004 10:43 PM

Do you know if they worked with an older version of vBindex if you tried and used a Pre-RC3 version?

If you could add a couple of lines to the top of vbindex.php after:

PHP Code:

require_once('./includes/functions_user'.SCRIPT_EXTENSION); 

Add:

PHP Code:

if ($bbuserinfo['userid'] == X) {
    echo 
'<pre>';
    
print_r($_REQUEST);
    echo 
'</pre>';


Replacing X with your userid and look for the following output at the very top (you'll only see it with your account):

Code:

Array
(
    [page] => copyright
    [bblastvisit] => 1071666760
    [bblastactivity] => 1071666772
    [bbuserid] => 2

You should see aload of stuff similar to that, in particular in whats listed to you see a [page] => copyright line?

RapCheck 01-12-2004 10:52 PM

I've only used RC3 build 5, and now the build 7 index page

heres what it says

[Removed sensitive info - NTLDR]

NTLDR 01-12-2004 10:56 PM

I removed the code as it contained some sensitive information, like your password hash :)

However I know what the problem is now, I just need to figure out howto solve it. Ive a feeling its something to do with your PHP Version, in fact thinking about it, it is your PHP version. *goes off to fix problem*

NTLDR 01-12-2004 11:04 PM

OK :)

Find:

PHP Code:

// pre-cache templates used by specific actions
// link the page we're requesting to the do var so that vB3 will
// pre-cache the template and save 1 query 

Add after:

PHP Code:

// old php versions
if (PHP_VERSION '4.1.0') {
    
$_REQUEST['page'] = &$HTTP_GET_VARS['page'];
    
$_REQUEST['section'] = &$HTTP_GET_VARS['section'];


That should fix the problems on PHP versions older than 4.1.0 :)

RapCheck 01-12-2004 11:16 PM

:( still don't work

NTLDR 01-12-2004 11:21 PM

Sorry, I missed an _ it should have been PHP_VERSION and not PHPVERSION. I've edited the code above.

RapCheck 01-12-2004 11:25 PM

:)

thank you

BTW, still no email from core forums. Email should be RapCheck00@aol.com incase I messed that up somehow

NTLDR 01-12-2004 11:28 PM

Good to see another bug squashed :D

I've marked you as licenced on Core Forums as I know your a real person ;) No idea why the emails arn't getting through.

Oxygen 01-13-2004 03:07 AM

All seems to go well, until I get to step 7.
and all is blank, exacept the button.
vb 3 RC 2
and your latest code.

any ideas?

Regards,
Sean

???`S?LV?R???` 01-13-2004 08:18 AM

NTLDR can you mark me as licensed also on coreforums.

NTLDR 01-13-2004 10:08 AM

Quote:

Originally Posted by Oxygen
All seems to go well, until I get to step 7.
and all is blank, exacept the button.
vb 3 RC 2
and your latest code.

Make sure you have uploaded all the files into the correct directorys.

@???`S?LV?R???`: done :)

???`S?LV?R???` 01-13-2004 10:10 AM

thanks :)

???`S?LV?R???` 01-13-2004 10:39 AM

Thanks for explaining how to add extra pages, that was definitly useful. How would i set certain ones to only be allowed to be viewed by logged in members?

NTLDR 01-13-2004 10:57 AM

Either use a conditional in the template:

HTML Code:

<if condition="$bbuserinfo['usergroupid'] == 6">SHow the content<else />don't show it
Or use the dynamic pages version and have similar code but in PHP. IMO the template conditional is simplest.

Anarchy 01-13-2004 11:12 AM

the ability to show the first post of the news articles on the front page would be good.

Basically the content of the news post on the front page, not the replies.

Or is this by default and my script has a bug

http://207.44.184.29/~ttctest.com/vbindex.php

Oxygen 01-13-2004 11:30 AM

100% user error.. Did not see the file vbiupgraded.php.

Thanks

Regards,
Sean

???`S?LV?R???` 01-13-2004 11:43 AM

Could you explain that in more detail like you did with the extra pages feature @ NTLDR. :)

NTLDR 01-13-2004 01:07 PM

Quote:

Originally Posted by Anarchy
the ability to show the first post of the news articles on the front page would be good.

Basically the content of the news post on the front page, not the replies.

Or is this by default and my script has a bug[/url]

It is default, I'd assume you have upgraded from vB2. Just goto the Update Counters page in the vB ACP and update the thread ones and the posts should appear. It seems to be a common problem with the vB upgrade/install scripts.

NTLDR 01-13-2004 02:45 PM

Quote:

Originally Posted by ???`S?LV?R???`
Could you explain that in more detail like you did with the extra pages feature @ NTLDR. :)

If you want a page with content only for default admin users:

HTML Code:

<if condition="$bbuserinfo['usergroupid'] == 6">
    place the HTML from the turtorial here
<else />
    Sorry, you don't have permission to view this page.
</if>


???`S?LV?R???` 01-13-2004 02:59 PM

Thanks, I'll Test It Out Right Now :)

???`S?LV?R???` 01-13-2004 03:22 PM

I Tried That And All It'd Say When I Try To Go To The Page Is "Sorry, You Must Register First To View This Page."

<if condition="$bbuserinfo[6] == 6">
<table cellpadding="0" cellspacing="0" border="0" class="tborder" width="100%">
<tr>
<td>
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
<td class="tcat">
<div><p align="center"><b>TEST</b></p>
</div>
</td>
</tr>
<tr>
<td class="alt1">
<div>
TEST
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<else />
Sorry, You Must Register First To View This Page.
</if>

NTLDR 01-13-2004 03:25 PM

You need to replace 6 with the usergroupid and not 'usergroupid' :)

HTML Code:

<if condition="$bbuserinfo['usergroupid'] == 6">

and NOT:

<if condition="$bbuserinfo[6] == 6">


???`S?LV?R???` 01-13-2004 03:27 PM

thanks :) lol

???`S?LV?R???` 01-13-2004 03:30 PM

by the way... how would i set it to multiple usergroups?

NTLDR 01-13-2004 03:34 PM

HTML Code:

<if condition="$bbuserinfo['usergroupid'] == X || $bbuserinfo['usergroupid'] == Y || $bbuserinfo['usergroupid'] == Z">
Basicly add || $bbuserinfo['usergroupid'] == W onto the end :) Obviously changing the letters to the user group number :)

???`S?LV?R???` 01-13-2004 04:03 PM

Thanks Alot... Works Great :)

???`S?LV?R???` 01-13-2004 04:18 PM

adding that after the code didn't work

???`S?LV?R???` 01-13-2004 04:20 PM

nevermind, got it to work... lol accidently had another character in there.

???`S?LV?R???` 01-13-2004 04:32 PM

Btw.. Thanks For All Your Help So Far NTLDR, I Appreciate It Alot. I Got Another Question... How Could I Make The Downloads On That Page Only Work For Them? Cause I Don't Want To Just Post Links In There That Anyone Could Give Out To Other People That Arn't In That Usergroup.

paulomt1 01-13-2004 05:19 PM

I canĀ“t install due this error:

Database error in vBulletin 3.0.0 Release Candidate 2:

Invalid SQL:
CREATE TABLE vbindex_shoutbox (
shoutid int(11) NOT NULL auto_increment,
userid int(11) NOT NULL default '0',
shout text NOT NULL,
dateline int(11) NOT NULL default '0',
PRIMARY KEY (shoutid)
) TYPE=MyISAM

mysql error: Table 'vbindex_shoutbox' already exists

mysql error number: 1050

any help?

NTLDR 01-13-2004 06:05 PM

You've either failed to install this properly in a previously or for some reason the step hasn't changed, visit vbiupgrade1.php?step=3 to continue the installation.

NTLDR 01-13-2004 06:07 PM

Quote:

Originally Posted by ???`S?LV?R???`
Btw.. Thanks For All Your Help So Far NTLDR, I Appreciate It Alot. I Got Another Question... How Could I Make The Downloads On That Page Only Work For Them? Cause I Don't Want To Just Post Links In There That Anyone Could Give Out To Other People That Arn't In That Usergroup.

You'd need a seperate page to get the files and "pass" them to the users who are valid, just like the attachments. A quick way to do this would be to create a downloads forum that is not show but contains posts with attachments that could be linked to via the vBindex page.

???`S?LV?R???` 01-13-2004 06:14 PM

alright then my 2nd question would have to be... how do i get past that 2mb file size limit?

NTLDR 01-13-2004 06:17 PM

The attachment limit is based on the vB option, or your PHP configuration. (If your PHP confiured limit is lower than the vB one, thats the limit that counts).

???`S?LV?R???` 01-13-2004 06:19 PM

how would i go about changing the php limit?

NTLDR 01-13-2004 06:25 PM

You'll need a dedicated server with access to php.ini or httpd.conf. Its the upload_max_filesize setting you'd need to edit which defaults to 2M.

???`S?LV?R???` 01-13-2004 06:36 PM

Thanks, I'll Talk To My Host About It Right Now.


All times are GMT. The time now is 01:01 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02416 seconds
  • Memory Usage 1,825KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_html_printable
  • (4)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete