форум vBSupport.ru > vBulletin > Old vB versions (3.0.x & 2.x.x) > vBulletin 3.5.x > Hacks, mods and scripts [3.5.x]
  • »
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
 
 
 
 
КотЪ
Администратор
Неадекватный
 
КотЪ's Avatar
Default Иконка - линк на новые сообщения для выбранного раздела
2

Open forumhome_forumbit_levelX_post. In my example, I am using forumhome_forumbit_level2_post.

Find:

HTML Code:
Code:
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" />
Replace with:

HTML Code:
Code:
<if condition="$forum[statusicon]=='new'">
	  <a href="search.php?do=getnew&include=$forum[forumid]"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></a>
	<else />
	  <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></a>
	</if>
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
Profess1on
Продвинутый
Default
0

Ну, собственно. Я ни чего нового не вижу.
КотЪ, что должно быть то?
Иконка не меняется.
 
 
Phantom
Знаток
 
Phantom's Avatar
Default
0

Profess1on, она не должна меняться!

В случае если иконка раздела forum_new.gif, то, например, срабатывает ссылка
http://localhost/vb352/search.php?searchid=5
а не
http://localhost/vb352/forumdisplay.php?f=6

т.е. будут отображены темы, в которых есть новые сообщения!
 
 
ViolentOr
АнтиГуру
Default
0

Phantom, не-а... не верно.. или в название, или в код глнь ;-) Сработает ссылка:
http://localhost/vb352/search.php?do=getnew&include=5
 
 
Phantom
Знаток
 
Phantom's Avatar
Default
0

ViolentOr, мысль верная!

Копи/пасте страдает...
 
 
malegik
Продвинутый
 
malegik's Avatar
Default
0

из разряда мастхэв. спасибо!
 


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 11:00 AM.


Powered by vBulletin® Version 3.5.9
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Loading...