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)

CyberRanger 07-10-2006 10:01 AM

Quote:

Originally Posted by mmackinnon
Hey

I currently use 2 feed. I would like them to display side by side on the bottom. How can i make that happen?

This this post: https://vborg.vbsupport.ru/showpost....&postcount=239 It contains links to three other pages that give brief tutorials on placing feeds at the top or the bottom of the page.

CyberRanger 07-10-2006 11:52 AM

Quote:

Originally Posted by ohgenki
clicked install and nominated for mod of the month!

west: is it possible for us to select which rss feeds to show on which styles? say $myfeeddetails will show all the rss that are added to it, but is there a way to show like $myfeeddetails2 to show another set of rss? etc.?

Do you mean to have it display somewhere on a page besides abouttoday.php? If yes, you could do this with some conditional logic. See my post prior to this one and just warp the $myfeeddetails in template logic to test for the style. I don't have an example handy but I'll post one when I get time.

CyberRanger 07-10-2006 11:56 AM

Quote:

Originally Posted by CLKeenan
Quick question: would it be possible to make it so that the threads posted by the plugin counted to the forums total? Or at least the ones that people request to start a discussion based on?

How would I go about doing this?

Adding to the user post count will be included in the next version.
Quote:

Originally Posted by CLKeenan
Edit #2: Would it be possible to make the image links that are included in some RSS feeds be automatically [IMG] tag?

The image links are already converted into [IMG] tags. However ... see the earlier discussion reprinted below.

Quote:

but strange (minor) problem:

I have it set to create thread (talk about)....
but when it does it posts the link and some remnant code...
ie output to created reads like this:
--------------

Gears of War and Unreal Tournament 2007 - Ve3d.comurl=

--------------
the link works fine. but what's the "url="?
any ideas how to get rid of it...or what's it SUPPOSED to look like?
When the feed is created into a thread, any html img tags are converted into bbcode IMG tags. I find that the feed image tags tend to contain dynamic url's. Unless you have set vbulletin to allow dynamic img tags (admincp -> vbulletin options -> Message Posting and Editing Options -> Allow Dynamic URL for IMG Tags), vbulletin will convert the dymanic bbcode IMG tags to bbcode URL tags.

CLKeenan 07-10-2006 01:05 PM

Thank you for the detailed explanation WestPointer! Much appreciated!

What would be the negatives for allowing dynamic urls for images? I'm assuming some sort of security issue?

-Chris

CyberRanger 07-10-2006 01:18 PM

Quote:

Originally Posted by CLKeenan
Thank you for the detailed explanation WestPointer! Much appreciated!

What would be the negatives for allowing dynamic urls for images? I'm assuming some sort of security issue?

-Chris

Correct. Vb states "This can prevent malicious use of the [IMG] tag." I'm not sure how malicious such use could be but I do set it to "Yes" on my boards.

cddw.ltd 07-10-2006 01:32 PM

Quote:

Originally Posted by westpointer
Yes, that must have been something else. I'll include that as an option in the next release (probably today or tomorrow).

Any luck with enabling the RSS user to show a postcount?

I'd like to get an idea how many threads the RSS feeder is automatically creating without having to toal up the posts in the different threads!

Thanks

mmackinnon 07-10-2006 02:38 PM

as usual, excellent support!


Quote:

Originally Posted by westpointer
This this post: https://vborg.vbsupport.ru/showpost....&postcount=239 It contains links to three other pages that give brief tutorials on placing feeds at the top or the bottom of the page.


CyberRanger 07-10-2006 04:56 PM

Quote:

Originally Posted by cddw.ltd
Any luck with enabling the RSS user to show a postcount?

I'd like to get an idea how many threads the RSS feeder is automatically creating without having to toal up the posts in the different threads!

Thanks

Yes, I actually have that ready but I want to include a few more enhancements before the next release. If you want to add it manually, make the following changes to abouttoday.php

FIND (on or about line 1239)
PHP Code:

            $db->query_write("UPDATE " TABLE_PREFIX "histtd_rss
                                  SET `datelastupdate` = 0 
                                  WHERE id = "
.$_GET['rssid'].""); 

ADD BELOW that:
PHP Code:

            // update post count for user
            
$posts $db->query_first("
                SELECT posts
                FROM " 
TABLE_PREFIX "user
                WHERE userid = "
.$postuserid."
            "
);
            
            
$newpostcount $posts['posts'] + 1;
            
            
$db->free_result($posts);
            
            
$db->query_write("
                UPDATE " 
TABLE_PREFIX "user
                SET posts = "
.$newpostcount."
                WHERE userid = "
.$postuserid."
            "
); 

That will about the post count of a user who creates a new thread from the feed.

To update the post count for the automatically added feeds, make the following change to includes/plugin_abouttoday.php

FIND (on or about line 344):
PHP Code:

$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "histtd_rss
                      SET `datelastupdate` = 0 
                      WHERE id = "
.$rssid.""); 

BELOW that ADD:
PHP Code:

                                                        // update post count for user
    
$posts $vbulletin->db->query_first("
        SELECT posts
        FROM " 
TABLE_PREFIX "user
        WHERE userid = "
.$postuserid."
    "
);
    
    
$newpostcount $posts['posts'] + 1;
    
    
$vbulletin->db->free_result($posts);
    
    
$vbulletin->db->query_write("
        UPDATE " 
TABLE_PREFIX "user
        SET posts = "
.$newpostcount."
        WHERE userid = "
.$postuserid."
    "
); 


cddw.ltd 07-10-2006 08:24 PM

Thanks,
I'll have a proper look tomorrow, otherwise I'll wait till the next release! :p

hilfe-forum 07-10-2006 08:39 PM

i allways have this error:

Fatal error: Call to undefined function: curl_init() in /var/xxx/vbulletin/includes/plugin_abouttoday.php on line 179

can anyone help??

i dont hafe cURL but i have fopen....

Installierte cURL Version: Nicht installiert!
fopen Wrapper Status: Ein

This setting is "no"

If your host does not support fopen, change this to "Yes" to use cURL instead for reading RSS Feeds


All times are GMT. The time now is 01:50 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.01841 seconds
  • Memory Usage 1,772KB
  • 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
  • (4)bbcode_php_printable
  • (9)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