Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
links only for selected usergroups Details »»
links only for selected usergroups
Version: 1.01, by luroca luroca is offline
Developer Last Online: Feb 2015 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 10-27-2005 Last Update: 10-29-2005 Installs: 7
Uses Plugins
 
No support by the author.

Please, excuse my poor English, I post mostly with a online translator.

This simple hack allows to post links to websites only to selected usegroups.
Naturally, you must edit the plugin to set your authorized usergroups.
Example:
If the user is of a authorized usergroup, in the post it appears this:
www.vbulletin.com/forum

If he is not authorized, it appears:
NO_LINK

If this hack exists, sorry but I don?t find it.
Thanks to MioTraGusa for his aportation.

Don?t be timid, click Install

Please, feel free to improve and correct this hack.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 10-30-2005, 09:52 AM
Marv Marv is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 372
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by luroca
A plugin for not registered (and so) can not see links? It looks easy, I work in it.
Something is messing up - I setup all the usergroups which should see links but whatever I do links don?t show up for any of the specified groups.

Used code :
PHP Code:
<?xml version="1.0" encoding="ISO-8859-1"?>

<plugins>
    <plugin active="1" product="vbulletin">
        <title>No links</title>
        <hookname>postbit_display_complete</hookname>
        <phpcode><![CDATA[if (!is_member_of($post, 2, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 ,19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42))
{
$this->post['message'] = ereg_replace('(http|www)([[:alnum:]/\n+-=%&:_.~?]+[#[:alnum:]+]*>)', '</a>(<a href="http://www.domain.tld/register.php" title="Please register first or login!" target="_blank">No link ?</a>)', $this->post['message']);
}]]></phpcode>
    </plugin>
</plugins>
Should work, or ?
Reply With Quote
  #13  
Old 10-30-2005, 09:58 AM
Marv Marv is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 372
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Btw: a little enhancement:

PHP Code:
$this->post['message'] = ereg_replace('(http|www)([[:alnum:]/\n+-=%&:_.~?]+[#[:alnum:]+]*>)''</a>(<a href="http://www.domain.tld/register.php" title="Please register first or login!" target="_blank">No link ?</a>)'$this->post['message']); 
will show the unregistered users the best way of getting rid of the "No Links" problem


With your permission, luroca, I attach an updated xml in here. Please remember to deinstall the original xml before using this one or for some reasons the changes are not updated in your forums.
Reply With Quote
  #14  
Old 10-30-2005, 10:53 AM
luroca luroca is offline
 
Join Date: Jul 2002
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You don´t need my permission to post modifications but the only change I see in your version it´s that instead of NO_LINK message you put your own customized message :surprised:
Reply With Quote
  #15  
Old 10-30-2005, 11:00 AM
Marv Marv is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 372
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by luroca
You don?t need my permission to post modifications but the only change I see in your version it?s that instead of NO_LINK message you put your own customized message :surprised:
Sure, beside that the hack won?t work as mentioned two posts before - and I have no glue why.

On the other side, I?ve tried to work with
PHP Code:
<phpcode><![CDATA[if (is_member_of($post, ... 
which I?m pretty sure should reverse the !is_member_of statement. But still no go - any ideas ?
Reply With Quote
  #16  
Old 10-30-2005, 11:03 AM
luroca luroca is offline
 
Join Date: Jul 2002
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Marv
Something is messing up - I setup all the usergroups which should see links but whatever I do links don?t show up for any of the specified groups.
Sorry, I am not sure of understand well, this hack if for not to post links, not for not to see links.
Quote:
Originally Posted by Marv
if (!is_member_of($post, 2, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 ,19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42))
I don?t know if this is important but it must be 18, 19, 20, not 18 ,19, 20,

Regards
Reply With Quote
  #17  
Old 10-30-2005, 12:01 PM
board.trash board.trash is offline
 
Join Date: Aug 2005
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello, is it possible this plugin to activate also in archives?

if yes, i will click Install
Reply With Quote
  #18  
Old 10-30-2005, 12:52 PM
luroca luroca is offline
 
Join Date: Jul 2002
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello, I have disabled the archive for the same usegroups that cannot post links, but I´ll see if possible.
Reply With Quote
  #19  
Old 10-30-2005, 01:32 PM
board.trash board.trash is offline
 
Join Date: Aug 2005
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by luroca
but I?ll see if possible.
oh thats great, can u update your plugin pls ?

thank you very much !
Reply With Quote
  #20  
Old 10-30-2005, 01:38 PM
MioTraGusa's Avatar
MioTraGusa MioTraGusa is offline
 
Join Date: Oct 2005
Location: Espa?a
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok nice hack anti-spam , but if one unregistered post this:
Code:
www.test.com
http://www.test.com
http://test.com
WWW.TEST.COM
http://WWW.TEST.COM
HTTP://WWW.TEST.COM
HTTP://www.test.com
HTTP://test.com
in the post a can see:

Code:
(No link ?)
(No link ?)
(No link ?)
WWW.TEST.COM
(No link ?)
HTTP://WWW.TEST.COM
HTTP://(No link ?)
HTTP://test.com
CAPITAL-LETTERS don?t work

one little change is proposed

change:
Code:
ereg_replace
for:
Code:
eregi_replace
upss..

the result
Code:
(No link ?)
(No link ?)
(No link ?)
(No link ?)
(No link ?)
(No link ?)
(No link ?)
(No link ?)
bye... Sorry for my english
Reply With Quote
  #21  
Old 10-30-2005, 01:57 PM
luroca luroca is offline
 
Join Date: Jul 2002
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, MioTraGusa, updated the xml.
Quote:
Originally Posted by MioTraGusa
Sorry for my english
It?s better than mine
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 08:38 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06054 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (3)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete