Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Forum Archive List Forum Footer Details »»
Forum Archive List Forum Footer
Version: 0.0.1, by Atakan KOC Atakan KOC is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Category: Board Optimization - Version: 3.6.8 Rating:
Released: 12-15-2006 Last Update: 12-15-2006 Installs: 116
Uses Plugins
 
No support by the author.

Forum Archive List Forum Footer

install


Go to your admin cp, then:
Plugin System -> Manage Products -> [Add/Import Product] -> Select 'Product-falf.xml' from your computer then press 'Import'

Plugin : 1
Phrases : 0
Template : 0
Setting : 0

0.0.1 Initial Version.

TvPano - Yabancı Dizi - Yerli Dizi - Anime

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 03-10-2008, 08:43 PM
R-D's Avatar
R-D R-D is offline
 
Join Date: Jan 2008
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
@Atakan KOC - Is there any way to add permissions to this so only the links that are viewable to the viewing user are displayed?
Here you go, Boofo. Here's two versions, both tested on 3.6.8.

Both show links based on what the user has permission to see. product-falf-perms-all.xml shows the archive links to all users, while product-falf-perms.xml only shows the links to guests (group 1).

*Both products now also include the photoplog fix*
You'll need to uninstall Atakan KOC's original product before installing either of these.


Basically, for the permissions part, I changed:
Code:
foreach ($vbulletin->forumcache AS $forum)
	{
		$forum_sira[$forum['forumid']] = $forum['forumid'];
	}
to:
Code:
foreach ($vbulletin->forumcache AS $forum)
	{
	$forumpermas = $vbulletin->userinfo['forumpermissions'][$forum['forumid']];
		if (($forumpermas & $vbulletin->bf_ugp_forumpermissions['canview']) OR ($forumpermas & $vbulletin->bf_ugp_forumpermissions['canviewthreads']) OR ($forumpermas & $vbulletin->bf_ugp_forumpermissions['canviewothers']))
		{
			$forum_sira[$forum['forumid']] = $forum['forumid'];
		}
	}
Reply With Quote
  #83  
Old 03-10-2008, 09:20 PM
Tom_S Tom_S is offline
 
Join Date: Jan 2007
Location: VA Beach
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I haven't looked yet but did you leave in the photoplog fix?

EDIT:
I checked. No you didn't so it won't work for the photoplog issue.
Reply With Quote
  #84  
Old 03-10-2008, 09:33 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by R-D View Post
Here you go, Boofo. Here's two versions, both tested on 3.6.8.

Both show links based on what the user has permission to see. product-falf-perms-all.xml shows the archive links to all users, while product-falf-perms.xml only shows the links to guests (group 1).

You'll need to uninstall Atakan KOC's original product before installing either of these.


Basically, for the permissions part, I changed:
Code:
foreach ($vbulletin->forumcache AS $forum)
    {
        $forum_sira[$forum['forumid']] = $forum['forumid'];
    }
to:
Code:
foreach ($vbulletin->forumcache AS $forum)
    {
    $forumpermas = $vbulletin->userinfo['forumpermissions'][$forum['forumid']];
        if (($forumpermas & $vbulletin->bf_ugp_forumpermissions['canview']) OR ($forumpermas & $vbulletin->bf_ugp_forumpermissions['canviewthreads']) OR ($forumpermas & $vbulletin->bf_ugp_forumpermissions['canviewothers']))
        {
            $forum_sira[$forum['forumid']] = $forum['forumid'];
        }
    }
Thank you very much.
Reply With Quote
  #85  
Old 03-10-2008, 09:55 PM
R-D's Avatar
R-D R-D is offline
 
Join Date: Jan 2008
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tom_S View Post
I haven't looked yet but did you leave in the photoplog fix?

EDIT:
I checked. No you didn't so it won't work for the photoplog issue.
The fix has now been added to both products and my post has been edited to reflect this.
Reply With Quote
  #86  
Old 03-10-2008, 10:10 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by R-D View Post
The fix has now been added to both products and my post has been edited to reflect this.
Excellent! I just didn't like the idea of listing forums for people who couldn't see them as then the questions start as to what is in there and why can't they access them. Thanks again.
Reply With Quote
  #87  
Old 03-10-2008, 10:19 PM
Tom_S Tom_S is offline
 
Join Date: Jan 2007
Location: VA Beach
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by R-D View Post
The fix has now been added to both products and my post has been edited to reflect this.
That's because you da man! Thanks!
Reply With Quote
  #88  
Old 03-11-2008, 02:06 PM
R-D's Avatar
R-D R-D is offline
 
Join Date: Jan 2008
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
Excellent! I just didn't like the idea of listing forums for people who couldn't see them as then the questions start as to what is in there and why can't they access them. Thanks again.
No problem, glad I could help.


Quote:
Originally Posted by Tom_S View Post
That's because you da man! Thanks!
I would've put it in sooner if I had realised it was such a simple fix. I don't have photoplog so I kinda skipped your posts...
Reply With Quote
  #89  
Old 03-11-2008, 06:59 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by R-D View Post
No problem, glad I could help.
I took out this code as I couldn't figure out what it was doing in there. The permissions still work fine without it.

Code:
if (is_member_of($vbulletin->userinfo, 1)){
Reply With Quote
  #90  
Old 03-12-2008, 12:24 AM
R-D's Avatar
R-D R-D is offline
 
Join Date: Jan 2008
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
I took out this code as I couldn't figure out what it was doing in there. The permissions still work fine without it.

Code:
if (is_member_of($vbulletin->userinfo, 1)){
That's there to hide the archive links from registered users. I don't know about your site(s) but mine has a dark black background with yellow links, so they stand out a fair way, and I don't really want regged users going into the archive when it's mainly for search engine bots.

I did upload 2 versions though, one with that, one without, so it's your choice.
Reply With Quote
  #91  
Old 03-12-2008, 12:48 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
if (!$vbulletin->userinfo[userid])
{
would have worked to, I suppose. I don't care who uses it as long as they don't see areas they can't use.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:51 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.04762 seconds
  • Memory Usage 2,323KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (10)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete