Dreamerior
Постоялец
- Регистрация
- 19 Ноя 2006
- Сообщения
- 101
- Реакции
- 9
- Автор темы
- #1
Тема для размещения хаков вывода на главную последних сообщений\действий с различных плагинов. Social Engine 3.
Ниже выкладываю вывод для плагинов "События", "Блоги", "Группы".
Ищу вывод для плагина "Объявления".
Плагин "События"
Добавить в home.php
Добавить в home.tpl
Плагин "Блоги"
Добавить в home.php
Добавить в home.tpl
Плагин "Группы"
Добавить в home.php
Добавить в home.tpl
Ниже выкладываю вывод для плагинов "События", "Блоги", "Группы".
Ищу вывод для плагина "Объявления".
Плагин "События"
Добавить в home.php
Код:
[FONT=Courier New][COLOR=#ff8000]// ENSURE SORT/VIEW ARE VALID[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if([/COLOR][COLOR=#0000bb]$s [/COLOR][COLOR=#007700]!= [/COLOR][COLOR=#dd0000]"event_datecreated DESC" [/COLOR][COLOR=#007700]&& [/COLOR][COLOR=#0000bb]$s [/COLOR][COLOR=#007700]!= [/COLOR][COLOR=#dd0000]"num_members DESC" [/COLOR][COLOR=#007700]&& [/COLOR][COLOR=#0000bb]$s [/COLOR][COLOR=#007700]!= [/COLOR][COLOR=#dd0000]"event_date_start DESC" [/COLOR][COLOR=#007700]&& [/COLOR][COLOR=#0000bb]$s [/COLOR][COLOR=#007700]!= [/COLOR][COLOR=#dd0000]"event_date_end DESC" [/COLOR][COLOR=#007700]&& [/COLOR][COLOR=#0000bb]$s [/COLOR][COLOR=#007700]!= [/COLOR][COLOR=#dd0000]"event_date_start ASC" [/COLOR][COLOR=#007700]&& [/COLOR][COLOR=#0000bb]$s [/COLOR][COLOR=#007700]!= [/COLOR][COLOR=#dd0000]"event_date_end ASC"[/COLOR][COLOR=#007700]) { [/COLOR][COLOR=#0000bb]$s [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#dd0000]"event_date_start ASC"[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]; }[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if([/COLOR][COLOR=#0000bb]$v [/COLOR][COLOR=#007700]!= [/COLOR][COLOR=#dd0000]"1" [/COLOR][COLOR=#007700]&& [/COLOR][COLOR=#0000bb]$v [/COLOR][COLOR=#007700]!= [/COLOR][COLOR=#dd0000]"2" [/COLOR][COLOR=#007700]&& [/COLOR][COLOR=#0000bb]$v [/COLOR][COLOR=#007700]!= [/COLOR][COLOR=#dd0000]"3"[/COLOR][COLOR=#007700]) { [/COLOR][COLOR=#0000bb]$v [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]3[/COLOR][/FONT][COLOR=#007700][FONT=Courier New]; }[/FONT][/COLOR]
[FONT=Courier New][COLOR=#ff8000]// SET WHERE CLAUSE[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$where [/COLOR][COLOR=#007700]= [/COLOR][/FONT][COLOR=#dd0000][FONT=Courier New]"CASE[/FONT][/COLOR]
[FONT=Courier New][COLOR=#dd0000] WHEN se_events.event_user_id='{$user->user_info[user_id]}'[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] THEN TRUE[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] WHEN ((se_events.event_privacy & 32) AND '{$user->user_exists}'<>0)[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] THEN TRUE[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] WHEN ((se_events.event_privacy & 64) AND '{$user->user_exists}'=0)[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] THEN TRUE[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] WHEN ((se_events.event_privacy & 2) AND (SELECT TRUE FROM se_eventmembers WHERE eventmember_user_id='{$user->user_info[user_id]}' AND eventmember_event_id=se_events.event_id AND eventmember_status=1 LIMIT 1))[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] THEN TRUE[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] WHEN ((se_events.event_privacy & 4) AND '{$user->user_exists}'<>0 AND (SELECT TRUE FROM se_friends WHERE friend_user_id1=se_events.event_user_id AND friend_user_id2='{$user->user_info[user_id]}' AND friend_status=1 LIMIT 1))[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] THEN TRUE[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] WHEN ((se_events.event_privacy & 8) AND '{$user->user_exists}'<>0 AND (SELECT TRUE FROM se_eventmembers LEFT JOIN se_friends ON se_eventmembers.eventmember_user_id=se_friends.friend_user_id1 WHERE se_eventmembers.eventmember_event_id=se_events.event_id AND se_friends.friend_user_id2='{$user->user_info[user_id]}' AND se_eventmembers.eventmember_status=1 AND se_friends.friend_status=1 LIMIT 1))[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] THEN TRUE[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] WHEN ((se_events.event_privacy & 16) AND '{$user->user_exists}'<>0 AND (SELECT TRUE FROM se_eventmembers LEFT JOIN se_friends AS friends_primary ON se_eventmembers.eventmember_user_id=friends_primary.friend_user_id1 LEFT JOIN se_friends AS friends_secondary ON friends_primary.friend_user_id2=friends_secondary.friend_user_id1 WHERE se_eventmembers.eventmember_event_id=se_events.event_id AND se_eventmembers.eventmember_status=1 AND friends_secondary.friend_user_id2='{$user->user_info[user_id]}' AND friends_primary.friend_status=1 AND friends_secondary.friend_status=1 LIMIT 1))[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] THEN TRUE[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] ELSE FALSE[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000]END"[/COLOR][/FONT][COLOR=#007700][FONT=Courier New];[/FONT][/COLOR]
[FONT=Courier New][COLOR=#ff8000]// ONLY MY FRIENDS' EVENTS[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if( [/COLOR][COLOR=#0000bb]$v[/COLOR][COLOR=#007700]==[/COLOR][COLOR=#dd0000]"2" [/COLOR][COLOR=#007700]&& [/COLOR][COLOR=#0000bb]$user[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]user_exists [/COLOR][/FONT][COLOR=#007700][FONT=Courier New])[/FONT][/COLOR]
[FONT=Courier New][COLOR=#007700]{[/COLOR][/FONT]
[FONT=Courier New][COLOR=#ff8000]// SET WHERE CLAUSE[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$where [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#dd0000]" AND (SELECT TRUE FROM se_friends LEFT JOIN se_eventmembers ON se_friends.friend_user_id2=se_eventmembers.eventmember_user_id WHERE friend_user_id1='{$user->user_info[user_id]}' AND friend_status=1 AND eventmember_event_id=se_events.event_id AND eventmember_status=1 LIMIT 1)"[/COLOR][/FONT][FONT=Courier New][COLOR=#007700];[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]elseif( [/COLOR][COLOR=#0000bb]$v[/COLOR][COLOR=#007700]==[/COLOR][COLOR=#dd0000]"3" [/COLOR][/FONT][FONT=Courier New][COLOR=#007700])[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]{[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$where [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#dd0000]" && se_events.event_date_start>'"[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]time[/COLOR][COLOR=#007700]().[/COLOR][COLOR=#dd0000]"' "[/COLOR][/FONT][COLOR=#007700][FONT=Courier New];[/FONT][/COLOR]
[FONT=Courier New][COLOR=#ff8000]// Force sort?[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$s [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#dd0000]"event_date_start ASC"[/COLOR][/FONT][COLOR=#007700][FONT=Courier New];[/FONT][/COLOR]
[FONT=Courier New][COLOR=#007700]}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#ff8000]// SPECIFIC EVENT CATEGORY[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if([/COLOR][COLOR=#0000bb]$eventcat_id [/COLOR][COLOR=#007700]!= [/COLOR][COLOR=#0000bb]0[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]) {[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$eventcat_query [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$database[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]database_query[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"SELECT eventcat_id, eventcat_title, eventcat_dependency FROM se_eventcats WHERE eventcat_id=$eventcat_id"[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]);[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if([/COLOR][COLOR=#0000bb]$database[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]database_num_rows[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$eventcat_query[/COLOR][/FONT][FONT=Courier New][COLOR=#007700])) {[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$eventcat [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$database[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]database_fetch_assoc[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$eventcat_query[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]);[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if([/COLOR][COLOR=#0000bb]$eventcat[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]eventcat_dependency[/COLOR][COLOR=#007700]] == [/COLOR][COLOR=#0000bb]0[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]) {[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$cat_ids[/COLOR][COLOR=#007700][] = [/COLOR][COLOR=#0000bb]$eventcat[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]eventcat_id[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]];[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$depcats [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$database[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]database_query[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"SELECT eventcat_id FROM se_eventcats WHERE eventcat_id={$eventcat[eventcat_id]} OR eventcat_dependency={$eventcat[eventcat_id]}"[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]);[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] while([/COLOR][COLOR=#0000bb]$depcat_info [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$database[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]database_fetch_assoc[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$depcats[/COLOR][COLOR=#007700])) { [/COLOR][COLOR=#0000bb]$cat_ids[/COLOR][COLOR=#007700][] = [/COLOR][COLOR=#0000bb]$depcat_info[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]eventcat_id[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]]; }[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$where [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#dd0000]" AND se_events.event_eventcat_id IN('"[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]implode[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"', '"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$cat_ids[/COLOR][COLOR=#007700]).[/COLOR][COLOR=#dd0000]"')"[/COLOR][/FONT][FONT=Courier New][COLOR=#007700];[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]} else {[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$where [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#dd0000]" AND se_events.event_eventcat_id={$eventcat[eventcat_id]}"[/COLOR][/FONT][FONT=Courier New][COLOR=#007700];[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$eventsubcat [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$eventcat[/COLOR][/FONT][FONT=Courier New][COLOR=#007700];[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$eventcat [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$database[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]database_fetch_assoc[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$database[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]database_query[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"SELECT eventcat_id, eventcat_title FROM se_eventcats WHERE eventcat_id={$eventcat[eventcat_dependency]}"[/COLOR][/FONT][COLOR=#007700][FONT=Courier New]));[/FONT][/COLOR]
[FONT=Courier New][COLOR=#007700]}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#ff8000]// CREATE EVENT OBJECT[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$event [/COLOR][COLOR=#007700]= new [/COLOR][COLOR=#0000bb]se_event[/COLOR][/FONT][COLOR=#007700][FONT=Courier New]();[/FONT][/COLOR]
[FONT=Courier New][COLOR=#ff8000]// MAKE ENTRY PAGES[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$events_per_page [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]10[/COLOR][/FONT][FONT=Courier New][COLOR=#007700];[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$page_vars [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]make_page[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$total_events[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$events_per_page[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$p[/COLOR][/FONT][COLOR=#007700][FONT=Courier New]);[/FONT][/COLOR]
[FONT=Courier New][COLOR=#ff8000]// GET EVENT ARRAY[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$event_array [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$event[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]event_list[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$page_vars[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]0[/COLOR][COLOR=#007700]], [/COLOR][COLOR=#0000bb]$events_per_page[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$s[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$where[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]TRUE[/COLOR][/FONT][COLOR=#007700][FONT=Courier New]);[/FONT][/COLOR]
[FONT=Courier New][COLOR=#ff8000]// ASSIGN SMARTY VARIABLES AND DISPLAY EVENTS PAGE[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'eventcat_id'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$eventcat_id[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]);[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'eventcat'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$eventcat[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]);[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'eventsubcat'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$eventsubcat[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]);[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'cats'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$cat_array[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]);[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'events'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$event_array[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]);[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'total_events'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$total_events[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]);[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'p'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$page_vars[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]1[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]]);[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'maxpage'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$page_vars[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]2[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]]);[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'p_start'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$page_vars[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]0[/COLOR][COLOR=#007700]]+[/COLOR][COLOR=#0000bb]1[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]);[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'p_end'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$page_vars[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]0[/COLOR][COLOR=#007700]]+[/COLOR][COLOR=#0000bb]count[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$event_array[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]));[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'s'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$s[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]);[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'v'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$v[/COLOR][/FONT][COLOR=#007700][FONT=Courier New]); [/FONT][/COLOR]
Добавить в home.tpl
Код:
[FONT=Courier New][COLOR=#007700]{* [/COLOR][COLOR=#0000bb]EVENTS ON MAIN PAGE [/COLOR][/FONT][FONT=Courier New][COLOR=#007700]*}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]<[/COLOR][COLOR=#0000bb]div [/COLOR][COLOR=#007700]class=[/COLOR][COLOR=#dd0000]'header'[/COLOR][COLOR=#007700]>[/COLOR][COLOR=#0000bb]Upcoming Events[/COLOR][COLOR=#007700]</[/COLOR][COLOR=#0000bb]div[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]{* [/COLOR][COLOR=#0000bb]NO EVENTS AT ALL [/COLOR][/FONT][FONT=Courier New][COLOR=#007700]*}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]{if [/COLOR][COLOR=#0000bb]$events[/COLOR][COLOR=#007700]|@[/COLOR][COLOR=#0000bb]count [/COLOR][COLOR=#007700]== [/COLOR][COLOR=#0000bb]0[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]<[/COLOR][COLOR=#0000bb]br[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]<[/COLOR][COLOR=#0000bb]table cellpadding[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'0' [/COLOR][COLOR=#0000bb]cellspacing[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'0' [/COLOR][COLOR=#0000bb]align[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'center'[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] <[/COLOR][COLOR=#0000bb]tr[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] <[/COLOR][COLOR=#0000bb]td [/COLOR][COLOR=#007700]class=[/COLOR][COLOR=#dd0000]'result'[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] <[/COLOR][COLOR=#0000bb]img src[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'./images/icons/bulb16.gif' [/COLOR][COLOR=#0000bb]border[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'0' [/COLOR][COLOR=#007700]class=[/COLOR][COLOR=#dd0000]'icon' [/COLOR][/FONT][FONT=Courier New][COLOR=#007700]/>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] {[/COLOR][COLOR=#0000bb]lang_print id[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]3000214[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] </[/COLOR][COLOR=#0000bb]td[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] </[/COLOR][COLOR=#0000bb]tr[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]</[/COLOR][COLOR=#0000bb]table[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]{/if}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]{* [/COLOR][COLOR=#0000bb]DISPLAY PAGINATION MENU [/COLOR][COLOR=#007700]IF [/COLOR][COLOR=#0000bb]APPLICABLE [/COLOR][/FONT][FONT=Courier New][COLOR=#007700]*}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]{if [/COLOR][COLOR=#0000bb]$maxpage [/COLOR][COLOR=#007700]> [/COLOR][COLOR=#0000bb]1[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]<[/COLOR][COLOR=#0000bb]div [/COLOR][COLOR=#007700]class=[/COLOR][COLOR=#dd0000]'event_pages_top'[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]{if [/COLOR][COLOR=#0000bb]$p [/COLOR][COLOR=#007700]!= [/COLOR][COLOR=#0000bb]1[/COLOR][COLOR=#007700]}<[/COLOR][COLOR=#0000bb]a href[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'browse_events.php?s={$s}&v={$v}&eventcat_id={$eventcat_id}&p={math equation="p-1" p=$p}'[/COLOR][COLOR=#007700]>[/COLOR][COLOR=#0000bb]« [/COLOR][COLOR=#007700]{[/COLOR][COLOR=#0000bb]lang_print id[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]182[/COLOR][COLOR=#007700]}</[/COLOR][COLOR=#0000bb]a[/COLOR][COLOR=#007700]>{else}[/COLOR][COLOR=#0000bb]« [/COLOR][COLOR=#007700]{[/COLOR][COLOR=#0000bb]lang_print id[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]182[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]}{/if}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]&[/COLOR][COLOR=#0000bb]nbsp[/COLOR][COLOR=#007700];|&[/COLOR][COLOR=#0000bb]nbsp[/COLOR][COLOR=#007700];&[/COLOR][COLOR=#0000bb]nbsp[/COLOR][/FONT][FONT=Courier New][COLOR=#007700];[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]{if [/COLOR][COLOR=#0000bb]$p_start [/COLOR][COLOR=#007700]== [/COLOR][COLOR=#0000bb]$p_end[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] <[/COLOR][COLOR=#0000bb]b[/COLOR][COLOR=#007700]>{[/COLOR][COLOR=#0000bb]lang_sprintf id[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]184 1[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$p_start 2[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$total_events[/COLOR][COLOR=#007700]}</[/COLOR][COLOR=#0000bb]b[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]{else}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] <[/COLOR][COLOR=#0000bb]b[/COLOR][COLOR=#007700]>{[/COLOR][COLOR=#0000bb]lang_sprintf id[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]185 1[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$p_start 2[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$p_end 3[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$total_events[/COLOR][COLOR=#007700]}</[/COLOR][COLOR=#0000bb]b[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]{/if}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]&[/COLOR][COLOR=#0000bb]nbsp[/COLOR][COLOR=#007700];&[/COLOR][COLOR=#0000bb]nbsp[/COLOR][COLOR=#007700];|&[/COLOR][COLOR=#0000bb]nbsp[/COLOR][/FONT][FONT=Courier New][COLOR=#007700];[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]{if [/COLOR][COLOR=#0000bb]$p [/COLOR][COLOR=#007700]!= [/COLOR][COLOR=#0000bb]$maxpage[/COLOR][COLOR=#007700]}<[/COLOR][COLOR=#0000bb]a href[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'browse_events.php?s={$s}&v={$v}&eventcat_id={$eventcat_id}&p={math equation="p+1" p=$p}'[/COLOR][COLOR=#007700]>{[/COLOR][COLOR=#0000bb]lang_print id[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]183[/COLOR][COLOR=#007700]} [/COLOR][COLOR=#0000bb]»[/COLOR][COLOR=#007700]</[/COLOR][COLOR=#0000bb]a[/COLOR][COLOR=#007700]>{else}{[/COLOR][COLOR=#0000bb]lang_print id[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]183[/COLOR][COLOR=#007700]} [/COLOR][COLOR=#0000bb]»[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]{/if}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]</[/COLOR][COLOR=#0000bb]div[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]{/if}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]{[/COLOR][COLOR=#0000bb]section name[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]event_loop loop[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$events[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]<[/COLOR][COLOR=#0000bb]div style[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'padding: 10px; border: 1px solid #CCCCCC; margin-bottom: 10px;'[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] <[/COLOR][COLOR=#0000bb]table cellpadding[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'0' [/COLOR][COLOR=#0000bb]cellspacing[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'0'[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] <[/COLOR][COLOR=#0000bb]tr[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] <[/COLOR][COLOR=#0000bb]td[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] <[/COLOR][COLOR=#0000bb]a href[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'event.php?event_id={$events[event_loop].event->event_info.event_id}'[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] <[/COLOR][COLOR=#0000bb]img [/COLOR][COLOR=#007700]class=[/COLOR][COLOR=#dd0000]'photo' [/COLOR][COLOR=#0000bb]src[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'{$events[event_loop].event->event_photo("./images/nophoto.gif", TRUE)}' [/COLOR][COLOR=#0000bb]border[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'0' [/COLOR][COLOR=#0000bb]width[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'60' [/COLOR][COLOR=#0000bb]height[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'60' [/COLOR][/FONT][FONT=Courier New][COLOR=#007700]/>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] </[/COLOR][COLOR=#0000bb]a[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] </[/COLOR][COLOR=#0000bb]td[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] <[/COLOR][COLOR=#0000bb]td style[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'vertical-align: top; padding-left: 10px;'[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] <[/COLOR][COLOR=#0000bb]div style[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'font-weight: bold; font-size: 10pt;'[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] <[/COLOR][COLOR=#0000bb]a href[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'event.php?event_id={$events[event_loop].event->event_info.event_id}'[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] {[/COLOR][COLOR=#0000bb]$events[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]event_loop[/COLOR][COLOR=#007700]].[/COLOR][COLOR=#0000bb]event[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]event_info[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]event_title[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] </[/COLOR][COLOR=#0000bb]a[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] </[/COLOR][COLOR=#0000bb]div[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] <[/COLOR][COLOR=#0000bb]div style[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'color: #777777; font-size: 7pt; margin-bottom: 2px;'[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] {* [/COLOR][COLOR=#0000bb]NO END DATE [/COLOR][/FONT][FONT=Courier New][COLOR=#007700]*}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] {if ![/COLOR][COLOR=#0000bb]$events[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]event_loop[/COLOR][COLOR=#007700]].[/COLOR][COLOR=#0000bb]event[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]event_info[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]event_date_end[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] {[/COLOR][COLOR=#0000bb]lang_sprintf id[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]3000203 1[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$datetime[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]cdate[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$setting[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]setting_dateformat[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$event_date_start[/COLOR][COLOR=#007700]) [/COLOR][COLOR=#0000bb]2[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$datetime[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]cdate[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$setting[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]setting_timeformat[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$event_date_start[/COLOR][/FONT][FONT=Courier New][COLOR=#007700])}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] {* [/COLOR][COLOR=#0000bb]SAME[/COLOR][COLOR=#007700]-[/COLOR][COLOR=#0000bb]DAY EVENT [/COLOR][/FONT][FONT=Courier New][COLOR=#007700]*}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] {elseif [/COLOR][COLOR=#0000bb]$datetime[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]cdate[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"F j, Y"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$event_date_start[/COLOR][COLOR=#007700])==[/COLOR][COLOR=#0000bb]$datetime[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]cdate[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"F j, Y"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$event_date_end[/COLOR][/FONT][FONT=Courier New][COLOR=#007700])}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] {[/COLOR][COLOR=#0000bb]lang_sprintf id[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]3000202 1[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$datetime[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]cdate[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$setting[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]setting_dateformat[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$event_date_start[/COLOR][COLOR=#007700]) [/COLOR][COLOR=#0000bb]2[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$datetime[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]cdate[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$setting[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]setting_timeformat[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$event_date_start[/COLOR][COLOR=#007700]) [/COLOR][COLOR=#0000bb]3[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$datetime[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]cdate[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$setting[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]setting_timeformat[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$event_date_end[/COLOR][/FONT][FONT=Courier New][COLOR=#007700])}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] {* [/COLOR][COLOR=#0000bb]MULTI[/COLOR][COLOR=#007700]-[/COLOR][COLOR=#0000bb]DAY EVENT [/COLOR][/FONT][FONT=Courier New][COLOR=#007700]*}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] {else}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] {[/COLOR][COLOR=#0000bb]lang_sprintf id[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]3000204 1[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$datetime[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]cdate[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"`$setting.setting_dateformat` `$setting.setting_timeformat`"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$event_date_start[/COLOR][COLOR=#007700]) [/COLOR][COLOR=#0000bb]2[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$datetime[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]cdate[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"`$setting.setting_dateformat` `$setting.setting_timeformat`"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$event_date_end[/COLOR][/FONT][FONT=Courier New][COLOR=#007700])}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] {/if}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] </[/COLOR][COLOR=#0000bb]div[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] <[/COLOR][COLOR=#0000bb]div style[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'color: #777777; font-size: 7pt; margin-bottom: 5px;'[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] {[/COLOR][COLOR=#0000bb]assign [/COLOR][COLOR=#007700]var=[/COLOR][COLOR=#0000bb]event_date_start value[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$datetime[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]timezone[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$events[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]event_loop[/COLOR][COLOR=#007700]].[/COLOR][COLOR=#0000bb]event[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]event_info[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]event_date_start[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$global_timezone[/COLOR][/FONT][FONT=Courier New][COLOR=#007700])}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] {[/COLOR][COLOR=#0000bb]assign [/COLOR][COLOR=#007700]var=[/COLOR][COLOR=#0000bb]event_date_end value[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$datetime[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]timezone[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$events[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]event_loop[/COLOR][COLOR=#007700]].[/COLOR][COLOR=#0000bb]event[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]event_info[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]event_date_end[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$global_timezone[/COLOR][/FONT][FONT=Courier New][COLOR=#007700])}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] {[/COLOR][COLOR=#0000bb]assign [/COLOR][COLOR=#007700]var=[/COLOR][COLOR=#dd0000]'event_dateupdated' [/COLOR][COLOR=#0000bb]value[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$datetime[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]time_since[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$events[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]event_loop[/COLOR][COLOR=#007700]].[/COLOR][COLOR=#0000bb]event[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]event_info[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]event_dateupdated[/COLOR][COLOR=#007700])}{[/COLOR][COLOR=#0000bb]capture assign[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"updated"[/COLOR][COLOR=#007700]}{[/COLOR][COLOR=#0000bb]lang_sprintf id[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$event_dateupdated[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]0[/COLOR][COLOR=#007700]] [/COLOR][COLOR=#0000bb]1[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$event_dateupdated[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]1[/COLOR][COLOR=#007700]]}{/[/COLOR][COLOR=#0000bb]capture[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] {[/COLOR][COLOR=#0000bb]lang_sprintf id[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]3000215 1[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$events[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]event_loop[/COLOR][COLOR=#007700]].[/COLOR][COLOR=#0000bb]num_members[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]} -[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] {[/COLOR][COLOR=#0000bb]lang_sprintf id[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]3000216 1[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$events[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]event_loop[/COLOR][COLOR=#007700]].[/COLOR][COLOR=#0000bb]event_creator[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]user_displayname 2[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$url[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]url_create[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"profile"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$events[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]event_loop[/COLOR][COLOR=#007700]].[/COLOR][COLOR=#0000bb]event_creator[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]user_info[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]user_username[/COLOR][/FONT][FONT=Courier New][COLOR=#007700])} -[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] {[/COLOR][COLOR=#0000bb]lang_sprintf id[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]3000217 1[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$updated[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] </[/COLOR][COLOR=#0000bb]div[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] <[/COLOR][COLOR=#0000bb]div[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] {[/COLOR][COLOR=#0000bb]$events[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]event_loop[/COLOR][COLOR=#007700]].[/COLOR][COLOR=#0000bb]event[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]event_info[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]event_desc[/COLOR][COLOR=#007700]|[/COLOR][COLOR=#0000bb]truncate[/COLOR][COLOR=#007700]:[/COLOR][COLOR=#0000bb]300[/COLOR][COLOR=#007700]:[/COLOR][COLOR=#dd0000]"..."[/COLOR][COLOR=#007700]:[/COLOR][COLOR=#0000bb]true[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] </[/COLOR][COLOR=#0000bb]div[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] </[/COLOR][COLOR=#0000bb]td[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] </[/COLOR][COLOR=#0000bb]tr[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] </[/COLOR][COLOR=#0000bb]table[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]</[/COLOR][COLOR=#0000bb]div[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]{/[/COLOR][COLOR=#0000bb]section[/COLOR][COLOR=#007700]}[/COLOR][/FONT]
Плагин "Блоги"
Добавить в home.php
Код:
[COLOR=#000000][FONT=Courier New][COLOR=#ff8000]// RECENT BLOGS[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if(isset([/COLOR][COLOR=#0000bb]$_POST[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'p'[/COLOR][COLOR=#007700]])) { [/COLOR][COLOR=#0000bb]$p [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$_POST[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'p'[/COLOR][COLOR=#007700]]; } elseif(isset([/COLOR][COLOR=#0000bb]$_GET[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'p'[/COLOR][COLOR=#007700]])) { [/COLOR][COLOR=#0000bb]$p [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$_GET[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'p'[/COLOR][COLOR=#007700]]; } else { [/COLOR][COLOR=#0000bb]$p [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]1[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]; }[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if(isset([/COLOR][COLOR=#0000bb]$_POST[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'s'[/COLOR][COLOR=#007700]])) { [/COLOR][COLOR=#0000bb]$s [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$_POST[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'s'[/COLOR][COLOR=#007700]]; } elseif(isset([/COLOR][COLOR=#0000bb]$_GET[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'s'[/COLOR][COLOR=#007700]])) { [/COLOR][COLOR=#0000bb]$s [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$_GET[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'s'[/COLOR][COLOR=#007700]]; } else { [/COLOR][COLOR=#0000bb]$s [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#dd0000]"blogentry_date DESC"[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]; }[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if(isset([/COLOR][COLOR=#0000bb]$_POST[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'v'[/COLOR][COLOR=#007700]])) { [/COLOR][COLOR=#0000bb]$v [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$_POST[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'v'[/COLOR][COLOR=#007700]]; } elseif(isset([/COLOR][COLOR=#0000bb]$_GET[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'v'[/COLOR][COLOR=#007700]])) { [/COLOR][COLOR=#0000bb]$v [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$_GET[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'v'[/COLOR][COLOR=#007700]]; } else { [/COLOR][COLOR=#0000bb]$v [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]0[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]; }[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if(isset([/COLOR][COLOR=#0000bb]$_POST[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'c'[/COLOR][COLOR=#007700]])) { [/COLOR][COLOR=#0000bb]$c [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$_POST[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'c'[/COLOR][COLOR=#007700]]; } elseif(isset([/COLOR][COLOR=#0000bb]$_GET[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'c'[/COLOR][COLOR=#007700]])) { [/COLOR][COLOR=#0000bb]$c [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$_GET[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'c'[/COLOR][COLOR=#007700]]; } else { [/COLOR][COLOR=#0000bb]$c [/COLOR][COLOR=#007700]= -[/COLOR][COLOR=#0000bb]1[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]; }[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if(isset([/COLOR][COLOR=#0000bb]$_POST[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'blog_search'[/COLOR][COLOR=#007700]])) { [/COLOR][COLOR=#0000bb]$blog_search [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$_POST[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'blog_search'[/COLOR][COLOR=#007700]]; } elseif(isset([/COLOR][COLOR=#0000bb]$_GET[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'c'[/COLOR][COLOR=#007700]])) { [/COLOR][COLOR=#0000bb]$blog_search [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$_GET[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'blog_search'[/COLOR][COLOR=#007700]]; } else { [/COLOR][COLOR=#0000bb]$c [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]NULL[/COLOR][/FONT][COLOR=#007700][FONT=Courier New]; }[/FONT][/COLOR]
[FONT=Courier New][COLOR=#ff8000]// ENSURE SORT/VIEW ARE VALID[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if([/COLOR][COLOR=#0000bb]$s [/COLOR][COLOR=#007700]!= [/COLOR][COLOR=#dd0000]"blogentry_date DESC" [/COLOR][COLOR=#007700]&& [/COLOR][COLOR=#0000bb]$s [/COLOR][COLOR=#007700]!= [/COLOR][COLOR=#dd0000]"blogentry_views DESC" [/COLOR][COLOR=#007700]&& [/COLOR][COLOR=#0000bb]$s [/COLOR][COLOR=#007700]!= [/COLOR][COLOR=#dd0000]"total_comments DESC"[/COLOR][COLOR=#007700]) { [/COLOR][COLOR=#0000bb]$s [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#dd0000]"blogentry_date DESC"[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]; }[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if([/COLOR][COLOR=#0000bb]$v [/COLOR][COLOR=#007700]!= [/COLOR][COLOR=#dd0000]"0" [/COLOR][COLOR=#007700]&& [/COLOR][COLOR=#0000bb]$v [/COLOR][COLOR=#007700]!= [/COLOR][COLOR=#dd0000]"1"[/COLOR][COLOR=#007700]) { [/COLOR][COLOR=#0000bb]$v [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]0[/COLOR][/FONT][COLOR=#007700][FONT=Courier New]; }[/FONT][/COLOR]
[FONT=Courier New][COLOR=#ff8000]// SET WHERE CLAUSE[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$where [/COLOR][COLOR=#007700]= [/COLOR][/FONT][COLOR=#dd0000][FONT=Courier New]"CASE[/FONT][/COLOR]
[FONT=Courier New][COLOR=#dd0000] WHEN se_blogentries.blogentry_user_id='{$user->user_info[user_id]}'[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] THEN TRUE[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] WHEN ((se_blogentries.blogentry_privacy & @SE_PRIVACY_REGISTERED) AND '{$user->user_exists}'<>0)[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] THEN TRUE[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] WHEN ((se_blogentries.blogentry_privacy & @SE_PRIVACY_ANONYMOUS) AND '{$user->user_exists}'=0)[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] THEN TRUE[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] WHEN ((se_blogentries.blogentry_privacy & @SE_PRIVACY_FRIEND) AND (SELECT TRUE FROM se_friends WHERE friend_user_id1=se_blogentries.blogentry_user_id AND friend_user_id2='{$user->user_info[user_id]}' AND friend_status='1' LIMIT 1))[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] THEN TRUE[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] WHEN ((se_blogentries.blogentry_privacy & @SE_PRIVACY_SUBNET) AND '{$user->user_exists}'<>0 AND (SELECT TRUE FROM se_users WHERE user_id=se_blogentries.blogentry_user_id AND user_subnet_id='{$user->user_info[user_subnet_id]}' LIMIT 1))[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] THEN TRUE[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] WHEN ((se_blogentries.blogentry_privacy & @SE_PRIVACY_FRIEND2) AND (SELECT TRUE FROM se_friends AS friends_primary LEFT JOIN se_users ON friends_primary.friend_user_id1=se_users.user_id LEFT JOIN se_friends AS friends_secondary ON friends_primary.friend_user_id2=friends_secondary.friend_user_id1 WHERE friends_primary.friend_user_id1=se_blogentries.blogentry_user_id AND friends_secondary.friend_user_id2='{$user->user_info[user_id]}' AND se_users.user_subnet_id='{$user->user_info[user_subnet_id]}' LIMIT 1))[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] THEN TRUE[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] ELSE FALSE[/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] END"[/COLOR][/FONT][COLOR=#007700][FONT=Courier New];[/FONT][/COLOR]
[FONT=Courier New][COLOR=#ff8000]// ONLY MY FRIENDS' BLOGS[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if( [/COLOR][COLOR=#0000bb]$v[/COLOR][COLOR=#007700]==[/COLOR][COLOR=#dd0000]"1" [/COLOR][COLOR=#007700]&& [/COLOR][COLOR=#0000bb]$user[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]user_exists [/COLOR][/FONT][COLOR=#007700][FONT=Courier New])[/FONT][/COLOR]
[FONT=Courier New][COLOR=#007700]{[/COLOR][/FONT]
[FONT=Courier New][COLOR=#ff8000]// SET WHERE CLAUSE[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$where [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#dd0000]" AND (SELECT TRUE FROM se_friends WHERE friend_user_id1={$user->user_info[user_id]} AND friend_user_id2=se_blogentries.blogentry_user_id AND friend_status=1)"[/COLOR][/FONT][COLOR=#007700][FONT=Courier New];[/FONT][/COLOR]
[FONT=Courier New][COLOR=#007700]}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#ff8000]// CATEGORIES[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if( isset([/COLOR][COLOR=#0000bb]$c[/COLOR][COLOR=#007700]) && [/COLOR][COLOR=#0000bb]$c[/COLOR][COLOR=#007700]!=-[/COLOR][COLOR=#0000bb]1 [/COLOR][/FONT][FONT=Courier New][COLOR=#007700])[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]{[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if( [/COLOR][COLOR=#0000bb]$c[/COLOR][COLOR=#007700]==[/COLOR][COLOR=#0000bb]0 [/COLOR][COLOR=#007700]) [/COLOR][COLOR=#0000bb]$c [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#dd0000]'0'[/COLOR][/FONT][FONT=Courier New][COLOR=#007700];[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$where [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#dd0000]" AND blogentry_blogentrycat_id='$c'"[/COLOR][/FONT][COLOR=#007700][FONT=Courier New];[/FONT][/COLOR]
[FONT=Courier New][COLOR=#007700]}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#ff8000]// CREATE blog OBJECT[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$blog [/COLOR][COLOR=#007700]= new [/COLOR][COLOR=#0000bb]se_blog[/COLOR][/FONT][COLOR=#007700][FONT=Courier New]();[/FONT][/COLOR]
[FONT=Courier New][COLOR=#ff8000]// GET TOTAL blogs[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$total_blogentries [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$blog[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]blog_entries_total[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$where[/COLOR][/FONT][COLOR=#007700][FONT=Courier New]);[/FONT][/COLOR]
[FONT=Courier New][COLOR=#ff8000]// MAKE ENTRY PAGES[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$blogentries_per_page [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]4[/COLOR][/FONT][FONT=Courier New][COLOR=#007700];[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$page_vars [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]make_page[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$total_blogentries[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$blogentries_per_page[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$p[/COLOR][/FONT][COLOR=#007700][FONT=Courier New]);[/FONT][/COLOR]
[FONT=Courier New][COLOR=#ff8000]// GET blog ARRAY[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$blogentry_array [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$blog[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]blog_entries_list[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$page_vars[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]0[/COLOR][COLOR=#007700]], [/COLOR][COLOR=#0000bb]$blogentries_per_page[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$s[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$where[/COLOR][/FONT][COLOR=#007700][FONT=Courier New]);[/FONT][/COLOR]
[FONT=Courier New][COLOR=#ff8000]// ASSIGN SMARTY VARIABLES AND DISPLAY blogs PAGE[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'total_blogentries'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$total_blogentries[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]);[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign_by_ref[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'blogentries'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$blogentry_array[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]);[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign_by_ref[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'blogentrycats'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$blogentrycats_array[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]);[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'blog_search'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$blog_search[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]);[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'p'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$page_vars[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]1[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]]);[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'maxpage'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$page_vars[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]2[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]]);[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'p_start'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$page_vars[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]0[/COLOR][COLOR=#007700]]+[/COLOR][COLOR=#0000bb]1[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]);[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'p_end'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$page_vars[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]0[/COLOR][COLOR=#007700]]+[/COLOR][COLOR=#0000bb]count[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$blogentry_array[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]));[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'s'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$s[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]);[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'v'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$v[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]);[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'c'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$c[/COLOR][COLOR=#007700]); [/COLOR][/FONT][/COLOR]
Код:
[COLOR=#000000][FONT=Courier New][COLOR=#007700]{* [/COLOR][COLOR=#0000bb]RECENT BLOGS [/COLOR][/FONT][FONT=Courier New][COLOR=#007700]*}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]<[/COLOR][COLOR=#0000bb]div [/COLOR][COLOR=#007700]class=[/COLOR][COLOR=#dd0000]'portal_spacer'[/COLOR][COLOR=#007700]></[/COLOR][COLOR=#0000bb]div[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]<[/COLOR][COLOR=#0000bb]div [/COLOR][COLOR=#007700]class=[/COLOR][COLOR=#dd0000]'header'[/COLOR][COLOR=#007700]><[/COLOR][COLOR=#0000bb]img src[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"./images/icons/blog_blog16.gif"[/COLOR][COLOR=#007700]> [/COLOR][COLOR=#0000bb]Recent Blogs[/COLOR][COLOR=#007700]</[/COLOR][COLOR=#0000bb]div[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]<[/COLOR][COLOR=#0000bb]div [/COLOR][COLOR=#007700]class=[/COLOR][COLOR=#dd0000]'portal_content'[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]{[/COLOR][COLOR=#0000bb]section name[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]blogentry_loop loop[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$blogentries[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] <[/COLOR][COLOR=#0000bb]div style[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'font-weight: bold; font-size: 8pt;'[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] <[/COLOR][COLOR=#0000bb]img src[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"./images/icons/blog_blog16.gif" [/COLOR][COLOR=#007700]class=[/COLOR][COLOR=#dd0000]'button' [/COLOR][COLOR=#0000bb]style[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'float: left;'[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] <[/COLOR][COLOR=#0000bb]a href[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'{$url->url_create("blog_entry", $blogentries[blogentry_loop].blogentry_author->user_info.user_username, $blogentries[blogentry_loop].blogentry_id)}'[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] {[/COLOR][COLOR=#0000bb]$blogentries[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]blogentry_loop[/COLOR][COLOR=#007700]].[/COLOR][COLOR=#0000bb]blogentry_title[/COLOR][COLOR=#007700]|[/COLOR][COLOR=#0000bb]truncate[/COLOR][COLOR=#007700]:[/COLOR][COLOR=#0000bb]30[/COLOR][COLOR=#007700]:[/COLOR][COLOR=#dd0000]"..."[/COLOR][COLOR=#007700]:[/COLOR][COLOR=#0000bb]true[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] </[/COLOR][COLOR=#0000bb]a[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] </[/COLOR][COLOR=#0000bb]div[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] <[/COLOR][COLOR=#0000bb]div [/COLOR][COLOR=#007700]class=[/COLOR][COLOR=#dd0000]'blogs_browse_date'[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] {[/COLOR][COLOR=#0000bb]assign [/COLOR][COLOR=#007700]var=[/COLOR][COLOR=#dd0000]'blogentry_date' [/COLOR][COLOR=#0000bb]value[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$datetime[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]time_since[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$blogentries[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]blogentry_loop[/COLOR][COLOR=#007700]].[/COLOR][COLOR=#0000bb]blogentry_date[/COLOR][COLOR=#007700])}{[/COLOR][COLOR=#0000bb]capture assign[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"created"[/COLOR][COLOR=#007700]}{[/COLOR][COLOR=#0000bb]lang_sprintf id[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$blogentry_date[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]0[/COLOR][COLOR=#007700]] [/COLOR][COLOR=#0000bb]1[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$blogentry_date[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]1[/COLOR][COLOR=#007700]]}{/[/COLOR][COLOR=#0000bb]capture[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] {[/COLOR][COLOR=#0000bb]lang_sprintf id[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]1500039 1[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$created 2[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$url[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]url_create[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"profile"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$blogentries[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]blogentry_loop[/COLOR][COLOR=#007700]].[/COLOR][COLOR=#0000bb]blogentry_author[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]user_info[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]user_username[/COLOR][COLOR=#007700]) [/COLOR][COLOR=#0000bb]3[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$blogentries[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]blogentry_loop[/COLOR][COLOR=#007700]].[/COLOR][COLOR=#0000bb]blogentry_author[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]user_displayname[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] </[/COLOR][COLOR=#0000bb]div[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] {[/COLOR][COLOR=#0000bb]cycle name[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"blogret" [/COLOR][COLOR=#0000bb]values[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]",<div style='clear: both; height: 8px;'></div>"[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]{/[/COLOR][COLOR=#0000bb]section[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]</[/COLOR][COLOR=#0000bb]div[/COLOR][/FONT][COLOR=#007700][FONT=Courier New]> [/FONT][/COLOR]
[/COLOR]
Плагин "Группы"
Добавить в home.php
Код:
[COLOR=#000000][FONT=Courier New][COLOR=#ff8000]// RECENT GROUPS [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if(isset([/COLOR][COLOR=#0000bb]$_POST[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'p'[/COLOR][COLOR=#007700]])) { [/COLOR][COLOR=#0000bb]$p [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$_POST[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'p'[/COLOR][COLOR=#007700]]; } elseif(isset([/COLOR][COLOR=#0000bb]$_GET[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'p'[/COLOR][COLOR=#007700]])) { [/COLOR][COLOR=#0000bb]$p [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$_GET[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'p'[/COLOR][COLOR=#007700]]; } else { [/COLOR][COLOR=#0000bb]$p [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]1[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]; } [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if(isset([/COLOR][COLOR=#0000bb]$_POST[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'s'[/COLOR][COLOR=#007700]])) { [/COLOR][COLOR=#0000bb]$s [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$_POST[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'s'[/COLOR][COLOR=#007700]]; } elseif(isset([/COLOR][COLOR=#0000bb]$_GET[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'s'[/COLOR][COLOR=#007700]])) { [/COLOR][COLOR=#0000bb]$s [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$_GET[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'s'[/COLOR][COLOR=#007700]]; } else { [/COLOR][COLOR=#0000bb]$s [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#dd0000]"group_datecreated DESC"[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]; } [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if(isset([/COLOR][COLOR=#0000bb]$_POST[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'v'[/COLOR][COLOR=#007700]])) { [/COLOR][COLOR=#0000bb]$v [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$_POST[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'v'[/COLOR][COLOR=#007700]]; } elseif(isset([/COLOR][COLOR=#0000bb]$_GET[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'v'[/COLOR][COLOR=#007700]])) { [/COLOR][COLOR=#0000bb]$v [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$_GET[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'v'[/COLOR][COLOR=#007700]]; } else { [/COLOR][COLOR=#0000bb]$v [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]0[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]; } [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if(isset([/COLOR][COLOR=#0000bb]$_POST[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'c'[/COLOR][COLOR=#007700]])) { [/COLOR][COLOR=#0000bb]$c [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$_POST[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'c'[/COLOR][COLOR=#007700]]; } elseif(isset([/COLOR][COLOR=#0000bb]$_GET[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'c'[/COLOR][COLOR=#007700]])) { [/COLOR][COLOR=#0000bb]$c [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$_GET[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'c'[/COLOR][COLOR=#007700]]; } else { [/COLOR][COLOR=#0000bb]$c [/COLOR][COLOR=#007700]= -[/COLOR][COLOR=#0000bb]1[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]; } [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if(isset([/COLOR][COLOR=#0000bb]$_POST[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'group_search'[/COLOR][COLOR=#007700]])) { [/COLOR][COLOR=#0000bb]$group_search [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$_POST[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'group_search'[/COLOR][COLOR=#007700]]; } elseif(isset([/COLOR][COLOR=#0000bb]$_GET[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'c'[/COLOR][COLOR=#007700]])) { [/COLOR][COLOR=#0000bb]$group_search [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$_GET[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'group_search'[/COLOR][COLOR=#007700]]; } else { [/COLOR][COLOR=#0000bb]$c [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]NULL[/COLOR][/FONT][COLOR=#007700][FONT=Courier New]; } [/FONT][/COLOR]
[FONT=Courier New][COLOR=#ff8000]// ENSURE SORT/VIEW ARE VALID [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if([/COLOR][COLOR=#0000bb]$s [/COLOR][COLOR=#007700]!= [/COLOR][COLOR=#dd0000]"group_datecreated DESC" [/COLOR][COLOR=#007700]&& [/COLOR][COLOR=#0000bb]$s [/COLOR][COLOR=#007700]!= [/COLOR][COLOR=#dd0000]"group_views DESC" [/COLOR][COLOR=#007700]&& [/COLOR][COLOR=#0000bb]$s [/COLOR][COLOR=#007700]!= [/COLOR][COLOR=#dd0000]"total_comments DESC"[/COLOR][COLOR=#007700]) { [/COLOR][COLOR=#0000bb]$s [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#dd0000]"group_datecreated DESC"[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]; } [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if([/COLOR][COLOR=#0000bb]$v [/COLOR][COLOR=#007700]!= [/COLOR][COLOR=#dd0000]"0" [/COLOR][COLOR=#007700]&& [/COLOR][COLOR=#0000bb]$v [/COLOR][COLOR=#007700]!= [/COLOR][COLOR=#dd0000]"1"[/COLOR][COLOR=#007700]) { [/COLOR][COLOR=#0000bb]$v [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]0[/COLOR][/FONT][COLOR=#007700][FONT=Courier New]; } [/FONT][/COLOR]
[FONT=Courier New][COLOR=#ff8000]// SET WHERE CLAUSE [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$where [/COLOR][COLOR=#007700]= [/COLOR][/FONT][COLOR=#dd0000][FONT=Courier New]"CASE [/FONT][/COLOR]
[FONT=Courier New][COLOR=#dd0000] WHEN se_groups.group_user_id='{$user->user_info[user_id]}' [/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] THEN TRUE [/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] WHEN ((se_groups.group_privacy & @SE_PRIVACY_REGISTERED) AND '{$user->user_exists}'<>0) [/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] THEN TRUE [/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] WHEN ((se_groups.group_privacy & @SE_PRIVACY_ANONYMOUS) AND '{$user->user_exists}'=0) [/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] THEN TRUE [/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] WHEN ((se_groups.group_privacy & @SE_PRIVACY_FRIEND) AND (SELECT TRUE FROM se_friends WHERE friend_user_id1=se_groups.group_user_id AND friend_user_id2='{$user->user_info[user_id]}' AND friend_status='1' LIMIT 1)) [/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] THEN TRUE [/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] WHEN ((se_groups.group_privacy & @SE_PRIVACY_SUBNET) AND '{$user->user_exists}'<>0 AND (SELECT TRUE FROM se_users WHERE user_id=se_groups.group_user_id AND user_subnet_id='{$user->user_info[user_subnet_id]}' LIMIT 1)) [/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] THEN TRUE [/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] WHEN ((se_groups.group_privacy & @SE_PRIVACY_FRIEND2) AND (SELECT TRUE FROM se_friends AS friends_primary LEFT JOIN se_users ON friends_primary.friend_user_id1=se_users.user_id LEFT JOIN se_friends AS friends_secondary ON friends_primary.friend_user_id2=friends_secondary.friend_user_id1 WHERE friends_primary.friend_user_id1=se_groups.group_user_id AND friends_secondary.friend_user_id2='{$user->user_info[user_id]}' AND se_users.user_subnet_id='{$user->user_info[user_subnet_id]}' LIMIT 1)) [/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] THEN TRUE [/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] ELSE FALSE [/COLOR][/FONT]
[FONT=Courier New][COLOR=#dd0000] END"[/COLOR][/FONT][COLOR=#007700][FONT=Courier New]; [/FONT][/COLOR]
[FONT=Courier New][COLOR=#ff8000]// ONLY MY FRIENDS' BLOGS [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if( [/COLOR][COLOR=#0000bb]$v[/COLOR][COLOR=#007700]==[/COLOR][COLOR=#dd0000]"1" [/COLOR][COLOR=#007700]&& [/COLOR][COLOR=#0000bb]$user[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]user_exists [/COLOR][/FONT][COLOR=#007700][FONT=Courier New]) [/FONT][/COLOR]
[FONT=Courier New][COLOR=#007700]{ [/COLOR][/FONT]
[FONT=Courier New][COLOR=#ff8000]// SET WHERE CLAUSE [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$where [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#dd0000]" AND (SELECT TRUE FROM se_friends WHERE friend_user_id1={$user->user_info[user_id]} AND friend_user_id2=se_groups.group_user_id AND friend_status=1)"[/COLOR][/FONT][COLOR=#007700][FONT=Courier New]; [/FONT][/COLOR]
[FONT=Courier New][COLOR=#007700]} [/COLOR][/FONT]
[FONT=Courier New][COLOR=#ff8000]// CATEGORIES [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if( isset([/COLOR][COLOR=#0000bb]$c[/COLOR][COLOR=#007700]) && [/COLOR][COLOR=#0000bb]$c[/COLOR][COLOR=#007700]!=-[/COLOR][COLOR=#0000bb]1 [/COLOR][/FONT][FONT=Courier New][COLOR=#007700]) [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]{ [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]if( [/COLOR][COLOR=#0000bb]$c[/COLOR][COLOR=#007700]==[/COLOR][COLOR=#0000bb]0 [/COLOR][COLOR=#007700]) [/COLOR][COLOR=#0000bb]$c [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#dd0000]'0'[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]; [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$where [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#dd0000]" AND group_group_groupcat_id='$c'"[/COLOR][/FONT][COLOR=#007700][FONT=Courier New]; [/FONT][/COLOR]
[FONT=Courier New][COLOR=#007700]} [/COLOR][/FONT]
[FONT=Courier New][COLOR=#ff8000]// CREATE blog OBJECT [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$group [/COLOR][COLOR=#007700]= new [/COLOR][COLOR=#0000bb]se_group[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$user[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]user_info[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]user_id[/COLOR][/FONT][COLOR=#007700][FONT=Courier New]]); [/FONT][/COLOR]
[FONT=Courier New][COLOR=#ff8000]// GET TOTAL blogs [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$total_groups [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$group[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]group_total[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$where[/COLOR][/FONT][COLOR=#007700][FONT=Courier New]); [/FONT][/COLOR]
[FONT=Courier New][COLOR=#ff8000]// MAKE ENTRY PAGES [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$groups_per_page [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]4[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]; [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$page_vars [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]make_page[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$total_groups[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$groups_per_page[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$p[/COLOR][/FONT][COLOR=#007700][FONT=Courier New]); [/FONT][/COLOR]
[FONT=Courier New][COLOR=#ff8000]// GET blog ARRAY [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$group_array [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$group[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]group_list[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$page_vars[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]0[/COLOR][COLOR=#007700]], [/COLOR][COLOR=#0000bb]$groups_per_page[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$s[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$where[/COLOR][/FONT][COLOR=#007700][FONT=Courier New]); [/FONT][/COLOR]
[FONT=Courier New][COLOR=#ff8000]// ASSIGN SMARTY VARIABLES AND DISPLAY blogs PAGE [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'group'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$group[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'groupowner_info'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$groupowner_info[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'group_category'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$group_category[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'comments'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$comments[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'total_comments'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$total_comments[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'members'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$members[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'total_members'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$total_members[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'is_group_private'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$is_group_private[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'allowed_to_comment'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$allowed_to_comment[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'fields'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$group[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]group_fields[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'files'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$file_array[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'total_files'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$total_files[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'topics'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$topics[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'total_topics'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$total_topics[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'allowed_to_discuss'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$allowed_to_discuss[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'total_groups'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$total_groups[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign_by_ref[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'groups'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$group_array[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign_by_ref[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'groupcats'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$groupcats_array[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'group_search'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$group_search[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'p'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$page_vars[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]1[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'maxpage'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$page_vars[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]2[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'p_start'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$page_vars[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]0[/COLOR][COLOR=#007700]]+[/COLOR][COLOR=#0000bb]1[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'p_end'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$page_vars[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]0[/COLOR][COLOR=#007700]]+[/COLOR][COLOR=#0000bb]count[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$group_array[/COLOR][/FONT][FONT=Courier New][COLOR=#007700])); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'s'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$s[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'v'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$v[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]assign[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'c'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$c[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#ff8000]// RECENT GROUPS END [/COLOR][/FONT][/COLOR]
Код:
[COLOR=#000000][FONT=Courier New][COLOR=#007700]{* [/COLOR][COLOR=#0000bb]BEGIN [/COLOR][COLOR=#007700]NEW [/COLOR][COLOR=#0000bb]GROUPS [/COLOR][/FONT][FONT=Courier New][COLOR=#007700]*} [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]{if [/COLOR][COLOR=#0000bb]$total_groups [/COLOR][COLOR=#007700]!= [/COLOR][COLOR=#0000bb]0[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]} [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] <[/COLOR][COLOR=#0000bb]div [/COLOR][COLOR=#007700]class=[/COLOR][COLOR=#dd0000]'portal_spacer'[/COLOR][COLOR=#007700]></[/COLOR][COLOR=#0000bb]div[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]> [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] <[/COLOR][COLOR=#0000bb]div [/COLOR][COLOR=#007700]class=[/COLOR][COLOR=#dd0000]'header'[/COLOR][COLOR=#007700]>[/COLOR][COLOR=#0000bb]Recent Groups[/COLOR][COLOR=#007700]</[/COLOR][COLOR=#0000bb]div[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]> [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] <[/COLOR][COLOR=#0000bb]div [/COLOR][COLOR=#007700]class=[/COLOR][COLOR=#dd0000]'portal_content'[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]> [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]<[/COLOR][COLOR=#0000bb]table cellpadding[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'0' [/COLOR][COLOR=#0000bb]cellspacing[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'0' [/COLOR][COLOR=#0000bb]width[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'100%' [/COLOR][COLOR=#0000bb]style[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'margin-top: 1px;'[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]> [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]<[/COLOR][COLOR=#0000bb]tr[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]> [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]<[/COLOR][COLOR=#0000bb]td [/COLOR][COLOR=#007700]class=[/COLOR][COLOR=#dd0000]'portal_groups'[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]> [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] {[/COLOR][COLOR=#0000bb]section name[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]group_loop loop[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]$groups[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]} [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] <[/COLOR][COLOR=#0000bb]img src[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"./images/icons/group_group16.gif" [/COLOR][COLOR=#0000bb]border[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"0"[/COLOR][COLOR=#007700]> <[/COLOR][COLOR=#0000bb]a href[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]'group.php?group_id={$groups[group_loop].group->group_info.group_id}'[/COLOR][COLOR=#007700]><[/COLOR][COLOR=#0000bb]b[/COLOR][COLOR=#007700]>{[/COLOR][COLOR=#0000bb]$groups[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]group_loop[/COLOR][COLOR=#007700]].[/COLOR][COLOR=#0000bb]group[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]group_info[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]group_title[/COLOR][COLOR=#007700]}</[/COLOR][COLOR=#0000bb]a[/COLOR][COLOR=#007700]>{if ![/COLOR][COLOR=#0000bb]$smarty[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]section[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]group_loop[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]last[/COLOR][COLOR=#007700]}</[/COLOR][COLOR=#0000bb]b[/COLOR][COLOR=#007700]><[/COLOR][COLOR=#0000bb]br[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]>{/if} [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700] {/[/COLOR][COLOR=#0000bb]section[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]} [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]</[/COLOR][COLOR=#0000bb]td[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]> [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]</[/COLOR][COLOR=#0000bb]tr[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]> [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]</[/COLOR][COLOR=#0000bb]table[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]> [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]{/if} [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]</[/COLOR][COLOR=#0000bb]div[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]> [/COLOR][/FONT]
[FONT=Courier New][COLOR=#007700]{* [/COLOR][COLOR=#0000bb]END GROUPS [/COLOR][/FONT][COLOR=#007700][FONT=Courier New]*} [/FONT][/COLOR]
[/COLOR]