SMF 1.0.4 released

Started by Grudge, June 05, 2005, 09:34:16 AM

Previous topic - Next topic

woehrl

can nobody help me with my problem?

Grudge

ShadowStrike - that is correct. Just upload the contents of the update archive to your forum directory and it will overwrite the current Sources etc before hand. Please do a backup before hand though as it's always safer to do a backup - backups make the world go round :)

woehrl,

Could you post lines 910-930 from your ManageMembers.php file? You must have some mod installed as I don't have anything like what you posted on my 1.0.4 version. Could I also suggest you post your results in a new topic in General English support so it doesn't get lost?
I'm only a half geek really...

ShadowStriker

almost done but one question, im using my own theme basically a backup of default but i have deleted the smf banner, added a commercial and my own banner, do i need to update my edited theme and then do all the stuff with the commercial, banner, and smf banner again?

Grudge

No, you should be fine.

How did you create your own theme? If you did it by making a copy of the default (i.e using the "suggested" SMF route) then you shouldn't need to do anything.

If you created your own by editing the default then as long as you don't overwrite the existing index.template.php or style.css file it should all be fine.
I'm only a half geek really...

woehrl

this is the code from line 914-950

// Delete a group of/single member.
function deleteMembers($users)
{
global $db_prefix, $sourcedir, $modSettings, $ID_MEMBER;

        // Protect the person who started the forum
if ($users == 1 || in_array(1, $users) )
{
           fatal_error('You\'re not allowed to delete the administrator.');
           exit();
}
// If it's not an array, make it so!
if (!is_array($users))
$users = array($users);
else
$users = array_unique($users);

// How many are they deleting?
if (empty($users))
return;
elseif (count($users) == 1)
{
list ($user) = $users;
$condition = '= ' . $user;

if ($user == $ID_MEMBER)
isAllowedTo('profile_remove_own');
else
isAllowedTo('profile_remove_any');
}
else
{
$condition = 'IN (' . implode(',', $users) . ')';

// Deleting more than one?  You can't have more than once account...
isAllowedTo('profile_remove_any');


i have no mods installied which i think could make this error happen

[Unknown]

You have modified your code to prevent deletion of yourself, and that's what's causing the error.

Find this:

        // Protect the person who started the forum
if ($users == 1 || in_array(1, $users) )
{
           fatal_error('You\'re not allowed to delete the administrator.');
           exit();
}


Replace with:

        // Protect the person who started the forum
if ($users == 1 || (is_array($users) && in_array(1, $users)))
           fatal_error('You\'re not allowed to delete the administrator.');



-[Unknown]

woehrl


Bitwiz44

Quote from: mennou on June 10, 2005, 05:48:55 PM
how can i set up a permission for  members  who are not posting on my forum?  i want them to post 1st b4  they  view or reply to their  messages.. how can i do that??

Gosh, This question is very off topic for this thread, so If the mods want to move it, by all means do so.

Mennou, I have something like this idea.
First, on all existing  boards newbie access is UNCHECKED.
Next you need a board created just for the newbies, no others have access.(uncheck all other groups but newbies)   Newbies, start at zero post count. For this board check the Posts count box. This way they stay in only that board until their post count reaches what you want for full access of your forum. Then, Create the next group level of members above newbies, with post count based of 4, If thats what you want.

As soon as the newbie makes the 4th post, the main forum will be visible and the "newbie Forum" will be hidden, because they are NO LONGER a newbie.
Gee, I hope I made this easy enough.  8)

frolix22

Ok, so I got this message:

" The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

From what I can gather earlier in this thread this means I have to upload the update to my forum folder and do it manually. Newb question, I am assuming I upload the zipped file and do not unpack it first on my hard drive, is that right?

And how do I "run php.update"?

I really hope someone can help a newbie like me.

pcinnov

Quote from: [Unknown] on June 10, 2005, 01:13:00 AM
Quote from: pcinnov on June 09, 2005, 11:43:18 PM
CRap! i go to package manager, click apply mod for 1.04, all says success, and still says im running 1.03! what am i doing wrong, i have chmod'd all the files listed to 777


Did you actually press "Proceed" to install it?
yes i must have hit proceed at least 20 times

Quote from: AtariKid on June 10, 2005, 01:11:50 AM
Error message happened when I applied mod:
QuoteYou cannot download or install new packages because the Packages directory is not writable!

Please help.  Thanks.

Please make the "Packages" directory and all files within it 777.  How do I use chmod?

-[Unknown]

Dannii

Quote from: Bitwiz44 on June 11, 2005, 06:14:42 PM
Quote from: mennou on June 10, 2005, 05:48:55 PM
how can i set up a permission for  members  who are not posting on my forum?  i want them to post 1st b4  they  view or reply to their  messages.. how can i do that??

Gosh, This question is very off topic for this thread, so If the mods want to move it, by all means do so.

Mennou, I have something like this idea.
First, on all existing  boards newbie access is UNCHECKED.
Next you need a board created just for the newbies, no others have access.(uncheck all other groups but newbies)   Newbies, start at zero post count. For this board check the Posts count box. This way they stay in only that board until their post count reaches what you want for full access of your forum. Then, Create the next group level of members above newbies, with post count based of 4, If thats what you want.

As soon as the newbie makes the 4th post, the main forum will be visible and the "newbie Forum" will be hidden, because they are NO LONGER a newbie.
Gee, I hope I made this easy enough.  8)

To do that, you shall have to remove guest access as well, otherwise they can still view the whole forum.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

HT

Hello
When I tried to uppgrade, the upgrade process was detreminded and was followed by this message: "2: copy(/home/1/l/lundehund/forum/changelog.txt~): failed to open stream: Permission denied
File: /home/1/l/lundehund/forum/Sources/Subs-Package.php Line: 1307"

Is there anybody who can explain what is wrong?


Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

ShadowStriker

Quote from: Grudge on June 11, 2005, 10:10:40 AM
No, you should be fine.

How did you create your own theme? If you did it by making a copy of the default (i.e using the "suggested" SMF route) then you shouldn't need to do anything.

If you created your own by editing the default then as long as you don't overwrite the existing index.template.php or style.css file it should all be fine.


I used the suggested one.... but what i mean is do i need to switch the files in that theme to...

Grudge

ShadowStriker,

I don't think any recent patch has changed the core theme files? I assume in your custom theme you only really have index.template.php and style.css? If so you will be fine. You should *not* have a complete copy of the default theme files in your personal theme. (i.e Admin.template.php etc etc) - just the ones you've changed for your site.

Hope this makes sense - sorry this is taking you so long to get sorted
I'm only a half geek really...

LiroyvH

SMF 1.0.4 works great,
thanx SMF :)
((U + C + I)x(10 − S)) / 20xAx1 / (1 − sin(F / 10))
President/CEO of Simple Machines - Server Manager
Please do not PM for support - anything else is usually OK.

mennou

i just installed  the 1.04  i am trying to add the mods..  i gotthis error.. how can i fix it
2: copy(index.php~): failed to open stream: Permission denied
File: /usr/home/mixspot/public_html/forum2/Sources/Subs-Package.php
Line: 1307

Grudge

It was because it tried to make a backup of the file and the Sources directory wasn't writable - did your version number change?
I'm only a half geek really...


Grudge

Looks fine to me?

EDIT: You seem to have the "Users online today" mod installed/displayed twice for some reason :/
I'm only a half geek really...

Advertisement: