vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   AboutToday - Bring RSS Feeds and Daily Events to Your Site! (https://vborg.vbsupport.ru/showthread.php?t=107319)

ubblite 06-13-2006 10:56 PM

j1mmy, you did it correct the second time. All files are supposed to be uploaded into their proper folders in your FTP. The only file which is uploaded to your forum root directory is 'abouttoday.php', and the rest go into the directories as westpointer mentioned. The easiest way to do this is by dragging your folders from your AboutToday unzipped files into your forum root, making sure they copy over (which I believe you did in your second attempt).

ubblite 06-13-2006 10:59 PM

Just to let people know, this great hack is working with vBulletin 3.6.0 Beta 1.

j1mmy 06-13-2006 11:36 PM

Alright thanks ubblite for the comfirmation. By the way, im having trouble with the RSS feeds ans getting it started. Im trying to use.

For example, i want to use the feeds shown here:http://www.2rss.com/rss_35132.html

...onto my site, but how would i implement it into AboutToday? Ive tried coping and pasting it but i get an errors saying something about the feed's script. Im not sure if im doing the write thing.

CyberRanger 06-14-2006 12:44 AM

Quote:

Originally Posted by j1mmy
Alright thanks ubblite for the comfirmation. By the way, im having trouble with the RSS feeds ans getting it started. Im trying to use.

For example, i want to use the feeds shown here:http://www.2rss.com/rss_35132.html

Your example isn't an RSS feed, it's a normal web page. A feed would look like this: http://rss.cnn.com/rss/edition.rss.

CyberRanger 06-14-2006 12:45 AM

Quote:

Originally Posted by ubblite
Just to let people know, this great hack is working with vBulletin 3.6.0 Beta 1.

Cool! I hadn't checked it yet myself.:banana:

j1mmy 06-14-2006 01:28 AM

Quote:

Originally Posted by westpointer
Your example isn't an RSS feed, it's a normal web page. A feed would look like this: http://rss.cnn.com/rss/edition.rss.

Oh, im trying to look for a directory full of those things sorted by category. Are there any that you know?

XFSImperial 06-14-2006 02:18 AM

Great mod, running fine. I would recommend an easier way for setting permissions...I've got like 30 usergroups....lots of clicking for enabling.

*clicks install*

CyberRanger 06-14-2006 02:36 AM

Quote:

Originally Posted by XFSImperial
Great mod, running fine. I would recommend an easier way for setting permissions...I've got like 30 usergroups....lots of clicking for enabling.

*clicks install*

I'm not sure if there is any way to do it differently. The problem is that vbulletin only allows default usergroup permissions to be set to "no". So, you have to enable it for every usergroup.

Maybe I should change the question for viewing RSS Feeds to more of something like "Deny Viewing RSS Feeds" so that a "No" would let the group view the feeds. Of course, that would mean changing the settings for those who have already installed the mod.

What do you think?

klaush 06-14-2006 06:54 AM

Quote:

Originally Posted by westpointer
hmmm ... not sure! I'll check into that. How do they appear now?

Eröffnungsfeier (must be) Er?ffnungsfeier

Gäste (must be) G?ste

fühlen (must be) f?hlen

and so on...

Nathan_R 06-14-2006 02:10 PM

Fixed my problem.

Here's how to get this working with cURL (at least the direct feeds portion):

In abouttoday.php

find:
Code:

                                $xml_parser = xml_parser_create();
                                xml_set_element_handler($xml_parser, "startElement", "endElement");
                                xml_set_character_data_handler($xml_parser, "characterData");
                                if (!($fp = @fopen($file, "r"))) {
                                  $rssopened = 'no';
                                }
                       
                       
                       
                                while ($data = @fread($fp, 4096)) {
                                        if (!xml_parse($xml_parser, $data, feof($fp)))
                                        {
                                        die(sprintf("XML error: %s at line %d",
                                        xml_error_string(xml_get_error_code($xml_parser)),
                                        xml_get_current_line_number($xml_parser)));
                                        }
                                }
                               
                                xml_parser_free($xml_parser);


and replace it with:
Code:

   
// begin cURL sub
 
      $ch = curl_init();
      curl_setopt($ch, CURLOPT_URL, $file);
      curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
      $store = curl_exec ($ch);
      $data = curl_exec ($ch);
      curl_close ($ch);

                                $xml_parser = xml_parser_create();
                                xml_set_element_handler($xml_parser, "startElement", "endElement");
                                xml_set_character_data_handler($xml_parser, "characterData");

// ignore EOF                                while ($data = @fread($fp, 4096)) {
                                        if (!xml_parse($xml_parser, $data, sizeof($data)))
                                        {
                                        die(sprintf("XML error: %s at line %d",
                                        xml_error_string(xml_get_error_code($xml_parser)),
                                        xml_get_current_line_number($xml_parser)));
                                        }
//                                }

                                xml_parser_free($xml_parser);
// end cURL sub



All times are GMT. The time now is 03:42 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.01895 seconds
  • Memory Usage 1,755KB
  • 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
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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