Перейти к публикации
View in the app

A better way to browse. Learn more.

Дизайн и модификация Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Настройка и оптимизация IPB 3.2.2 + Gallery + Blogs.

Опубликовано:

Требуется настройка, оптимизация и последующая кастомизация форума 3.2.2 с установленными компонентами Галерея и Блоги.

 

Форум высокотрафиковый на 3М постов. Англоязычный.

 

Примеры проектов:

- создать/поменять информеры (инфоблоки меню)

- написать информер для главной страницы сайта

- настроить/оптимизировать сфинкс

- настроить переадресацию через mod_rewrite

- подправить дизаин с перемещением пунктов меню

- поиск и установка модулей по целевому запросу (например, регистрация/авторизация через соцсети)

 

Спасибо за отклики с описанием опыта и примерами работ.

Всеволод.

Рекомендованные сообщения

Опубликовано:
  • Автор

Проект: Кнопка "свернуть меню"

 

Пример: http://www.acne.org/messageboard_bc/ (левый верхний угол)

Имплементация для 3.2.2 сюда: http://www.acne.org/messageboard

Задача: сворачивание всего меню сайта, чтобы оставалось только меню форума. При этом страница должна запоминать через кеш настройку пользователя и "помнить" его выбор.

Срок: Актуально до 8 октября 2011 г.

Оплата: 30 WMZ.

 

Перед тем как приступите к работе, пож. свяжитесь vsevolodts@gmail.com

Опубликовано:
  • Автор

Проект: Кнопка "свернуть меню"

 

Выполнено.

 

Решение

 

function getCookie(c_name)
{
var i,x,y,ARRcookies=document.cookie.split(";");
for (i=0;i<ARRcookies.length;i++)
 {
 x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
 y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
 x=x.replace(/^\s+|\s+$/g,"");
 if (x==c_name)
   {
   return unescape(y);
   }
 }
}

function setCookie(c_name,value,exdays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate() + exdays);
var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
document.cookie=c_name + "=" + c_value;
}

function checkCookie()
{
var headerde = document.getElementById('headerd');
var ahide = document.getElementById('ahide');
var bhide = document.getElementById('bhide');
var headerd=getCookie("headerd");
if (headerd=="0")
 {
 headerde.style.display = 'none';
 ahide.style.display = 'none';
 bhide.style.display = '';
 }
else 
 {
headerde.style.display = '';
ahide.style.display = '';
bhide.style.display = 'none';
 }
};

function close_header(id) {
var headerde = document.getElementById('headerd');
var ahide = document.getElementById('ahide');
var bhide = document.getElementById('bhide');
headerde.style.display = 'none';
ahide.style.display = 'none';
bhide.style.display = '';
setCookie("headerd",0,365);
};

function open_header(id) {
var headerde = document.getElementById('headerd');
var ahide = document.getElementById('ahide');
var bhide = document.getElementById('bhide');
headerde.style.display = '';
ahide.style.display = '';
bhide.style.display = 'none';
setCookie("headerd",1,365);
};

 

headerd - id элемента, который надо скрыть

ahide/bhide - id кнопок свернуть/развернуть соответственно

 

 

 

Опубликовано:
  • Автор

Чуть не забыл

 

<body onload="checkCookie()">

Создайте аккаунт или войдите в него для комментирования

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.