форум vBSupport.ru > vBulletin > Вопрос — Ответ
Register Меню vBsupport Изображения Files Manager О рекламе Today's Posts Search
  • Родная гавань
  • Блок РКН снят
  • Premoderation
  • For English speaking users
  • Каталог Фрилансеров
  • If you want to buy some product or script
  • Администраторам
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
Блок РКН снят, форум доступен на всей территории России, включая новые терртории, без VPN
На форуме введена премодерация ВСЕХ новых пользователей

Почта с временных сервисов, типа mailinator.com, gawab.com и/или прочих, которые предоставляют временный почтовый ящик без регистрации и/или почтовый ящик для рассылки спама, отслеживается и блокируется, а так же заносится в спам-блок форума, аккаунты удаляются
for English speaking users:
You may be surprised with restriction of access to the attachments of the forum. The reason is the recent change in vbsupport.org strategy:

- users with reputation < 10 belong to "simple_users" users' group
- if your reputation > 10 then administrator (kerk, Luvilla) can decide to move you into an "improved" group, but only manually

Main idea is to increase motivation of community members to share their ideas and willingness to support to each other. You may write an article for the subject where you are good enough, you may answer questions, you may share vbulletin.com/org content with vbsupport.org users, receiving "thanks" equal your reputation points. We should not only consume, we should produce something.

- you may:
* increase your reputation (doing something useful for another members of community) and being improved
* purchase temporary access to the improved category:
10 $ for 3 months. - this group can download attachments, reputation/posts do not matter.
20 $ for 3 months. - this group can download attachments, reputation/posts do not matter + adds eliminated + Inbox capacity increased + files manager increased permissions.

Please contact kerk or Luvilla regarding payments.

Important!:
- if your reputation will become less then 0, you will be moved into "simple_users" users' group automatically.*
*for temporary groups (pre-paid for 3 months) reputation/posts do not matter.
Уважаемые пользователи!

На форуме открыт новый раздел "Каталог фрилансеров"

и отдельный раздел для платных заказов "Куплю/Закажу"

Если вы хотите приобрести какой то скрипт/продукт/хак из каталогов перечисленных ниже:
Каталог модулей/хаков
Ещё раз обращаем Ваше внимание: всё, что Вы скачиваете и устанавливаете на свой форум, Вы устанавливаете исключительно на свой страх и риск.
Сообщество vBSupport'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота.
Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
 
 
 
 
TheRain
Продвинутый
Default Кто где
0

Поставил Flash Chat, так тепреь в окне "Кто на форуме" пишет "Неизвестное месторасположение". Как бы поправить эту штуку?
Заранее благодарен.
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
TheRain
Продвинутый
Default
0

Люди!!! Клянусь весь форум излазил в поисках солюшена. Один раз только встретил такую же проблему у человека, да и то отправляют в поисках. Ну нету на форуме решения... Может я совсем слепой. На буржуйском формуе ответ есть, но я не могу его прочесть, т.к. номер лицензии просит для показа блоков с кодом. Помогите!!! Не бросайте в беде!!!
 
 
stamina
Знаток
 
stamina's Avatar
Default
0

Ссылку на пост...
 
 
TheRain
Продвинутый
Default
0

http://www.vbulletin.org/forum/showp...48&postcount=4 - не вижу кода
http://www.vbulletin.org/forum/showthread.php?t=82882 - и здесь тоже не вижу.
Насколько я вообще понял, это все одно и тоже решение вопроса, который я задал в первом посте.
 
 
stamina
Знаток
 
stamina's Avatar
Default
1

Find:
Code:
case 'bugs':
$userinfo['action'] = construct_phrase($vbphrase['viewing_x'], 'Bugs'); // Don't report 'bugs' as needing to be translated please :p
break;
After Add:
Code:
case 'yourpage': 
            $userinfo['action'] = 'Viewing Yourpage';
$userinfo['where'] = "<a href=\"yourpage.php?$session[sessionurl]\">Yourpage</a>";
break;
Find:
Code:
case 'bugs.php':
$userinfo['activity'] = 'bugs';
break;
After Add:
Code:
case 'yourpage.php': 
        $userinfo['activity'] = 'yourpage'; 
        break;
Just change were you see "yourpage" with the page name of your page instead.

добавлено через 54 секунды
I'd like to suggest we follow the the way we did this in the past for the most part. We usually hacked into the two switch statements in the functions_online.php file. So staying with that convention, we can all easily coexist in the two necessary plugins will we need to use to accomplish this.

Why did I say coexist? Well based on this thread, multiple use of hooks, it seems it would be best to share a common plugin to a given hook location for now. That is if I understand it correctly.

So moving right along, this will help you create WOL plugins for your custom pages either way. If we all share a plugin or if we get a system that manages multiple plugins to a given hook, this should be a good example to follow when you need to display custom addin page WOL information.

There are two hook locations we need to add plugins to:
vBulletin : Who's Online? -> online_location_process
vBulletin : Who's Online? -> online_location_unknown

Add the online_location_process hook plugin...
Hook Location: online_location_process
Name: WOL Online Location Process
Active: YES
Code:

PHP Code:
PHP Code:
if($filename=='YOUR_ADDIN_FILE.php'){$userinfo['activity'] = 'YOUR_ACTIVITY';} 


Add the online_location_unknown hook plugin...
Hook Location: online_location_unknown
Name: WOL Online Location Unknown
Active: YES
Code:

PHP Code:
PHP Code:
if($userinfo['activity']=='YOUR_ACTIVITY'

    
$userinfo['where'] = '<a href="YOUR_ADDIN_FILE.php?'.$vbulletin->session->vars[sessionurl].'">'.$vbulletin->options[bbtitle].' YOUR_ACTIVITY</a>';  
    
$userinfo['action'] = 'YOUR_ACTIVITY'
    
$handled true



Following this convention should allow us to coexist in one plugin for each of those hooks or create good plugins for those hooks, either way.

I hope this is in the spirit of the howto forum and will be useful.

Regards
Думаю теперь все будет понятно...

Last edited by stamina : 04-03-2006 at 08:35 AM. Reason: Добавлено сообщение
 
 
TheRain
Продвинутый
Default
0

Благодарствую премного. Пошел разбираться.
 
 
arrival
Простоузер
Default
0

а если у меян вот так

/gallery/showimage.php?i=540&c=31

мне как надо правильно прописать

$userinfo['where'] = "<a href=\"yourpage.php?$session[sessionurl]\">Yourpage</a>";

?
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 04:00 PM.


Powered by vBulletin® Version Frozen Edition
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.