Username:
Password:
 Log me on automatically each visit
 
Aeroion.Ru
Форумы сервера Aeroion.Ru
Welcome

Aeroion.Ru Forum Index
  » Технические форумы
   » Поддержка и моды для phpBB2
    » Мод Pop-up links directly to new pms
   изменение ссылки во всплывающем окне и в заголовке форума при новом личном сообщении
printer-friendly view
AuthorМод Pop-up links directly to new pms
Sergey Gender:Male


Местный босс - администратор


Joined: 06 Jan 2005
Location: Оренбург
Posts: 1127
Last Visited: Today at 01:43
Кредиты: 3594
Reputation: 47
Age: 41
Zodiac: Aquarius Pig

Описание мода: Мод изменяет ссылку во всплывающем окне и в заголовке форума, если у вас есть одно новое личное сообщение - вместо папки "Входящие" она будет вести непосредственно на сообщение. При нескольких личных сообщениях ссылка не меняется. Мод содержит адд-он к моду Open Inbox in a new window
Версия мода: 1.0.2
Совместимая версия phpBB: 2.0.x
Cложность установки: Легко
Время, необходимое для установки: ~5 минут


Скриншот
вид всплывающего окна
Thumbnail, click to enlarge.


Code:
###################################################
## MOD Title: Pop-up links directly to new pms
## MOD Author: Sergey < garnitur356 [at] mail15.com > http://forum.aeroion.ru
## MOD Description: This changes the pop-up window and the header of your forum that notifies a user of a new pm so that the link in the pop-up window or in the header of your forum
##            goes directly to the pm rather than merely to the pm inbox.
##            At several personal messages the reference does not vary.
## Compatibility: 2.0.x
## MOD Version: 1.0.2
##
## Installation Level: Easy
## Installation Time:  ~5 Minutes
## Files To Edit: (4)
##            privmsg.php
##            includes/page_header.php
##            language/lang_english/lang_main.php
##            language/lang_russian/lang_main.php
##             
## Included Files: n/a
##################################################
## For Security Purposes, Please Check: http://forum.aeroion.ru/forum1.html for the
## latest version of this MOD.
###################################################
## MOD History:
##
##   2005-12-14 - Version 1.0.1
##      - Fixing for Firefox
##   2005-11-09 - Version 1.0.0
##      - initial version
###################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
###################################################


Download pop_up_links_directly_to_new_pms.zip (3.96 KB). Added/Updated Sat 14 Aug, 2010 21:55. Downloaded 87 Time(s).
Изменение ссылки во всплывающем окне при новом личном сообщении


_________________
Профессионал - это тот же дилетант, только знающий где ошибется. Генератор db_update.php для phpBB2 с некоторыми удобствами.
Как ставить моды. Что такое [SQL] и с чем его едят | Как правильно задавать вопросы и получать адекватные ответы | Правила форума
Бесплатная техподдержка только на форуме! Не надо стучаться в аську, слать емайлы, пытаться писать в приват. Спасибо за понимание.
Please do not PM, ICQ or email me for support help - you won't get any reply. If you have a question or issue, post it in the appropriate forum/topic. Thanks!
Back to topOffline View user's profile Skype Name
vlad77 Gender:Male

Модератор


Joined: 15 Mar 2008
Location: Москва
Posts: 170
Last Visited: Yesterday at 00:37
Кредиты: 1707
Reputation: 4


Мод работает только в иексплорере. Проверялось на локалхосте, совместно с модом "Open Inbox in a new window".
Back to topOffline View user's profile
Sergey Gender:Male


Местный босс - администратор


Joined: 06 Jan 2005
Location: Оренбург
Posts: 1127
Last Visited: Today at 01:43
Кредиты: 3594
Reputation: 47
Age: 41
Zodiac: Aquarius Pig

Сказать в чём выражается нерабочесть в Опере или FF, нам религия не позволяет?

Добавлено спустя 1 час 47 минут 46 секунд:

Теперь работает не только в иексплорере. Проверялось на локалхосте, совместно с модом "Open Inbox in a new window".

Для обоих вариантов.
Code:
#
#-----[ OPEN ]----------------------------------------
#
privmsg.php

#
#-----[ FIND ]----------------------------------------
#
                $privmsg_id = $db->sql_fetchrow($result);
                $privmsg_id = $privmsgs_id['privmsgs_id'];

#
#-----[ REPLACE WITH ]-------------------------------------
#
                $row = $db->sql_fetchrow($result);
                $privmsg_id = $row['privmsgs_id'];

#
#-----[ FIND ]----------------------------------------
#
            $template->assign_vars(array(
                'U_PRIVATEMSGS' => $u_message)

#
#-----[ REPLACE WITH ]-------------------------------------
#
            $u_message_js = append_sid("privmsg.$phpEx?folder=inbox&mode=read&" . POST_POST_URL . "=$privmsg_id");
            $template->assign_vars(array(
                'U_PRIVATEMSGS' => $u_message_js) 

_________________
Профессионал - это тот же дилетант, только знающий где ошибется. Генератор db_update.php для phpBB2 с некоторыми удобствами.
Как ставить моды. Что такое [SQL] и с чем его едят | Как правильно задавать вопросы и получать адекватные ответы | Правила форума
Бесплатная техподдержка только на форуме! Не надо стучаться в аську, слать емайлы, пытаться писать в приват. Спасибо за понимание.
Please do not PM, ICQ or email me for support help - you won't get any reply. If you have a question or issue, post it in the appropriate forum/topic. Thanks!
Back to topOffline View user's profile Skype Name
vlad77 Gender:Male

Модератор


Joined: 15 Mar 2008
Location: Москва
Posts: 170
Last Visited: Yesterday at 00:37
Кредиты: 1707
Reputation: 4


Спасибо, теперь все работает.

Неработоспособность была в том, что в опере и в мозилле, когда было одно личное сообщение, ссылка вела не непоследственно на сообщение, а на папку "входящие".
Back to topOffline View user's profile
Display posts from previous:   

Summary Rating For >> Мод Pop-up links directly to new pms
Average Rating: 0.00 :: Min Rating: 0 :: Max Rating: 0 :: Number of Ratings: 0
Choose Rating: 1   2   3   4   5  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Sticky: Локализация (русификация) и FAQ по ph...
Ссылки по Олимпусу, ответы на частоза...
Sergey Поддержка и моды для phpBB3 0 Wed 03 Mar, 2010 23:35 View latest post
Sergey
No new posts [RC] Simple opening external links in...
открытие внешних ссылок в новом окне
Sergey Поддержка и моды для phpBB3 0 Mon 07 Mar, 2011 23:39 View latest post
Sergey
No new posts Мод Links Hack - проблемы Dedof Поддержка и моды для phpBB2 2 Sat 21 Feb, 2009 22:58 View latest post
Dedof
No new posts Мод Points System add-on: Edit User's...
изменение количества пойнтов админист...
Sergey Поддержка и моды для phpBB2 0 Tue 08 Nov, 2005 15:46 View latest post
Sergey
No new posts Mod Change style message
изменение стиля сообщения в зависимос...
Sergey Поддержка и моды для phpBB2 14 Sun 28 Feb, 2010 22:35 View latest post
Corsar




All times are UTC + 3 Hours
All times are synchronized with the forum server time
Users browsing this topic:
Registered Users: None

Jump to:   
printer-friendly view
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum