Disable website link in profile until certain post count

Discussions about the phpBB3 Forum. How to get the best from this powerful script.
Note that there is no official support for phpBB3 here, a place to share more than to ask for.

Moderator: Moderators

Disable website link in profile until certain post count

Postby BlindDragon » Thu Jul 16, 2009 3:43 pm

Hi guys,

I always get the best answers here about anything phpbb related. I prefer asking here to phpbb.com

Basically we are looking to disable users from adding a link to their website in their profile until they achieve 2 posts (reason being - if any bots get passed - I dont want them linking to some filthy site.)

We also wanted to see if we could filter the website links to exclude certain foul words.

Thanks in advance for any suggestions

-Justin
User avatar
BlindDragon
 
Posts: 36
Joined: Thu Jan 08, 2009 12:57 pm
Location: Florida

Advertisement

Re: Disable website link in profile until certain post count

Postby dcz » Fri Jul 17, 2009 8:22 am

Open viewtopic.php, find :
Code: Select all
      'U_WWW'         => $user_cache[$poster_id]['www'],


Replace with :
Code: Select all
      'U_WWW'         => $user_cache[$poster_id]['posts'] > 2 ? $user_cache[$poster_id]['www'] : '',


Open memberlist.php, find :
Code: Select all
      'U_WWW'         => (!empty($data['user_website'])) ? $data['user_website'] : '',


Replace with :
Code: Select all
      'U_WWW'         => (!empty($data['user_website']) && $data['user_posts'] > 2) ? $data['user_website'] : '',


Note that you can replace the "2" with whatever number of post to reach before links can be displayed, on phpBB SEO it's 49 ;)
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21378
Joined: Fri Apr 28, 2006 9:03 pm

Re: Disable website link in profile until certain post count

Postby yaashul » Fri Jul 24, 2009 6:40 pm

Can we disable Custom profile field till x no of post? Is yes how?

Is there any way we can show this information on profile page to those users who are trying to view their own profile with less than x no of post that this information will be visible after x no of post?
yaashul
PR1
PR1
 
Posts: 158
Joined: Wed Aug 29, 2007 1:21 am

Re: Disable website link in profile until certain post count

Postby dcz » Sat Jul 25, 2009 12:01 pm

Well everything is possible, but dealing with custom profile fields is not as easy as just preventing some regular profile info to show up before x posts.

Isn't there a mod to do what you want already ?
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21378
Joined: Fri Apr 28, 2006 9:03 pm

Re: Disable website link in profile until certain post count

Postby mbahsurip » Sat Jul 25, 2009 6:11 pm

thanks a lot.. its very nice for me :)

Regards.
mbahsurip
 
Posts: 9
Joined: Sun Jul 19, 2009 9:55 pm
Location: My Slepppy Room

Re: Disable website link in profile until certain post count

Postby BlindDragon » Thu Jul 30, 2009 10:50 pm

dcz just getting around to this now. Thanks!

Just wanted to say how thankful I am that I found you guys
User avatar
BlindDragon
 
Posts: 36
Joined: Thu Jan 08, 2009 12:57 pm
Location: Florida

Re: Disable website link in profile until certain post count

Postby dcz » Mon Aug 03, 2009 12:12 pm

Hey no problem, you're welcome ;)

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21378
Joined: Fri Apr 28, 2006 9:03 pm

Re: Disable website link in profile until certain post count

Postby AmigoPerson » Fri Dec 30, 2011 7:26 pm

I was looking for this (lot's of mods have lot's option which are unnecessary for me). Is it still working for phpbb 3.0.9?
Another question: is a possibility, that new registered users are allowed to add their website, but that website will be visible in their profile after 2 post? I thing it's much better for true users. After registering most of users fill their profile, so disallow them to add their website will be repulsive. So in my idea, user fills his profile with website, but it will be shown in profile (so backlink for him) after he write 2 post.
Only this doesn't work:
dcz wrote:Open viewtopic.php, find :
Code: Select all
'U_WWW'         => $user_cache[$poster_id]['www'],

Replace with :
Code: Select all
'U_WWW'         => $user_cache[$poster_id]['posts'] > 2 ? $user_cache[$poster_id]['www'] : '',

Thank you.
AmigoPerson
 
Posts: 3
Joined: Fri Dec 30, 2011 7:04 pm

Re: Disable website link in profile until certain post count

Postby Stephen26 » Fri Dec 30, 2011 7:42 pm

Adding the nofollow attribute is also an effective way of preventing spammers from registering, adding a website to their user profile and then make some random post to get a dofollow link: Nofollow in user Website
I install and configure phpBB-SEO (and other mods) for a fair price and very fast. If you are interested simply send me a private message.
Stephen26
phpBB SEO Team
phpBB SEO Team
 
Posts: 427
Joined: Mon May 03, 2010 7:06 am

Re: Disable website link in profile until certain post count

Postby AmigoPerson » Fri Dec 30, 2011 8:05 pm

Stephen26 wrote:Adding the nofollow attribute is also an effective way of preventing spammers from registering, adding a website to their user profile and then make some random post to get a dofollow link: Nofollow in user Website

Oh thank you. I will use it when my forum will be attacked by spammers, but now I will "give" for my true users one backlink.
AmigoPerson
 
Posts: 3
Joined: Fri Dec 30, 2011 7:04 pm


Return to phpBB Forum

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 47 guests


 
cron