Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: simplebeer on December 01, 2013, 05:32:25 AM

Title: turn off the option website
Post by: simplebeer on December 01, 2013, 05:32:25 AM
Hello all!

I wondered, is it possible to turn off the option "website address" and "website title" in the forumprofile of normal members?

I checked group members permissions but can't find it?

Thanks!
Title: Re: turn off the option website
Post by: French on December 01, 2013, 06:06:40 AM
Admin=>Features and Options=> Profile Fields
Title: Re: turn off the option website
Post by: simplebeer on December 01, 2013, 06:24:50 AM
Thanks, but i can't find a  Profile Fields under Features and options?
I only find basic settings, lay-out, aeva and karma  ::)
Title: Re: turn off the option website
Post by: Illori on December 01, 2013, 06:33:10 AM
that is a 2.0 only feature, if you want to use it then you need to upgrade to 2.0
Title: Re: turn off the option website
Post by: kat on December 01, 2013, 11:16:39 AM
You'll need to edit Profile.template.php in the default theme's directory. I've not checked this, at all. So, before you start editing anything, keep a copy of the original file, as a backup, woncha? ;)

Find this and remove it:

// Website details.
echo '
<tr>
<td colspan="2"><hr width="100%" size="1" class="hrcolor" /></td>
</tr>
<tr>
<td width="40%"><b>', $txt[83], ': </b><div class="smalltext">', $txt[598], '</div></td>
<td><input type="text" name="websiteTitle" size="50" value="', $context['member']['website']['title'], '" /></td>
</tr><tr>
<td width="40%"><b>', $txt[84], ': </b><div class="smalltext">', $txt[599], '</div></td>
<td><input type="text" name="websiteUrl" size="50" value="', $context['member']['website']['url'], '" /></td>
</tr>';


and remove this, too:

<td><b>', $txt[96], ': </b></td>
Title: Re: turn off the option website
Post by: simplebeer on December 02, 2013, 08:38:16 AM
I am going to try this next weekend!
Title: Re: turn off the option website
Post by: kat on December 02, 2013, 12:02:23 PM
Let us know how it goes, woncha?
Title: Re: turn off the option website
Post by: simplebeer on December 07, 2013, 06:26:19 AM
Yes, it seems to work, but one thing, i only want this in the forumprofile of normal members, some membergroups like sponsors must have this option.

Or, it could be that only the admin can do this in a profile.

So, want to turn this of but it must be a option for some profile's (sponsor paid website shown)
Title: Re: turn off the option website
Post by: Kindred on December 07, 2013, 08:33:37 AM
well, you didn't tell us THAT to start with....  you just asked how to remove it.

You ould have to use conditional coding to have it for some and not for others....

Instead of messing around with junk coding, I suggest that you upgrade to 2.0.x and use the FEATURES that are already present in that series.
Title: Re: turn off the option website
Post by: simplebeer on December 07, 2013, 08:38:28 AM
Thanks.

Yes i was thinking about that, but i am scared to do that because of all the adjustments we have made  ::)

If this "problem" is the only reason I'd rather leave it the way it is, i think  :-X
Title: Re: turn off the option website
Post by: Kindred on December 07, 2013, 08:40:48 AM
well, there is also the issue that SMF 1.1.x is reaching the end of life and will cease to be a supported version after the release of 2.1.x
Title: Re: turn off the option website
Post by: simplebeer on December 07, 2013, 08:52:30 AM
Ok! Then we have to start thinking about it seriously!  :o

How long do you think it will take until that point is reached?
Title: Re: turn off the option website
Post by: Illori on December 07, 2013, 09:06:52 AM
not to mention if your host upgrades php to 5.5 some of smf 1.1 will stop working correctly and give errors.

