Hey,
This thread is used to keep people updated with what is on my package server. I want to first stress that The Packager Manager is still being developed - and is NOT done!. As such you may have problems getting MOD's to install etc. If this is the case please feed back your problems in this thread and don't start others about it. Also - before attempting to install a MOD from the package server please read the guidelines at the bottom of this post for "setting up" your forum to stand the best chance of installing successfully.
New Mods added to my package server recently:
Buddy List - Allows you to add members as "buddies", showing them online easily and making it easy to PM them.
Gender based membergroups - allow you to specify male AND female versions of each membergroup
Redirection boards - allowing you to make a board redirect to any url when clicked
Post Moderation - Moderate either ALL posts or on a member by member basis before they appear (BETA!)
Existing Mods on the package server
Topic Solved
Shoutbox (You'll need to edit your template manually for it to appear)
Custom Message Icons (Including adding icons, making radio selectable, adding to quick reply)
Visual Warning Mod Including Post Moderation
Pie Chart options on polls
Coloured Jumpbox
Redirection Boards.
Please try these out and let me know how you get on. I love to hear both good and bad experiences. Try to keep all comments in this thread as I check it regularly. Also let me know of any bugs or problems as these are easily fixed. Also - before posting about a problem read the posts in this thread incase I have already answered it!
Now onto setting up the packager manager!
As mentioned above the package manager is still in development so things won't necessarily go smoothly first time. Recent additions to the package manager have meant that on some servers chmod'ing directories may be a thing of the past - however - it is safer to do so anyway. Basically, before the package manager is used you should CHMOD certain files and directories to have permissions 777 (read, write and execute for all). This can be done with any FTP client - usually by right clicking on the files you wish to change permissions to. Below is a list of files I believe you should chmod to 777. If you wish you only need to chmod the Packages directory and any file being changed by a certain package - however, you can't go far wrong by doing them all at once!
CHMOD these directories:
index.php
SSI.php
/Packages - directory and all files inside it
/Sources - directory and all files inside it
/Themes - directory and ALL sub directories
/Themes/default - directory and ALL files inside
/Themes/default/languages - directory and ALL files inside
/Themes/default/images - directory and ALL directories inside
If you do these you should be ready to go!
What do I do when I upgrade?
When you upgrade to the next version of SMF you will most likely lose all the MODs you have installed - note you DON'T lose the data the MOD's stored. When upgrading if you desperatly need a MOD I would wait until I have updated the MOD to the next version (normally within a few days of release) before upgrading. If it is a security fix then that takes priority! Before doing an upgrade I recommend you uninstall all the MOD's you had installed previously and then reinstall new versions afterwards.
What if things go wrong?
If the worst comes to the worst and a MOD breaks your forum. The worst you will have to do is reload files from the original distribution. If this happens reload the entire contents of the Sources and Themes directory - except style.css and any templates you have manually changed (normally index.template.php)
Hopefully this will help everyone use this great feature of SMF. I'll reitterate that this isn't a completed feature so don't get too worked up if it doesn't work for you - be patient! The MOD site will be up shortly so anyone who cannot use the package manager yet will soon be able to get the MOD's via the MOD site.
Cheers,
Grudge
Quote from: Grudge on March 28, 2004, 10:13:05 AM
They are now completly uninstallable so removing them is easy.
I think you meant
isint easyI tried them, only the warning thingy worked at first glance, the topic checked thingy didnt work or maybe I checked in the wrong area...
But good job...
Quote from: Grudge on March 28, 2004, 10:13:05 AM
All the changes are always made to the default template, and all my mods are english only although I would happily add other language support if I had translations!
I'm not yet familiar with the template system, so my question may be dumb: Does this mean, the mod will not work with the converted template?
I failed to chmod sources/Subs_Package.php and recieved a chmod error. After chmoding it to 777 I now recieve this error:
Fatal error: Cannot redeclare smfshout() in /home/sites/site99/web/body/Sources/Subs.php on line 1724
Any ideas?
Winters, the mod should work fine on a converted template. Basically, if someone made a massive theme changing all the templates then it would likely cause trouble, but just changes in index.template.php should be fine.
Zippo, open up Subs.php, skip to the VERY botton and you'll most likely see two functions called smfshout(). Delete one of them :)
Lamper, there's no reason why it shouldn't work assuming you have beta 4.1 and have chmod'd the files that it changes. chmod is VERY important, and needs to be done on uninstall too :)
Thanks. Uhm, is it normal that I only see "yabbse"-Links in my package manager?
What do you mean? I don't see why you would see YaBB SE stuff. Do you mean in the list of servers? If you upgraded maybe the new server list isn't there. If not you can add my server as:
http://www.mymods.co.uk/Packages
Quote from: Grudge on March 28, 2004, 11:56:20 AM
Zippo, open up Subs.php, skip to the VERY botton and you'll most likely see two functions called smfshout(). Delete one of them :)
There was two, deleted one and recieve this:
Parse error: parse error in /home/sites/site99/web/body/Sources/Subs.php on line 1496
Warning: Cannot send session cookie - headers already sent by (output started at /home/sites/site99/web/body/Sources/Subs.php:1496) in /home/sites/site99/web/body/index.php on line 89
Warning: Cannot send session cache limiter - headers already sent (output started at /home/sites/site99/web/body/Sources/Subs.php:1496) in /home/sites/site99/web/body/index.php on line 89
Fatal error: Call to undefined function: template_header() in /home/sites/site99/web/body/Sources/Subs.php on line 1186
Quote from: Grudge on March 28, 2004, 10:13:05 AM
Hey,
Didn't really know where to post this but anyway... as people will know there is a package server option in the admin center. If you go there and select my package server you'll see a list of MOD's for SMF that I have done, namely:
Topic Solved
Shoutbox (You'll need to edit your template manually for it to appear)
Custom Message Icons (Including adding icons, making radio selectable, adding to quick reply)
Visual Warning Mod Including Post Moderation
Pie Chart options on polls
Coloured Jumpbox
and a *real* beta version of an instant message centre mod. (Most likely buggy).
I'd appreciate it if people would try these out. They are now completly uninstallable so removing them is easy. Obviously they are still beta mod's but they should work but I take no responsibility if they don't. We will have a mod site up soonish but until then if you want to post any problems here I'll try answer them.
Now - if you have any problems using the package manager it is most likely due to the fact that files need chmod'ing to 777, so see how it goes. All the changes are always made to the default template, and all my mods are english only although I would happily add other language support if I had translations!
Thanks a lot,
Grudge
Note to moderators: If this isn't the place for this feel free to move it elsewhere!
it is not working i get error's :'(
Zippo,
Can you post line 1490-1500 so I can see what the problem is. You didn't delete the ?> at the end of the file did you?
de3jeh,
You need to elaborate! Are you using a UNMODIFIED beta 4.1 at the moment?
Quote from: Grudge on March 28, 2004, 01:04:15 PM
de3jeh,
You need to elaborate! Are you using a UNMODIFIED beta 4.1 at the moment?
yes i am using a UNMODIFIED beta 4.1
what do i have to change to make it work ?
thanx in advance
I can't help you if you do not tell me what the error is!! I saw your post in another thread and replied to it about some errors you got trying to install one of the mods. Have you chmod'd the files correctly? You need to chmod your directories (Sources, Theme/default, images and languages) and any files that will be modified to 777.
I can dowload it that is not a problem
but if i want to install it it depend's on whitch mod then i get an error like this
Warning: copy(/home/internet/public_html/Themes/default/MsgIcon.template.php): failed to open stream: Permission denied in /home/internet/public_html/Sources/Subs-Package.php on line 491
Warning: copy(/home/internet/public_html/Themes/default/images/arrow_down.gif): failed to open stream: Permission denied in /home/internet/public_html/Sources/Subs-Package.php on line 491
Warning: copy(/home/internet/public_html/Themes/default/images/arrow_up.gif): failed to open stream: Permission denied in /home/internet/public_html/Sources/Subs-Package.php on line 491
Warning: copy(Themes/default/languages/Admin.english.php~): failed to open stream: Permission denied in /home/internet/public_html/Sources/Subs-Package.php on line 668
Warning: fopen(Themes/default/languages/Admin.english.php): failed to open stream: Permission denied in /home/internet/public_html/Sources/Subs-Package.php on line 670
Warning: fputs(): supplied argument is not a valid stream resource in /home/internet/public_html/Sources/Subs-Package.php on line 671
Warning: fclose(): supplied argument is not a valid stream resource in /home/internet/public_html/Sources/Subs-Package.php on line 672
Warning: copy(Themes/default/languages/Admin.english.php~): failed to open stream: Permission denied in /home/internet/public_html/Sources/Subs-Package.php on line 668
Warning: fopen(Themes/default/languages/Admin.english.php): failed to open stream: Permission denied in /home/internet/public_html/Sources/Subs-Package.php on line 670
Warning: fputs(): supplied argument is not a valid stream resource in /home/internet/public_html/Sources/Subs-Package.php on line 671
Warning: fclose(): supplied argument is not a valid stream resource in /home/internet/public_html/Sources/Subs-Package.php on line 672
Warning: copy(index.php~): failed to open stream: Permission denied in /home/internet/public_html/Sources/Subs-Package.php on line 668
Warning: copy(index.php~): failed to open stream: Permission denied in /home/internet/public_html/Sources/Subs-Package.php on line 668
Warning: copy(index.php~): failed to open stream: Permission denied in /home/internet/public_html/Sources/Subs-Package.php on line 668
Warning: copy(index.php~): failed to open stream: Permission denied in /home/internet/public_html/Sources/Subs-Package.php on line 802
Warning: fopen(/home/internet/public_html/Packages/installed.list): failed to open stream: Permission denied in /home/internet/public_html/Sources/Subs-Package.php on line 311
Warning: fputs(): supplied argument is not a valid stream resource in /home/internet/public_html/Sources/Subs-Package.php on line 318
Warning: fclose(): supplied argument is not a valid stream resource in /home/internet/public_html/Sources/Subs-Package.php on line 320
Like this i put every Chmod to 777
and this is on the mod : Message Icon Manager;)
No the ? is still there :)
{
// Get the host to pester...
preg_match('~^\w+://(.+?)/(.*)$~', $url, $match);
// Can't figure it out, just try the image size.
if ($url == '' || $url == 'http://' || $url == 'https://')
return false;
elseif (!isset($match[1]))
return @getimagesize($url);
// Try to connect to the server...
$temp = 0;
$fp = fsockopen($match[1], 80, $temp, $temp, 1);
// Successful? Continue...
if ($fp !== false)
{
// Send the HEAD request.
fwrite($fp, 'HEAD /' . $match[2] . ' HTTP/1.1' . "\r\n" . 'Host: ' . $match[1] . "\r\n\r\n");
// Read in the HTTP/1.1 or whatever.
$test = substr(fgets($fp, 11), -1);
fclose($fp);
// See if it returned a 404/403 or something.
if ($test != '4')
return @getimagesize($url);
}
// Didn't work.
return false;
}
function determineTopicClass(&$topic_context)
{
// Set topic class depending on locked status and number of replies.
if ($topic_context['is_locked'])
{
if ($topic_context['is_poll'])
$topic_context['class'] = 'locked_poll';
elseif ($topic_context['is_sticky'])
$topic_context['class'] = 'locked_sticky';
else
$topic_context['class'] = 'locked';
}
elseif ($topic_context['is_sticky'])
{
if ($topic_context['is_poll'])
$topic_context['class'] = 'sticky_poll';
else
$topic_context['class'] = 'sticky';
}
elseif ($topic_context['is_poll'])
$topic_context['class'] = 'poll';
elseif ($topic_context['is_very_hot'])
$topic_context['class'] = 'veryhottopic';
elseif ($topic_context['is_hot'])
$topic_context['class'] = 'hottopic';
else
$topic_context['class'] = 'topic';
if ($topic_context['is_very_hot'])
$topic_context['extended_class'] = 'veryhot';
elseif ($topic_context['is_hot'])
$topic_context['extended_class'] = 'hot';
else
$topic_context['extended_class'] = 'normal';
if ($topic_context['is_poll'])
$topic_context['extended_class'] .= '_poll';
else
$topic_context['extended_class'] .= '_post';
if ($topic_context['is_locked'])
$topic_context['extended_class'] .= '_locked';
if ($topic_context['is_sticky'])
$topic_context['extended_class'] .= '_sticky';
}
// Sets up the basic theme context stuff.
function setupThemeContext()
{
global $modSettings, $user_info, $scripturl, $context, $settings, $maintenance;
// Get some news...
$context['news_lines'] = explode("\n", str_replace("\r", '', trim(addslashes($modSettings['news']))));
$context['fader_news_lines'] = array();
for ($i = 0; $i < count($context['news_lines']); $i++)
{
if (trim($context['news_lines'][$i]) == '')
continue;
// Clean it up for presentation ;).
$context['news_lines'][$i] = doUBBC(stripslashes(trim($context['news_lines'][$i])));
// Gotta be special for the javascript.
$context['fader_news_lines'][$i] = strtr(addslashes($context['news_lines'][$i]), array('/' => '\/', '<a href=' => '<a hre" + "f='));
}
$context['random_news_line'] ']']']= $context['news_lines'][rand(0, count($context['news_lines']) - 1)];
if (!$user_info['is_guest'])
{
were do i have to change this ??
Zippo,
Is this before or after adding the smfshout function into the template? If it is before then maybe somehow Subs.php got messed up. Get a fresh Subs.php from the SMF package and manually add:
function smfshout() {
global $sourcedir;
include_once("$sourcedir/shout.php");
$shouts = shout_reader();
$shouts .= shout_form();
print $shouts;
}
to the bottom of it (assuming you have no others mods installed).
If this is AFTER adding it to the template please show me how you added it.
Cheers,
Grudge
but what do i wrong ???
de3jeh, the reason I didn't annswer you is I'm not sure. Hopefully Unknown will see this and help me out. It's not a problem with the MOD it still looks like a chmod problem but if have taken every file to 777 I can't see what the problem would be. Hopefully you'll get an answer soon!
Okay i will w8 thanx m8 ;)
The package manager really isn't ready for use yet.
De3jeh, the following are not 777:
/home/internet/public_html/Themes/default
/home/internet/public_html/Themes/default/images
/home/internet/public_html/Themes/default/languages/
/home/internet/public_html
/home/internet/public_html/Packages/installed.list
Please chmod them so that they are writable.
-[Unknown]
now i cant even dowload it any more :-\
thanx -[Unknown] ;)
Warning: copy(/home/internet/public_html/Sources/shout.php): failed to open stream: Permission denied in /home/internet/public_html/Sources/Subs-Package.php on line 491
/home/internet/public_html/Sources also, sorry...
-[Unknown]
Quote from: Grudge on March 28, 2004, 02:35:24 PM
Zippo,
Is this before or after adding the smfshout function into the template? If it is before then maybe somehow Subs.php got messed up. Get a fresh Subs.php from the SMF package and manually add:
function smfshout() {
global $sourcedir;
include_once("$sourcedir/shout.php");
$shouts = shout_reader();
$shouts .= shout_form();
print $shouts;
}
It was BEFORE adding the shout function in the template so that was the problem possibly. Adding a fresh subs.php did not solve the issue. I am delteting the board and the tables and trying a fresh attempt after a fresh install, in the correct order. I will let you know how it goes :)
I had tried to install the visual warning mod, and I was getting an error saying that the source file security.php file was messed up. So I just went into my ftp and deleted the mod then I reinstall all my source files, that is when it started telling me I was using an illegal copy of smf, so I just reinstalled the templates again. I guess I should have read that the package manager isn't really ready for use before I tried to use it.
Just an update. I've added a new MOD to the server:
"Redirection Boards"
This MOD allows you to specify a board to be used to redirect people. For example, you could haev a board which , when clicked, would take the user to a support page, or chat page or even yahoo etc.
The MOD should work fine with 4.1 but if you have any issues please post them. Uninstall is included in the package. There are actually three packages to this MOD:
1) Core - This installs the functionality to your boards, but doesn't affect the main templates.
2) Babylon theme extras - this removes the topics/posts columns from the board index for the Babylon (default) theme.
3) Classic theme extras - as above but for classic
The latter two are packaged seperatly as on heavily modified boards they may not work without editing - basically it gives you the freedom to choose how you want the MOD to work.
Please feedback any problems/suggestions/improvements - and if you use it and it does work please let me know - I appreciate knowing when things work :)
Cheers,
Grudge
What would the theme extras be used for really?
You don't understand David. The "core" install just makes the changes to the manage boards and load files so that the redirection works in practice. However, there is no indication that the board is a redirection board until they click on it. The theme mods change boardindex.template.php in the respective theme directories to stretch a redirect boards name over all the columns, otherwise the posts/topics/last person to posts column are left blank.
The reason they are seperate is some people won't have both themes uploaded (especially classic), some may also have modified their template. At the moment if the package manager fails on something (because of modified theme for example) the whole thing fails. I've had to split it up so that people can still use it who don't have the "standard install".
Hopefully eventually I'll be able to make this one mod once we have ways of letting an action "fail" yet the mod install still continue.
Ahh, ok that makes sense.
Hey Grudge... I've got a question about your server. I can access it just fine normally, but when I try to access it from lycos UK, it gives me a 404 error. The reason is that the functionality is different for boards with Safe Mode on. Instead of listing all the packages like it normally would, it takes you to the following URL:
{serverurl}/index.php?package-list&ref={yourboardurl}
So, when I try to browse your server from one of my Lycos UK test boards, it tries to send me to http://www.mymods.co.uk/Packages/index.php?package-list&ref=http://members.lycos.co.uk/theoldiesdude/SMF which results in a 404 error. Please fix this.
Old', I've pointed Unknown to this thread in the hope that the wise one can help :D
It does this because safe mode typically will not download files.
-[Unknown]
Quote from: [Unknown] on April 10, 2004, 02:56:50 AM
It does this because safe mode typically will not download files.
-[Unknown]
So what do I need to do to make it work?
Well, there's nothing you can do but make an index.php with a list of files or something. And instructions to download them and upload them to Packages.
-[Unknown]
I can only get the shoutbox to scroll from right to left. I have check'd on the the attributes and think everything is 777.
Any suggestions on what to check?
(I have deleted it, and installed again from package manager)
I'm not sure why it wouldn't work. I'll try to look at it this weekend
Springer,
Is there any way you could set it up to scroll from right to left and view the source code and then email/PM it to me. That way I can see if it's generating the HTML incorrectly or not.
On another note - all the MOD's on my package server have now been updated to work with beta 5.0.
Grudge
Just installed the redirection boards mod and both of the theme-specific add-ons... When I checked the box marked "make this board a redirection board", this appeared in the box where you type the URL:
<br /><b>Notice</b>: Undefined index: redirect in <b>/.../Themes/default/ManageBoards.template.php</b> on line <b>342</b>
Sounds like a simple fix... What should I do?
OK.
I've updated the package with the fix so you can do one of two options:
a) Uninstall your MOD - download the MOD AGAIN and reinstall it
b) Open Themes/default/ManageBoards.template.php and search for:
name="redirect"
and replace the whole of that line with:
<input type="text" name="redirect" value="', empty($context['board']['redirect']) ? '' : $context['board']['redirect'], '" size="50"/>
That should fix it - sorry about that! :)
Works great! Might be nice to show the number of clicks where it usually shows the number of posts. Not sure how easy that would be, but it would be a nice addition if you have time.
Terribly sorry for being so late with a post. I somehow missed your post Grudge.
I uninstalled the mod and reinstalled it. Something happened to the subs.php in Sources, I'll pm you the error just incase it might be of use.
I uploaded a copy of that file from my backup and everything works fine now.
Thank You
:(
I was trying to see what I could do about getting nuke and smf working better together and ended up have'n to dump everything. Luckily I made a backup earlier. However I didn't have shoutbox on it. I've tried to install it but I get this where it asks you to proceed.
Installing this package will perform the following actions: Type Action Description
1. Extract File ./Sources/shout.php
2. Extract File ./Themes/default/images/deleteshout.gif
3. Execute Code shoutPdb.php
4. Execute Modification index.php Success
5. Execute Modification Sources/Subs.php Success
6. Execute Modification Sources/ModSettings.php Success
7. Execute Modification themes/default/languages/index.english.php File not found
8. Execute Modification Sources/ModSettings.php Failure
9. Execute Modification SSI.php Success
10. Execute Modification ssi_examples.php Success
11. Execute Modification ssi_examples.shtml Success
If I hit proceed shoutbox doesn't work properly.
Incorrect case... use $themedir and etc.
-[Unknown]
I'll try fix this but it won't be until the weekend - only have server access then :(
Hey again,
I've now been able to update ALL the packages on my package server to be compatible with Beta 5 Public. Due to some changes in Beta 5 Public almost all my MOD's had to be changed so ensure you download the new versions off the server. Please let me know of any bugs - also let me know if anything works perfectly :D
Grudge
Installed it on beta5 and works perfectly.
A question about the shotbox archive. How can I get it to appear as a board? Or even child board. I want it somewhere so the archive is easy to see on the forum. Maybe around the info center. (actual shoutbox is on main site)
Hey Grudge!! ;D
Please don't hold a grudge when you read this!!
Warning: fopen(/home/soakint/public_html/forum/Packages/shout.tar.gz): failed to open stream: Permission denied in /home/soakint/public_html/forum/Sources/PackageGet.php on line 357
Warning: fwrite(): supplied argument is not a valid stream resource in /home/soakint/public_html/forum/Sources/PackageGet.php on line 362
Warning: fwrite(): supplied argument is not a valid stream resource in /home/soakint/public_html/forum/Sources/PackageGet.php on line 362
Warning: fwrite(): supplied argument is not a valid stream resource in /home/soakint/public_html/forum/Sources/PackageGet.php on line 362
Warning: fwrite(): supplied argument is not a valid stream resource in /home/soakint/public_html/forum/Sources/PackageGet.php on line 362
Warning: fwrite(): supplied argument is not a valid stream resource in /home/soakint/public_html/forum/Sources/PackageGet.php on line 362
Warning: fwrite(): supplied argument is not a valid stream resource in /home/soakint/public_html/forum/Sources/PackageGet.php on line 362
Warning: fwrite(): supplied argument is not a valid stream resource in /home/soakint/public_html/forum/Sources/PackageGet.php on line 362
Warning: fwrite(): supplied argument is not a valid stream resource in /home/soakint/public_html/forum/Sources/PackageGet.php on line 362
Warning: fwrite(): supplied argument is not a valid stream resource in /home/soakint/public_html/forum/Sources/PackageGet.php on line 362
Warning: fwrite(): supplied argument is not a valid stream resource in /home/soakint/public_html/forum/Sources/PackageGet.php on line 362
Warning: fclose(): supplied argument is not a valid stream resource in /home/soakint/public_html/forum/Sources/PackageGet.php on line 364
Notice: Undefined index: filename in /home/soakint/public_html/forum/Sources/PackageGet.php on line 381
uhm.... now what? it's downloaded but when I click proceed that's what I get... :'(
Springer: I know the archive of the shoutbox needs some work. Getting it to appear as a board may be tricky. Hopefully I'll get it to paginate at some point but I really haven't had much time to add to it. Once I finish a long course at work maybe I'll be able to do something.
Babs: It seems that it's having trouble getting the file. Could you please use an ftp manager to check whether in your Packages directory the file shout.tar.gz is DEFINETLY there! If it is can you ensure that the Packages/Sources and Themes directories are definetly chmod'd to 777. If the error message remains there must be a problem with the package manager working properly on your server. If so PM me and I'll send you a zip file so you can do it manually...
Ok. I downloaded 3 things from your server
1. shoutbox
2. folder icons
3. post warnings
and then I looked in the packages directory and it's not there. >:(
however, in the package manager it shows that its there. I had Packages chmodded but not sources...so I just did that. No, it's not working. My server is with Jason @ Charlottezweb so I believe he's runnin on Apache.
Is Packages 777?
-[Unknown]
It's getting annoying because I chmod it to 777 then it reverts back to 755!! >:(
Babs.
Go to:
http://www.mymods.co.uk/Packages/shout.tar.gz
save it, upload it to your Packages directory and then try it :)
Grudge
Hi, I downloaded this with the package manager, but it did not work and I could not chmod it, so I downloaded it directly from your link, chmoded it 777, I used the package manager to install it, but I get this error?
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''ID_SHOUT')' at line 5
File: /home/xxxxxxxx/public_html/xxxxxxxx/mcforums/Packages/temp/shoutPdb.php
Line: 66
What does this mean?
Ummm... something wrong with the SQL which is odd... I'm not back home till tonight/tomorrow but I'll try have a look at it then.
I shall be waiting patiently. This shoutbox would be extremely useful for my site.
Ummm... I don't really know what the problem was but I've uploaded a slightly modified package - try it again now!
To be honest - you can probably ignore that error - it should work anyway (once you've added the function call to your template).
Grudge
Ok, I ahem, feel stupid, now, buthow do I add the call function to my template? I will try to fit it under the news fader. or below the information center. Probably the latter.
OK. I can only tell you how to add it - you'll most likely need to stick some HTML around it to make it look good in YOUR site. Basically, in index.template.php (your main template) call this function:
smfshout();
If you don't know PHP try one of these two. Add it as either:
' . smfshout() . '
OR
smfshout();
Basically, if the first one gives you an error use the second one in the same place. It does say this in the instructions somewhere I'm sure!
Cheers
Grudge
Just a message to say that I've added a few more mods to the server - notible the Buddy List (beta!)
More importantly I've updated the first message on this thread with slightly better instructions on how to use the package manager AND disclaimered many times about the fact that it's still in development so may plain not work for everyone ;)
/me resists the urge to install the warning levels one.
I want to install manually. How I must modify the DB File Modification to make to work it?
Not sure what MOD you mean. But if you download the package from the server (it will be put into your Packages directory), and extract it you'll see a file called MODNAMEpdb.php. That is the database stuff. Open the file up, and look for the queries (normally they have things like CREATE TABLE... and ALTER TABLE). Just copy and paste these queries into phpMyAdmin, changing {$db_prefix} for your table prefix. I recommend you have at least a basic understanding of what is happening so you know what queries to leave out.
Depending on the MOD I may have a stand alone script I can give you to do it - let me know what one it is and I'll see if I can dig up the script.
Grudge
For shout working... but for Visual not... many Variables
So, you want the database changes for the visual warning MOD? If you want I'll email you the db script.
Send... thanks for your help ;)
I finally seemed to get my board running correctly and Really wanted the shoutbox as it was a favorite on other sites I had. I have no other mods installed. I downloaded with the package and uploaded the files as stated in the mod file. I thought I chmoded the correct files but after installing I got forbidden errors but the admin section stated it loaded sucessfully, so I uninstalled it and tried it again and got fatal errors, so I tried to ftp my back up but get alot of permission denied errors. I tried to chmod the files so I can overwrite them but get errors such as this...
[Subs.php]
COMMAND:> SITE CHMOD 777 Subs.php
550 Subs.php: Operation not permitted
and
I'm unable to overwrite anything in my package directory which shows chmode to 777 and others .. stating "I don't have permission to perform this action".
I'm not that familiar with Mysql, but dropped the shoutbox table and not sure if I should be looking at the permissions or members table for an answer. Any suggestions would be apprecitated.
Thanks
Xt.
Ummm... I'm not really sure what the problem is. Is your server running in safe mode?? Your best bet is to reupload the SMF files fresh (SQL won't cause an error). So get your forum back to normal, then have another look. Did you chmod all the directories/files as stated before installing the MOD?
If it still doesn't work it's probably that your host has safe mode in affect and it's stopping the package manager from working. In that case you'd have to install it manually. The shoutbox is a very small MOD so you can do that easily. Just download the package file, extract it onto your PC and manually make the changes mentioned in the mod file.
It's kinda wierd, I replaced the files with the backup ones also tried the tilde "~" ones and got the same error. 550 Subs.php: Operation not permitted, I deleted all the files in the directory, replaced them and it let me start to chmod them sucessfully??
I tried to install again and seemed to get further this time, but still getting errors. I tried both of these smfshout(); and ' . smfshout() . ' one at a time on my index.template but getting this error...
" width="54" height="20" style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" />
the text box shows, "view all" link, and the shout button shows, and seems to work ok as it shows my shouts above the text box but the error message is below the shout button. I'll try it in a different place on the page and see if that helps.
Thanks for your help and I really like the shout_archive page.
Thanks
Xt
I think they are all cool - but can't seem to download the warnings one?
Grudge,
I put ' . smfshout() . ' in a different location and now it seems to be working correctly, Thanks for the GREAT mod.! I'll have to find a better place to put it and learn some more PHP.
Thanks
Xt.
Quote from: damo1065 on June 06, 2004, 09:22:55 PM
I think they are all cool - but can't seem to download the warnings one?
Sorry - I removed it from the server a week ago as it has a few bugs. I'll be putting it back up at the next beta.
Grudge,
When I had errors with this (shoutbox) and installed it and re-installed I ended up with multiple Shout sections in the Edit Features and Options , can you tell me what file to edit to bring it down to one. Like what's equivilant to the old adminedit.pl.
Thanks
Xt.
ModSettings.php.
Open up the file, search for "shout" and you'll work out where the duplicate bits are.
Add this to the beginning of the file:
include_once('Settings.php');
include_once('./Sources/QueryString.php');
That will define $db_prefix and the db_query() function, so that should work. If it doesn't, let me know.
Oldiesmann - what the hell is that post supposed to represent?!?! I think you may have the wrong thread ;)
Grudge,
Thanks for the ModSettings.php., looks better now.
Question though, Please ...
1. My overseas buddies are having shoutbox time issues.
-Local time EST shows Today at 02:58:20 am
-overseas members time +6 hrs 08:58:20 AM (displays local time correct on thier board correctly)
- shoutbox overseas time displays at 02:58:34pm
It appears it's applying the +6 hours to thier local time making it +12 hours from forum time, any ideas?
Thanks
Xt.
I'll try remember to have a look at this tonight. I expect it's doing some funny thing with the time offset like adding it as you said.
Grudge
Hey Grudge,
I've manually installed the shoutbox after the install feature in the package manager didnt work, and im getting this error when running shoutPdb.php:
Fatal error: Call to undefined function: db_query() in /home/marlincr/public_html/board/shoutPdb.php on line 24
Any ideas?
Thanks in advance,
BigMike
OK. It's because shoutPdb.php is NORMALLY ran by the package manager. To run it manually, stick it in the same directory as your forum and add this line somewhere after the comment header:
include('SSI.php');
That will probably work.
TodaysXLT. The problem with the time was in shout.php. Search for "timeformat", and change the lines with it on to:
$time = timeformat($row['time']);
Cheers
Quote from: Grudge on June 10, 2004, 05:59:33 PM
TodaysXLT. The problem with the time was in shout.php. Search for "timeformat", and change the lines with it on to:
$time = timeformat($row['time']);
Cheers
Thanks,
Change it in 2 locations from ..
$time = timeformat($row['time'] + (($modSettings['time_offset'] + $user_info['time_offset']) * 3600));
to ...
$time = timeformat($row['time']);
Waiting for members across the waters to get online and verify.
Cheers back.
Xt.
Quote from: Grudge on June 10, 2004, 07:00:27 AM
OK. It's because shoutPdb.php is NORMALLY ran by the package manager. To run it manually, stick it in the same directory as your forum and add this line somewhere after the comment header:
include('SSI.php');
That will probably work.
Ok, I did that and now I got:
Warning: Cannot modify header information - headers already sent by (output started at /home/marlincr/public_html/board/Sources/Load.php:823) in /home/marlincr/public_html/board/Sources/Subs.php on line 1599
Warning: Cannot modify header information - headers already sent by (output started at /home/marlincr/public_html/board/Sources/Load.php:823) in /home/marlincr/public_html/board/Sources/Subs.php on line 1600
And I got:
Database Error
Incorrect table definition; There can only be one auto column and it must be defined as a key
File: /home/marlincr/public_html/board/shoutPdb.php
Line: 67
I am at work right now and I just FTP'd in and added that line to my .php file so I dont have time to check those lines in subs and load right now....
I will check it and then get back.. In the mean time, any ideas?
Looking forward to the shout box! :D
Here is my line 823 of Load.php
echo $settings['doctype'] == 'xhtml' ? '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' : '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';
Here is line 1599 and 1600 of my Subs.php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
And of I know you've got the file, but just to put it all together here, here is line 67 of my shoutPdb.php
DROP name", __FILE__, __LINE__);
Any ideas?
Can you check your database - I suspect the changes have already been made so you don't need to worry about them. If the "shouts" table isn't there just run this query in phpmyadmin and it will sort it out (and you can forget about shoutpdb.php)
CREATE TABLE IF NOT EXISTS smf_shoutbox
(ID_SHOUT int(11) NOT NULL auto_increment,
ID_MEMBER tinytext NOT NULL,
displayname text default NULL,
message longtext NOT NULL,
email tinytext default NULL,
time text NOT NULL,
PRIMARY KEY (ID_SHOUT)) TYPE=MyISAM
And then when you've made the mod changes - go to "Feature Settings and Options" and set the shoutbox options (You will probably get some errors if you don't)
Grudge, what is the url for your package server? My board refuses to connect to it.
Should be www.mymods.co.uk/Package(s)
(With or without the s - not sure)
Grudge,
Find "<rule>" and replace it with "<rule />".
-[Unknown]
Neither of those links works Grudge. http://www.mymods.co.uk/Package generates an IE 404 error, and http://www.mymodes.co.uk/Packages generates a server-side 404 error...
OK. Should be fixed I hope...
:(
Still no work
See its attempt here: http://board.marlincrawler.com/ssi_examples.php
It shows a database error - that's because a table isn't created correctly. Can you first ensure you have ran this query:
CREATE TABLE IF NOT EXISTS smf_shoutbox
(ID_SHOUT int(11) NOT NULL auto_increment,
ID_MEMBER tinytext NOT NULL,
displayname text default NULL,
message longtext NOT NULL,
email tinytext default NULL,
time text NOT NULL,
PRIMARY KEY (ID_SHOUT)) TYPE=MyISAM
Ensuring you change smf_ to whatever your table prefix is.
If you still are getting an error can you tell me what that error message is (You need to be an admin to read it's real contents) - it is probably something like "Unknown column" etc etc
Quote from: Oldiesmann on June 12, 2004, 12:25:31 PM
Neither of those links works Grudge. http://www.mymods.co.uk/Package generates an IE 404 error, and http://www.mymodes.co.uk/Packages generates a server-side 404 error...
Grudge
I don't know if this is helpful info, but I could hit download within the last week from the "Package servers - Grudge's Package Server"
but now I get this error.
Warning: fopen(/home/public_html/cgi-bin/smf/Packages/shout.tar.gz): failed to open stream: Permission denied in /home/todays/public_html/cgi-bin/smf/Sources/PackageGet.php on line 357
Warning: fwrite(): supplied argument is not a valid stream resource in /home/todays/public_html/cgi-bin/smf/Sources/PackageGet.php on line 362
http://www.mymods.co.uk-this says comming soon
http://www.mymods.co.uk/Packages/shout.tar.gz - these links let me download
All of these links were within the Package servers - "Grudge's Package Server" Admin section.
If I tried http://www.mymods.co.uk/Packages/shout.tar.gz from IE6, It goes to a search page, which it does if it cannot find the site or file, If I shorten it to http://www.mymods.co.uk/Packages , It does the same thing. If I shorten it some more to http://www.mymods.co.uk, it changes link to http://www.mymods.co.uk/mymods.php and says comming soon.
Just some info. hopefully useful.
Thanks
Xt.
Hi,
I think the error you are getting with opening the tar.gz file (fopen error) is because you have not chmod'd the Packages directory to 777?? Can you check that please - and also check you chmod the other directories as mentioned in my first post in this thread before you install.
As for the site - that is all correct (in a fashion). I think the xml file may have been broken and I'll look into that later. IE6 gives me no such problem following that link.
Grudge
Quote from: Grudge on June 13, 2004, 05:42:54 AM
Hi,
I think the error you are getting with opening the tar.gz file (fopen error) is because you have not chmod'd the Packages directory to 777?? Can you check that please - and also check you chmod the other directories as mentioned in my first post in this thread before you install.
As for the site - that is all correct (in a fashion). I think the xml file may have been broken and I'll look into that later. IE6 gives me no such problem following that link.
Grudge
Sorry,
Failed to mention that I tried [Unkown] and seemed to work ... I just tried both again and same results for both. I'm just trying to be helpful and not bug you, As I have what I want off the list, this happens just when I click on the download button in "Package servers - Grudge's Package Server". More to come ... Checking all chmods now ..
Thanks
Xt
Package servers - [Unknown]'s Package Server
Packages for SMF 1.0 Beta 5!
1. Say Something! [ Download ]
Package Type: Modification
Version: 1.0
Author: [Unknown]
Author's Homepage: http://www.simplemachines.org/community/index.php?topic=2378.0
Description: Isn't it annoying when people post "ok", or "yeah"? Use this mod to stop that!
Location of file: http://unknown.network32.net/packages/say-something_1-0.tar.gz
Package downloaded successfully
Package has been downloaded successfully
Say Something! [ Apply Mod ] [ List Files ]
[ Back ]
Well - download the package with your browser, and then upload it to your packages directory. It will then appear in your package list without needing to be downloaded from my server.
Grudge,
Dirs, chmoded ok, but had previously downloaded that package and get the error message. I deleted shout package and tried it again it went smooth. Chmoded previous msgicon and it redownloaded ok. I can redownload for same day with updated timestamp, even if package chmod is 644, but cannot redownload anything from yesterday or previous days, unless I chmod to 777. Just some FYI's
Thanks
Xt.
Hey Grudge,
Yup, I did the query and still got errors.
Heres the error message from my admin and you were right about the column:
Database Error: Unknown column 'ID_SHOUT' in 'order clause'
File: /home/marlincr/public_html/board/Sources/shout.php
Line: 66
BigMike
BigMike,
Are you 100% sure that you have the right prefix? I mean your forum uses the table prefix smf_ right? If not you needed to change it to the correct prefix. It *must* be that the table isn't created correctly. Can you use phpMyAdmin and check for SURE that the table is there - and looks like this:
CREATE TABLE IF NOT EXISTS smf_shoutbox
(ID_SHOUT int(11) NOT NULL auto_increment,
ID_MEMBER tinytext NOT NULL,
displayname text default NULL,
message longtext NOT NULL,
email tinytext default NULL,
time text NOT NULL,
PRIMARY KEY (ID_SHOUT)) TYPE=MyISAM
I have this error whit GenderGroup MOD:
Fatal error: Call to undefined function: db_query() in D:\Inetpub\webs\mysite\forum\GenderGroupPdb.php on line 23
How I make the upload of GenderBaseddb.php and I run it ONCE? In which folder?
If you have GenderBaseddb.php, just stick it in your forum directory and run it. However, GenderGroupPdb.php should have already been automatically run when you installed it if you used the package manager (You don't need to manually execute it in that case).
Hey Grudge,
Im sorry for all this trouble but I would really like to get this going as my forum has to many thread hijackers because we dont have an area for simple chat...
Here is a screen shot of the shoutbox table. My prefix is "yabbse_root" (because I upgraded) and the table is "yabbse_rootshoutbox" as shown below:
(http://board.marlincrawler.com/temp/databases.jpg)
Hmmmmmm......??
You know my error says "'ID_SHOUT" not found. Well the only entry there is just "id" Is that the problem?
Also I cant browse this table. So its empty right? should it be? ???
Ah ha!
That is the OLD shoutbox table! Did you have it installed for YaBBSE at some point? It should be empty if you don't have any shouts (Which I assume you wouldn't have as it's new!)
Anyway - delete that table (DROP it) and create the new one using the SQL posted above (Again - changing the prefix to the prefix you use on your board)
My Package manager does not work! I must make manually all!!! I don't understand like I "run" GenderBaseddb.php!
If you extract the package file, do you have a file in it called: GenderBaseddb.php? (I can't remember whether it is, or isn't in it)
If it is, then just copy it to your forum directory and run it like this:
www.yoursite.com/yourforum/GenderBaseddb.php
From your browser.
If that file isn't in there (GenderBaseddb.php NOT GenderBasedPdb.php) then let me know and I'll email it to you.
Grudge
Email for you!!!
GRUDGE!!! After a slight battle with me forgetting to manually edit some files and learning how to get it coded in, I GOT IT!! SWEET!!!!
Here it is in action:
(http://board.marlincrawler.com/temp/shout_in_actions.jpg)
Thanks man!!
Hey, if I can find some extra time, I am going to study how, and I think it would be great to add a setting to each member and have the following options for each user:
- Users can turn the shout box on or off
- Users can set the box to appear on just the index page (BoardIndex.template.php) or on all pages (index.template.php).
- - That way they could be anywhere in the forum and if someone needed to shout at them they could see it anywhere
I'm only good for cgi and perl so I am learning sql as I go so it will take me a while I think......
Thanks again,
BigMike
Hello,
Can anyone please help me code a box like BigMike has or something like it. I can get the shouts and a table but cant seem to get the shouts in the table I tried both smfshout(); ' . smfshout() . ' in various ways with echo, but either it works or works incorrectly, and I'm getting database errors in my log file, cannot delete shouts from the index page also when I shout from the archive page it states page cannot be displayed but post the shout. I think I'm splitting a function and getting feeling very dumb. All help would be appreciated.
Thanks
Xt.
TodaysXt,
I'll try take you through adding it in a basic way. Firstly, I suspect you may still be using the last version of the mod (Have you downloaded a new version in the last 2 days?)
If not - here is what I would do.
1) Remove smfshout etc from the template.
2) Uninstall the shoutbox MOD.
3) Re-Download the MOD from my server (New version has a few fixes hopefully!)
4) Reinstall the MOD.
5) Make the template changes again. Below I've listed a basic example of where you could add it. IT may not look that nice but it should give you an idea.
After:
template_menu();
echo '
</div>';
Add:
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg">
<b>Shoutbox</b>
</td>
</tr>
<tr>
<td class="windowbg2">
', smfshout(), '
</td>
</tr>
</table>';
Also - any chance you could paste what errors you are getting related to the database?
Also... BigMike,
I love what you did with the template - glad you got it working!
You should look at Settings.template.php, this shows an easy way to add a "theme" option to the profile screen. Once you have added it you could change this:
', smfshout(), '
</code]
into this:
', (empty($options['hide_shoutbox']) ? smfshout() : ''), '
Where hide_shoutbox would be the name of the variable you add to Settings.template.php. This doesn't require any database changes etc. This will be made even easier in the next beta!
Quote from: Grudge on June 16, 2004, 06:08:37 AM
TodaysXt,
I'll try take you through adding it in a basic way. Firstly, I suspect you may still be using the last version of the mod (Have you downloaded a new version in the last 2 days?)
Here's a couple of the errors ...
/home/public_html/cgi-bin/smf/index.php
8: Use of undefined constant memberID - assumed 'memberID'
File: /home/public_html/cgi-bin/smf/Themes/default/shout.template.php
Line: 88
Line: 90
I think what happen was I had the shoutbox installed (maybe ver 1.04), I'm sure not correctly as the gif showed. I upgraded to SMF 1_6beta, I thought I'd lose my mods but didn't think of uninstalling them. When I went to your package and got 1.1 I noticed it didn't show that my previous shout mod was installed, so I didn't get to uninstall it and just installed 1.1. over it. The package section currently shows shout is installed. I'm very gratefull for your table example. I will uninstall the shoutbox, delete the shout table , go through all the files listed in the mod and remove any instance of 'shout' I can find, reupload everything and try it again.
Thanks for your time and patients, oh, I see other mod makers have a wish list? but, I couldn't find one for you, If you have one post it, put it on your package server or pm me and maybe [unknown]'s as well. I can't promise anything but If I can do something I will. I made donations but I don't know how it's distributed. Actually I think you guys need to make a wishlist catagory in the general community for everyone listed in the Support and Credits or other mod makers and tutor makers like Parham. Just post the links and lock it , if you don't want replys beit positives or negatives, anyway just a thought. (also, I'd make a paypal account as I may not have $25.99 for a book, but might have $5 or $10 for appreciation gift). Your welcome to pass on the suggestion.
Thanks
Xt.
files to clean ...
<id>
Ultimate Shoutbox
</id>
<version>
1.1
</version>
index.php
Sources/Subs.php
Sources/ModSettings.php
Themes/default/languages/Modifications.english.php
SSI.php
ssi_examples.php
ssi_examples.shtml
Actually the errors above are different than the other errors I was getting and not sure what I changed, and cleaned the log files as it was past 700 pages...
Yep - you got a bug!
If you go to line 90, replace memberID with 'memberID' - if you don't want to do that do another uninstall - reinstall (I updated the package after you updated!
I really want to supply some of the best mods for SMf hence my determination to help people out! (Though I have to sort out a gender based mod later - but too much for tonight :P) . I hope with the new info you can sort out any bugs - pm me with any new problems.
One day I may make a wish list but I currently really enjoy knowing that I make people much happier and that is all I need to keep me going. I have less time now than normal so I tend to do more development on SMF than mods but I never try and forget my roots!!
Cheers,
Grudge
Grudge,
Well I will go with the uninstall option as I have been tinkering with it and like to keep things as clean as possible especially to report a bug.
I always believe the most expensive gift someone can give is their time. So please believe me, your developements and mods make me and I'm sure a few others happier, thank you, and look forward to more of your work.
I'm in tech support so I understand a gratefull thank you and being told "you made my day by fixing that" as you did mine with your support.
Thanks
Xt.
Grudge,
I cleaned it up and re-installed actually twice as I thought I didn't delete something but I got this error,
8: Use of undefined constant id - assumed 'id'
File: /home/public_html/cgi-bin/smf/Themes/default/shout.template.php
Line: 88
so from your previous example I changed this :
<a href="', $scripturl, '?action=delete_shout;id=', $shout[id], '"><img src="', $settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a>';
to this ..
<a href="', $scripturl, '?action=delete_shout;id=', $shout['id'], '"><img src="', $settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a>';
Seems to work and I can delete shouts from any page now. BUT, I still get one error after shouting, I'm checking on it ...
http://mywebsite/cgi-bin/smf/index.php?action=shout
Unable to load the 'main' template.
Thanks
Xt.
Hey Grudge,
I did some more changes and replaced your delete button with this one that looks cleaner I think. You can take it if you like:
(http://board.marlincrawler.com/Themes/default/images/deleteshout.gif)
I will look into the settings template on Monday when I return from a business trip, thanks!!
TodaysXt - I got your email but havn't had any time to reply. I just got home now at 9:45. Left the house at 7:20a! Its been a long and hot day here in central cali. 101F today... Grudge told you about the same thing that I did so Im sure you will get it.
I will post info on any other modifications I do with some screen shots early next week when I get around to it. Im also converting the shout box into a chat room. I think it will be easy. Here's what Im gonna try:
1) Leave the shout box the way it is on my main page. It looks good and its got great functionallity there. People can shout through the small section on the main page all they want.
2) Then, using a modified version of the "View All" archive feature, I will add a link right above that says "Shout Room" (or something) that will use a seperate smaller window that will pop up.
-- The shout room will automatically refreash every 10 seconds or so
-- And it will only display a certain # of shouts, like 20 or 30 lines. It won't allow scrolling of past posts as that's what the "View All" is for (if you missed a post and wanted to see it). It will just be a smaller window with a bunch of shouts but it will be arranged like a chat room and look like one with a page-wide form at the bottom of the page.
It will be just like a combination of both the shout box on the main page and the archive shout box: It will Limit the # of shouts that are viewed and it will show alot more at a time!
I know its a lame chat room type thing with the auto reloading crap but Im tired or having to reload my main page when ever Im looking for more shouts so I think it will work streamlessly!
Grudge, would you mind if I did something like this? Im not going to modify your code, Im just going to add a portal from it. Would this be ok?
Thanks again for everything and after one day people have been shouting like crazy!!
Ohh one last thing, after I got the shoutbox going, I must'ave done something because now my board is not logging clicks (Hits in the 'more stats' section). Last night (yesterday) it logged a whopping total of 4 hits and today so far its got 19. Gee thats funny because Im averaging 6000 to 7000 Hits a day this whole month.
So I dont know what I did but now its not tracking only but a couple hits now....
Thanks!!!!!
BigMike
BigMike,
Thanks for the mention. Looks like your busy and it sounds interesting. Respond if you get the time.
Thanks
Xt.
Hi again,
Yea - forgot the other 'id' thing - I've updated the package now but your fix was fine. As for the shouting giving "unable to load template" error, I'll look into that. I expect it may be something to do with the querystring stuff in shout.php - I don't have that problem so I'm guessing it's something to do with your sites url. (Also - your link to your site didn't work TodaysXt.
As for making chat type thing - feel free. The only thing I'd ever ask is that people don't redistribute my modifications without my consent - just so I know where they are going. If it's just to be used on your site then it's certainly not a problem anyway!
The hits thing is another something I'm looking into. Is it everytime someone shouts or JUST when editing the template? We seem to have a bug that editing the template for the site resets the hit counter - it doesn't make sense why but it just does...
Hi, i run the file genderbaseddb.php and i have this error:
SMF DB Editor - Gender Based Groups MOD
Error adding column to table.
There was 1 error when upgrading your SQL.
Why?!?!?!?
Grudge,
I hope your have a good day!! thanks for your time.
I have the following errors. I didn't know if it was something I did when I was loading the locations mod, so I uninstalled and re-installed but still getting them. Everything seems to be running ok, shouting from inside the board, outside the board with SSI, deleting post from various places, archives seem good? If it wasn't for these I wouldn't think I had a problem. Have a good weekend.
###.##.###.### f6bfa607af5ffd0a99933bc842c869d5
http://216.67.255.15/~todays/cgi-bin/smf/index.php?action=shout
Unable to load the 'main' template.
Today at 04:47:04am
###.##.###.### f6bfa607af5ffd0a99933bc842c869d5
http://216.67.255.15/~todays/cgi-bin/smf/index.php?action=shout_archive
8: Undefined index: qstr
File: /home/todays/public_html/cgi-bin/smf/Themes/default/shout.template.php
Line: 111
Thanks
Xt.
Grudge,
First chance I had to reply, downloaded scripts shortly after you posted them, from
http://www.simplemachines.org/community/index.php?topic=12747.new
No errors in log and did quick check on stats page count seems correct
and everything looks GREAT!. Thanks so much for your support and mod.
Thanks
Xt.
It works very well :D
I've installed 7 mods on my test board ;D
But the pie chart mod isn't working on my server. I see a red cross instead of the chart :(
Maybe your server has an issue with GD? Does GD work in other things?
I've got Coppermine Photo Gallery 1.21 working well without problems :)
Ummm.... no idea then sorry. I assume it copied the font over OK. Ya may have to live without that one - it works fine on my board so it's probably just something not supported somewhere along the line :(
PS. For everyone needing support with my mods. I'll be away until at least Monday 28th June so please be patient.
Quote from: Grudge on June 16, 2004, 06:08:37 AM
TodaysXt,
I'll try take you through adding it in a basic way.
After:
template_menu();
echo '
</div>';
Add:
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg">
<b>Shoutbox</b>
</td>
</tr>
<tr>
<td class="windowbg2">
', smfshout(), '
</td>
</tr>
</table>';
Hello Grudge,
Hope your well. Shoutbox is working great and I pretty much use above as you suggested. Can you suggest anyway to get the row of smilies to show up in the shoutbox, so we can just click them to use in the shouts along with the "more" link to "more smilies". I've tried some javascript code I had found that was posted for adding the row of smilies to the quick reply box and so on, but I just can't seem to get it for the shoutbox. Thanks for you help.
Xt.
Get this error message when I try to install your shoutbox..
What's wrong.
I had the same mod on YabbSe and it got lost when I conwerted to SMF
Incorrect table definition; There can only be one auto column and it must be defined as a key
File: /home/int2000/12064/html/yabbse/Packages/temp/shoutPdb.php
Line: 65
well mine looks like the pic posted a few pages back
(http://www.simplemachines.org/community/index.php?action=dlattach;topic=8417.0;id=1867;image)
why the red X's? Also if you put your mouse over em you get an error. I used the template modification suggested. I took it back out for now, I really like BigMike's display - spill the beans dude ;)
laplake, the error was because it does actually try and keep your old shouts. Can you just use phpMyAdmin and rename the old column called "id" to "ID_SHOUT". That will fix the problem and the shoutbox should work fine after that.
BrandonMiller, the red X's are only shown for admins and it's to delete shouts. Not sure why you get an error when you go over them...
ok, so how do I format it like BigMike's? 8) ;D
Quote from: BrandonMiller on July 02, 2004, 04:23:45 PM
ok, so how do I format it like BigMike's? 8) ;D
Ask him ;)
I'd be happy just getting the view all, entry box, and shout on one line, guess I need to start lookin into the files 8)
Grudge, any new thoughts about my Pie-Chart mod issue?
wait for RC the final relaese, coz packages won't work now in beta 5/
That's not true. All packages *should* still work with beta 5. I think one or two may have bugs in it but they will still install and work as they did. The Pie Chart MOD problem seen above I have no idea about but I assume it's a problem with GD
unknown said me that, the packages are still not working and it is not yet released completely/
so it may not work, i tried to install, but gave me a hell of errors even though i chmod everything and the result was FAIL ::)
well - they may not all work I guess. But most should...
Quote from: Grudge on June 22, 2004, 04:01:32 AM
Ummm.... no idea then sorry. I assume it copied the font over OK. Ya may have to live without that one - it works fine on my board so it's probably just something not supported somewhere along the line :(
Installed beta 6 and then the mod.
It works now :D :)
You ever come up with a Fix for my simple one line problem in the Topic Solved Mod? The error where I Have the code error on the ADD Board section?
Quote from: Alisha on July 21, 2004, 01:33:29 PM
You ever come up with a Fix for my simple one line problem in the Topic Solved Mod? The error where I Have the code error on the ADD Board section?
Sorry probably haven't looked at it yet. To be honest I'm really busy at the moment and also will be away for a week from tomorrow. I'll probably look at fixing all current bugs for RC 1...
ok, no problem! :) Although, I am not sure its a BUG or well one that is common, I have never seen anything mentioned about on here! I was thinking it was just me :)
But, I have worked around it, so no biggie, when ever you get time! :)
Does the "topic solved" mod just include being able to mark topics solved, or does it also include the thing like they had on yabbse.org where there were the dropdown boxes where you would put things like your PHP version, forum version, and things like that?
Quote from: Tom on July 22, 2004, 06:28:45 PM
Does the "topic solved" mod just include being able to mark topics solved, or does it also include the thing like they had on yabbse.org where there were the dropdown boxes where you would put things like your PHP version, forum version, and things like that?
Just marking topics/replies as solved I'm afraid.
Ok, thanks Grudge.
Just FYI. All my MODS should work on RC1. The buddy doesn't work right now but the rest are OK.
i installed grudge the new RC , but i am not see any of your packages in the package manager!
Help Plz
You are browsing my server I assume?
so what to do, should i manually upload the packages.
Actually, I get an "unable to connect to server" message...is the server down?
may be some work is going there.
Okay... tonight I'll try get a index page for all those people who can't browse the server because of safe mode!
So safe mode is the problem? I tested it from my local server...I think it is "safe mode off", but I will check anyway.
come on make it soon, grudge
ok now iam moving, i have an conference in our office over the longhorn project of Microsoft,
see you Tommorow.
Telling me to hurry up only makes me less likely to do it.
Grudge,
A little help please, when you have time. I've added the search to my "Mark as Read" bar (taken from Index.template.php) which is in the "BoardIndex.template.php" and now it seems to take the focus off the shout button. When you type something in the shout box and hit enter or click the shout button, I get the message that "I forgot to put something in search". I know removing it will fix the problem but, I'd like to keep it and see if I can change the focus back to the shout button. Shout seems to work correctly on the other pages. Any clues?
Thanks
Xt.
Quote from: Grudge on August 18, 2004, 07:57:51 AM
Telling me to hurry up only makes me less likely to do it.
No grudge not to hurry up, but make it as great, we have a very few mods and themes here,
we need to make it more.
I am learning php and mysql through sachin, when i am good enough and have excellent skills like u, i will make great mods and themes
but for now, the entire team of members are dependent on you!
Sachin is as good as you, he is very busy with the project work so he is not able to spend time,
Hello All (warning... maiden post :) - noob alert ;D)
Grudge - just wanted to thanks for the brilliant Manage Holidays Package. I managed to download it today and install it without problems, and it seems to work in all respects bar one.
Mostly, it's fine - I can add individual holidays, etc and they appear ok. I can delete holidays, and they work fine too.
But when I try to import a holiday file, every time, it barfs (cleanly) with a "This is not a valid holiday file!" error.
I've tried everything I can think of (even attempting to decipher the PHP file itself, which isn't my strongest point), but I can't seem to resolve it. I have a list of UK dates for the next 3 years which I'd hoped to import (not relishing the prospect of entering them all manually).
Now (here's where it gets really weird...) I've tried exporting the existing holidays into a file and saving that, and then immediately trying to import that same file back in. Same result - it pretends not to like it.
I've examined the data format of the holiday file, and it seems ok, and looks like it ought to pass the 'strpos' test for determining that SMHoliday is present in the file in the first position. It is.
The location of the error indicates to me that it's not getting as far as the 'explode' bit where it splits out the dates and event-names - it must be failing before there, to get the fatal error. That can only mean the 'strpos' test, where it looks for the SMHoliday tag.
Could it possibly be something 'Windows' related? I'm running my SMF forum on IIS5, and it seems to work great. Similarly, I'm saving out my exported file, and loading it back in from a Windows directory. Would it have problems if the directory name had spaces in it, maybe? Eg: "C:\Documents and Settings\blah\My Documents\holiday.smf"? I'll try testing this, to see. My logic is, if the file it tried to open returned no data, then the $holidayData string that was being strpos-tested would be empty, so the test would fail, always. EDIT - nope... I tried loading it from C:\holiday.smf and that failed too :( /EDIT
I did wonder whether the '\n~' explode marker might be a problem (the ol' Unix Linefeed vs Windows Carriage-Return/Linefeed issue) - but I don't think it's that. If that WAS a problem, it would've barfed later in the php file, not where it does currently.
I also noticed, looking at the PHP file, that there doesn't seem to be any check to actually REMOVE the SMHoliday tag from the data which it tries to input into the database - which led me to think it might miss the first date, or enter a spurious one in - but obviously, I haven't got that far yet, to check it.
Any ideas? I'm almost out of them now, and this looks like such a useful mod, I'd love to get it going properly. Well done for putting it together!
Regards
BigJacko, would you mind attaching the file you exported to a post here? Or otherwise email it to me on
[email protected].
I'll try have a look at this and the other mod bugs that have been reported this weekend if I can. Thanks for the concise information.
Hmm, that's odd... the first time I did the export, I'm sure it gave me a 'save dialog', and I saved it to disk. Yeah, I did - I remember reading it in Notepad, and noticing that there were no carriage-returns (just line-feeds, or whatever). It opened ok in Ultraedit, though, and showed line-feed/carriage-returns in the file.
This time, though, the export routine just plonked it straight into my browser window, without giving me the chance to save it out. Wonder why?
Anyway - here is the data, cut-and-pasted in:
SMHoliday0000-04-01|April Fool's Day
~2004-09-22|Autumnal Equinox
~2005-09-22|Autumnal Equinox
~2006-09-22|Autumnal Equinox
~2007-09-23|Autumnal Equinox
~2008-09-22|Autumnal Equinox
~2009-09-22|Autumnal Equinox
~2010-09-22|Autumnal Equinox
~0000-12-25|Christmas Day
~0000-06-06|D-Day
~0000-10-31|Halloween
~2010-05-09|Mother's Day
~0000-01-01|New Years
~0000-03-17|St. Patrick's Day
~2002-06-21|Summer Solstice
~2003-06-21|Summer Solstice
~2004-06-20|Summer Solstice
~2005-06-20|Summer Solstice
~2006-06-21|Summer Solstice
~2007-06-21|Summer Solstice
~2008-06-20|Summer Solstice
~2009-06-20|Summer Solstice
~2010-06-21|Summer Solstice
~0000-10-24|United Nations Day
~0000-02-14|Valentine's Day
~2002-03-20|Vernal Equinox
~2003-03-20|Vernal Equinox
~2004-03-19|Vernal Equinox
~2005-03-20|Vernal Equinox
~2006-03-20|Vernal Equinox
~2007-03-20|Vernal Equinox
~2008-03-19|Vernal Equinox
~2009-03-20|Vernal Equinox
~2010-03-20|Vernal Equinox
~2002-12-21|Winter Solstice
~2003-12-21|Winter Solstice
~2004-12-21|Winter Solstice
~2005-12-21|Winter Solstice
~2006-12-21|Winter Solstice
~2007-12-21|Winter Solstice
~2008-12-21|Winter Solstice
~2009-12-21|Winter Solstice
~2010-12-21|Winter Solstice
Thanks for looking into this. :D
Hey, this is more mod-orientated (and its made by Grudge) so I hope I've got the right place ::)
Anyhoo, I've installed the warning system, and I've been trying to get it to work for moderators in their specific forums, so I've changed the line from
$context['can_warn'] = allowedTo('visual_warn_any');
to
$context['can_warn'] = allowedTo('moderate_board');
This gives mods the chance to go to the visualwarning.php page, but then after entering the info, it just goes to a white screen (like when there has been an error in the code) and doesn't warn the member, or send a PM or anything.
I was wondering if there is anything else I have to change.
It would also be nice to have the PM sent from the person who did the warning, rather than the admin.
Cheers in advance :)
Quote from: Grudge on August 10, 2004, 11:10:11 AM
Just FYI. All my MODS should work on RC1. The buddy doesn't work right now but the rest are OK.
Hi Grudge, I know you're a busy person, and I am sorry for this, but I am just wondering what you think of this. I finally managed to install your visual warning mod v1.11 on my SMF RC1 using boardmod. The install, images, db editor and the admin management all went smooth. But a few issues arose when I tested its functionality.
1) When I "warn" a user at any level, it puts the warning sign next to their name, it put the reason and sends a PM to the user, the user gets the PM but this error appears in the log
8: Undefined index: pm_successfully_sent
File: /home/landless/public_html/yabbse/Sources/Subs-Post.php
Line: 466
2) The muted and moderated levels of warning do not really apply the actual function except for showing the orange or yellow colors, the user still posts, and no errors appear in the log.
3) The banned level only worked on the user, but also I, the admin(same as the user "tester" the mod is tested on) couldn't login on the same computer until I deleted my cookies.
Suggestions? I really like this mod and would love to use it, if anything I can do aside from uninstalling it. Do you think this maybe implemented in the final release?
Quote from: Owen on September 03, 2004, 04:49:04 PM
Hey, this is more mod-orientated (and its made by Grudge) so I hope I've got the right place ::)
Anyhoo, I've installed the warning system, and I've been trying to get it to work for moderators in their specific forums, so I've changed the line from
$context['can_warn'] = allowedTo('visual_warn_any');
to
$context['can_warn'] = allowedTo('moderate_board');
This gives mods the chance to go to the visualwarning.php page, but then after entering the info, it just goes to a white screen (like when there has been an error in the code) and doesn't warn the member, or send a PM or anything.
I was wondering if there is anything else I have to change.
It would also be nice to have the PM sent from the person who did the warning, rather than the admin.
Cheers in advance :)
In VisualWarning.php have you changed it in there?
isAllowedTo('visual_warn_any');
Quote from: 1948Pal on September 03, 2004, 11:47:14 PM
1) When I "warn" a user at any level, it puts the warning sign next to their name, it put the reason and sends a PM to the user, the user gets the PM but this error appears in the log 8: Undefined index: pm_successfully_sent
File: /home/landless/public_html/yabbse/Sources/Subs-Post.php
Line: 466
OK. I would actually count this as a bug in SMF I intend to fix. To get rid of this message in function sendpm() add this:
loadLanguage('InstantMessage');
After the first line.
Quote
2) The muted and moderated levels of warning do not really apply the actual function except for showing the orange or yellow colors, the user still posts, and no errors appear in the log.
I don't see how this can be the case unless something wasn't installed correctly. Can you test this by doing the following. Create a dummy account and change their warning level to muted (level 3), check it doesn't work. And then in Post.php search for:
if ($user_info['warning'] > 2)
and add before it:
print_r($user_info);
and post the result (without the password line) in this thread.
Quote
3) The banned level only worked on the user, but also I, the admin(same as the user "tester" the mod is tested on) couldn't login on the same computer until I deleted my cookies.
I *really* can't get my head around this! The only banning stuff is done here:
db_query("
INSERT INTO {$db_prefix}banned (ID_MEMBER, ban_type, reason, notes, restriction_type, ban_time, expire_time)
VALUES ('$_REQUEST[user]', 'user_ban', '$message', '$txt[visual_warning_management]', 'full_ban', " . time() . ", " . ($_REQUEST['timelast'] != -1 ? time() + 24 * 60 * 60 * (int) $_REQUEST['timelast'] : 'NULL') . ")", __FILE__, __LINE__);
Which simply cannot cause you to get banned (unless you banned yourself). Can you try it again?
I did find a couple small bugs around but I'll wait to see how you get on before I upload a new version.
Quote from: BigJacko on September 03, 2004, 04:18:01 PM
Hmm, that's odd... the first time I did the export, I'm sure it gave me a 'save dialog', and I saved it to disk. Yeah, I did - I remember reading it in Notepad, and noticing that there were no carriage-returns (just line-feeds, or whatever). It opened ok in Ultraedit, though, and showed line-feed/carriage-returns in the file.
Ummm... you'll never guess (You may do), I copy and pasted your exact code into a file, saved it, and imported it, all with no problems at all!
I've re-exported the file and tested it, do you want to try the EXACT file I've attached here and see if it works? Also, the reason why I think it's not prompted is I probably haven't set up the headers right on the export function, but try the attached file which should be fine.
Hi Grude, the problem is here : "[warning] => 0 " (this is a part of result of a mute user).
I've see on DB and the level is correctly.
FaSan
Fasan,
Would you mind opening up Load.php, finding this function:
And at the bottom of the function (very end) adding:
print_r($user_info);
print_r($user_settings);
And just let me know what it gave for a moderated user (warning *should* appear in both arrays)
Quote from: Grudge on September 04, 2004, 08:08:18 AM
Fasan,
Would you mind opening up Load.php, finding this function:
And at the bottom of the function (very end) adding:
print_r($user_info);
print_r($user_settings);
And just let me know what it gave for a moderated user (warning *should* appear in both arrays)
what function ?
I'm an idiot :D
This one:
loadUserSettings
Array ( [groups] => Array (
- => 0 [1] => 4 ) [username] => xxx [name] => xxx [email] => [email protected] [warning] => 0 [passwd] => xxxxx [language] => italian [is_guest] => [is_admin] => [theme] => 1 [last_login] => 1094300206 [ip] => xxx[posts] => 0 [time_format] => %d %B %Y, %H:%M:%S [time_offset] => 0 [avatar] => Array ( [url] => LoR/Denethor.gif [ID_ATTACH] => 0 ) [smiley_set] => [buddy_list] => [messages] => 1 [unread_messages] => 1 [total_time_logged_in] => 6329 [permissions] => Array ( ) [query_see_board] => (FIND_IN_SET(0, b.memberGroups) OR FIND_IN_SET(4, b.memberGroups)) ) Array ( [ID_MEMBER] => 833 [memberName] => xxx [realName] => xxx [passwd] => xxxxx [emailAddress] => [email protected] [dateRegistered] => 1058133600 [personalText] => x [gender] => 1 [birthdate] => 0000-00-00 [websiteTitle] => [websiteUrl] => [location] => [ICQ] => [AIM] => [YIM] => [hideEmail] => 1 [timeFormat] => [signature] => [posts] => 0 [timeOffset] => 0 [avatar] => LoR/Denethor.gif [im_ignore_list] => [im_email_notify] => 1 [im_alert] => 0 [lastLogin] => 1094300206 [karmaBad] => 0 [karmaGood] => 0 [usertitle] => [lngfile] => italian [notifyAnnouncements] => 1 [notifyOnce] => 0 [MSN] => [memberIP] => xxx[secretQuestion] => [secretAnswer] => [zodiac] => [referer] => [bio] => [onlineTime] => 0 [WARNING] => 3 [instantMessages] => 1 [unreadMessages] => 1 [ID_THEME] => 1 [ID_GROUP] => 0 [is_activated] => 1 [validation_code] => [ID_MSG_LAST_VISIT] => 62679 [additionalGroups] => [showOnline] => 1 [smileySet] => [totalTimeLoggedIn] => 6329 [ID_POST_GROUP] => 4 [passwordSalt] => [buddyList] => [ID_ATTACH] => 0 )
OK. I'm just getting more confused now :D
Could you copy and paste the whole contents of that function here, so I can check it out? I want to make sure it's changed correctly. Sorry I'm not doing this myself but I don't have a 1.0 install at the mo...
Also, can you add this debug code, to that function, at the end of it again:
echo '
User Setting: ' . $user_settings['warning'] . '
User Info: ' . $user_info['warning'] . '
Test: ' . isset($user_settings['warning']) ? $user_settings['warning'] : 0;
Thanks a lot for your help!
Re: the ManageCalendar thing:
Cheers for your help Grudge... alas, it's given me the same error - "This is not a valid holiday file!"
I'm on SMF 1.0 RC1, if that makes any difference. I downloaded the tar.gz version 1.01 mod, using the package manager, and manually placed it into the Package Manager directory on my IIS5.1-based server. It seemed to install fine, and gave me all the new menu in the Admin section of the forum ok. I'm using Internet Explorer 6 to access the export/import file each time.
I think I'm gonna try deinstalling and reinstalling to see if it makes any difference.
Do you know if there's an easy way for me to run the system in some kind of debug mode, so that I can get it to spit out the contents of the $holidaydata variable, to make sure it's not empty? I'm no php wizz, I'm afraid, but I wondered if you thought it might be worth me looking there.
Thanks again for your assistance.
Quote from: Grudge on September 04, 2004, 07:43:09 AM
OK. I would actually count this as a bug in SMF I intend to fix. To get rid of this message in function sendpm() add this:
loadLanguage('InstantMessage');
After the first line.
This function should only be called by functions that load InstantMessage, so I wouldn't call it a bug. Remember that if you load a language file twice, it does actually load it twice - with penalty!
-[Unknown]
BigJacko,
You could type:
echo $holidayData;
after the bit where it's opened (Line 67).
It won't make any difference if you reinstall, as it's the same Source file. Try echoing the data and let me know how you get on.
Unknown,
OK. It's not actually a bug. It could check if a language string exists and if not load the file, but I guess that's probably too much bloat.
Cheers,
Grudge
Thanks Grudge...
Did the echo &holidayData;
... first time, got nothing (so assumed it didn't work). So I added echo "Failed test"; (and some {} bracketing) to show if it failed the strpos test- it did, and I saw that text at the top of my browser page, when reaching the error-page.
Then I went back and put an echo "holidayData is: "; above my first echo of $holiday data... ended up with the line holidayData is: Failed Test
I'm guessing from this, that $holidayData really is ending up empty-string.
I'm importing from C:\ path on my Windows XP Pro SP1 machine. Filename is holiday.smh (but it seems to make no diff). The server is running in a DMZ on a separate LAN subnet with special firewall rules about opening sockets to my LAN - I'll check it's not a firewall problem, in case (I don't think so though, cos I'd have expected a 'cannot find file' or 'cannot open socket' error somewhere along the line, if that were the case). EDIT - checked fw logs - definitely nothing funny going on there) /EDIT
My Server is also XP Pro SP1, running IIS5.1
Curiouser and curiouser... wonder what's happening to that filedata - and more importantly, how come it's not noticed its 'empty' (although obv the file really isn't).
Ta for the ideas so far - determined to crack this now :D
What about adding:
print_r($_FILES);
in the same place?
I now get:
Array ( [calinfo] => Array ( [name] => holiday2.smh [type] => text/plain [tmp_name] => C:\WINDOWS\TEMP\phpCD.tmp [error] => 0 [size] => 1230 ) ) holidayData is: Failed the test
Quote from: Grudge on September 04, 2004, 07:28:43 AM
In VisualWarning.php have you changed it in there?
isAllowedTo('visual_warn_any');
I have now, and it just takes me to a white page, not even the start of trying to warn people. There were 4 instances of
isAllowedTo('visual_warn_any');
which I changed.
I'm at a bit of a loss now :P
Owen, check you've properly terminated each line you changed with the semi-colon ;
I just had the same problem (white screen) when I was messing around with my issue - had me worried for a moment till I saw what I'd done.
Maybe it's the fault you're seeing? (apologies if this is totally wrong, but it only happened like 10 mins ago for me, so is fresh in my mind)
heh, yeah I thought about that, but twas not the problem :(
Hi Grudge.
Here is the user info you requested, these by the way just showed up on top of the home page of my forum, not in the error log,. is that normal?
QuoteArray ( [groups] => Array ( - => 0 [1] => 4 ) [username] => tester [name] => tester [email] => [email protected] [warning] => 0 [passwd] => ============== [language] => english [is_guest] => [is_admin] => [theme] => 0 [last_login] => 1094346096 [ip] => =========[posts] => 3 [time_format] => %A %B %d, %Y, %I:%M %p [time_offset] => 0 [avatar] => Array ( [url] => [ID_ATTACH] => 0 ) [smiley_set] => default [messages] => 2 [unread_messages] => 2 [total_time_logged_in] => 1802 [permissions] => Array (
- => karma_edit [1] => search_posts [2] => calendar_view [3] => search_posts [4] => calendar_view [5] => view_stats [6] => pm_read [7] => profile_remote_avatarr [8] => karma_edit [9] => pm_read [10] => pm_send [11] => profile_view_any [12] => profile_extra_own [13] => view_mlist [14] => view_stats [15] => who_view [16] => profile_view_own [17] => profile_identity_own [18] => who_view [19] => profile_view_own [20] => profile_identity_own [21] => view_mlist [22] => pm_send [23] => profile_view_any [24] => profile_extra_own [25] => profile_remote_avatarr [26] => delete_own [27] => lock_own [28] => mark_any_notify [29] => mark_notify [30] => modify_own [31] => poll_add_own [32] => poll_edit_own [33] => poll_post [34] => poll_view [35] => poll_vote [36] => post_attachment [37] => post_new [38] => post_reply_any [39] => remove_own [40] => report_any [41] => send_topic [42] => view_attachments [43] => delete_own [44] => lock_own [45] => mark_any_notify [46] => mark_notify [47] => modify_own [48] => poll_add_own [49] => poll_edit_own [50] => poll_post [51] => poll_view [52] => poll_vote [53] => post_attachment [54] => post_new [55] => post_reply_any [56] => remove_own [57] => report_any [58] => send_topic [59] => view_attachments ) [query_see_board] => (FIND_IN_SET(0, b.memberGroups) OR FIND_IN_SET(4, b.memberGroups)) [is_mod] => )
I tried the banning level again, and using a different machine (laptop) the user couldn't log in with a message indicating he is banned. But no other user on that same laptop can login either. Deleted the cookies, still banned, it keeps displaying the message " Sorry tester, you are banned from using this forum". The main PC I can login with anything else except the banned user. Maybe because eventhough there are two machines, they're still on the same public IP?
P.S., dunno if it makes any difference, I am using a converted template!
P.S.S., When I lower the level from banned to any lower level, the user still can't login, until I go to 'SMF ban member' option in the admin section and uncheck the benned user tick button that is marked by the visual warning management.
grudge when it is complete tell me, the warning level.
i like this feature a lot.
Hi Grudge,
As I mentioned in my earlier post, re the ManageCalendar problem
Quote from: BigJacko on September 04, 2004, 02:15:21 PM
I now get:
Array ( [calinfo] => Array ( [name] => holiday2.smh [type] => text/plain [tmp_name] => C:\WINDOWS\TEMP\phpCD.tmp [error] => 0 [size] => 1230 ) )
I've been thinking about this - presumably, it's barfing because my Windoze IUSR account doesn't have write privileges to the TMP and TEMP directories?
I've checked in phpinfo.php, and can see those Environmental Variables both listed, and both pointing to C:\Windows\Temp, and I was all set to simply add write permissions to that directory for the IUSR account.
But before I do, can anyone tell me if this is a dangerous or dumb thing to do? Would I be better off creating a wholly separate directory somewhere JUST for PHP to use as 'TEMP/TMP' that was away from the core Windows OS directories? If I did, should it be somewhere inside the wwwroot structure, or somewhere not served by web, but still not in the Windows folder?
What do you guys have, in your PHP Temp/Tmp variables, and what permission do you use?
Like I said, I'm a bit of a noob when it comes to PHP, so I'm not entirely sure what is 'best practice' here, and I'm a little wary of opening up a big hole in my OS. Any advice on that score, would be greatly appreciated. My apologies if this is a FAQ... if it is, I'm still hunting for it! LOL
Ah yes... forgot about your post. I would probably give PHP its own directory yes, and give them write permissions. Like you said that could well be the problem :)
Cheers Grudge! :D
In the intervening time, I took a gamble, and hunted around for clues on this topic. I found a link to an M$ support article (which alas I have now lost) - but basically, they stated quite boldly that the IUSR account needs FULL privileges to the TMP/TEMP directory - so I took my courage in both hands and went for it!
And of course, immediately I did that, the upload of the holiday.smh file worked, and I imported all my dates just fine! Wicked! ;D
So, thanks muchly for your assistance - your help DID point me in the direction I needed to stumble on to an answer, so I'm very grateful.
I'd still be interested to hear what any other Forum admins out there are doing in this PHP & Temp area, if they run their own IIS-based webservers. I'm guessing that IIS itself will stop any attempts by a user from reaching that Temp folder directly, but I am a tad wary of giving IUSR the power over such a deep-rooted Windoze folder. I'm inclined to agree with you, Grudge, that it's best to give PHP it's own, personal Temp folder which, if it all goes tits-up, has limited scope for disaster - but still... I'd be interested in hearing from those that have walked this path before!
Thanks again! Top work on the ManageCalendar package, btw... It's a perfect solution for us non-US users. And if anyone wants a UK import file containing all 'official' UK holidays thru to 2007 (plus Northern Ireland & Scotland) and most of the UK 'observances' and a few military anniversaries, just shout, or PM me. I'll be happy to supply.
No problem.
I'm from the UK too, part of the motivation for the mod :D
That said my forum is frequented by more US than UK citizens so I'll just stick with the dates being wrong :P
Quote from: Grudge on September 04, 2004, 08:27:10 AM
OK. I'm just getting more confused now :D
Could you copy and paste the whole contents of that function here, so I can check it out? I want to make sure it's changed correctly. Sorry I'm not doing this myself but I don't have a 1.0 install at the mo...
Also, can you add this debug code, to that function, at the end of it again:
echo '
User Setting: ' . $user_settings['warning'] . '
User Info: ' . $user_info['warning'] . '
Test: ' . isset($user_settings['warning']) ? $user_settings['warning'] : 0;
Thanks a lot for your help!
Excuse me, but in the weekend i go on the beach 8) 8) 8) Sea & Sun :P :P
Well, if i add that code, received this error result :
Notice: Undefined index: warning in /var/www/html/forum/Sources/Load.php on line 270
Notice: Undefined index: warning in /var/www/html/forum/Sources/Load.php on line 272
FaSan
The problem is here : $user_settings['warning'].
The Name of My Table is "WARNING" e not "warning". If i modified your test line on :
echo '
User Setting: ' . $user_settings['WARNING'] . '
User Info: ' . $user_info['warning'] . '
Test: ' . isset($user_settings['WARNING']) ? $user_settings['WARNING'] : 0;
The result is 3.
I Change this line :
'warning' => isset($user_settings['warning']) ? $user_settings['warning'] : 0,
in
'warning' => isset($user_settings['WARNING']) ? $user_settings['WARNING'] : 0,
and the problem is fixed ;)
Why do I get the feeling I am being ignored :(, abandoned :-[, left behind :'(, forgeotten about :-\
Grudge heeeeelp
Quote from: 1948Pal on September 09, 2004, 06:11:19 PM
Why do I get the feeling I am being ignored :(, abandoned :-[, left behind :'(, forgeotten about :-\
Grudge heeeeelp
Sorry, forgot your reply, and I've been on holiday since last week. The reason you are getting banned is because you are banning a user, logging out and checking they are banned! The way SMF works is it *properly* bans you from the forum once you are banned. So, if someone on your computer gets banned SMF will do several things to completly stop you from using the forum (registering a new account for example). So what you were experiencing with the ban was completly normal SMF behaviour. Had you not have logged into the test account to check it had worked you wouldn't of been banned. Basically, believe it works, don't test it out unless you're willing to delete your cookies and reopen your browser :)
The other thing about it not working on muted users etc I believe I fixed (uninstall and redownload the package to test)
Thanks Grudge. Hope you had a good vacation!
I will reinstall and come back if a problem.
BTW, if I add your package server in my pacjage manager as http://www.mymods.co.uk/Packages like you said in the first page of this thread, it says "cannot find page". Is this the correct url for your package server to add in the package manager?
That should be the correct URL. You could try:
http://www.mymods.co.uk/Packages/packages.xml
But I can't see what difference it should make...
Is the place for help also, well I have 3 of 4 mods installed, topic rating doesn't want to install correctly no error messages, except when I try and install again, ManageBoards.php comes with failure, I did chmod to 777 as specified in the very very first post.
What other mods did you have installed? It may be that the change is conflicted, let me know all that you have installed.
3 I have is
1. Buddy List
2. Redirection boards(core)
3. Member specific permissions.
Thanks Grudge.
Quote from: Grudge on September 16, 2004, 04:13:20 AM
That should be the correct URL. You could try:
http://www.mymods.co.uk/Packages/packages.xml
But I can't see what difference it should make...
Grudge, did you see there is a new movie comming out named "Grudge" just wondering, it looks real scary.
Grudge, you're right. It didn't make any difference, still came up with "page can not be found", I dunno, its wierd. I tried usinf firefox and I saw it was kinda looking for a "index.php".
And I am sorry to say that other than placing the warning signs next to posters names and the banning level, the mute and post moderation levels do not work for me. I get no errors, the tables are there and the information like meber id, level and reason are all filled in like they should, but for instance post moderation, the members still post and their posts appear right away. Can you still help.
when i try to install the Visual Warning / Post Moderation mod
what i'm i doing wrong here ???
Invalid default value for 'ID'
File: c:\appserv\www\msp\forum\Packages\temp\VisualWarningPdb.php
Line: 63
Show under Admin -> Support and Credits, what version of MySQL does your server have?
-[Unknown]
It probably shouldn't be setting a default value for the auto_increment
Version Information:
Forum version: SMF 1.0 RC2 (more detailed)
Current SMF version: SMF 1.0 (preview)
PHP version: 4.3.9
MySQL version: 4.1.7-nt
Server version: Apache/1.3.33 (Win32) PHP/4.3.9
GD version: bundled (2.0.28 compatible)
Yea, think it's my fault - will try to fix when I get home.
so any progress ??
Sorry, had done it but forgot to upload the files. Try downloading again and let me know if it works.
thank you it works :)
I need to add the SMF Package Server on my Package manager, but I dont know whats the URL.
Can anyone give me the URL to add the server ?
Quote from: vipmoney on January 03, 2005, 09:22:58 PM
I need to add the SMF Package Server on my Package manager, but I dont know whats the URL.
Can anyone give me the URL to add the server ?
Its in the sixth reply of this thread, http://www.mymods.co.uk/Packages.
Grudge, I just downloaded the post moderation mod from your server, installed and had a success on all the steps. However I'm getting these errors in the error log:
8: Undefined index: isPostModerated
/public_html/yabbse/Sources/Load.php
182
and
8: Undefined index: moderatedPosts
/public_html/yabbse/Sources/Load.php
183
And these keep on repeating and the eror pages growing.
Now I installed this mod before when it was made for RC2, which worked great, but now with 1.0 final, this happens. Any ideas?
Now fixed, please uninstall, redownload it and reinstall (2.03 = current version)
Thank you kindly
Hey Grudge,
I updated from RC1 to 1.01 and my redirection boards no longer work.
I reinstalled RB mod 1.12 but it won't work. no errors or anything. any ideas?
When you say it doesn't work does it:
1) Show up as installed in the package manager
2) Have the additional option under "Manage Boards"
3) Make any edits to Modifications.english.php
Can't seem to find the problem here :
Quote
http://www.salesplaza.nl/forum/index.php?action=warnadd2
8: Undefined index: pm_successfully_sent
Bestand: /home/admin/domains/salesplaza.nl/public_html/forum/Sources/Subs-Post.php
Regel: 497
What is wrong ?
using SMF 1.0
pm_sucessfully_sent vs. pm_successfully_sent, if I remember.
-[Unknown]
I can see the difference ;) but where can I find this "typ-o" ?
I'm not sure. I think it's in the InstantMessage language file.
-[Unknown]
can't find the problem......
Quote
8: Undefined index: pm_successfully_sent
Bestand: /home/admin/domains/salesplaza.nl/public_html/forum/Sources/Subs-Post.php
Regel: 497
What do I have to look for and what do I have to change to get rid of this message....?
Like I said, it's something like this:
$txt['pm_succesfully_sent'] = ''...;
In your InstantMessage language file.
-[Unknown]
It reads :
Quote
$txt['pm_successfully_sent'] = 'PM succesvol verstuurd aan \'%s\'.';
Tried even
Quote
$txt['pm_successfully_sent'] = 'PM succesvol verstuurd';
So this is rigth, isn't it ?
Hmm... have you installed any mods that might send pms of their own accord?
-[Unknown]
No, I don't think so. Only the visualwarning mod does this as far as I know.
:( Still can't find the "problem"
Hey Grudge,
I updated from RC1 to 1.01 and my redirection boards no longer work.
I reinstalled RB mod 1.12 but it won't work. no errors or anything. any ideas?
It says it installed fine, I get the link in modify boards just fine, but when I Type the redirection url and try to save the board it won't create it. I just get the "normal" board.
I am not using the default theme, but a custom one I created.
So if you edit a board you've set as redirection it simply doesn't work? What update package did you use?
Matt do you have a thread for each mod? If you don't it might be helpful :)
Anyway, I just installed BuddyList and it's cool but I found a tiny error... in buddy_v1.21.mod the subdirectory /icons is missing for assist.gif in the profile page resulting in a broken image (unless everyone else's assist.gif is not in /icons?).
Have you got plans to extend Buddy list? I noticed you called it a first version implying you do :) It would be sweet to be able to add people from their profile or from the memberlist :)
Thanks Matt, top job as always!
Chris
Hey mytreo,
I must confess I'm actually going to be scaling back the number of mods I have over the next day or two - as I just can't support them all (I really am finding time very scarce)
That said, the buddy list may be expanded in the future, but it should be forming part of SMF 1.1 so will no longer be a mod as such. It's possible that image may have moved I guess - who knows :)
Grudge