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)

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


All times are GMT. The time now is 07:18 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.02978 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

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

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