vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Apply "rel=nofollow" attribute to all parsed URLs (https://vborg.vbsupport.ru/showthread.php?t=93780)

vbl 07-23-2007 08:58 AM

unfortunately doesnt work for me @3.6.7PL1
i think there is something wrong with the condition

if (is_member_of($post, 5, 6, 7) OR $post['posts'] > 50)

^^ seems somehow wrong...?? $post[dont_we_need_some_group_entry_here?]
anyone any idea?

vwdforum 07-23-2007 09:56 AM

Added this to www.vwdforum.com

works, (when I check "view source code") however also for internal links. Anyone found a solution yet?

Gharibe 01-09-2008 02:23 PM

Do Not Work

kall 01-09-2008 07:51 PM

That's probably not a good idea, working can be useful to bring food into the house, and keep the house paid for. I work.

Dave Hawley 01-09-2008 10:11 PM

Quote:

Originally Posted by Gharibe (Post 1418381)
Do Not Work

Ok, you choose not to, but as stated above, it has its rewards :)

clasione 01-13-2008 12:05 PM

I'm running three forums where this works in some instances and not in others.... I have already checked and double checked my user group id numbers to make sure there are not any regular users comming up in groups 5, 6, or 7 but I still find that in some instances the added no follow works on posts and signatures but some instances it just doesn't.... A user will have 3 posts and it will not add the nofollow....

I have tryed all the forums and it works in some places and it doesn't.. Also visiting posts I haven't viewed in a long time to rule out page cache. Can't figure it out.

RaZor Edge 02-19-2008 05:06 AM

I'm using this code on 3.6.8 and it's running fine.

As I want this to work with every user exept my staff, I have removed the part with number of post.

Here's what I am using:

Code:

$this->tag_list['no_option']['url']['callback'] = 'handle_external';
$this->tag_list['no_option']['url']['external_callback'] = 'handle_bbcode_url_relnofollow';
$this->tag_list['option']['url']['callback'] = 'handle_external';
$this->tag_list['option']['url']['external_callback'] = 'handle_bbcode_url_relnofollow';
if (!function_exists('handle_bbcode_url_relnofollow'))
{
    function handle_bbcode_url_relnofollow($parser, $text, $link)
    {
        global $post;
        // Excempt Mods+ and Users with mor then 50 Posts
        $parsedurl = $parser->handle_bbcode_url($text, $link);
        if (is_member_of(5, 6, 36))
        {
            return $parsedurl;
        }
        else
        {
            return str_replace('href="', 'rel="nofollow" href="', $parsedurl);
        }
    }
}


myown 05-13-2008 11:54 AM

what about 3.7 Gold any idea ?

oldengine 06-13-2008 04:39 PM

It appears to be working in mine.

oldengine 06-22-2008 03:45 PM

Quote:

Originally Posted by clasione (Post 1420612)
I have tryed all the forums and it works in some places and it doesn't.. Also visiting posts I haven't viewed in a long time to rule out page cache. Can't figure it out.

Don't over look that you need to go to Admin > Maintenance > Update Counters
and run "Rebuild Post Cache" and "Empty Signature Cache" to rebuild all those links.

A whitelist ability for your own forum's domain name would be an excellent add-on to this mod.


All times are GMT. The time now is 04:24 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01275 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete