Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 02-29-2004, 10:42 PM
krohnathlonman krohnathlonman is offline
 
Join Date: Feb 2004
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Last 10 posts outside of forum?

I saw the mod to attatch this to the forumhome but NOT an external page.

ANybody got it? Basically just want to include the php file.
Reply With Quote
  #2  
Old 03-01-2004, 04:53 AM
mr_fox mr_fox is offline
 
Join Date: Sep 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
<?php
$xmlstr 
implode('',file("http://site/forum/external.php?type=RSS2")); 

$dom domxml_open_mem($xmlstr); 
$root $dom->document_element(); 
$root_childs $root->child_nodes(); 

foreach(
$root_childs as $root_child

    if(
$root_child->node_name() == 'channel'
    { 
                 
$sec_childs $root_child->child_nodes(); 

                 foreach(
$sec_childs as $sec_child
                 { 
                     if(
$sec_child->node_name() == 'item'
                     { 
                             
$thr_childs $sec_child->child_nodes(); 

                             foreach(
$thr_childs as $thr_child
                             { 
                                 if((
$thr_child->node_name() == 'title') && ($thr_child->node_type() == 1)) 
                                     { 
                                             
$curr_thread['title'] = iconv("UTF-8","WINDOWS-1251",$thr_child->get_content()); 
                                     } elseif((
$thr_child->node_name() == 'link') && ($thr_child->node_type() == 1)) 
                                     { 
                                             
$curr_thread['link'] = iconv("UTF-8","WINDOWS-1251",$thr_child->get_content()); 
                                     } elseif((
$thr_child->node_name() == 'description') && ($thr_child->node_type() == 1)) 
                                     { 
                                             
$curr_thread['description'] = iconv("UTF-8","WINDOWS-1251",$thr_child->get_content()); 
                                     } elseif((
$thr_child->node_name() == 'guid') && ($thr_child->node_type() == 1)) 
                                     { 
                                             
$curr_thread['guid'] = iconv("UTF-8","WINDOWS-1251",$thr_child->get_content()); 
                                     } elseif((
$thr_child->node_name() == 'author') && ($thr_child->node_type() == 1)) 
                                     { 
                                             
$curr_thread['author'] = iconv("UTF-8","WINDOWS-1251",$thr_child->get_content()); 
                                     } elseif((
$thr_child->node_name() == 'source') && ($thr_child->node_type() == 1)) 
                                     { 
                                             
$curr_thread['source_url'] = iconv("UTF-8","WINDOWS-1251",$thr_child->get_attribute('url')); 
                                                 
$curr_thread['source'] = iconv("UTF-8","WINDOWS-1251",$thr_child->get_content()); 
                                     } 
                             } 

                             
$forumthreads[] = $curr_thread
                             unset(
$curr_thread); 
                     } 
                 } 
    } 
}
?>
Reply With Quote
  #3  
Old 03-01-2004, 11:44 AM
mcncyo's Avatar
mcncyo mcncyo is offline
 
Join Date: Oct 2001
Location: derby, Kansas
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am also trying to use this code, but am having a problem with it. I am getting this error message

Fatal error: Call to undefined function: domxml_open_mem() in /home/website/public_html/include/last10post.php on line 4
Reply With Quote
  #4  
Old 03-01-2004, 04:29 PM
krohnathlonman krohnathlonman is offline
 
Join Date: Feb 2004
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not working here either.... is that a PHP5 function maybe?
Reply With Quote
  #5  
Old 03-01-2004, 05:10 PM
mr_fox mr_fox is offline
 
Join Date: Sep 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah... php5
Reply With Quote
  #6  
Old 03-17-2004, 06:06 PM
krohnathlonman krohnathlonman is offline
 
Join Date: Feb 2004
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a PHP4 way to do this? I'd rather not install 5 yet
Reply With Quote
  #7  
Old 03-17-2004, 06:25 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

mr_fox,

You are currently showing up as unlicensed. To be able to download hacks and/or receive support here at vBulletin.org, we ask you to please click here (vB-germany users click here) and enter your email address, to show us that you are licensed.

You will need to use your customer number and password (which will be in the email you got when you paid for your license) to access that page. Please note that your email is case sensitive.

Thank you.
Reply With Quote
  #8  
Old 03-17-2004, 06:38 PM
krohnathlonman krohnathlonman is offline
 
Join Date: Feb 2004
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm the one asking for help, I'm licensed
Reply With Quote
  #9  
Old 03-18-2004, 06:08 AM
RobinHood RobinHood is offline
 
Join Date: Sep 2002
Location: Philly
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by krohnathlonman
I'm the one asking for help, I'm licensed
Here you go:

https://vborg.vbsupport.ru/showthrea...432#post486432
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 12:56 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08202 seconds
  • Memory Usage 2,268KB
  • 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
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete