CINXE.COM

Phorum Support Forums :: 5.1 Phorum Hacks

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Phorum Support Forums :: 5.1 Phorum Hacks</title> <meta name="description" content="This is the Phorum support forum. This support forum runs Phorum 5.2.22. Please be sure to ask your question in the appropriate forum." /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="icon" type="image/png" href="/favicon.png" /> <link rel="stylesheet" type="text/css" href="/styles/main.css" media="screen,print" /> <link rel="stylesheet" type="text/css" href="https://www.phorum.org/phorum5/css.php?18,css_print" media="print" /> <link rel="stylesheet" type="text/css" href="https://www.phorum.org/phorum5/css.php?18,css" media="screen" /> <link rel="stylesheet" type="text/css" href="/styles/mysqlconf.css" media="screen,print" /> <script type="text/javascript" src="/js/nav.js"></script> <script type="text/javascript" src="https://www.phorum.org/phorum5/javascript.php?18"></script> <style type="text/css"> #thumbBox {visibility:hidden;} #thumbLoading {visibility:hidden;} </style> <script type="text/javascript"> //<![CDATA[ /*********************************************************** * This site uses "Image Thumbnail Viewer Script" * (c) Dynamic Drive (www.dynamicdrive.com) * This notice must stay intact for legal use. * Visit http://www.dynamicdrive.com/ for full source code ***********************************************************/ thumbnailviewer['defineLoading'] = '<img src="https://www.phorum.org/phorum5/mods/embed_images/viewers/dynadrive/code/loading.gif" alt="Loading image ..." />&nbsp;&nbsp;Loading image ...'; thumbnailviewer['definefooter'] = '<div class="footerbar">Close X<\/div>'; thumbnailviewer['enableAnimation'] = true; thumbnailviewer.createthumbBox(); //]]> </script> </head> <body> <div id="top-bar" align="center"> <div id="buttons"> <a href="http://www.spreadfirefox.com/?q=affiliates&amp;id=17632&amp;t=61"><img src="/images/firefox_80x15.png" border="0" height="15" width="80" alt="Firefox" /></a> <a href="http://www.php.net/"><img src="/images/php_power.png" border="0" height="15" width="80" alt="PHP" /></a> </div> <div id="logo"> <a href="/"><img src="/images/logo.png" width="111" height="26" border="0" alt="Open Source PHP Forum" /></a> </div> </div> <div id="menu-bar" align="center"> <table cellspacing="0" cellpadding="0" border="0" width="100%" align="center"> <tr> <td onclick="loadURL('/downloads.php');"><a href="/downloads.php">DOWNLOADS</a></td> <td onclick="loadURL('/support.php');"><a href="/support.php">SUPPORT</a></td> <td id="mod_jumpmenu_root" onclick="loadURL('/phorum5/index.php');"><a href="/phorum5/index.php">COMMUNITY</a></td> <td onclick="loadURL('https://github.com/Phorum/Core');"><a href="https://github.com/Phorum/Core">DEVELOPMENT</a></td> <td onclick="loadURL('/docs/html/');"><a href="/docs/html/">DOCS</a></td> <td onclick="loadURL('/demo/');"><a href="/demo/">DEMO</a></td> <td onclick="loadURL('/links.php');"><a href="/links.php">LINKS</a></td> </tr> </table> </div> <div id="wrapper"> <div id="content"> <div id="phorum"> <div id="user-info" class="logged-out"> <span class="welcome">Welcome!</span> <a class="icon icon-key-go" href="https://www.phorum.org/phorum5/login.php?18">Log In</a> <a class="icon icon-user-add" href="https://www.phorum.org/phorum5/register.php?18">Create A New Profile</a> </div> <!-- end of div id=user-info --> <div id="breadcrumb"> <a href="https://www.phorum.org/phorum5/index.php">Home</a> &gt; <a rel="breadcrumb-folder[68]" href="https://www.phorum.org/phorum5/index.php?68">Outdated forums</a> &gt; <a rel="breadcrumb-folder[67]" href="https://www.phorum.org/phorum5/index.php?67">Phorum 5.1/5.0</a> &gt; <a rel="breadcrumb-forum[18]" href="https://www.phorum.org/phorum5/list.php?18">5.1 Phorum Hacks</a> &gt; User Profile </div> <!-- end of div id=breadcrumb --> <div id="search-area" class="icon-zoom"> <form id="header-search-form" action="https://www.phorum.org/phorum5/search.php?18" method="get"> <input type="hidden" name="forum_id" value="18" /> <input type="hidden" name="phorum_page" value="search" /> <input type="hidden" name="match_forum" value="ALL" /> <input type="hidden" name="match_dates" value="365" /> <input type="hidden" name="match_threads" value="0" /> <input type="hidden" name="match_type" value="ALL" /> <input type="text" name="search" size="20" value="" class="styled-text" /><input type="submit" value="Search" class="styled-button" /><br /> <a href="https://www.phorum.org/phorum5/search.php?18">Advanced</a> </form> </div> <!-- end of div id=search-area --> <div id="page-info"> <h1 class="heading">User Profile</h1> </div> <!-- end of div id=page-info --> <div id="google" style="text-align: center;background-color: white;padding: 10px; margin-bottom: 20px;"> <script type='text/javascript' src='http://partner.googleadservices.com/gampad/google_service.js'> </script> <script type='text/javascript'> GS_googleAddAdSenseService("ca-pub-7076699294893330"); GS_googleEnableAllServices(); </script> <script type='text/javascript'> GA_googleAddSlot("ca-pub-7076699294893330", "phorum_banner"); </script> <script type='text/javascript'> GA_googleFetchAds(); </script> <!-- ca-pub-7076699294893330/phorum_banner --> <script type='text/javascript'> GA_googleFillSlot("phorum_banner"); </script> </div> <!-- END TEMPLATE header.tpl --> <script type="text/javascript" src="https://www.phorum.org/phorum5/ajax.php?client"></script> <script type="text/javascript"> // <![CDATA[ document.body.style.height = "100%"; var curmouseover; var phorum_mod_post_previews_height = 120; var phorum_mod_post_previews_width = 500; var phorum_mod_post_previews_show_AJAX_error = false; var phorum_mod_post_previews_enable_mark_read = false; //get the actual height of the window function phorum_mod_post_previews_f_clientHeight() { return phorum_mod_post_previews_f_filterResults ( window.innerHeight ? window.innerHeight : 0, document.documentElement ? document.documentElement.clientHeight : 0, document.body ? document.body.clientHeight : 0 ); } function phorum_mod_post_previews_f_filterResults(n_win, n_docel, n_body) { var n_result = n_win ? n_win : 0; if (n_docel && (!n_result || (n_result > n_docel))) n_result = n_docel; return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result; } //get the position of the read url to set the position of the preview div function phorum_mod_post_previews_findPos(obj) { var curleft = curtop = 0; //find the offset of the read url if (obj.offsetParent) { do { curleft += obj.offsetLeft; curtop += obj.offsetTop; } while (obj = obj.offsetParent); } // set the preview div below the read url by default curtop += 24; // find the actual potential position of the preview div on the screen if (document.body.scrollTop) { actualheight = curtop - document.body.scrollTop; } else if (document.documentElement.scrollTop) { actualheight = curtop - document.documentElement.scrollTop } else if (window.pageYOffset) { actualheight = curtop - window.pageYOffset; } else { actualheight = curtop; } // find the maximum height to place the preview div at which it will be fully visible windowheight = phorum_mod_post_previews_f_clientHeight(); maxtop = windowheight - phorum_mod_post_previews_height - 24; //if the preview div will vertically fall outside the screen, put it above the url if (actualheight > maxtop) curtop = curtop - phorum_mod_post_previews_height - 37; //if the preview div will horizontally fall outside the screen, pull it back in maxleft = document.body.clientWidth - phorum_mod_post_previews_width - 20; if (curleft > maxleft) curleft = maxleft; return [curleft,curtop]; } function phorum_mod_post_previews_get_message_id(ahref) { first_startpos = ahref.lastIndexOf("/"); startpos = ahref.indexOf("-",first_startpos); altstartpos = ahref.indexOf(",",first_startpos); stoppos = ahref.indexOf(",phorum_session",first_startpos); if (stoppos < 0) { if (startpos < 0) { altstartpos += 1; message_id = ahref.substr(altstartpos); altstartpos = message_id.indexOf(","); if (altstartpos > 0) { message_id = message_id.substr(altstartpos + 1); } } else { startpos += 1; message_id = ahref.substr(startpos); } } else { if (startpos < 0) { altstartpos += 1; message_id = ahref.substr(altstartpos,stoppos - altstartpos); } else { startpos += 1; message_id = ahref.substr(startpos); } } return message_id; } function phorum_mod_post_previews_getpreview() { preview_node = this; //grab the message id from the url ahref = preview_node.href; message_id = phorum_mod_post_previews_get_message_id(ahref); //make sure we have a valid message id if (message_id != parseInt(message_id)) return; //make sure a roaming mouse doesn't pull in the wrong preview data curmouseover = message_id; previewer = document.getElementById("phorum_mod_post_preview_preview_div"); //get the position of the read url to set the position of the preview div preview_pos = phorum_mod_post_previews_findPos(preview_node); //run the wonderful AJAX api to get our preview data Phorum.Ajax.call({ "call" : "phorum_mod_post_previews_getpreview", "message_id" : message_id, "onSuccess" : function (data) { //make sure there is preview data to show if (data != "phorum_mod_post_previews_getpreview_error_no_body") { //make sure a roaming mouse doesn't pull in the wrong preview data if (curmouseover == data[0]) { // enable the mark read div if the admin has allowed it if (data[2]) { preview_node.oncontextmenu = phorum_mod_post_previews_mark_read; previewhelp = document.getElementById("phorum_mod_post_previews_help_div"); previewhelp.style.display = "block"; previewhelp.style.left = (preview_pos[0] + phorum_mod_post_previews_width - previewhelp.clientWidth) + "px"; previewhelp.style.top = (preview_pos[1] - previewhelp.clientHeight) + "px"; } previewer.innerHTML = data[1]; previewer.style.display = "block"; previewer.style.left=preview_pos[0]+"px"; previewer.style.top=preview_pos[1]+"px"; } } }, "onFailure" : function (error) { if (phorum_mod_post_previews_show_AJAX_error) alert("Error: " + error); } }); } //hide the preview div when not over the url function phorum_mod_post_previews_hidepreview(preview_node) { //make sure a roaming mouse doesn't pull in the wrong preview data curmouseover = null; previewer = document.getElementById("phorum_mod_post_preview_preview_div"); previewhelp = document.getElementById("phorum_mod_post_previews_help_div"); previewhelp.style.display = "none"; previewer.style.display = "none"; previewer.innerHTML = "&nbsp;"; } // ]]> </script> <!-- BEGIN TEMPLATE profile.tpl --> <div class="nav"> <a class="icon icon-folder" href="https://www.phorum.org/phorum5/index.php">Forum List</a> <a class="icon icon-list" href="https://www.phorum.org/phorum5/list.php?18">Message List</a> </div> <div id="profile"> <div class="generic"> <div class="icon-user"> Mark Fresh <small> [ <a href="https://www.phorum.org/phorum5/search.php?18,author=3021,match_type=USER_ID,match_dates=0,match_threads=0">Show all posts</a> ] </small> </div> <dl> <dt>Email:</dt> <dd>Hidden</dd> <dt>Posts:&nbsp;</dt> <dd>85</dd> <dt>Registered:&nbsp;</dt> <dd>07/23/2006 05:20AM</dd> <dt>Last Activity:&nbsp;</dt> <dd>06/04/2024 09:22AM</dd> </dl> </div> </div> <!-- END TEMPLATE profile.tpl --> <div id="phorum_mod_post_preview_preview_div" style="background-color: #edf2ed; padding: 3px; border: solid 1px; width: 500px; height: 120px; display: none; position: absolute; overflow: hidden;">&nbsp;</div> <div id="phorum_mod_post_previews_help_div" style="display: none;">&nbsp;</div><script type="text/javascript"> // <![CDATA[ var phorum_mod_post_previews_read_check = /https:\/\/www.phorum.org\/phorum5\/read.php/; function assign_getpreview_functions() { anchors = document.getElementsByTagName("a"); for (i in anchors) { if (anchors[i].href) { ahref = anchors[i].href; if (ahref.match(phorum_mod_post_previews_read_check)) { anchors[i].onmouseover= phorum_mod_post_previews_getpreview; anchors[i].onmouseout= phorum_mod_post_previews_hidepreview; anchors[i].title = ""; } } } } assign_getpreview_functions(); // ]]> </script><script type="text/javascript">// <![CDATA[ PhorumJumpMenu.vroot = 0// ]]> </script><div class="mod_jumpmenu_menu" id="mod_jumpmenu_menu_0"> <div class="mod_jumpmenu_menu_content" id="mod_jumpmenu_menu_content_0"><a rel="mod_jumpmenu_folder[23,0]" id="mod_jumpmenu_item_23" class="mod_jumpmenu_menu_item mod_jumpmenu_folder">Official Forums</a><a rel="mod_jumpmenu_folder[24,0]" id="mod_jumpmenu_item_24" class="mod_jumpmenu_menu_item mod_jumpmenu_folder">Add-ons and Hacks</a><a rel="mod_jumpmenu_folder[25,0]" id="mod_jumpmenu_item_25" class="mod_jumpmenu_menu_item mod_jumpmenu_folder">Support in other languages</a><a rel="mod_jumpmenu_folder[68,0]" id="mod_jumpmenu_item_68" class="mod_jumpmenu_menu_item mod_jumpmenu_folder">Outdated forums</a><a href="#" rel="mod_jumpmenu_forum" class="mod_jumpmenu_menu_separator">&nbsp;</a><a href="https://www.phorum.org/phorum5/addon.php?18,module=recent_messages" rel="mod_jumpmenu_forum" id="mod_jumpmenu_item_extra1" class="mod_jumpmenu_menu_item mod_jumpmenu_forum recent_messages">Recent Messages</a></div></div><div class="mod_jumpmenu_menu" id="mod_jumpmenu_menu_23"> <div class="mod_jumpmenu_menu_content" id="mod_jumpmenu_menu_content_23"><a href="https://www.phorum.org/phorum5/list.php?61" rel="mod_jumpmenu_forum" id="mod_jumpmenu_item_61" class="mod_jumpmenu_menu_item mod_jumpmenu_forum">5.2 Phorum Support</a><a href="https://www.phorum.org/phorum5/list.php?70" rel="mod_jumpmenu_forum" id="mod_jumpmenu_item_70" class="mod_jumpmenu_menu_item mod_jumpmenu_forum">Developers Corner</a><a href="https://www.phorum.org/phorum5/list.php?14" rel="mod_jumpmenu_forum" id="mod_jumpmenu_item_14" class="mod_jumpmenu_menu_item mod_jumpmenu_forum">Phorum Development</a><a href="https://www.phorum.org/phorum5/list.php?64" rel="mod_jumpmenu_forum" id="mod_jumpmenu_item_64" class="mod_jumpmenu_menu_item mod_jumpmenu_forum">Announcements</a></div></div><div class="mod_jumpmenu_menu" id="mod_jumpmenu_menu_24"> <div class="mod_jumpmenu_menu_content" id="mod_jumpmenu_menu_content_24"><a href="https://www.phorum.org/phorum5/list.php?63" rel="mod_jumpmenu_forum" id="mod_jumpmenu_item_63" class="mod_jumpmenu_menu_item mod_jumpmenu_forum">5.2 Templates</a><a href="https://www.phorum.org/phorum5/list.php?65" rel="mod_jumpmenu_forum" id="mod_jumpmenu_item_65" class="mod_jumpmenu_menu_item mod_jumpmenu_forum">5.2 Language Files</a><a href="https://www.phorum.org/phorum5/list.php?62" rel="mod_jumpmenu_forum" id="mod_jumpmenu_item_62" class="mod_jumpmenu_menu_item mod_jumpmenu_forum">5.2 Modules/Add-Ons</a><a href="https://www.phorum.org/phorum5/list.php?28" rel="mod_jumpmenu_forum" id="mod_jumpmenu_item_28" class="mod_jumpmenu_menu_item mod_jumpmenu_forum">Phorum Integration</a><a href="https://www.phorum.org/phorum5/list.php?20" rel="mod_jumpmenu_forum" id="mod_jumpmenu_item_20" class="mod_jumpmenu_menu_item mod_jumpmenu_forum">Phorum Hack/Mod Requests</a></div></div><div class="mod_jumpmenu_menu" id="mod_jumpmenu_menu_25"> <div class="mod_jumpmenu_menu_content" id="mod_jumpmenu_menu_content_25"><a href="https://www.phorum.org/phorum5/list.php?19" rel="mod_jumpmenu_forum" id="mod_jumpmenu_item_19" class="mod_jumpmenu_menu_item mod_jumpmenu_forum">French Support / forum francophone</a><a href="https://www.phorum.org/phorum5/list.php?69" rel="mod_jumpmenu_forum" id="mod_jumpmenu_item_69" class="mod_jumpmenu_menu_item mod_jumpmenu_forum">Soporte en espa帽ol</a><a href="https://www.phorum.org/phorum5/list.php?66" rel="mod_jumpmenu_forum" id="mod_jumpmenu_item_66" class="mod_jumpmenu_menu_item mod_jumpmenu_forum">袪褍褋褋泻邪褟 锌芯写写械褉卸泻邪 写胁懈卸泻邪 Phorum</a><a href="https://www.phorum.org/phorum5/list.php?58" rel="mod_jumpmenu_forum" id="mod_jumpmenu_item_58" class="mod_jumpmenu_menu_item mod_jumpmenu_forum">Polish Support</a></div></div><div class="mod_jumpmenu_menu" id="mod_jumpmenu_menu_68"> <div class="mod_jumpmenu_menu_content" id="mod_jumpmenu_menu_content_68"><a rel="mod_jumpmenu_folder[67,68]" id="mod_jumpmenu_item_67" class="mod_jumpmenu_menu_item mod_jumpmenu_folder">Phorum 5.1/5.0</a></div></div><div class="mod_jumpmenu_menu" id="mod_jumpmenu_menu_67"> <div class="mod_jumpmenu_menu_content" id="mod_jumpmenu_menu_content_67"><a href="https://www.phorum.org/phorum5/list.php?12" rel="mod_jumpmenu_forum" id="mod_jumpmenu_item_12" class="mod_jumpmenu_menu_item mod_jumpmenu_forum">5.1 Phorum Support</a><a href="https://www.phorum.org/phorum5/list.php?21" rel="mod_jumpmenu_forum" id="mod_jumpmenu_item_21" class="mod_jumpmenu_menu_item mod_jumpmenu_forum">5.1 Phorum Templates/Themes</a><a href="https://www.phorum.org/phorum5/list.php?17" rel="mod_jumpmenu_forum" id="mod_jumpmenu_item_17" class="mod_jumpmenu_menu_item mod_jumpmenu_forum">5.1 Phorum Language Files</a><a href="https://www.phorum.org/phorum5/list.php?16" rel="mod_jumpmenu_forum" id="mod_jumpmenu_item_16" class="mod_jumpmenu_menu_item mod_jumpmenu_forum">5.1 Phorum Modules / Add-Ons</a><a href="https://www.phorum.org/phorum5/list.php?18" rel="mod_jumpmenu_forum" id="mod_jumpmenu_item_18" class="mod_jumpmenu_menu_item mod_jumpmenu_forum">5.1 Phorum Hacks</a></div></div> <script type="text/javascript"> // <![CDATA[ $PJ(document).ready(function(){ // Make sure that the menus are in the top level #phorum elt. // This is needed to make positioning of the menus robust. $PJ('div.mod_jumpmenu_menu').each(function () { $PJ('body').append(this); }); // Initialize the Phorum jumpmenu. PhorumJumpMenu.init(); }); // ]]> </script> <!-- Combo-handled YUI JS files: --> <script type="text/javascript" src="https://yui.yahooapis.com/combo?2.8.0r4/build/yahoo-dom-event/yahoo-dom-event.js&2.8.0r4/build/connection/connection_core-min.js&2.8.0r4/build/selector/selector-min.js"></script> <script type="text/javascript"> var Y = YAHOO.util; function phorumAjaxMarkRead(e) { Y.Event.preventDefault(e); href = this.getAttribute("href"); if(href && (href.indexOf("markread") >= 0 || href.indexOf("markthreadread") >= 0)){ Y.Connect.asyncRequest('GET', href, {success: function(o){}}, null); tableRow = Y.Dom.getAncestorByTagName(this, "tr"); newFlags = Y.Dom.getElementsByClassName("new-flag", null, tableRow); if(newFlags.length){ for(n in newFlags){ tableCell = Y.Dom.getAncestorByTagName(newFlags[n], "td"); if(tableCell) { value = tableCell.innerHTML; re = /^[ \n]*([0-9,]+)/; match = re.exec(value); if(match){ tableCell.innerHTML = match[1]; } } } } newLinks = Y.Dom.getElementsByClassName("message-new", "a"); if(newLinks.length){ for(n in newLinks) { Y.Dom.removeClass(newLinks[n], "message-new"); } } redFlags = Y.Dom.getElementsByClassName("icon1616", "img"); if(redFlags.length){ for(n in redFlags) { } } } } mrLinks = Y.Selector.query("a"); for(a in mrLinks) { href = mrLinks[a].getAttribute("href"); if(href && (href.indexOf("markread") >= 0 || href.indexOf("markthreadread") >= 0)){ Y.Event.addListener(mrLinks[a], "click", phorumAjaxMarkRead); } } </script> <!-- BEGIN TEMPLATE footer.tpl --> <div id="footer-plug"> This <a href="http://www.phorum.org/">forum</a> is powered by <a href="http://www.phorum.org/">Phorum</a>. </div> </div> <!-- end of div id="phorum" --> </div><!-- content --> <div id="footer" align="center"> &mdash;&nbsp;<a href="/about.php">About Us</a>&nbsp;&mdash;&nbsp;<a href="mailto:security@phorum.org">Security Issues</a>&nbsp;&mdash;&nbsp;<a href="/phorum5/">Support</a>&nbsp;&mdash;&nbsp;<a href="https://github.com/Phorum/Core/issues?sort=created&direction=desc&state=open&page=1">Report Bugs</a>&nbsp;&mdash;&nbsp;<a href="/free-php-message-board-phorum.php">Why Phorum?</a>&nbsp;&mdash; </div> &nbsp; </div><!-- wrapper --> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-89211-1']); _gaq.push(['_trackPageview']); _gaq.push(['_trackPageLoadTime']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> </body> </html> <!-- END TEMPLATE footer.tpl -->

Pages: 1 2 3 4 5 6 7 8 9 10