MyBB Community Forums

Full Version: Default URL in profile
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Again I have 2 more questions is there away to enable the WWW inside the members profile and set our own default website for all new members?

I rather someone show me a simple method in the changing of templates rather then using any plugin.
Open ./member.php
Find around line 1537
$website = '';
Replace with
$website = '<a href=\"http://www.mybb.com/\" target=\"_blank\">http://www.mybb.com/</a>';

Open ./showthread.php
Find around line 964
			if($thread['firstpost'] == $post['pid'] && $thread['visible'] == 0)
			{
				$post['visible'] = 0;
			}
Replace with
			if($thread['firstpost'] == $post['pid'] && $thread['visible'] == 0)
			{
				$post['visible'] = 0;
			}
				if($post['website'])
				{
					$post['website'] = htmlspecialchars_uni($memprofile['website']);
				}
				else
				{
					$post['website'] = 'http://www.mybb.com/';
				}

Replace http://www.mybb.com/ to your custom default homepage.
you can also just do this in templates so you don't change your core files... replace the template variable with your website url variable... easy peasy.

Edit:
look in your postbit template category.
also note this way forces your url for ALL users...
which is not what you want specifically.. but it's an option.
Yes but:
(2013-03-13, 06:15 PM)AmatureDJ Wrote: [ -> ]set our own default website for all new members
I know... lol.. your way does exactly what he wants Toungue
(2013-03-13, 09:01 PM)JordanMussi Wrote: [ -> ]Open ./member.php
Find around line 1537
$website = '';
Replace with
$website = '<a href=\"http://www.mybb.com/\" target=\"_blank\">http://www.mybb.com/</a>';

Open ./showthread.php
Find around line 964
			if($thread['firstpost'] == $post['pid'] && $thread['visible'] == 0)
			{
				$post['visible'] = 0;
			}
Replace with
			if($thread['firstpost'] == $post['pid'] && $thread['visible'] == 0)
			{
				$post['visible'] = 0;
			}
				if($post['website'])
				{
					$post['website'] = htmlspecialchars_uni($memprofile['website']);
				}
				else
				{
					$post['website'] = 'http://www.mybb.com/';
				}

Replace http://www.mybb.com/ to your custom default homepage.

It worked, thank you so much. Shy
You're welcome Big Grin