vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   a question (https://vborg.vbsupport.ru/showthread.php?t=283615)

krimesis 06-02-2012 08:24 PM

Quote:

Originally Posted by Boofo (Post 2335409)
It sounds like he doesn't want a certain usergroup to be able to see the archive posts.

Yes in fact.
thanks

Boofo 06-02-2012 08:41 PM

You can delete the link in your footer, but if someone has a direct link they would still be able to see the archive. I'm sure there has to be a way to do what you are asking.

blind-eddie 06-03-2012 12:09 AM

In your footer template,

Find:

Code:

                                <if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
Add above:

Code:

<if condition="is_member_of($bbuserinfo, 1,2,3,4,5,6,7)"><!-- Remove or add Usergroup ID's here -->
Edit this to only show link in footer to the usergroups you want to see the link.

Find:

Code:

                                $template_hook[footer_links]
Add above:

Code:

</if>
Click save.

As Boofo mentioned above, those that know the direct URL can still get to it & view it, but they can only view the forums you gave them permisson to view in Forum Manager. Remember, they do not see what you see.

krimesis 06-04-2012 10:06 AM

Quote:

Originally Posted by blind-eddie (Post 2335975)

Find:

Code:

                                $template_hook[footer_links]
Add above:

Code:

</if>

I can not find it.

blind-eddie 06-05-2012 12:55 AM

What version of vbulletin are you using?

krimesis 06-05-2012 06:38 AM

Quote:

Originally Posted by blind-eddie (Post 2336615)
What version of vbulletin are you using?

3.8.7

krimesis 06-06-2012 11:45 AM

New?

blind-eddie 06-06-2012 11:51 AM

Ok, do this.

In your footer template,

Find:

Code:

                                <if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
Replace with:

Code:

                                                    <if condition="is_member_of($bbuserinfo, 1,2,3,4,5,6,7)"><!-- Remove or add Usergroup ID's here -->
                                <if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
                                                              </if>

Edit this to only show link in footer to the usergroups you want to see the link.



Click save.

krimesis 06-07-2012 09:18 AM

Quote:

Originally Posted by blind-eddie (Post 2337096)
Ok, do this.

Many thanks :up:


All times are GMT. The time now is 05:35 AM.

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.01109 seconds
  • Memory Usage 1,737KB
  • 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
  • (8)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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