форум vBSupport.ru > vBulletin > vBulletin 3.8.x > Вопросы по vBulletin 3.8
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'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота.
Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
 
 
 
 
DrCustUmz
Знаток
 
DrCustUmz's Avatar
Default append variable after links in post and a couple other things
0

on the hook
Code:
parse postbit
i have
Code:
$this->post['message'] = str_replace('href="', 'href="./out.php?link=', $this->post['message']);
$this->post['signature'] = str_replace('href="', 'href="./out.php?link=', $this->post['signature']);
this causes issues with images, if lightbox is enabled, how can i make it not effect attachments.
image attachments view source:
Code:
<a href="./out.php?link=http://drcustumz.me/attachment.php?attachmentid=1&amp;d=1458494540" rel="Lightbox_8" id="attachment1"><img src="http://drcustumz.me/attachment.php?attachmentid=1&amp;thumb=1&amp;d=1458494540" class="thumbnail" border="0" alt="Click image for larger version

Name:	IMG_0406.PNG
Views:	9
Size:	95.7 KB
ID:	1" style="margin: 2px" title="Click image for larger version

Name:	IMG_0406.PNG
Views:	9
Size:	95.7 KB
ID:	1"></a>
dont apply RED CODE if BLUE CODE exists

but the main thing I need is to add a variable after a link, like so:
<a href="http://google.com">google</a>($myVariable)

so anytime a link is posted $myVariable will come after it in all posts after every link.

so again in
Code:
parse postbit
i add:
PHP Code:
$this->post['message'] = str_replace('href="''href="./out.php?link='$this->post['message']);
$this->post['signature'] = str_replace('href="''href="./out.php?link='$this->post['signature']);

$drclf $vbulletin->db->query_first("
  SELECT SUM(hits) AS hits
  FROM " 
TABLE_PREFIX "redirect
  WHERE url = '
$drc_url'
"
); 
but I dont know how to make it show $drclf after every link
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
kerk
k0t
 
kerk's Avatar
Default
1

do not do this in postbits
it caused huge sql queries

is better do changes in vbulletin bbcode parser
function => handle_bbcode_url()
look this thread http://vbsupport.ru/forum/showthread.php?t=34549 as an example to do what you need
 
 
DrCustUmz
Знаток
 
DrCustUmz's Avatar
Default
0

thanks kerk, but that's not exactly what I'm trying to do. It did help with my img problem though =)
I'll post a new thread better explaining.
 


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:04 PM.


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