Skip to content
Snippets Groups Projects
Commit 7b09db51 authored by Matthew Juhl's avatar Matthew Juhl
Browse files

Detect URLs in wire posts and create a HREF on home page.

parent 3db7c13c
Branches
No related tags found
No related merge requests found
......@@ -361,7 +361,11 @@
if (isloggedin()) {echo('291px;');}else{echo('51px;');}
echo '"></span>';
echo ' <div style="padding:10px;">';
echo '<p style="margin:0;"><a href="pg/profile/' . $row3['username'] . '">' . $row3['name'] . '</a>: ' . $row2['description'] . '</p>';
;
echo '<p style="margin:0;"><a href="pg/profile/' . $row3['username'] . '">' . $row3['name'] . '</a>: ' . preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="$1">$1</a>', $row2['description']) . '</p>';
//echo '<p style="margin:0;"><a href="pg/profile/' . $row3['username'] . '">' . $row3['name'] . '</a>: ' . $row2['description'] . '</p>';
echo '<p style="margin:2px 0 3px 0; font-size:10px; clear:both;float:right"><em>' . friendly_time($row['time_updated']) . '</em></p>';
echo ' </div>';
echo '</div><div class="clear"></div>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment