vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Recent Forum Topics on main page (https://vborg.vbsupport.ru/showthread.php?t=224190)

abdobasha2004 09-29-2009 11:47 AM

Recent Forum Topics on main page
 
I would like a script or mod that grab The forum Rss feed and publish it on html page like my website main page, or other blog
I do not want widgets, I want the mpd to grab rss feed to get links from main page to threads

Lynne 09-29-2009 03:26 PM

See these threads for methods to pull threads via javascript:
[HowTo] Display your latest threads on an external page using an RSS2 feed
[HowTo] Display your latest threads on an external page using an XML feed
[HowTo] Display your latest threads on an external page using an RSS feed

abdobasha2004 09-29-2009 05:02 PM

thanks a lot

--------------- Added [DATE]1254250341[/DATE] at [TIME]1254250341[/TIME] ---------------

2 issues
1- I want to limit the number to 10 links
2- The Arabic words can not be read ( I think there is problem with encoding)

--------------- Added [DATE]1254251221[/DATE] at [TIME]1254251221[/TIME] ---------------

also want to remove descreption

Lynne 09-29-2009 07:11 PM

1- At least in the first thread I linked you to, it says it is for the 10 latest threads.

2- I don't know about that. You should ask for help over at vb.com for that since they deal with the languages.

3- Just don't include the description in the output. Usually someone wants something slightly different from the actual modification available. Just modify them to suite your needs.

abdobasha2004 09-29-2009 07:25 PM

Quote:

1- At least in the first thread I linked you to, it says it is for the 10 latest threads.
yes, it says : "This HowTo explains what needs to be done to include the 10 latest threads from your forums " HOWEVER it takes all threads in rss ,see example here, grab all feed - also I can not see any thing in the code that points to this limit!

2- You should ask for help over at vb.com
I managed to solve it my self, changed the page encoding to utf-8

3- when just removed description in the output it gave me fatal error and the file did not open

Lynne 09-29-2009 10:43 PM

I'm not sure how the '10' is set. I think it may have to do with the fread statement, but you would have to ask over on vb.com to find out.

Quote:

3- when just removed description in the output it gave me fatal error and the file did not open
i can't help if you don't show me the before and after of the line you changed so I can see what you did wrong.

abdobasha2004 09-30-2009 01:40 AM

I changed the line :
PHP Code:

$rss2_output .= "<dt><strong><a href='" trim($link) . "'>" htmlspecialchars(trim($title)) . "</a></strong> - " htmlspecialchars(trim($date)) ."  <em>" htmlspecialchars(trim($author)) . "</em></dt><dd>" htmlspecialchars(trim($description)) . "</dd>"

to :
$rss2_output .= "<dt><strong><a href='" . trim($link) . "'>" . htmlspecialchars(trim($title)) . "</a></strong> - " . htmlspecialchars(trim($date)) ."

--------------- Added [DATE]1254279595[/DATE] at [TIME]1254279595[/TIME] ---------------

thanks I managed to remove descreption
the right code will be :
PHP Code:

         $rss2_output .= "<dt><strong><a href='" trim($link) . "'>" htmlspecialchars(trim($title)) . "</a></strong> - " htmlspecialchars(trim($date)) ."  <em>" htmlspecialchars(trim($author)) . "</em></dt>"

thanks lynne


All times are GMT. The time now is 04:07 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.02903 seconds
  • Memory Usage 1,742KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete