Customizing SMF > Modifications and Packages

SMF Post Prefix

(1/53) > >>

Diego Andrés:
Link to Mod




SMF Post Prefix
Developed by Diego Andrés


Introduction
SMF Post Prefix mod allows you to set prefixes for your topics and easily customize them with colors or replace them with icons..


Features

* Add/Edit prefixes

* Enable/Disable prefix
* Select a color for the prefix

* Text color
* Background color

* Invert color (white/black)
* Use an icon instead of text
* Select allowed groups to use specific prefix
* Select boards where the prefix can be used
* Select boards where the prefix will be required (forced)
* Permissions

* Manage prefixes
* Use prefixes (Global permission)
* Filter Topics by prefix

* Enable the filter box on selected boards
Languages


*NOTE
Version 3.0 and above are only compatible with SMF 2.1

Changelog
GitHub

License

--- Code: ---This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0
If a copy of the MPL was not distributed with this file,
You can obtain one at http://mozilla.org/MPL/

The contents of this package are subject to the Mozilla Public License Version
2.0 (the "License"); you may not use this package except in compliance with
the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
 *
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
--- End code ---

br360:
Thanks for submitting this- it's nice to finally see a topic prefix mod on the smf site.

Works great, but am getting a "Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/xxxxx/public_html/mysite/Sources/Recent.php on line 342" when I press either the "Show unread posts since last visit." and "Show new replies to your posts." links.

I got the same parse error on two different test sites (same line 342) with different mods on each site.

Here is my recent.php-





--- Code: ---),
'topic' => $row['id_topic'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.msg' . $row['id_msg'] . '#msg' . $row['id_msg'],
'link' => ($row['id_msg'] == $row['id_first_msg'] ? PostPrefix::formatPrefix($row['id_prefix']) : ''). ' <a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.msg' . $row['id_msg'] . '#msg' . $row['id_msg'] . '" rel="nofollow">' . $row['subject'] . '</a>'
 (line 342----->>>)   'start' => $row['num_replies'],
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'timestamp' => forum_time(true, $row['poster_time']),
--- End code ---

margarett:
Try to add a comma "," at the end of the previous line ;)

Diego Andrés:
LOL I have fixed that like three times, I need to pay more attention :P
Updated and fixed

br360:
Works great now. Thank you both. :)

Navigation

[0] Message Index

[#] Next page

Go to full version