Changeset 106 for devel/content
- Timestamp:
- 01/12/06 08:02:45 (3 years ago)
- Files:
-
- devel/content/mainindex/content_loggedout.php (modified) (2 diffs)
- devel/content/mainindex/content_main_index.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/content/mainindex/content_loggedout.php
r45 r106 7 7 $run_result .= "<p>". sprintf(gettext("<a href=\"%s\">Find others</a> with similar interests and goals."), url . "search/tags.php") . "<br /><br />"; 8 8 9 $users = db_query("SELECT distinct users.*, icons.filename as iconfile FROM tags LEFT JOIN users ON users.ident = tags.owner left join icons on icons.ident = users.icon WHERE (tags.tagtype = 'biography' OR tags.tagtype = 'minibio' OR tags.tagtype = 'interests')AND users.icon != -1 AND tags.access = 'PUBLIC' and users.user_type = 'person' ORDER BY rand( ) LIMIT 3");9 $users = db_query("SELECT DISTINCT users.*, icons.filename AS iconfile FROM tags JOIN users ON users.ident = tags.owner LEFT JOIN icons ON icons.ident = users.icon WHERE tags.tagtype IN ('biography','minibio','interests') AND users.icon != -1 AND tags.access = 'PUBLIC' AND users.user_type = 'person' ORDER BY RAND() LIMIT 3"); 10 10 11 11 if (sizeof($users) > 0) { … … 30 30 $run_result .= "<p> </p>"; 31 31 32 $news = db_query("select weblog_posts.* from weblog_posts leftjoin users on users.ident = weblog_posts.weblog where users.username = 'news' order by posted desc limit 1");32 $news = db_query("select weblog_posts.* from weblog_posts join users on users.ident = weblog_posts.weblog where users.username = 'news' order by posted desc limit 1"); 33 33 if (sizeof($news) > 0) { 34 34 devel/content/mainindex/content_main_index.php
r84 r106 7 7 $run_result .= "<p>". gettext("Tell people about yourself and connect to others with similar interests and goals.") . "<br />"; 8 8 9 $users = db_query("SELECT distinct users.*, icons.filename as iconfile FROM tags LEFT JOIN users ON users.ident = tags.owner left join icons on icons.ident = users.icon WHERE (tags.tagtype = 'biography' OR tags.tagtype = 'minibio' OR tags.tagtype = 'interests')AND users.icon != -1 AND tags.access = 'PUBLIC' and users.user_type = 'person' ORDER BY rand( ) LIMIT 3");9 $users = db_query("SELECT DISTINCT users.*, icons.filename AS iconfile FROM tags JOIN users ON users.ident = tags.owner LEFT JOIN icons ON icons.ident = users.icon WHERE tags.tagtype IN ('biography','minibio','interests') AND users.icon != -1 AND tags.access = 'PUBLIC' AND users.user_type = 'person' ORDER BY RAND() LIMIT 3"); 10 10 11 11 if (sizeof($users) > 0) { … … 31 31 $run_result .= "<p> </p>"; 32 32 33 $news = db_query("select weblog_posts.* from weblog_posts leftjoin users on users.ident = weblog_posts.weblog where users.username = 'news' order by posted desc limit 1");33 $news = db_query("select weblog_posts.* from weblog_posts join users on users.ident = weblog_posts.weblog where users.username = 'news' order by posted desc limit 1"); 34 34 if (sizeof($news) > 0) { 35 35
