vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   External Data Provider Link Wont Work (https://vborg.vbsupport.ru/showthread.php?t=210769)

Bandit8007 11-09-2009 05:31 PM

You have a little hint how to modify this Lynne?

:)

Lynne 11-09-2009 05:45 PM

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.

rsalumpit 11-09-2009 07:12 PM

thank you for this one

Bandit8007 11-10-2009 06:54 AM

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......

Lynne 11-10-2009 02:40 PM

Quote:

Originally Posted by Bandit8007 (Post 1912288)
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.

Bandit8007 11-10-2009 06:28 PM

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!

Lynne 11-10-2009 07:57 PM

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.

Bandit8007 11-11-2009 01:36 PM

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

:)

Lynne 11-11-2009 03:04 PM

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.

Bandit8007 11-11-2009 08:38 PM

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!


All times are GMT. The time now is 11:44 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.01167 seconds
  • Memory Usage 1,758KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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