we have no exact ETA on a release is 2.1 and dropping support for 1.1 but we hope in the next year or so. but the breaking from php 5.5 could come sooner then that depending on your host.
Title: Re: turn off the option website
Post by: simplebeer on December 07, 2013, 09:15:51 AM
OMG you scared me now, i have to look seriously how to do this  :-[

Does someone know, is there any manuel for upgrading in Dutch?
Title: Re: turn off the option website
Post by: kat on December 07, 2013, 11:30:10 AM
I think there'll be some kind of "unofficial" support, kinda. I won't be switching from v1.1.19 terribly quickly. ;)
Title: Re: turn off the option website
Post by: Illori on December 07, 2013, 11:36:52 AM
that does not mean 1.1* will actually work. come php 5.5 it *will* break. also running software without security updates is not a good idea, unless you want to get hacked.
Title: Re: turn off the option website
Post by: kat on December 07, 2013, 11:43:16 AM
Oh, yeah. PHP. Progress sucks. :P
Title: Re: turn off the option website
Post by: Kindred on December 07, 2013, 10:01:40 PM
I believe that the online manual/wiki has been mostly, if not fully, translated in Dutch
Title: Re: turn off the option website
Post by: Illori on December 08, 2013, 06:32:00 AM
Quote from: Kindred on December 07, 2013, 10:01:40 PM
I believe that the online manual/wiki has been mostly, if not fully, translated in Dutch

just the help tab pages, not all the pages.
Title: Re: turn off the option website
Post by: simplebeer on April 27, 2015, 03:09:24 AM
We are one year further and i am seriously looking to upgrade tot 2.0

I have one question i can't find, what happend with the html changes we made in the past in the page's?

For example, we have got sponsor banners in top and want to keep this, but we have changed maybe 100 page in the past.
Off course we can do that al over again if necessary, but want to investigate the possibilities first.

At least, under the large update is the text:
Upgrading from an earlier branch (SMF 2.0 or below)? No problem, this is what you need. This archive will upgrade/reset your forum to a clean install of the latest version and will remove all modifications.

I thought that the upgrade would try to save all modifications? Will it really remove everything?
Title: Re: turn off the option website
Post by: Kindred on April 27, 2015, 06:41:13 AM
The full upgrade will always remove modifications...

And upgrading between major versions would never preserve modifications -- because the coding it too different.
As a matter of fact, you will have to uninstall your 1.1.x themes as well, since none of the 1.1.x themes will work on the 2.0.x versions

Your DATA, however, will be preserved and the database updated.  Posts, members, pms, settings, these are all preserved, because the database is upgraded, not replaced.
Title: Re: turn off the option website
Post by: simplebeer on April 27, 2015, 06:52:48 AM
Thats too bad, but ok, we have to deal with it and make it the best.

Is it possible i do the upgrade and try it on another map in the root to whats happend exactly? For example now it is.../forum and i want to try in .../forum2

Or, if i do the upgrade, will the old forum stop working because of the databse upgrade?
Title: Re: turn off the option website
Post by: Kindred on April 27, 2015, 08:14:24 AM
the database changes make the upgrade incompatible with the old version files...   they are looking for the wrong table names, etc...

You could create a test copy (completely copy your database and then copy the files into a different directory, then point the test files to the test database using repair_settings.php)
However, I have generally found this to be unnecessary...   as long as you take a good backup before attempting the upgrade - you can always restore the backup
Title: Re: turn off the option website
Post by: margarett on April 27, 2015, 11:34:09 AM
Yes.
The "large upgrade" features a clean set of files which will always kill any custom coding you have in place. Furthermore, 1.1.x coding is generally not compatible with 2.0.x

That being said... If you used, eg, Ads Management MOD for your sponsors banners, then you would reinstall the MOD in 2.0 and the banners would still be there. But if you coded everything by hand, then you clearly need to redo it again after upgrade...
Title: Re: turn off the option website
Post by: simplebeer on April 30, 2015, 03:36:53 AM
Margarett, yes it was coded bij hand, with help off this forum, this was the topic. (http://www.simplemachines.org/community/index.php?topic=306953.0)
If i upgrade to 2.0.10 i want the same, i think i will ask in that topic  ;)

Is there any existing MOD for sponsor banners?
Title: Re: turn off the option website
Post by: margarett on April 30, 2015, 05:24:17 AM
Ad Management is probably the most complete MOD for that.
Title: Re: turn off the option website
Post by: simplebeer on April 30, 2015, 05:45:00 AM
That's a very interesting mod but i looks very difficult, as i see it now i have to write the html myself? That's quite a problem..
I will do some reading...thanks...