Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #21  
Old 11-09-2009, 05:31 PM
Bandit8007 Bandit8007 is offline
 
Join Date: Jan 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have a little hint how to modify this Lynne?

Reply With Quote
  #22  
Old 11-09-2009, 05:45 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't fully understand what you want as you have posted no information about your particular situation. Are the forums hidden to unregistered users and you want the feeds to show anyway? As I said, you'd have to modify the external.php page to show them anyway. However, then they will show to everyone - unregistered users included. I don't know how to do it so it will only show to registered users.
Reply With Quote
  #23  
Old 11-09-2009, 07:12 PM
rsalumpit's Avatar
rsalumpit rsalumpit is offline
 
Join Date: Aug 2009
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you for this one
Reply With Quote
  #24  
Old 11-10-2009, 06:54 AM
Bandit8007 Bandit8007 is offline
 
Join Date: Jan 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the goal is to show only 1 section for feeds
and the forum is total hidden for unreg.. users

if that section does show to all peeps around that's ok...

i beleive ya can set the feeds with that Sorky's plugin
on what to show or not......
Reply With Quote
  #25  
Old 11-10-2009, 02:40 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bandit8007 View Post
the goal is to show only 1 section for feeds
and the forum is total hidden for unreg.. users

if that section does show to all peeps around that's ok...

i beleive ya can set the feeds with that Sorky's plugin
on what to show or not......
So, you are going to use Sorky's plugin and no longer need any help?

You may want to start your own thread with specific details for your case. It's hard to follow a thread when several people are 'talking' in it.
Reply With Quote
  #26  
Old 11-10-2009, 06:28 PM
Bandit8007 Bandit8007 is offline
 
Join Date: Jan 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well i do understand ur concern about it

what i mean with Sorky's plugin is that ya can select forum id to gave feeds or not....
normall VB cant do that....
but still need help with it .. cause my forum is pretty closed....and want to keep it that way

but i have 1 forum id that can be open....(cause i think it can only be solved when having 1 forum open)

maybe im stupid.....i dunno.... but if i don't ask...... i never get help...

thnx (again) Lynne!
Reply With Quote
  #27  
Old 11-10-2009, 07:57 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I still really don't know what you are asking for here. What, exactly, do you want to do? What, exactly, do you need help with? This was a thread started by a user who couldn't get his external.php 'page' to work. So, we solved that, but then you bumped the thread. You seemed to wonder about somehow making the feed work for forums only open to registered users and I said that can't be done (that I know of). I said you can make a forum feed work for a 'closed' forum, but it will then make the feed viewable by *everyone* (including spiders, unregistered users, anyone who comes across the feed), but in order to do that you need to modify the actual code somehow to allow that. You then mentioned some mod I'm not familiar with at all. I really can't tell at this point what your real question is or what you really want.
Reply With Quote
  #28  
Old 11-11-2009, 01:36 PM
Bandit8007 Bandit8007 is offline
 
Join Date: Jan 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. my external.php aint working too >>>cause forum aint open
2. want to gave a certain forum id to be open for rss feeds

Reply With Quote
  #29  
Old 11-11-2009, 03:04 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is some code changes I did on my site at the top of the external.php page. You may use it, if you'd like. You'll have to modify it to your own specifications since you have given no details at all for your situation. It should be pretty clear from the code where this is int he external.php file.

PHP Code:
if ($vbulletin->GPC['forumids'] != '')
{
    
$forumchoice = array();
    
$forumids explode(','$vbulletin->GPC['forumids']);
    foreach (
$forumids AS $forumid)
    {
        
$forumid intval($forumid);
        
$forumperms =& $vbulletin->userinfo['forumpermissions']["$forumid"];
// modified for ABT and VBT by Lynne
        
if ($forumid != '12' OR $forumid != '13') {
        if (isset(
$vbulletin->forumcache["$forumid"])
            AND (
$forumperms $vbulletin->bf_ugp_forumpermissions['canview'])
            AND (
$forumperms $vbulletin->bf_ugp_forumpermissions['canviewothers'])
            AND ((
$forumperms $vbulletin->bf_ugp_forumpermissions['canviewthreads']) OR in_array($vbulletin->GPC['type'], array('JS''XML'))) // JS/XML only shows titles
            
AND verify_forum_password($forumid$vbulletin->forumcache["$forumid"]['password'], false)
        )
            {
                
$forumchoice[] = $forumid;
            }
        }
    
// modified for ABT and VBT by Lynne
        
if ($forumid == '12' OR $forumid == '13'
        {
        if (isset(
$vbulletin->forumcache["$forumid"]))
            {
                
$forumchoice[] = $forumid;
            }
        }
// end modified for ABT and VBT
    
}
    
// Sort forums for caching purposes -- ensure they are in numeric order for best potential cache hit 
Test this yourself before using it to make sure it does what you want. It *will* show content for the forumids you input that would not normally be displayed - even a Staff forum if you input that forumid. Use at your own risk.
Reply With Quote
  #30  
Old 11-11-2009, 08:38 PM
Bandit8007 Bandit8007 is offline
 
Join Date: Jan 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh yeah!..

thats exact what i meant to use!

many thnx Lynne! you rock!

this way i can set the feeds to certain forum id's
instead gaving all away..

cool job!
Reply With Quote
Reply

Thread Tools
Display Modes

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:05 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.05559 seconds
  • Memory Usage 2,259KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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