←November→
Sun |
Mon |
Tue |
Wed |
Thu |
Fri |
Sat |
|
|
|
|
|
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
|
|
Sat, Nov 13, 2021 10:25 pm
Removing logo image from 2O11 SMF Theme
After I installed the 2O11 theme (the name of the theme has a capital "O"
between the two and the first "1", though it looks like it would be 2011)
on a Simple Machines Forum (SMF) web site, I noticed it placed a logo at the
top, right-hand side of pages with "SEFFAF Tema" displayed. The logo
overlapped a search field.
The image that was displayed was in the Themes directory for the site at
Themes/2O11/images/smflogo.png
. The relevant section of code
in the
index.template.php
was as follows:
echo '
', empty($settings['site_slogan']) ? '<img id="smflogo" src="' . $settings['images_url'] . '/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" />' : '<div id="siteslogan" class="floatright">' . $settings['site_slogan'] . '</div>', '
</div>
I removed the code starting with empty
and
extending through the first '</div>'
. I.e., I deleted the
following code:
, empty($settings['site_slogan']) ? '<img id="smflogo" src="' . $settings['images_url'] . '/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" />' : '<div id="siteslogan" class="floatright">' . $settings['site_slogan'] . '</div>', '
The empty
function in the PHP code checks
whether the variable $settings['site_slogan']
is empty. If it is
then the
question mark ternary operator results in the logo image being displayed.
If the variable is not empty, it creates a
div section in the
code where the value of site_slogan
is displayed from the
array settings
. Since the site owner didn't have a site slogan
and didn't want the image, I removed the code.
[More Info]
[/network/web/forums/smf/themes]
permanent link
Sat, Nov 06, 2021 8:30 pm
fcksavedurl
I needed to edit an index.template.php
PHP file for a
Simple Machines Forum
(SMF) theme to correct a problem with an image no longer being available
at the site pointed to in the code. For the missing image, I saw the following
code in the file:
<a
href="#" _fcksavedurl="#" class="yukari"><img src="http://i43.tinypic.com/24xml1i.png" _fcksavedurl="http://i43.tinypic.com/24xml1i.png" border="0" title="Yukarı" /></a>
Instead of the referenced image appearing, a large image with the
message "The image is no longer available appeared" on it appeared.
I found the
original image at
the WayBack Machine
from a web crawl performed by the WayBack Machine on
November 17, 2018. It was just an upward pointing arrow within a circle with
some decorative elements around the circle, so I could easily substitute
another image for it—clicking on the image within the theme resulted in
the page being redisplayed, but putting the viewer at the top of the page again
if the viewer had scrolled down the page. But I wondered why the
"_fcksavedurl=" was referenced. It is apparently because the code was edited
with the the CKEditor
WYSIWYG editor - see
"_fcksavedurl?".
The CKEditor was first released in 2003 as FCKeditor according to the
Wikipedia CKEditor page.
I changed both references to the prior image to point to the new image I
placed in the "images" subdirectory for the theme where the problem occurred.
[/network/web/forums/smf]
permanent link
Sun, Apr 02, 2017 8:49 pm
Color & BgColor Clickable BBCode Bar Mod installation
When I attempted to install the Color & BgColor Clickable BBCode Bar
mod on a Simple Machines Forum (SMF) 2.0.13 forum I saw an "Error in Packages"
message:
Error in Package Installation
At least one error was encountered during a test installation of this package.
It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently.
This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
[ More Info ]
[/network/web/forums/smf]
permanent link
Sun, Apr 17, 2016 10:28 pm
SELinux and CometChat
On a CentOS 7 server, I noticed that
setroubleshootd
seemed to be using an inordinate percentage of the CPU's time when I ran
the
top command. When I
used the
ausearch
command to query the audit daemon logs for entries that might have
been created by setroubleshootd, I saw references to the
cometchat/.htaccess
file in a user's directory beneath the
directory where her
Simple Machines Forum
(SMF) software resided. I also found tens of thousands of references
to that file in the
/var/log/messages
file. The server runs
Security-Enhanced Linux
(SELinux) and I found that I needed to update the SELinux context for
the file to stop such entries being logged.
[ More Info ]
[/network/web/forums/smf/cometchat]
permanent link
Sun, Apr 10, 2016 9:03 pm
Upgrading CometChat
I needed to upgrade
CometChat on a web site using
Simple Machines Forum (SMF) where
CometChat provides an online chat feature for users of the forum. The prior
version of CometChat was very out-of-date at 4.4.0 - see
Checking the version
of CometChat installed on a forum for methods for checking the version -
The SMF software was at the current version, 2.0.11. Before commencing the
installation of the upgrade to the latest version of CometChat,
I backed up the database for
the SMF forum and all of its files. I was able to successfully install
the
smf.zip
file that was part of the upgrade package, but so
far have not been able to install the
cometchat.zip
file needed
to complete the upgrade.
[ More Info ]
[/network/web/forums/smf/cometchat]
permanent link
Wed, Apr 06, 2016 10:51 pm
Checking the version of CometChat installed on a forum
If you are using
CometChat with a
Simple Machines Forum (SMF) to provide
an online chat feature for users of the forum and wish to determine
the version currently on a Linux system, make the current working
directory the one in which CometChat is installed, e.g.
cd
~/public_html/myforum/cometchat
, if that is the directory where
CometChat is installed; the
~
will be translated by the
system to represent your "home" directory, i.e, the directory you are
placed in when you log into the system. Then search for "currentversion"
in the
index.php
file, which will be found in the
admin
subdirectory beneath the
cometchat
directory. In the example below, the version installed is 4.4.0.
$ grep "currentversion" admin/index.php
$currentversion = '4.4.0';
$
You can also find the version by viewing the contents of the
CHANGELOG.txt
file in the CometChat directory. The current
version will be listed near the top of the file with the new features
provided in that version.
$ more CHANGELOG.txt
-------------------------------------------------------------
CometChat Change Log
-------------------------------------------------------------
-------------------------------------------------------------
4.4.0
-------------------------------------------------------------
Features
+ Jabber/XMPP support
+ Inline popups for plugins/extensions
+ Desktop Messenger support
+ CometService/BeaconPush/APE enabled for chatrooms
+ Facebook chat login with your own Facebook application keys
+ Enhanced and simplified theming
+ Sleaker scroller
The CometChat website has a statement that "We provide support only
for the latest stable version. No support is provided for beta or older
releases."
[/network/web/forums/smf]
permanent link
Mon, Feb 15, 2016 10:22 pm
SMF - The package you are trying to install cannot be located
When I attempted to update a
Simple Machines Forum (SMF) site from version 2.0.8 to 2.0.9 by choosing
SMF 2.0.8 to SMF 2.0.9 upgrade,
for the "Package to
Upload" under
Upload a Package on the
Package Manager
page for the forum, whch is reachable from the
Admin menu, I saw the
error message below:
An Error Has Occurred!
Package upload failed due to the following error:
"The package you are trying to install cannot be located. You may want
to manually upload the package to your Packages directory."
[ More Info ]
[/network/web/forums/smf]
permanent link
Sat, Aug 29, 2015 10:44 pm
Install MOD Stop Spammer v2.3.9 in other themes
The
Stop
Spammer mod can be used on a
Simple
Machines Forum (SMF) site in conjuction with the
httpBL mod to deny spammers
access to a forum. The package uses the
Stop Forum Spam site's database of spammers, which tracks IP addreses,
email addresses and usernames used by forum spammers.
To use the package, you need to obtain an API key from the
Stop Forum Spam site; you will provide that key at the settings page for
the mod once you have installed the package. You can view your keys at the
Stop Forum Spam API Keys page.
When you install the package, you can choose to install it for some or all
of the themes installed on the site. During the installation, the following
three files will be installed in the images/icons/
directory for
the themes that you choose during the Stop Spammer mod installation:
moreinfo.gif
spammer.gif
suspect.gif
E.g., if I chose to install the mod for the
"Blue
Moonlight" theme, the following would appear during the installation
process:
Blue Moonlight |
Extract File |
./Themes/Blue_Moonlight_SMF2/images/icons/spammer.gif |
Extract File |
./Themes/Blue_Moonlight_SMF2/images/icons/suspect.gif |
Extract File |
./Themes/Blue_Moonlight_SMF2/images/icons/moreinfo.gif |
You can get to the setings page for the package by putting
index.php?action=admin;area=regcenter;sa=settings
at the end
of the URL for the forum.
[/network/web/forums/smf]
permanent link
Thu, Aug 27, 2015 10:37 pm
httpBL Viewlog Error
Tonight I finally had time to locate and fix the cause of a viewlog error
message I had been seeing when attempting to view the httBL logs for a
Simple Machines Forum (SMF) site.
The problem was caused by the
httpBL.template.php
file in the
Themes/default
directory being empty, i.e., a zero byte file.
When I replaced it with the file by that name from the zip file I downloaded
to use for the httpBL installation, the problem disappeared.
[ More Info ]
[/network/web/forums/smf]
permanent link
Sun, Aug 23, 2015 9:31 pm
Problems encountered when installing httpBL
To combat forum spammers attempting to register on a
Simple Machines Forum (SMF) site, I
installed the
httpBL
package (also available from the
SMF mods
page on this site). The mod uses the http:BL API from
Project Honey Pot to stop
spammers from accesing your forum. Instructions for installing and using
it are at
Adding httpBL
to Block Forum Spammers.
I encountered several problems while installing the package. The first one
was when I attempted to install it for all themes on the site. I had installed
18 additional themes for the site. The install process indicated an issue with
only one of the themes, the
Excellent Love theme. An install test failed for that theme. When I
investigated the cause of the problem I found it was due to a file in the
theme having line endings appropriate for a text file on a Mac OS X system,
but I was installing it on a Linux system. I resolved that problem by converting
the line endings, i.e, the "newlines", in the file to the appropriate one for
a Linux system as explained in
Test failed for Excellent
Love theme for httpBL install.
After resolving the problem with the theme, I encountered another problem
installing the software. I saw a
Database Error
message stating that the log_httpBL
table didn't exist for
the forum, which took me a long time to track down and fix.
Then once I had the software installed and the mod's page indicated
it was working ok, when I attempted to view the httpBL logs by going
to the Administration Center then selecting Members, then
MOD httpBL, and then selecting one of the logs, or from the MOD
httBL page when I selected Spammers Log, Humans Log, or Errors Log,
I saw the following error message:
An Error Has Occurred!
Unable to load the 'viewlog' template.
Checking for where the error mesage might be found, I saw the following:
$ grep -rwl "Unable to load" --include=*.php
Sources/Load.php
Themes/default/languages/index.english.php
The error message is coming from
Themes/default/languages/index.english.php
. In that file, I see
the following:
$txt['theme_template_error'] = 'Unable to load the \'%1$s\' template.';
When I checked to see where theme_template_error
occurred, I
found the following:
$ grep -rwl "theme_template_error" --include=*.php
Sources/Load.php
Themes/default/languages/index.english.php
The Project Honey
Pot site is unavailable at the moment. If I visit the website at
www.prjecthoneypot.org, I see
the following error message:
502 Bad Gateway
nginx/0.7.65
Since the httpBL mod logs contain information on IP addresses retrieved
from the Project Honey Pot dabase, perhaps because the site is unavailable the
logs can not be displayed at the moment.
Update: when the Project Honey Pot site became available again I still
experienced the problem viewing the httpBL logs. I finally traced the cause
of the problem to a zero
byte httpBL.template.php file. Replacing that file fixed the problem.
[/network/web/forums/smf]
permanent link
Privacy Policy
Contact