############################################################################### ## MOD Title: phpBB Fetch All ## MOD Author: Ca5ey < hide@address.com > (Volker Rattel) http://phpbbfetchall.sourceforge.net/ ## MOD Description: phpBB Fetch All is a modification to phpBB that displays ## data from the forum on any page of a website. ## MOD Version: 2.0.12 ## ## Installation Level: (Easy) ## Installation Time: 15 Minutes ## Files To Edit: none ## Included Files: ## - common.php ## - editor.php ## - forums.php ## - index.html ## - INSTALL.txt ## - polls.php ## - posts.php ## - stats.php ## - users.php ## - addons/index.html ## - addons/smartor_photo_album.php ## - examples/header_bg.png ## - examples/index.html ## - examples/portal.php ## - examples/simple.php ## - examples/top_poster.php ## - examples/top_poster_body.tpl ## - examples/rss.php ############################################################################### ## ## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the ## latest version of this MOD. Downloading this MOD from other sites could cause malicious code ## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered ## in our MOD-Database, located at: http://www.phpbb.com/mods/ ## ############################################################################### ## ## Author Notes: ## ## This mod lets you display data from the phpBB forum on ## any page of your website. It uses phpBB to connect ## to the forum database and should therefor work if phpBB ## works. ## ## You can integrate the mod on any (non phpBB) page of your ## homepage using your layout and design. You can also use ## phpBB templates and make the script become a part of your ## forum. ## ## Manual install: ## ## Be sure to backup all files if you have an older version of ## this mod installed. ## ## 1. Create a directory 'mods' within your phpBB2 directory if ## it does not already exists. ## ## 2. Upload the complete 'phpbb_fetch_all' folder into the ## 'mods' directory. ## ## 3. Open the following file in your browser: ## phpBB2/mods/phpbb_fetch_all/examples/portal.php ## ## Done. :-) ## ############################################################################### ## ## MOD History: ## ## 2004-08-02 - 2.0.12 ## - removed the include functions_post.php line from phpbb_insert_posts() ## to fix the empty regular expression bug since phpBB 2.0.10 ## - added $CFG['posts_enable_bbcode'] to posts.php to switch bbcode ## parsing (thanks to RyanThaDude29) ## - added multi-language support to the portal example (thanks to ## RAPITCONSULT) ## - added examples/header_bg.png for the new portal ## - changed default value $CFG['users_limit'] from 5 to 10 ## - added some basic SQL injection prevention to phpbb_get_forum_list() ## - added some basic SQL injection prevention to phpbb_fetch_users() ## - removed symbol $db from smartor_photo_album.php ## - added a security check for span page offset in portal.php ## - modified INSTALL.txt for phpBB2 MOD validator tool compliance ## ## 2004-07-27 - 2.0.11 ## - changed the use of session_pagestart() in all examples ## - fixed typo of FETCH_MODE_FIRST in phpbb_fetch_topics() in posts.php ## - fixed use of undefined variable in all example files ## - fixed use of undefined index with $result[$i]['post_edit_time'] in ## posts.php ## - fixed typo of $CFG['posts_hide_announcements'] in posts.php ## - added $CFG['posts_exclude_forums'] to posts.php and modified ## phpbb_get_forum_list() in common.php for excluding forums from being ## fetched (thanks to VUApache) ## - renamed variable declaration $CFG['posts_trim_title_number'] to ## $CFG['posts_trim_topic_number'] in posts.php (thanks to richg & ## VUApache) ## 2004-02-24 - 2.0.10 ## - added phpbb_fetch_poll_bt() to polls.php for fetching a poll by topic ## id (thanks to abravorus) ## - avoid a division by zero error from phpBB in span page function ## (thanks to justmetoo) ## - fixed a typo in a comment block (thanks to Undaddy) ## - removed symbol $db from all functions except common.php ## - added $CFG['debug'] to common.php which will print the current SQL ## query on an error ## - added $CFG['posts_search_string'] to phpbb_fetch_thread() (thanks to ## Deyv) ## - fixed a typo in phpbb_fetch_thread() ## - fixed a typo in the smartor addon (thanks to Fearless) ## ## 2004-01-17 - 2.0.9 ## - added phpbb_insert_reply() to editor.php for inserting replies into a ## given topic ## - added phpbb_fetch_newposts() to posts.php for fetching new posts since ## the last visit ## ## 2004-01-06 - 2.0.8 ## - changed phpbb_insert_post() to return the topic id and post id on ## success ## - added phpbb_edit_post() to editor.php which will edit a posting ## - new postings by phpbb_insert_post() are also added to the search word ## index ## - deleted examples/users.php which was there by mistake ## - added a new addon for the Smartor Photo Album ## ## 2003-12-29 - 2.0.7 ## - added a new module editor.php which provides phpbb_insert_post() for ## adding a thread to a forum ## - added $CFG['posts_trim_text_words'] to posts.php to allow trimming ## by word count ## ## 2003-12-15 - 2.0.6 ## - changed phpbb_avatar_image() to return the image instead of echo'ing ## it ## - fixed a bug with $CFG['posts_hide_images']; thanks to PipSqueak for ## spotting this ## - removed examples/subSilver.css ## - changed portal.php example to use the original subSilver.css file out ## of the templates folder ## - removed README.txt due to redundant informations ## - converted all files to UNIX format ## - applied the phpBB coding guidelines to all files (i.e. tab indent) ## - added $CFG['users_session_time'] to users.php for setting the timespan ## that determines if a user is online or offline ## - changed portal.php to reflect fetching of users online list which was ## introduced in 2.0.5 ## - added $CFG['stats_session_time'] to stats.php for setting the timespan ## that determines if a user is online or offline ## - changed portal.php to reflect fetching of total topics which was ## introduced in 2.0.5 ## ## 2003-12-12 - 2.0.5 ## - changed all files to reflect homepage change ## - added phpbb_fetch_online_users() to users.php which ## fetches a list of currently logged in users ## - changed portal.php redirect after login code to work ## when installed in /mods/phpbb_fetch_all/examples ## folder ## - changed portal.php redirect after login code to work ## with Thoul's RedirectionSuite by default ## - updated the replacement code in the rss.php example ## - added $CFG['posts_order'] to posts.php which ## customizes the order of the fetched results ## - added echo() statements to phpbb_avatar_image() in ## the portal example ## - added fetching of total topics to phpbb_fetch_stats() ## ## 2003-11-09 - 2.0.4 ## - added append_sid() to portal.php and simple.php ## example ## - added phpbb_avatar_image() to common.php to simplify ## avatar displaying ## - $CFG['avatar_url'] and $CFG['avatar_gallery_url'] are ## therefor deprecated and of no use any more ## - added phpbb_fetch_style() for fetching the user style ## (by RyanThaDude29 <hide@address.com>) ## - added rss.php as a simple RSS example file ## (by Quinn1981 <hide@address.com>) ## - fixed an error in posts.php regarding rank fetching ## - added phpbb_fetch_thread() for fetching a whole ## thread ## ## 2003-10-09 - 2.0.3 ## - reorganizing the readme files ## - portal example changed to not use the ## phpbb_fetch_users() function by default due to memory ## issues on large (over 500 users maybe) boards ## - also changed the copyright line to use the board ## config value in the portal example ## ## 2003-09-30 - 2.0.2 ## - bugfix in the trim post by character function for ## phpbb_fetch_topics() (thanks to chap) ## ## 2003-09-27 - 2.0.1 ## - 'post_edit_time' wasn't preprocessed in ## phpbb_fetch_posts() and phpbb_fetch_topics() ## ## 2002-09-10 - 2.0.0 ## - new name 'phpBB Fetch All' for the project ## - complete code rewrite ## - many, many changes ## ## 2002-07-14 - 1.3.2 ## - added top_poster() function (thanks to napy8gen) ## - added random_user() function (thanks to napy8gen) ## ## 2002-07-10 - 1.3.1 ## - added phpbb_fetch_group() to display users from a ## specific group ## - added phpbb_fetch_info() to display user online, ## total posts and so on ## - added topic trim option ## ## 2002-07-09 - 1.3.0 ## - added auth check ## ## 2002-07-08 - 1.2.1 ## - bugfix poll ordering ## ## 2002-06-29 - 1.2.0 ## - polishing code ## ## 2002-06-26 - 1.1.9 ## - polishing code ## - added poll support ## ## 2002-06-23 - 1.1.8 ## - added avatar and rank query (thanks to radmanics) ## - added a span page option (thanks to Kali) ## - added a span page example ## - modified '!=' to '<>' in SQL for MS ACCESS ## compatibility (thanks to Kali) ## - added a reference example ## ## 2002-06-20 - 1.1.7 ## - redesigned the archive architecture ## - added phpbb_fetch_recent to pull out recent replies ## - tested search query option ## - rewritten examples and README ## ## 2002-06-16 - 1.1.6 ## - secured the search query with brackets ## - added phpbb_fetch_topics() which can fetch ## topics/postings by given topic ID's ## ## 2002-06-13 - 1.1.5 ## - option for closing the DB connection ## - added some fields to the output array ## ## 2002-06-09 - 1.1.4 ## - build in search string which can be used to only fetch ## posts that contain a specific word (for example) ## ## 2002-06-08 - 1.1.3 ## - fetching between two dates ## ## 2002-06-07 - 1.1.2 ## - trigger output of normal topics (you could now output ## only announcements or sticky postings for example) ## ## 2002-05-31 - 1.1.1 ## - polishing source code ## - trim postings after a specific amount of characters ## - created a trigger indicating if a post has been ## truncated ## - added more examples ## - using CVS for version control now ## - trigger use of phpBB sessions (on/off) ## - phpBB template integration (not shown in demo) ## - trigger output of sticky, announcements, polls, locked ## and moved topics (on - off) ## - improved example part - now using $phpbb_root_path ## - fetches also user_email from the poster ## - show one specific posting from the list of fetched ## postings i.e. like on www.phpbb.com ## - fetch posts from multiple forums ## - trim postings after a specific character combination ## - $phpbb_root_path is verified (hopefully reduces ## questions) ## ## 2002-06-13 - 1.0.3 ## - uses phpBB database layer (not only MySQL!!!) ## - read more from the phpBB config (i.e. table prefix) ## - added more comments in the code ## - made example more fancy ## - could fetch an infinite amount of posts ## - if BBCode is disabled --> don't parse it ## - if smilies are disabled --> don't parse them ## - censored words will not be shown ## ## 2002-06-12 - 1.0.2 ## - added full BBCode support (thanks to a mod from mds, ## which I came along too lately - part of the code is ## from his script) ## - code polishing ## ## 2002-06-11 - 1.0.1 ## - added smilie support (code is mainly from phpBB2) ## ## 2002-06-10 - 1.0.0 ## - initial release ## ############################################################################### ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ############################################################################### # #-----[ COPY ]-------------------------------------- # copy *.* to mods/phpbb_fetch_all # #-----[ SAVE/CLOSE ALL FILES ]---------------------- # # EoM