Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=3703)
Custom blocks
ABOUT...Custom blocks, 2.5.2
© 2013-2020 by davidhs
© Polish language 2014-2018 by FishingManMatt
(https://creativecommons.org/licenses/by/3.0/)
This work is licensed under a Creative Commons Attribution 3.0 Unported License (https://creativecommons.org/licenses/by/3.0/).
DESCRIPTIONAllows to show custom blocks:
- Forum header:
- Above the forum header.
- Instead of default header of forum.
- Below the forum header.
- Forum menu:
- Instead of the forum menu.
- Message index:
- Above the child boards of the message index.
- Above the messages of the message index.
- Below the messages of the message index.
- Forum footer:
- Above the forum footer.
- Instead of default footer of forum.
- Below the forum footer.
Can be define any number of blocks through several parameters:
- Frame: HTML code with attributes for DIV tag which skirts the content of the block. If left empty is not put DIV tag. Through style or class attributes (CSS styles and classes) may indicate position, size and others characteristics of the block.
- Type: A block can contain HTML code (the default option), BBC or PHP.
- Content: Content of the block. Position, size and others characteristics of the block may be indicated here or in frame. Can be used the following variables:
- {BOARDURL} - URL to forum folder.
- {SCRIPTURL} - Web address of forum.
- {IMAGES_URL} - URL to the images folder in the users current theme.
- {DEFAULT_IMAGES_URL} - URL to the images folder in the default theme.
- {MENU} - Forum menu. Can be used only in blocks of the forum header, menu or footer. If it is not found, a block with the text of menu will be created in forum menu area.
- {COPYRIGHT} - Copyright of the forum. Can be used only in blocks of the forum header, menu or footer. If it is not found, a block with the text of copyright will be created in forum footer area.
- {ID_BOARD} - ID of the board. Can be used only in blocks of the message index.
- Order: Position of the block in relation to the other blocks from left to right.
- Permissions: Indicates the user group that can see the block. By default none.
- Active: Indicates if a block is active. By default active.
EXAMPLEQuoteBlocks above the forum header
Frame: style="height: 50px; border: 5px solid red;"
Type: BBC
Content: [size=12pt]Block above the header[/size] [color=red]- Block above the header - Block above the header[/color]
Order: 1
Permissions: Guest:View, User:View, Local moderator:View, Global moderator:View, Administrator:View
Active: Yes
Blocks in the forum header
Frame: style="float: left; width: 250px; height: 50px; border: 5px solid red;"
Type: HTML
Content: <span style="font-size: 12pt;">Block header 1</span> <span style="color: red;">- Block header 1 - Block header 1</span>
Order: 1
Permissions: User:View, Local moderator:View, Global moderator:View, Administrator:View
Active: Yes
Frame: style="float: left; width: 10%; height: 50px; border: 5px solid red;"
Type: BBC
Content: [size=12pt]Block header 2[/size] [color=red]- Block header 2[/color]
Order: 2
Permissions: User:View, Local moderator:View, Global moderator:View, Administrator:View
Active: Yes
Frame: style="float: center; height: 50px; border: 5px solid red;"
Type: PHP
Content: $bl = 'Block header 3';
echo '<span style="font-size: 12pt;">', $bl, '</span> <span style="color: red;">- ', $bl, ' - ', $bl, '</span>';
Order: 4
Permissions: User:View, Local moderator:View, Global moderator:View, Administrator:View
Active: Yes
Frame: style="float: right; width: 150px; height: 50px; border: 5px solid red;"
Type: BBC
Content: [size=12pt]Block header 4[/size] [color=red]- Block header 4[/color]
Order: 3
Permissions: User:View, Local moderator:View, Global moderator:View, Administrator:View
Active: Yes
Frame: style="height: 50px; border: 5px solid red;"
Type: BBC
Content: [size=12pt]Block header guest[/size] [color=red]- Block header guest - Block header guest[/color]
Order: 1
Permissions: Guest:View
Active: Yes
Blocks below the forum header
Frame: style="height: 50px; border: 5px solid red;"
Type: BBC
Content: [size=12pt]Block below the header[/size] [color=red]- Block below the header - Block below the header[/color]
Order: 1
Permissions: Guest:View, User:View, Local moderator:View, Global moderator:View, Administrator:View
Active: Yes
Blocks above the forum footer
Frame: style="height: 50px; border: 5px solid red;"
Type: BBC
Content: [size=12pt]Block above the footer[/size] [color=red]- Block above the footer - Block above the footer[/color]
Order: 1
Permissions: Guest:View, User:View, Local moderator:View, Global moderator:View, Administrator:View
Active: Yes
Blocks in the forum footer
Frame: style="float: left; width: 33%; height: 50px; border: 5px solid red;"
Type: HTML
Content: <span style="font-size: 12pt;">Block footer all</span> <span style="color: red;">- Block footer all - Block footer all</span>
Order: 1
Permissions: Guest:View, User:View, Local moderator:View, Global moderator:View, Administrator:View
Active: Yes
Frame: style="float: right; width: 50%; height: 50px; border: 5px solid red;"
Type: BBC
Content: [size=12pt]Block footer user[/size] [color=red]- Block footer user - Block footer user[/color]
{COPYRIGHT}
Order: 2
Permissions: User:View, Local moderator:View, Global moderator:View, Administrator:View
Active: Yes
Frame: style="float: right; width: 200px; height: 50px; border: 5px solid red;"
Type: PHP
Content: $bl = 'Block footer guest';
echo '<span style="font-size: 12pt;">', $bl, '</span> <span style="color: red;">- ', $bl, ' - ', $bl, '</span>';
Order: 2
Permissions: Guest:View
Active: Yes
Blocks below the forum footer
Frame: style="height: 50px; border: 5px solid red;"
Type: BBC
Content: [size=12pt]Block below the footer[/size] [color=red]- Block below the footer - Block below the footer[/color]
Order: 1
Permissions: Guest:View, User:View, Local moderator:View, Global moderator:View, Administrator:View
Active: Yes
Users, moderators and administrators see this:
Guests see this:
SMF COMPATIBILITY
- SMF 1.1 to 1.1.21.
- SMF 2.0 to 2.0.17.
- SMF 2.1 Beta 3 and RC1 to RC2.
This MOD is installed without errors in default theme and similars. For others themes is necessary to make changes at hand:
- Actualism, 2.0.4 (https://www.simplemachines.org/community/index.php?topic=506711.msg3984649#msg3984649).
- Core Theme, 2.0 (https://www.simplemachines.org/community/index.php?topic=506711.msg3984650#msg3984650).
- Immortality, 2.0.2 (https://www.simplemachines.org/community/index.php?topic=506711.msg3984651#msg3984651).
- Reseller, 2.0.8 (https://www.simplemachines.org/community/index.php?topic=506711.msg3984652#msg3984652).
- Thing, 2.0 (https://www.simplemachines.org/community/index.php?topic=506711.msg3984653#msg3984653).
LANGUAGES
- english, english_british.
- polish.
- spanish (SMF 1.1.x), spanish_es, spanish_latin.
DOWNLOADLink to MOD (https://custom.simplemachines.org/mods/index.php?mod=3703)
MANUAL INSTALLATIONSee https://wiki.simplemachines.org/smf/Manual_installation_of_mods
COLLABORATE WITH THIS MODThis work is licensed under a Creative Commons Attribution 3.0 Unported License (https://creativecommons.org/licenses/by/3.0/).
You are free to share and adapt this MOD. Also you can collaborate in different ways:
- Translate the mod into other languages, adding the translation in https://www.simplemachines.org/community/index.php?topic=506711.0.
- Write comments, detect errors or suggest improvements in support topics
in English https://www.simplemachines.org/community/index.php?topic=506711.0 and
in Spanish https://www.simplemachines.org/community/index.php?topic=503400.0. - Help to expand my collection of coins, banknotes and stamps, sending me something from your country via postal mail (ask me for address by personal message (https://www.simplemachines.org/community/index.php?action=pm;sa=send;u=242014)).
- Make a donation via PayPal (https://www.paypal.me/davidhs0/1).
CHANGE LOGLegend: ! Fixed + Added - Removed * Changed @ Note
2.5.2 2019-05-05
------------------
! SMF 2.1.x: Use HTML 5.
! SMF 2.x: The Quick Search of the Administration Center look for in settings variables of MOD.
+ SMF compatibility: 2.1 RC1 to RC2.
2.5.1 2018-12-06
------------------
! SMF 2.1.x: logAction is a deprecated function. Instead, logActions is used.
! Quick Edit and Insert Quote buttons did not work.
! Languages: Some language string in polish, polish-utf8.
+ Languages: New language string in polish, polish-utf8, thanks to FishingManMatt.
2.5 2018-08-12
------------------
! SMF 1.1.x: Theme of the generic form of displaying lists.
+ Upgrade code to the configuration variables from versions 2.3-2.4 to 2.5.
+ SMF 2.1.x: Uninstallation code to the configuration variables.
* In Administration panel, custom blocks are grouped by their position.
+ Custom blocks instead of the forum menu.
+ Custom blocks instead of the message index: Above the child boards, above the messages and below the messages.
* The variable to insert the copyright can be included in any block of the forum header, menu or footer.
+ Variable in content of a block of the forum header, menu or footer to insert the forum menu.
+ Variable in content of a block of the message index to insert the ID of the board.
+ Actions of Administration panel are logged to Administration log.
@ Administration log does not exists in SMF 1.1.x.
+ SMF compatibility: 2.0.11 to 2.0.15 and 2.1 Beta 3.
- SMF 2.0.x: Languages: spanish, spanish-utf8 (these are not used).
+ Languages: New language string in polish, polish-utf8, thanks to FishingManMatt.
2.4 2015-05-15
------------------
+ Field in administration panel to edit the position of the block.
+ SMF compatibility: 1.1.21 and 2.0.10.
+ Languages: polish, polish-utf8, thanks to FishingManMatt.
2.3.2 2014-10-08
------------------
+ SMF 1.1.x: Implemented a generic form of displaying lists, similar to SMF 2.0.x.
+ SMF compatibility: 1.1.20 and 2.0.9.
2.3.1 2014-06-24
------------------
! Use HTML entities in ISO-8859-1 languages.
+ Functions to get/update/delete data check the parameters before using them.
* Big multi-line text input fields are wider.
* Submit buttons have shortcut key to get focus.
+ SMF compatibility: 2.0.8.
2.3 2014-01-25
------------------
+ Upgrade code to the configuration variables from versions 2.1-2.2 to 2.3.
* Permissions for local moderator and global moderator instead of moderator.
+ Checkbox to select all users of permissions.
+ SMF compatibility: 2.0.7.
2.2 2013-12-20
------------------
! SMF 2.0.x: Functions of administration area must return settings variables for the Quick Search of the Administration Center.
+ SMF 2.0.x: The Quick Search of the Administration Center look for in settings variables of MOD.
+ Variable in content of the block to insert URL to forum folder.
2.1 2013-11-02
------------------
! There was a PHP error when the list of blocks was empty.
! Error in source code.
+ Upgrade code to the configuration variables from version 2.0.x to 2.1.
+ Field to indicate if a block is active.
+ Custom blocks above and below the forum header and above and below the forum footer.
2.0 2013-10-23
------------------
! SMF 2.0.x: Integration hooks functions parameters must be passed by reference.
! If user does not have permission to view any block of forum header (or footer), default forum header (or footer) must be displayed.
+ Upgrade code to the configuration variables from version 1.x to 2.0.
+ Variable in content of the block to insert web address of forum.
+ Variable in content of the block to insert url to the images folder in the users current theme.
+ Variable in content of the block to insert url to the images folder in the default theme.
* Permissions for user, moderator and administrator instead of user (not guest).
+ Parameter frame of block, where writing the block border characteristics.
+ SMF compatibility: 1.1.19, 2.0.5 and 2.0.6.
1.0 2013-05-06
------------------
@ This work is licensed under a Creative Commons Attribution 3.0 Unported License https://creativecommons.org/licenses/by/3.0/
+ Custom blocks instead of default header and footer of forum.
+ Administration panel.
+ SMF compatibility: 1.1 to 1.1.18.
+ SMF compatibility: 2.0 to 2.0.4.
+ Languages: english, english-utf8, spanish_es, spanish_es-utf8, spanish_latin, spanish_latin-utf8.
Congratulations on your mod. I like how you've made it compatible with 1.1.18 as well ;)
Nice mod and great idea!
Thanks
I'd love to see a DEMO site with a few ideas...
Quote from: FrizzleFried on July 01, 2013, 11:45:57 AM
I'd love to see a DEMO site with a few ideas...
I am sorry, I have not DEMO site. You can copy example data of first post and write on content other data (i.e. profile user, unread posts, news, logo, advertisement,..)
First, I would like to thank you for this mod. Custom Blocks is especially great for people who do not understand html/php and want to change/add there own top or footer menu. I'm new to SMF but I remember having the same problem with other forum software.
Before my question, my configuration first:
1) SimpleMachines (very new install)
2) SimplePortal (very new install)
3) Custom Blocks (very new install)
My question:
1) Is it possible to put my menu on top of everything on my web page , the first pixel so to speak (sorry, I can not show a link in this forum)?
2) Can I make Custom Blocks work with other themes than the default theme (got an error msg when I installed Custom Blocks about the other themes)? I also tried without SimplePortal, but same problem, no custom block to see in other themes than the default theme.
Thank you!
Quote from: Rudico on July 19, 2013, 08:52:00 AM
I'm new to SMF
Welcome to SMF world! :)
Quote from: Rudico on July 19, 2013, 08:52:00 AM
1) Is it possible to put my menu on top of everything on my web page , the first pixel so to speak (sorry, I can not show a link in this forum)?
With my MOD this is not possible. I do not know if exists a MOD for this.
You need modify index.template.php of your theme.
Quote from: Rudico on July 19, 2013, 08:52:00 AM
2) Can I make Custom Blocks work with other themes than the default theme (got an error msg when I installed Custom Blocks about the other themes)? I also tried without SimplePortal, but same problem, no custom block to see in other themes than the default theme.
Custom Blocks only work with default theme and others themes that do not modify the header and footer of the forum.
Hi, I've just downloaded this mod and it's not working properly. When it asks for the number of blocks, if I change the number from zero to '1', it adds a block but seems to delete the rest of the content from my forum. See attachment. The only way I can rectify it afterwards is by clicking back in the browser and re-entering a '0' value in the box. Please help!
Quote from: S Mac on July 21, 2013, 12:57:27 PM
Hi, I've just downloaded this mod and it's not working properly. When it asks for the number of blocks, if I change the number from zero to '1', it adds a block but seems to delete the rest of the content from my forum. See attachment. The only way I can rectify it afterwards is by clicking back in the browser and re-entering a '0' value in the box. Please help!
You have not attachment but you do not worry, it work properly.
When you write a '1' (i.e on blocks of header) your default header is deleted and a empty block is displayed. If you write something on content of block and click on save button, new content is displayed on block of header.
Hi, no it's still not working. Forgot to add the attachment before - here it is. This depicts the home page of my forum after entering a 1 value in the box. Thanks!
Quote from: S Mac on July 22, 2013, 03:31:35 PM
Hi, no it's still not working. Forgot to add the attachment before - here it is. This depicts the home page of my forum after entering a 1 value in the box. Thanks!
On your image, I suppouse white box is your empty block, but I do not know why do not display your forum.
Perhaps my MOD do not work with your theme...
Can you attach index.template.php and index.css of your theme? And tell me your SMF version.
Sorry, I have no idea how to attach the index.template.php and index.css of my template. Do I cut and paste? But I can tell you the forum version, sorry I forgot. It's 2.0.4 and the theme is curve. Does that help?
Quote from: S Mac on July 23, 2013, 05:14:10 PM
...the forum version, sorry I forgot. It's 2.0.4 and the theme is curve. Does that help?
This MOD work on SMF 1.1.x and 2.0.x and default theme (curve is default theme on 2.0.x. This MOD should work on your forum.
Quote from: S Mac on July 23, 2013, 05:14:10 PM
Sorry, I have no idea how to attach the index.template.php and index.css of my template. Do I cut and paste?
You should download these files from the server of your forum (use FTP or SSH):
- DIR_FORUM/Themes/default/index.template.php
- DIR_FORUM/Themes/default/css/index.css
and attach on a reply.
If you forum is public you can tell me the url of forum (on a post or by PM) and then I will can see your HTML code.
Also try do this on your custom blocks
QuoteBlocks in the forum header
Number of blocks: 1
Type: BBCode
Content: [html]<div style="height: 100px; border: 5px solid maroon;">[/html][size=14pt]Block header guest[/size] [color=maroon]- Block header guest - Block header guest - Block header guest - Block header guest[/color][html]</div>[/html]
Order: 0
Permissions: Guests
This create only one block on head and only for guest.
NOTE: I am not at home and I can only read forums once a day.
Thanks, I came up with a temporary solution and added a logo url. Here's the url though, if that helps...www.blackbeautyhaircareforum.org.uk
Quote from: S Mac on July 29, 2013, 04:35:02 PM
Thanks, I came up with a temporary solution and added a logo url. Here's the url though, if that helps...www.blackbeautyhaircareforum.org.uk
I see your forum and its HTML code.
- Your theme is not default theme of SMF (path: FORUM/Themes/default/). Your theme is "smf-curve" (path: FORUM/Themes/smf-curve/). I think code of header/footer are equal but I can not sure...
- I suppouse you had installed my MOD in your theme "smf-curve" (I can not know viewing only HTML code, I need php page), and you have defined 0 blocks.
I need see HTML code with 1 header block for help you.
Thank you. Every time I try to change something, it takes days..and I'm very tired, so I'll wait until the weekend before I make any changes. If it's ok, I'll get that info for you to look at then. :)
Hi, I've finally got round to getting the info you asked for on the support for custom blocks. Please find attached the files you requested. Is this what you need? I saved the info with the number of header blocks set to '1'. Thank you. :)
Sorry, I see your files, I copied in my 2.0.4 forum test but I see my custom blocks. I do not found problems. :(
I do not know what is the problem. I am intrigued. Can you say to me your URL forum? (You can write here or by PM)
Hi, link to the forum here. It probably won't help though, because custom blocks isn't enabled. It's only when I enter the value '1' in the Number of Blocks option. http://tinyurl.com/d8awp3m
Ola.
I installed this Mod and I haven't been able to use. I thought there was something wrong with my SMF. Then zeroed my these environments and put a clean install of SMF 2.0.5 and the problem persists.
When I click-> Admin-> Modification Settings-> Custom blocks
The menu does not appear. Nothing happens
I found the problem.
In the Admin-CustomBlocks.php file I changed the line 14 to:
function cb_admin_area(&$admin_areas)
and the line 22 to:
function cb_modify_modification(&$subActions)
Very good this mode. This of congratulations.
Quote from: dsystem on August 23, 2013, 10:48:15 PM
I found the problem.
In the Admin-CustomBlocks.php file I changed the line 14 to:
function cb_admin_area(&$admin_areas)
and the line 22 to:
function cb_modify_modification(&$subActions)
Very good this mode. This of congratulations.
Thants! It is true. This MOD and others of my MODs have errors like this. In my test forum with PHP 4 works.
I will solve these soon.
That's because the mod isn't compatible with PHP 5.4 and up yet.
I'm really interested in this model, rather than having to install a gate.
Can you tell me if the installation should still be going well ? Or should I directly change the theme to add additional blocks?
Quote from: crousti on September 01, 2013, 07:41:47 PM
I'm really interested in this model, rather than having to install a gate.
Can you tell me if the installation should still be going well ? Or should I directly change the theme to add additional blocks?
The MOD install well but you have a problem on your /Themes/default/index.template.php. I suppouse you has another MOD that change this file.
You can to do this:
- Install the MOD
- Apply to source code of /Themes/default/index.template.php the changes that does not have been made in the installation.
OK, I've tried this mod again and the footer seems to be working but not the header, but that's OK. So I want to place Google ad code in the footer. Do I paste the code into the box called Content?
Quote from: S Mac on September 03, 2013, 04:02:44 PM
OK, I've tried this mod again and the footer seems to be working but not the header, but that's OK. So I want to place Google ad code in the footer. Do I paste the code into the box called Content?
Yes, you can copy Google ad code into Content box.
New version:
2.0 2013-10-23
------------------
! SMF 2.0.x: Integration hooks functions parameters must be passed by reference.
! If user does not have permission to view any block of forum header (or footer), default forum header (or footer) must be displayed.
+ Upgrade code to the configuration variables from version 1.x to 2.0.
+ Variable in content of the block to insert web address of forum.
+ Variable in content of the block to insert url to the images folder in the users current theme.
+ Variable in content of the block to insert url to the images folder in the default theme.
* Permissions for user, moderator and administrator instead of user (not guest).
+ Parameter frame of block, where writing the block border characteristics.
+ SMF compatibility: 1.1.19, 2.0.5 and 2.0.6.
You may help me install this Mod in theme "actualism"?
Quote from: Padre gremista on October 25, 2013, 05:53:18 PM
You may help me install this Mod in theme "actualism"?
I suppouse you use SMF 2.0.x and Actualism theme 2.0.4.
1. Install this MOD (without apply to Actualism theme).
2. Edit /Sources/Themes/actualism_204/index.template.php:
Search (line 175)
<div id="wrapper"', !empty($settings['forum_width']) ? ' style="width: ' . $settings['forum_width'] . '"' : '', '>
<div id="header">
And replace by
<div id="wrapper"', !empty($settings['forum_width']) ? ' style="width: ' . $settings['forum_width'] . '"' : '', '>';
// BEGIN MOD CustomBlocks
if (!empty($context['cb_header']))
echo $context['cb_header'];
// END MOD CustomBlocks
echo '
<div id="header">
Search (line 293)
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="footer" style="border: 2px red solid">
<div class="sm_copy">
<span class="smalltext">', theme_copyright(), '</span>';
// Show the load time?
if ($context['show_load_time'])
echo '
<p class="loadtime smalltext">', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>
</div>';
echo '
<div class="cz_copy">
<strong>Actualism</strong> by <a href="http://www.jpr62.com/theme/index.php" target="_blank"><strong>Crip</strong></a>
</div>
<div class="clear"></div>
</div>
</div>';
And replace by
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="footer">';
// BEGIN MOD CustomBlocks
if (!empty($context['cb_footer']))
echo $context['cb_footer'], '
<div class="clear"></div>';
else
{
echo '
<div class="sm_copy">
<span class="smalltext">', theme_copyright(), '</span>';
// Show the load time?
if ($context['show_load_time'])
echo '
<p class="loadtime smalltext">', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>
</div>';
echo '
<div class="cz_copy">
<strong>Actualism</strong> by <a href="http://www.jpr62.com/theme/index.php" target="_blank"><strong>Crip</strong></a>
</div>
<div class="clear"></div>
</div>';
}
// END MOD CustomBlocks
echo '
</div>';
3. Edit /Sources/Themes/actualism_204/css/index.css (need for footer forum):
Search (line 3658)
#footer { background: url(../images/art/botbg.png) repeat-x; height: 55px;}
And replace by
#footer { background: url(../images/art/botbg.png) repeat; min-height: 55px;}
This is brilliant, it now works perfectly :) Is it possible to integrate an image gallery into the footer? How do I do this?
Quote from: S Mac on October 27, 2013, 05:33:16 PM
Is it possible to integrate an image gallery into the footer? How do I do this?
I do not know... May be copied in footer block PHP code that displays images.
New version:
2.1 2013-11-02
------------------
! There was a PHP error when the list of blocks was empty.
! Error in source code.
+ Upgrade code to the configuration variables from version 2.0.x to 2.1.
+ Field to indicate if a block is active.
+ Custom blocks above and below the forum header and above and below the forum footer.
Hi, can you tell me how to add my logo to the header block? I uploaded my logo to a folder using FTP - how do I get it into the header?
very nice mod ;)
Quote from: S Mac on November 04, 2013, 03:52:35 PM
Hi, can you tell me how to add my logo to the header block? I uploaded my logo to a folder using FTP - how do I get it into the header?
You can create a header block with this BBC content
[img]url_to_your_logo[/img]
and check all permissions (Guest:View, User:View, Moderator:View, Administrator:View).
Thank you, I've just tried this but it doesn't find the image. It just leaves a placeholder. Any ideas?
Where do you uploaded the logo? I suppouse your forum directory/folder is FORUM.
If your logo is on FORUM/logo.gif, then write
[img]url_forum/logo.gif[/img]
If your logo is on FORUM/img/logo.gif, then write
[img]url_forum/img/logo.gif[/img]
I sorted that, thanks. Now I want to give a credit at the bottom of the forum, underneath the SMF copyright part, for a logo and icons I've used on my forum. I want to say "icons by iconfinder.com", with a link to their website. Can you tell me how to do this please?
Quote from: S Mac on November 09, 2013, 07:07:02 PM
Now I want to give a credit at the bottom of the forum, underneath the SMF copyright part, for a logo and icons I've used on my forum. I want to say "icons by iconfinder.com", with a link to their website. Can you tell me how to do this please?
If you create a footer block, you must copy SMF copyright on the block, so you can create a
block below de forum footer (new feature on version 2.1 :) ) with only your copyright. For example:
QuoteFrame: ...
Type: HTML
Content:
<a href="...">icons by iconfinder.com</a>
Order: 1
Permissions: Guest:View, User:View, Moderator:View, Administrator:View
Active: Yes
Thanks. :)
davidhs,
Awesome mod! Good work.
I think I have found a bug. In Admin.php there are two lines:
- array('cbSettingsShow', 'area=modsettings;sa=cb'),
- array('cbSettingsEdit', 'area=modsettings;sa=cbedit'),
They break the built-in Admin "Quick Search" function. With those lines in Admin.php, all searches go to the Custom Block page. With those lines commented out, the "Quick Search" works as usual.
I have looked into the cause to see if I could uncover it, but as yet have had no joy, being new to php coding and SMF in general and as the search routines are rather intricate/cryptic.
I am guessing your experience will find the cause in no time.
Look forward to your thoughts,
Edward
P.S. Sorry forgot to some helpful details: SMF v2.0.6; same effect on themes, CORE and CURVE both.
Quote from: MaccabeeY on December 19, 2013, 02:24:43 PM
davidhs,
Awesome mod! Good work.
I think I have found a bug. In Admin.php there are two lines:
- array('cbSettingsShow', 'area=modsettings;sa=cb'),
- array('cbSettingsEdit', 'area=modsettings;sa=cbedit'),
They break the built-in Admin "Quick Search" function. With those lines in Admin.php, all searches go to the Custom Block page. With those lines commented out, the "Quick Search" works as usual.
I have looked into the cause to see if I could uncover it, but as yet have had no joy, being new to php coding and SMF in general and as the search routines are rather intricate/cryptic.
I am guessing your experience will find the cause in no time.
Look forward to your thoughts,
Edward
P.S. Sorry forgot to some helpful details: SMF v2.0.6; same effect on themes, CORE and CURVE both.
I test on two forums with this MOD and quick search works. I do not know why on your forum do not work :(
On your forum, Work with both lines commented? Or only one?
Somebody has same problem?
Quote from: davidhs on December 19, 2013, 05:25:55 PM
I test on two forums with this MOD and quick search works. I do not know why on your forum do not work :(
On your forum, Work with both lines commented? Or only one?
Somebody has same problem?
Thanks for the fast response.
Here are my steps:
- Install fresh, new SMF installation v2.0.6 (new database, new folder, everything)
- login
- Admin Center "Quick Search" <some text>
- all is good
- install CB mod
- Admin Center "Quick Search" <some text>
- Now search returns to the "Add block in the forum header" page
I am able to repeat, no problem. If you would, like, I can demonstrate via Skype...
I am happy to help out anyway you need
Edward
(Still love the creativity of your mods)
Now search for something that isn't in your mod.
Quote from: MaccabeeY on December 19, 2013, 06:47:58 PM
Admin Center "Quick Search" <some text>
I suppouse this is the search box at right of forum header...
I will test with a new install.
I install a new SMF 2.0.6 forum.
1. I search "SMF" and return a list of post with welcome smf post.
2. I install Custom blocks, search "SMF" and return a list of post with welcome smf post.
3. I create blocks above, in and below forum header, search "SMF" and return a list of post with welcome smf post.
All works.
Can you tell me (here or by PM) your forum url?
No, not that search box, but the one inside the admin panel.
Quote from: Arantor Beeblebrox the First on December 20, 2013, 07:53:55 AM
No, not that search box, but the one inside the admin panel.
I see now! Thanks, I have never used this. And does not work. :(
I will see why...
I see the reason. I will update all my MODs with this bug, soon.
So glad you found the bug. I dug around for quite a bit, but I'm still very new to SMF. Would you share what was the cause and effect?
Thx,
Edward
New version:
2.2 2013-12-20
------------------
! SMF 2.0.x: Functions of administration area must return settings variables for the Quick Search of the Administration Center.
+ SMF 2.0.x: The Quick Search of the Administration Center look for in settings variables of MOD.
+ Variable in content of the block to insert URL to forum folder.
Quote from: MaccabeeY on December 20, 2013, 05:01:24 PM
Would you share what was the cause and effect?
My settings functions must return something on SMF 2.0.x.
Before (bug)
function cbSettingsEdit()
{
...
}
function cbSettingsShow()
{
...
}
Now (correct)
function cbSettingsEdit($return_config = false)
{
...
if ($return_config)
return array(); // Is not necesary return anything here.
...
}
function cbSettingsShow($return_config = false)
{
...
if ($return_config)
{
$config_vars = array();
// Fill $config_vars
return $config_vars;
}
...
}
My settings functions must return something on SMF 2.0.x.
Now (correct)
...
function cbSettingsShow($return_config = false)
{
...
if ($return_config)
{
==> $config_vars = array();
// Fill $config_vars
return $config_vars;
}
...
}
Thank you for that!! I looking to test myself. And it turns out my eyes still "got it". The $configs_vars was the tree I was barking up during my research into your mod, I just had not pieced together HOW the mods populated the Search.
Much thanks
New version:
2.3 2014-01-25
------------------
+ Upgrade code to the configuration variables from versions 2.1-2.2 to 2.3.
* Permissions for local moderator and global moderator instead of moderator.
+ Checkbox to select all users of permissions.
+ SMF compatibility: 2.0.7.
Hi
Get error in ./Themes/default/index.template.php
./Themes/Aqua/index.template.php
Can't find full phrases to edit. What should I do?
Quote from: kamili34 on February 17, 2014, 05:09:51 PM
Hi
Get error in ./Themes/default/index.template.php
./Themes/Aqua/index.template.php
Can't find full phrases to edit. What should I do?
Where get this error? Have you images? What is your SMF version?
My smf version is 2.0.7. got error like in attachments screen.
Now I see the problem!
If your theme Aqua made changes in index.template.php is normal that issues error. This mod only install without error in default theme and similars.
Error in default/index.template.php could occur because another mod modify this file in some lines used by my mod
You will most probably not be able install my mod on your forum or you have to install it manually.
If you attach here your default/index.template.php file I can say with lines was change.
Thanks for help. :)
In default/index.template.php there are changes (I think was made by mod DevCenter and other with SEO).
If you want install on default theme you can:
1. Install on default theme with errors
2. Modify Themes/default/index.template.php. Replace (line 492 aprox.)
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>
';
if (!empty($modSettings['seo_enable_sitemap']))
echo'
<li><a href="', $scripturl, '?action=sitemap" title="', $txt['seo_sitemap'], '"><span>', $txt['seo_sitemap'], '</span></a></li>';
echo'
<li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>
</ul>';
// DevCenter - Show load average.
if (!empty($modSettings['devcenter_displayserverload']))
echo '<p>', sprintf($txt['devcenter_load'], $context['dc_load'][0], $context['dc_load'][1], $context['dc_load'][2]), '</p>'; // Show the load time?
if ($context['show_load_time'])
echo '
<p>', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';
by
<!-- BEGIN MOD CustomBlocks -->';
if (!empty($context['cb_footer_above']))
echo $context['cb_footer_above'];
if (!empty($context['cb_footer']))
echo $context['cb_footer'];
else
{
echo '
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>
';
if (!empty($modSettings['seo_enable_sitemap']))
echo'
<li><a href="', $scripturl, '?action=sitemap" title="', $txt['seo_sitemap'], '"><span>', $txt['seo_sitemap'], '</span></a></li>';
echo'
<li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>
</ul>';
// DevCenter - Show load average.
if (!empty($modSettings['devcenter_displayserverload']))
echo '<p>', sprintf($txt['devcenter_load'], $context['dc_load'][0], $context['dc_load'][1], $context['dc_load'][2]), '</p>'; // Show the load time?
if ($context['show_load_time'])
echo '
<p>', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';
}
if (!empty($context['cb_footer_below']))
echo $context['cb_footer_below'];
// END MOD CustomBlocks
If you want install on Aqua Style theme you can install and then modify Themes/Aqua/index.template.php.
1. Search (line 848)
<h1 class="forumtitle">
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? '<img src="' . $settings['images_url'] . '/theme/logo.png" alt="' . $context['forum_name'] . '" />' : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
</h1>
and replace by
<!-- BEGIN MOD CustomBlocks -->';
if (!empty($context['cb_header_above']))
echo $context['cb_header_above'];
if (!empty($context['cb_header']))
echo $context['cb_header'];
else
{
echo '
<h1 class="forumtitle">
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? '<img src="' . $settings['images_url'] . '/theme/logo.png" alt="' . $context['forum_name'] . '" />' : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
</h1>';
}
echo '
<!-- END MOD CustomBlocks -->
2. Search (line 620)
echo '
</div>
<br class="clear" />
', !empty($settings['forum_width']) ? '
</div>' : '';
and replace by
echo '
</div>
<br class="clear" />';
// BEGIN MOD CustomBlocks
if (!empty($context['cb_header_below']))
echo $context['cb_header_below'];
// END MOD CustomBlocks
echp !empty($settings['forum_width']) ? '
</div>' : '';
3. Search (line 723)
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>
<li class="copyright">', aqua_copy(), '</li>
';
if (!empty($modSettings['seo_enable_sitemap']))
echo'
<li><a href="', $scripturl, '?action=sitemap" title="', $txt['seo_sitemap'], '"><span>', $txt['seo_sitemap'], '</span></a></li>';
echo'
<li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>
</ul>';
// DevCenter - Show load average.
if (!empty($modSettings['devcenter_displayserverload']))
echo '<p>', sprintf($txt['devcenter_load'], $context['dc_load'][0], $context['dc_load'][1], $context['dc_load'][2]), '</p>'; // Show the load time?
if ($context['show_load_time'])
echo '
<p>', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';
and replace by
<!-- BEGIN MOD CustomBlocks -->';
if (!empty($context['cb_footer_above']))
echo $context['cb_footer_above'];
if (!empty($context['cb_footer']))
echo $context['cb_footer'];
else
{
echo '
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>
<li class="copyright">', aqua_copy(), '</li>
';
if (!empty($modSettings['seo_enable_sitemap']))
echo'
<li><a href="', $scripturl, '?action=sitemap" title="', $txt['seo_sitemap'], '"><span>', $txt['seo_sitemap'], '</span></a></li>';
echo'
<li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>
</ul>';
// DevCenter - Show load average.
if (!empty($modSettings['devcenter_displayserverload']))
echo '<p>', sprintf($txt['devcenter_load'], $context['dc_load'][0], $context['dc_load'][1], $context['dc_load'][2]), '</p>'; // Show the load time?
if ($context['show_load_time'])
echo '
<p>', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';
}
if (!empty($context['cb_footer_below']))
echo $context['cb_footer_below'];
// END MOD CustomBlocks
Warning: I have not tested these changes.
Quote2. Search (line 620)
echo '
</div>
<br class="clear" />
', !empty($settings['forum_width']) ? '
</div>' : '';
and replace by
echo '
</div>
<br class="clear" />';
// BEGIN MOD CustomBlocks
if (!empty($context['cb_header_below']))
echo $context['cb_header_below'];
// END MOD CustomBlocks
echp !empty($settings['forum_width']) ? '
</div>' : '';
Got error only on this.
::)
Quote from: kamili34 on February 20, 2014, 05:34:40 PM
Quote2. Search (line 620)
echo '
</div>
<br class="clear" />
', !empty($settings['forum_width']) ? '
</div>' : '';
and replace by
echo '
</div>
<br class="clear" />';
// BEGIN MOD CustomBlocks
if (!empty($context['cb_header_below']))
echo $context['cb_header_below'];
// END MOD CustomBlocks
echp !empty($settings['forum_width']) ? '
</div>' : '';
Got error only on this.
::)
:-[ I am sorry, it is a typo (
echp --> echo)
[...]and replace by
echo '
</div>
<br class="clear" />';
// BEGIN MOD CustomBlocks
if (!empty($context['cb_header_below']))
echo $context['cb_header_below'];
// END MOD CustomBlocks
echo !empty($settings['forum_width']) ? '
</div>' : '';
Great now time to test. :P
I will buy you a beer if I could. :D
Quote from: kamili34 on February 20, 2014, 07:33:37 PM
Great now time to test. :P
I will buy you a beer if I could. :D
:laugh:
Hi
installed thsi mod on a fresh upgrade of 2.0.7 on a test forum. When I fill in the sample code as per you sample it get this error
Method Not Implemented
GET to /test/index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Any ideas
Quote from: Bluey on May 16, 2014, 03:55:22 AM
Hi
installed thsi mod on a fresh upgrade of 2.0.7 on a test forum. When I fill in the sample code as per you sample it get this error
Method Not Implemented
GET to /test/index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Any ideas
Hi Bluey,
I do not known... I create all example blocks in my test forum 2.0.7 and works.
Perhaps you have a typo? Try create only one block type HTML with content "Test".
New version:
2.3.1 2014-06-24
------------------
! Use HTML entities in ISO-8859-1 languages.
+ Functions to get/update/delete data check the parameters before using them.
* Big multi-line text input fields are wider.
* Submit buttons have shortcut key to get focus.
+ SMF compatibility: 2.0.8.
New version:
2.3.2 2014-10-08
------------------
+ SMF 1.1.x: Implemented a generic form of displaying lists, similar to SMF 2.0.x.
+ SMF compatibility: 1.1.20 and 2.0.9.
Could I use this mod too add a custom border images I have downloaded on my computer?
Quote from: CannabisGamerClub on October 13, 2014, 08:28:09 PM
Could I use this mod too add a custom border images I have downloaded on my computer?
I do not understand what you want to do. Perhaps you need MOD BBCode with style http://custom.simplemachines.org/mods/index.php?mod=2505
Can you attach an example image?
Hi,
I've installed this mod.
I can't figure out how to change a block. I've added a block above the header and decided that I want to put the block beneath the header instead.
I can't find where I can do this, or even edit the text that I've already put there.
Where do I do this?
Also, I'd love to add a picture to my block, I haven't found this option either.
Thanks very much,
Ariel
Quote from: arielvered on October 26, 2014, 08:26:20 AM
I can't figure out how to change a block. I've added a block above the header and decided that I want to put the block beneath the header instead.
I can't find where I can do this, or even edit the text that I've already put there.
Where do I do this?
You can edit the text of the block with "Modify" option.
You can not move a block to other area (i.e. from header to above header). This can be an enhancement for next update ;)
Now you can only change the order of blocks in area.
Quote from: arielvered on October 26, 2014, 08:26:20 AM
Also, I'd love to add a picture to my block, I haven't found this option either.
Create a block like this:
Type HTML, content
...<img src="your_img_url">...
or type BBC, content
...[img]your_img_url[/img]...
Thanks so much for your help.
I hope that I have attached the way it looks right now!
Not working giving error when installing
Even for curve theme plz fix it
Quote from: waplist on December 01, 2014, 07:17:50 AM
Not working giving error when installing
Even for curve theme plz fix it
Can you attach images of screen with your install error, please?
What is your forum version?
Ok wait a minute .my veersion is 2.0.9
And i am using reseller theme
Here is it
Ok, I see your problem.
I am sorry, but this mod only can be installed on default theme (and perhaps in others very similars). :(
If you want install in other theme you can try a manual install.
To moderators: Text to move to first post
QuoteSubject:
QuoteCustom blocks, 2.4 (SMF 1.1-1.1.21, 2.0-2.0.10)
Body:
Quote
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3703)
Custom blocks
ABOUT...
Custom blocks, 2.4
© 2013-2015 by davidhs
© Polish language 2014-2015 by FishingManMatt
(http://creativecommons.org/licenses/by/3.0/)
This work is licensed under a Creative Commons Attribution 3.0 Unported License (http://creativecommons.org/licenses/by/3.0/).
DESCRIPTION
Allows to show custom blocks:
- Above the forum header.
- Instead of default header of forum.
- Below the forum header.
- Above the forum footer.
- Instead of default footer of forum.
- Below the forum footer.
Can be define any number of blocks through several parameters:
- Frame: HTML code with attributes for DIV tag which skirts the content of the block. If left empty is not put DIV tag. Through style or class attributes (CSS styles and classes) may indicate position, size and others characteristics of the block.
- Type: A block can contain HTML code (the default option), BBC or PHP.
- Content: Content of the block. Position, size and others characteristics of the block may be indicated here or in frame. Can be used the following variables:
- {COPYRIGHT} - Copyright of the forum.
- {BOARDURL} - URL to forum folder.
- {SCRIPTURL} - Web address of forum.
- {IMAGES_URL} - URL to the images folder in the users current theme.
- {DEFAULT_IMAGES_URL} - URL to the images folder in the default theme.
Variable {COPYRIGHT} must be on some block of forum footer. If it is not, will be create a block with the text of copyright. - Order: Position of the block in relation to the other blocks from left to right.
- Permissions: Indicates the user group that can see the block. By default none.
- Active: Indicates if a block is active. By default active.
EXAMPLE
QuoteBlocks above the forum header
Frame: style="height: 50px; border: 5px solid red;"
Type: BBC
Content: [size=12pt]Block above the header[/size] [color=red]- Block above the header - Block above the header[/color]
Order: 1
Permissions: Guest:View, User:View, Local moderator:View, Global moderator:View, Administrator:View
Active: Yes
Blocks in the forum header
Frame: style="float: left; width: 250px; height: 50px; border: 5px solid red;"
Type: HTML
Content: <span style="font-size: 12pt;">Block header 1</span> <span style="color: red;">- Block header 1 - Block header 1</span>
Order: 1
Permissions: User:View, Local moderator:View, Global moderator:View, Administrator:View
Active: Yes
Frame: style="float: left; width: 10%; height: 50px; border: 5px solid red;"
Type: BBC
Content: [size=12pt]Block header 2[/size] [color=red]- Block header 2[/color]
Order: 2
Permissions: User:View, Local moderator:View, Global moderator:View, Administrator:View
Active: Yes
Frame: style="float: center; height: 50px; border: 5px solid red;"
Type: PHP
Content: $bl = 'Block header 3';
echo '<span style="font-size: 12pt;">', $bl, '</span> <span style="color: red;">- ', $bl, ' - ', $bl, '</span>';
Order: 4
Permissions: User:View, Local moderator:View, Global moderator:View, Administrator:View
Active: Yes
Frame: style="float: right; width: 150px; height: 50px; border: 5px solid red;"
Type: BBC
Content: [size=12pt]Block header 4[/size] [color=red]- Block header 4[/color]
Order: 3
Permissions: User:View, Local moderator:View, Global moderator:View, Administrator:View
Active: Yes
Frame: style="height: 50px; border: 5px solid red;"
Type: BBC
Content: [size=12pt]Block header guest[/size] [color=red]- Block header guest - Block header guest[/color]
Order: 1
Permissions: Guest:View
Active: Yes
Blocks below the forum header
Frame: style="height: 50px; border: 5px solid red;"
Type: BBC
Content: [size=12pt]Block below the header[/size] [color=red]- Block below the header - Block below the header[/color]
Order: 1
Permissions: Guest:View, User:View, Local moderator:View, Global moderator:View, Administrator:View
Active: Yes
Blocks above the forum footer
Frame: style="height: 50px; border: 5px solid red;"
Type: BBC
Content: [size=12pt]Block above the footer[/size] [color=red]- Block above the footer - Block above the footer[/color]
Order: 1
Permissions: Guest:View, User:View, Local moderator:View, Global moderator:View, Administrator:View
Active: Yes
Blocks in the forum footer
Frame: style="float: left; width: 33%; height: 50px; border: 5px solid red;"
Type: HTML
Content: <span style="font-size: 12pt;">Block footer all</span> <span style="color: red;">- Block footer all - Block footer all</span>
Order: 1
Permissions: Guest:View, User:View, Local moderator:View, Global moderator:View, Administrator:View
Active: Yes
Frame: style="float: right; width: 50%; height: 50px; border: 5px solid red;"
Type: BBC
Content: [size=12pt]Block footer user[/size] [color=red]- Block footer user - Block footer user[/color]
{COPYRIGHT}
Order: 2
Permissions: User:View, Local moderator:View, Global moderator:View, Administrator:View
Active: Yes
Frame: style="float: right; width: 200px; height: 50px; border: 5px solid red;"
Type: PHP
Content: $bl = 'Block footer guest';
echo '<span style="font-size: 12pt;">', $bl, '</span> <span style="color: red;">- ', $bl, ' - ', $bl, '</span>';
Order: 2
Permissions: Guest:View
Active: Yes
Blocks below the forum footer
Frame: style="height: 50px; border: 5px solid red;"
Type: BBC
Content: [size=12pt]Block below the footer[/size] [color=red]- Block below the footer - Block below the footer[/color]
Order: 1
Permissions: Guest:View, User:View, Local moderator:View, Global moderator:View, Administrator:View
Active: Yes
Users, moderators and administrators see this:
Guests see this:
SMF COMPATIBILITY
- SMF 1.1 to 1.1.21.
- SMF 2.0 to 2.0.10.
LANGUAGES
- english, english_british.
- polish (incomplete).
- spanish, spanish_es, spanish_latin.
If you want help translating it into other languages, you can add the translation in this topic.
DOWNLOAD
Link to MOD (http://custom.simplemachines.org/mods/index.php?mod=3703)
MANUAL INSTALLATION
See http://wiki.simplemachines.org/smf/Manual_installation_of_mods
SUPPORT AND COMMENTS
In English: http://www.simplemachines.org/community/index.php?topic=506711.0
In Spanish: http://www.simplemachines.org/community/index.php?topic=503400.0
CHANGE LOG
Legend: ! Fixed + Added - Removed * Changed @ Note
2.4 2015-05-15
------------------
+ Field in administration panel to edit the position of the block.
+ Languages: polish, polish-utf8, thanks to FishingManMatt.
+ SMF compatibility: 1.1.21 and 2.0.10.
2.3.2 2014-10-08
------------------
+ SMF 1.1.x: Implemented a generic form of displaying lists, similar to SMF 2.0.x.
+ SMF compatibility: 1.1.20 and 2.0.9.
2.3.1 2014-06-24
------------------
! Use HTML entities in ISO-8859-1 languages.
+ Functions to get/update/delete data check the parameters before using them.
* Big multi-line text input fields are wider.
* Submit buttons have shortcut key to get focus.
+ SMF compatibility: 2.0.8.
2.3 2014-01-25
------------------
+ Upgrade code to the configuration variables from versions 2.1-2.2 to 2.3.
* Permissions for local moderator and global moderator instead of moderator.
+ Checkbox to select all users of permissions.
+ SMF compatibility: 2.0.7.
2.2 2013-12-20
------------------
! SMF 2.0.x: Functions of administration area must return settings variables for the Quick Search of the Administration Center.
+ SMF 2.0.x: The Quick Search of the Administration Center look for in settings variables of MOD.
+ Variable in content of the block to insert URL to forum folder.
2.1 2013-11-02
------------------
! There was a PHP error when the list of blocks was empty.
! Error in source code.
+ Upgrade code to the configuration variables from version 2.0.x to 2.1.
+ Field to indicate if a block is active.
+ Custom blocks above and below the forum header and above and below the forum footer.
2.0 2013-10-23
------------------
! SMF 2.0.x: Integration hooks functions parameters must be passed by reference.
! If user does not have permission to view any block of forum header (or footer), default forum header (or footer) must be displayed.
+ Upgrade code to the configuration variables from version 1.x to 2.0.
+ Variable in content of the block to insert web address of forum.
+ Variable in content of the block to insert url to the images folder in the users current theme.
+ Variable in content of the block to insert url to the images folder in the default theme.
* Permissions for user, moderator and administrator instead of user (not guest).
+ Parameter frame of block, where writing the block border characteristics.
+ SMF compatibility: 1.1.19, 2.0.5 and 2.0.6.
1.0 2013-05-06
------------------
@ This work is licensed under a Creative Commons Attribution 3.0 Unported License http://creativecommons.org/licenses/by/3.0/
+ Custom blocks instead of default header and footer of forum.
+ Administration panel.
+ SMF compatibility: 1.1 to 1.1.18.
+ SMF compatibility: 2.0 to 2.0.4.
+ Languages: english, english-utf8, spanish_es, spanish_es-utf8, spanish_latin, spanish_latin-utf8.
New version:
2.4 2015-05-15
------------------
+ Field in administration panel to edit the position of the block.
+ Languages: polish, polish-utf8, thanks to FishingManMatt.
+ SMF compatibility: 1.1.21 and 2.0.10.
In Spanish support topic an user want install this mod over theme Immortality http://custom.simplemachines.org/themes/index.php?lemma=2670 but when install occurs two errors http://www.simplemachines.org/community/index.php?topic=503400.msg3822287#msg3822287
Copyright of this theme allow to do changes, so I write here manual modifications to do over this theme:
Quote
Mod: Custom blocks, 2.4
Theme: Immortality http://custom.simplemachines.org/themes/index.php?lemma=2670
Modifications to do:
1. File index.template.php:
1.1. Error #2:
Search (line 175)
<div id="header"><div class="frame">
<div id="headerlogo">
<div id="logo">
<a href="'.$scripturl.'" title=""></a>
</div>
</div>
and replace by
<div id="header"><div class="frame">
';
if (empty($context['cb_header_above']))
{
echo '
<div id="headerlogo">
<div id="logo">
<a href="'.$scripturl.'" title=""></a>
</div>
</div>';
}
echo '
1.2. Error #4:
Search (line 326)
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>
<li class="copyright"><strong>Immortality</strong> by <a href="http://www.simplemachines.org/community/index.php?action=profile;u=304512" target="_blank">Misa95</a> & <a href="http://www.simplemachines.org/community/index.php?action=profile;u=270467" target="_blank">KaJzEr 283</a></li>
<li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>
</ul>';
// Show the load time?
if ($context['show_load_time'])
echo '
<p>', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';
and replace by
<!-- BEGIN MOD CustomBlocks -->';
if (!empty($context['cb_footer_above']))
echo $context['cb_footer_above'];
if (!empty($context['cb_footer']))
echo $context['cb_footer'];
else
{
echo '
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>
<li class="copyright"><strong>Immortality</strong> by <a href="http://www.simplemachines.org/community/index.php?action=profile;u=304512" target="_blank">Misa95</a> & <a href="http://www.simplemachines.org/community/index.php?action=profile;u=270467" target="_blank">KaJzEr 283</a></li>
<li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>
</ul>';
// Show the load time?
if ($context['show_load_time'])
echo '
<p>', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';
}
if (!empty($context['cb_footer_below']))
echo $context['cb_footer_below'];
// END MOD CustomBlocks
Notes:
If this mod is uninstalled, then these manual modifications must be undone.
The blocks in the forum header are not used (only above/below the forum header).
Manual modifications to do over theme Thing:
Quote
Mod: Custom blocks, 2.4
Theme: Thing http://custom.simplemachines.org/themes/index.php?lemma=2038
Modifications to do:
1. File index.template.php:
1.1. Error #2:
Search (line 177)
<h1 class="forumtitle">
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
</h1>';
// the upshrink image, right-floated
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>', '
and replace by
<!-- BEGIN MOD CustomBlocks -->';
if (!empty($context['cb_header']))
echo $context['cb_header'];
else
{
echo '
<h1 class="forumtitle">
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
</h1>';
// the upshrink image, right-floated
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>';
}
echo '
<!-- END MOD CustomBlocks -->
1.2. Error #4:
Search (line 345)
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>
<li class="copyright"><a href="http://www.wizzi.pl" title="www.wizzi.pl" target="_blank"><b>Thing by Nolt</b></a></li>
<li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>
</ul>';
// Show the load time?
if ($context['show_load_time'])
echo '
<p>', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';
and replace by
<!-- BEGIN MOD CustomBlocks -->';
if (!empty($context['cb_footer_above']))
echo $context['cb_footer_above'];
if (!empty($context['cb_footer']))
echo $context['cb_footer'];
else
{
echo '
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>
<li class="copyright"><a href="http://www.wizzi.pl" title="www.wizzi.pl" target="_blank"><b>Thing by Nolt</b></a></li>
<li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>
</ul>';
// Show the load time?
if ($context['show_load_time'])
echo '
<p>', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';
}
if (!empty($context['cb_footer_below']))
echo $context['cb_footer_below'];
// END MOD CustomBlocks
Notes:
If this mod is uninstalled, then these manual modifications must be undone.
Compatible with SMF 2.0.11.
Compatible with SMF 2.0.12.
Compatible with SMF 2.0.13.
Compatible with SMF 2.0.14 and 2.0.15.
Manual modifications to do in Actualism theme:
Quote
Mod: Custom blocks, 2.5
Theme: Actualism, 2.0.4 (https://custom.simplemachines.org/themes/index.php?lemma=1852)
Manual modifications to do: (before, install this mod in this theme, with errors)
1. File /Themes/actualism_204/index.template.php:
1.1. Error #1:
<div id="wrapper"', !empty($settings['forum_width']) ? ' style="width: ' . $settings['forum_width'] . '"' : '', '>
<div id="wrapper"', !empty($settings['forum_width']) ? ' style="width: ' . $settings['forum_width'] . '"' : '', '>
<!-- BEGIN MOD CustomBlocks -->';
if (!empty($context['cb_header_above']))
echo $context['cb_header_above'];
echo '
<!-- END MOD CustomBlocks -->
1.2. Error #2:
<a href="'.$scripturl.'" title=""></a>
<!-- BEGIN MOD CustomBlocks -->';
if (!empty($context['cb_header']))
echo $context['cb_header'];
else
echo '
<a href="'.$scripturl.'" title=""></a>';
echo '
<!-- END MOD CustomBlocks -->
1.3. Errors #3 & #4:
<div id="toolbar">
',template_menu(),'
</div>
<!-- BEGIN MOD CustomBlocks -->';
if (!empty($context['cb_header_below']))
echo $context['cb_header_below'];
echo '
<div id="toolbar">
', !empty($context['cb_menu']) ? $context['cb_menu'] : template_menu(), '
</div>
<!-- END MOD CustomBlocks -->
1.4. Error #5:
<div class="sm_copy">
<span class="smalltext">', theme_copyright(), '</span>';
// Show the load time?
if ($context['show_load_time'])
echo '
<p class="loadtime smalltext">', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>
</div>';
echo '
<div class="cz_copy">
<strong>Actualism</strong> by <a href="http://www.jpr62.com/theme/index.php" target="_blank"><strong>Crip</strong></a>
</div>
<div class="clear"></div>
</div>
<!-- BEGIN MOD CustomBlocks -->';
if (!empty($context['cb_footer_above']))
echo $context['cb_footer_above'];
if (!empty($context['cb_footer']))
echo $context['cb_footer'];
else
{
echo '
<div class="sm_copy">
<span class="smalltext">', theme_copyright(), '</span>';
// Show the load time?
if ($context['show_load_time'])
echo '
<p class="loadtime smalltext">', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>
</div>';
echo '
<div class="cz_copy">
<strong>Actualism</strong> by <a href="http://www.jpr62.com/theme/index.php" target="_blank"><strong>Crip</strong></a>
</div>
<div class="clear"></div>
</div>';
}
if (!empty($context['cb_footer_below']))
echo $context['cb_footer_below'];
echo '
<!-- END MOD CustomBlocks -->
2. File /Themes/actualism_204/css/index.css:
2.1. Header forum need this:
#logo a {
position: absolute;
top: 0.84em;
right: 25px;
display: block;
width: 207px!important;
height: 54px!important;
cursor: pointer;
background: url(../images/art/logo.png) no-repeat;
}
#logo a {
position: absolute;
top: 0.84em;
right: 25px;
display: block;
width: 207px!important;
height: 54px!important;
cursor: pointer;
background: url(../images/art/logo.png) no-repeat;
}
/* BEGIN MOD CustomBlocks */
#logo div.header {
position: absolute;
top: 0.84em;
right: 25px;
display: block;
}
/* END MOD CustomBlocks */
2.2. Footer forum need this:
#footer { background: url(../images/art/botbg.png) repeat-x; height: 55px;}
/* BEGIN MOD CustomBlocks */
#footer { background: url(../images/art/botbg.png) repeat; min-height: 55px;}
/* END MOD CustomBlocks */
Notes:
If this mod is uninstalled, then these manual modifications must be undone.
Manual modifications to do in Core Theme:
Quote
Mod: Custom blocks, 2.5
Theme: Core Theme, 2.0
Manual modifications to do: (before, install this mod in this theme, with errors)
1. File /Themes/core/index.template.php:
1.1. Errors #1 & #2:
<div class="catbg">
<img class="floatright" id="smflogo" src="', $settings['images_url'], '/smflogo.gif" alt="Simple Machines Forum" />
<h1 id="forum_name">';
if (empty($context['header_logo_url_html_safe']))
echo $context['forum_name_html_safe'];
else
echo '
<img src="', $context['header_logo_url_html_safe'], '" alt="', $context['forum_name_html_safe'], '" />';
echo '
</h1>
</div>';
<!-- BEGIN MOD CustomBlocks -->';
if (!empty($context['cb_header_above']))
echo $context['cb_header_above'];
if (!empty($context['cb_header']))
echo $context['cb_header'];
else
{
echo '
<div class="catbg">
<img class="floatright" id="smflogo" src="', $settings['images_url'], '/smflogo.gif" alt="Simple Machines Forum" />
<h1 id="forum_name">';
if (empty($context['header_logo_url_html_safe']))
echo $context['forum_name_html_safe'];
else
echo '
<img src="', $context['header_logo_url_html_safe'], '" alt="', $context['forum_name_html_safe'], '" />';
echo '
</h1>
</div>';
}
// END MOD CustomBlocks
1.2. Error #3:
echo '
</div>
</div>';
echo '
</div>
<!-- END MOD CustomBlocks -->';
if (!empty($context['cb_header_below']))
echo $context['cb_header_below'];
echo '
<!-- END MOD CustomBlocks -->
</div>';
1.3. Error #5:
<ul class="reset smalltext">
<li class="copyright">', theme_copyright(), '</li>
<li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>
</ul>';
// Show the load time?
if ($context['show_load_time'])
echo '
<p class="smalltext" id="show_loadtime">', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';
<!-- BEGIN MOD CustomBlocks -->';
if (!empty($context['cb_footer_above']))
echo $context['cb_footer_above'];
if (!empty($context['cb_footer']))
echo $context['cb_footer'];
else
{
echo '
<ul class="reset smalltext">
<li class="copyright">', theme_copyright(), '</li>
<li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>
</ul>';
// Show the load time?
if ($context['show_load_time'])
echo '
<p class="smalltext" id="show_loadtime">', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';
}
if (!empty($context['cb_footer_below']))
echo $context['cb_footer_below'];
// END MOD CustomBlocks
2. File /Themes/core/MessageIndex.template.php:
2.1. Error #1:
echo '
<div class="tborder marginbottom" id="childboards">
// BEGIN MOD CustomBlocks
if (!empty($context['cb_messageindex_abovecb']))
echo $context['cb_messageindex_abovecb'];
// END MOD CustomBlocks
echo '
<div class="tborder marginbottom" id="childboards">
2.2. Error #2:
echo '
<div id="modbuttons_top" class="modbuttons clearfix margintop">
<div class="floatleft middletext">', $txt['pages'], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' <a href="#bot"><strong>' . $txt['go_down'] . '</strong></a>' : '', '</div>
', template_button_strip($normal_buttons, 'bottom'), '
</div>';
// BEGIN MOD CustomBlocks
if (!empty($context['cb_messageindex_abovemsg']))
echo $context['cb_messageindex_abovemsg'];
// END MOD CustomBlocks
echo '
<div id="modbuttons_top" class="modbuttons clearfix margintop">
<div class="floatleft middletext">', $txt['pages'], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' <a href="#bot"><strong>' . $txt['go_down'] . '</strong></a>' : '', '</div>
', template_button_strip($normal_buttons, 'bottom'), '
</div>';
2.3. Error #3:
echo '
<div id="modbuttons_bottom" class="modbuttons clearfix marginbottom">
', template_button_strip($normal_buttons, 'top'), '
<div class="floatleft middletext">' . $txt['pages'] . ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' <a href="#top"><strong>' . $txt['go_up'] . '</strong></a>' : '', '</div>
</div>';
echo '
<div id="modbuttons_bottom" class="modbuttons clearfix marginbottom">
', template_button_strip($normal_buttons, 'top'), '
<div class="floatleft middletext">' . $txt['pages'] . ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' <a href="#top"><strong>' . $txt['go_up'] . '</strong></a>' : '', '</div>
</div>';
// BEGIN MOD CustomBlocks
if (!empty($context['cb_messageindex_belowmsg']))
echo $context['cb_messageindex_belowmsg'];
// END MOD CustomBlocks
Notes:
If this mod is uninstalled, then these manual modifications must be undone.
Manual modifications to do in Immortality theme:
Quote
Mod: Custom blocks, 2.5
Theme: Immortality, 2.0.2 (https://custom.simplemachines.org/themes/index.php?lemma=2670)
Manual modifications to do: (before, install this mod in this theme, with errors)
1. File /Themes/Immortality/index.template.php:
1.1. Error #2:
<div id="headerlogo">
<div id="logo">
<a href="'.$scripturl.'" title=""></a>
</div>
</div>
<!-- BEGIN MOD CustomBlocks -->';
if (!empty($context['cb_header']))
echo $context['cb_header'];
else
{
echo '
<div id="headerlogo">
<div id="logo">
<a href="'.$scripturl.'" title=""></a>
</div>
</div>';
}
echo '
<!-- END MOD CustomBlocks -->
1.2. Error #5:
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>
<li class="copyright"><strong>Immortality</strong> by <a href="http://www.simplemachines.org/community/index.php?action=profile;u=304512" target="_blank">Misa95</a> & <a href="http://www.simplemachines.org/community/index.php?action=profile;u=270467" target="_blank">KaJzEr 283</a></li>
<li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>
</ul>';
// Show the load time?
if ($context['show_load_time'])
echo '
<p>', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';
echo '
<!-- BEGIN MOD CustomBlocks -->';
if (!empty($context['cb_footer_above']))
echo $context['cb_footer_above'];
if (!empty($context['cb_footer']))
echo $context['cb_footer'];
else
{
echo '
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>
<li class="copyright"><strong>Immortality</strong> by <a href="http://www.simplemachines.org/community/index.php?action=profile;u=304512" target="_blank">Misa95</a> & <a href="http://www.simplemachines.org/community/index.php?action=profile;u=270467" target="_blank">KaJzEr 283</a></li>
<li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>
</ul>';
// Show the load time?
if ($context['show_load_time'])
echo '
<p>', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';
}
if (!empty($context['cb_footer_below']))
echo $context['cb_footer_below'];
echo '
<!-- END MOD CustomBlocks -->
Notes:
If this mod is uninstalled, then these manual modifications must be undone.
Manual modifications to do in Reseller theme:
Quote
Mod: Custom blocks, 2.5
Theme: Reseller, 2.0.8 (https://custom.simplemachines.org/themes/index.php?lemma=2806)
Manual modifications to do: (before, install this mod in this theme, with errors)
1. File /Themes/Reseller/index.template.php:
1.1. Error #4:
<div class="row">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand visible-xs" href="', $scripturl, '">', $context['forum_name'] ,'</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">';
// Show the menu here, according to the menu sub template.
template_menu();
echo'
</ul>
</div>
</div>
<!-- BEGIN MOD CustomBlocks -->';
if (!empty($context['cb_menu']))
echo $context['cb_menu'];
else
{
echo'
<div class="row">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand visible-xs" href="', $scripturl, '">', $context['forum_name'] ,'</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">';
// Show the menu here, according to the menu sub template.
template_menu();
echo'
</ul>
</div>
</div>';
}
echo '
<!-- END MOD CustomBlocks -->
1.2. Error #1:
<header>
<div class="container">
<header>
<div class="container">
<!-- BEGIN MOD CustomBlocks -->';
if (!empty($context['cb_header_above']))
echo $context['cb_header_above'];
echo '
<!-- END MOD CustomBlocks -->
1.3. Error #2:
<a href="', $scripturl, '"><img src="' , !empty($context['header_logo_url_html_safe']) ? $context['header_logo_url_html_safe'] : $settings['images_url'] . '/logo.png' , '" alt="' . $context['forum_name'] . '" /></a>
<!-- BEGIN MOD CustomBlocks -->';
if (!empty($context['cb_header']))
echo $context['cb_header'];
else
echo '
<a href="', $scripturl, '"><img src="' , !empty($context['header_logo_url_html_safe']) ? $context['header_logo_url_html_safe'] : $settings['images_url'] . '/logo.png' , '" alt="' . $context['forum_name'] . '" /></a>';
echo '
<!-- END MOD CustomBlocks -->
1.4. Error #3:
</div>
</header>';
<!-- BEGIN MOD CustomBlocks -->';
if (!empty($context['cb_header_below']))
echo $context['cb_header_below'];
echo '
<!-- END MOD CustomBlocks -->
</div>
</header>';
1.5. Error #5:
<div class="row">
<div class="social_icons col-lg-12">';
if(!empty($settings['facebook_check']))
echo'
<a href="', !empty($settings['facebook_text']) ? $settings['facebook_text'] : 'http://www.facebook.com ' ,'"><img src="', $settings['images_url'], '/social_icons/facebook.png" alt="', $txt['rs_facebook'], '" /></a>';
if(!empty($settings['twitter_check']))
echo'
<a href="', !empty($settings['twitter_text']) ? $settings['twitter_text'] : 'http://www.twitter.com' ,'"><img src="', $settings['images_url'], '/social_icons/twitter.png" alt="', $txt['rs_twitter'], '" /></a>';
if(!empty($settings['youtube_check']))
echo'
<a href="', !empty($settings['youtube_text']) ? $settings['youtube_text'] : 'http://www.youtube.com' ,'"><img src="', $settings['images_url'], '/social_icons/youtube.png" alt="', $txt['rs_youtube'], '" /></a>';
if(!empty($settings['rss_check']))
echo'
<a href="', !empty($settings['rss_text']) ? $settings['rss_text'] : $scripturl .'?action=.xml;type=rss' ,'"><img src="', $settings['images_url'], '/social_icons/rss.png" alt="', $txt['rs_rss'], '" /></a>';
echo'
</div>
<div class="col-lg-12">
', theme_copyright(), '
</div>
<div class="col-lg-12">
Reseller by <a href="http://smftricks.com">Daniiel</a>. Designed by <a href="http://briancasillas.url.ph">Brian</a>
</div>
<div class="col-lg-12">
', !empty($settings['reseller_copyright']) ? $settings['reseller_copyright'] : $context['forum_name'] .' ©' ,'
</div>';
// Show the load time?
if ($context['show_load_time'])
echo '
<p>', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';
echo '
</div>
<!-- BEGIN MOD CustomBlocks -->';
if (!empty($context['cb_footer_above']))
echo $context['cb_footer_above'];
if (!empty($context['cb_footer']))
echo $context['cb_footer'];
else
{
echo '
<div class="row">
<div class="social_icons col-lg-12">';
if(!empty($settings['facebook_check']))
echo'
<a href="', !empty($settings['facebook_text']) ? $settings['facebook_text'] : 'http://www.facebook.com ' ,'"><img src="', $settings['images_url'], '/social_icons/facebook.png" alt="', $txt['rs_facebook'], '" /></a>';
if(!empty($settings['twitter_check']))
echo'
<a href="', !empty($settings['twitter_text']) ? $settings['twitter_text'] : 'http://www.twitter.com' ,'"><img src="', $settings['images_url'], '/social_icons/twitter.png" alt="', $txt['rs_twitter'], '" /></a>';
if(!empty($settings['youtube_check']))
echo'
<a href="', !empty($settings['youtube_text']) ? $settings['youtube_text'] : 'http://www.youtube.com' ,'"><img src="', $settings['images_url'], '/social_icons/youtube.png" alt="', $txt['rs_youtube'], '" /></a>';
if(!empty($settings['rss_check']))
echo'
<a href="', !empty($settings['rss_text']) ? $settings['rss_text'] : $scripturl .'?action=.xml;type=rss' ,'"><img src="', $settings['images_url'], '/social_icons/rss.png" alt="', $txt['rs_rss'], '" /></a>';
echo'
</div>
<div class="col-lg-12">
', theme_copyright(), '
</div>
<div class="col-lg-12">
Reseller by <a href="http://smftricks.com">Daniiel</a>. Designed by <a href="http://briancasillas.url.ph">Brian</a>
</div>
<div class="col-lg-12">
', !empty($settings['reseller_copyright']) ? $settings['reseller_copyright'] : $context['forum_name'] .' ©' ,'
</div>';
// Show the load time?
if ($context['show_load_time'])
echo '
<p>', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';
echo '
</div>';
}
if (!empty($context['cb_footer_below']))
echo $context['cb_footer_below'];
echo '
<!-- END MOD CustomBlocks -->
2. File /Themes/Reseller/MessageIndex.template.php:
2.1. Error #1:
echo '
<div class="tborder childboards contentboard" id="board_', $context['current_board'], '_childboards">
// BEGIN MOD CustomBlocks
if (!empty($context['cb_messageindex_abovecb']))
echo $context['cb_messageindex_abovecb'];
// END MOD CustomBlocks
echo '
<div class="tborder childboards contentboard" id="board_', $context['current_board'], '_childboards">
Notes:
If this mod is uninstalled, then these manual modifications must be undone.
Manual modifications to do in Thing theme:
Quote
Mod: Custom blocks, 2.5
Theme: Thing, 2.0 (https://custom.simplemachines.org/themes/index.php?lemma=2038)
Manual modifications to do: (before, install this mod in this theme, with errors)
1. File /Themes/Thing/index.template.php:
1.1. Error #2:
<h1 class="forumtitle">
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
</h1>';
// the upshrink image, right-floated
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>', '
<!-- BEGIN MOD CustomBlocks -->';
if (!empty($context['cb_header']))
echo $context['cb_header'];
else
{
echo '
<h1 class="forumtitle">
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
</h1>';
// the upshrink image, right-floated
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>';
}
echo '
<!-- END MOD CustomBlocks -->
1.2. Error #5:
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>
<li class="copyright"><a href="http://www.wizzi.pl" title="www.wizzi.pl" target="_blank"><b>Thing by Nolt</b></a></li>
<li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>
</ul>';
// Show the load time?
if ($context['show_load_time'])
echo '
<p>', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';
echo '
<!-- BEGIN MOD CustomBlocks -->';
if (!empty($context['cb_footer_above']))
echo $context['cb_footer_above'];
if (!empty($context['cb_footer']))
echo $context['cb_footer'];
else
{
echo '
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>
<li class="copyright"><a href="http://www.wizzi.pl" title="www.wizzi.pl" target="_blank"><b>Thing by Nolt</b></a></li>
<li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>
</ul>';
// Show the load time?
if ($context['show_load_time'])
echo '
<p>', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';
}
if (!empty($context['cb_footer_below']))
echo $context['cb_footer_below'];
echo '
<!-- END MOD CustomBlocks -->
Notes:
If this mod is uninstalled, then these manual modifications must be undone.
New version:
2.5 2018-08-12
------------------
! SMF 1.1.x: Theme of the generic form of displaying lists.
+ Upgrade code to the configuration variables from versions 2.3-2.4 to 2.5.
+ SMF 2.1.x: Uninstallation code to the configuration variables.
* In Administration panel, custom blocks are grouped by their position.
+ Custom blocks instead of the forum menu.
+ Custom blocks instead of the message index: Above the child boards, above the messages and below the messages.
* The variable to insert the copyright can be included in any block of the forum header, menu or footer.
+ Variable in content of a block of the forum header, menu or footer to insert the forum menu.
+ Variable in content of a block of the message index to insert the ID of the board.
+ Actions of Administration panel are logged to Administration log.
@ Administration log does not exists in SMF 1.1.x.
+ SMF compatibility: 2.0.11 to 2.0.15 and 2.1 Beta 3.
- SMF 2.0.x: Languages: spanish, spanish-utf8 (these are not used).
+ Languages: New language string in polish, polish-utf8, thanks to FishingManMatt.
Quote from: FishingManMatt
Hi David!
I spotted two bugs after installing the new version.
The Quick Edit option doesn't work. When you click on the QE icon the red "Loading..." message appears at the top of the screen.
The Insert Quote option doesn't work either.
It seems they are both Ajax functions.
Take a look at my screenies -> [...]
I managed to reproduce this on two different servers. After uninstalling the mod the problems are gone.
I thought I would let you know since these are quite serious bugs affecting the forum. They were immediately reported by my moderators and users.
Best regards!
Matt
Fixed.
New version:
2.5.1 2018-12-06
------------------
! SMF 2.1.x: logAction is a deprecated function. Instead, logActions is used.
! Quick Edit and Insert Quote buttons did not work.
! Languages: Some language string in polish, polish-utf8.
+ Languages: New language string in polish, polish-utf8, thanks to FishingManMatt.
I am getting errors trying to uninstall:
Quote1. Execute Code code-2.0.php
2. Adapt Database database-upgrade-2.0.php
* 3. Execute Modification ./Sources/ManageSettings.php Test failed
1. Replace ./Sources/ManageSettings.php Test failed
* 4. Execute Modification ./Sources/Subs.php Test successful
* 5. Execute Modification ./Sources/Who.php Test failed
1. Replace ./Sources/Who.php Test failed
* 6. Execute Modification ./Themes/defa
Is it ok to proceed with uninstall?
I have version 2.3.2. Should I just install the newer version instead?
Quote from: arielvered on May 10, 2019, 01:55:12 AM
I am getting errors trying to uninstall:
Quote1. Execute Code code-2.0.php
2. Adapt Database database-upgrade-2.0.php
* 3. Execute Modification ./Sources/ManageSettings.php Test failed
1. Replace ./Sources/ManageSettings.php Test failed
* 4. Execute Modification ./Sources/Subs.php Test successful
* 5. Execute Modification ./Sources/Who.php Test failed
1. Replace ./Sources/Who.php Test failed
* 6. Execute Modification ./Themes/defa
Is it ok to proceed with uninstall?
I have version 2.3.2. Should I just install the newer version instead?
No, you need uninstall v2.3.2 before install newer version.
This error is usual in SMF 2.0.x: You installed other mods after Custom Blocks and these mods made changes in ManageSettings.php and Who.php.
There are two solutions:
1. More easy but complex. You should uninstall mods installed before mine (in inverse order), and then update my mod and install again mods.
or
2. More quick for user expert.
2.1. Before uninstall my mod you should edit these files:
2.1.1. Sources/ManageSettings.php
// Load up all the tabs...
$context[$context['admin_menu_name']]['tab_data'] = array(
'title' => $txt['admin_modifications'],
'help' => 'modsettings',
'description' => $txt['modification_settings_desc'],
'tabs' => array(
'general' => array(
),
/* OTHER MOD WRITE HERE */
// BEGIN MOD CustomBlocks
'cb' => array(
'label' => $txt['cb'],
'description' => $txt['cb_desc'],
),
// END MOD CustomBlocks
// Load up all the tabs...
$context[$context['admin_menu_name']]['tab_data'] = array(
'title' => $txt['admin_modifications'],
'help' => 'modsettings',
'description' => $txt['modification_settings_desc'],
'tabs' => array(
'general' => array(
),
// BEGIN MOD CustomBlocks
'cb' => array(
'label' => $txt['cb'],
'description' => $txt['cb_desc'],
),
// END MOD CustomBlocks
/* OTHER MOD WRITE HERE */
2.1.2. Sources/Who.php
/* Modification Authors: You may add a copyright statement to this array for your mods.
Copyright statements should be in the form of a value only without a array key. I.E.:
'Some Mod by Thantos © 2010',
$txt['some_mod_copyright'],
*/
'mods' => array(
/* OTHER MOD WRITE HERE */
// BEGIN MOD CustomBlocks
'<a href="https://custom.simplemachines.org/mods/index.php?mod=3703" target="_blank" class="new_win">Custom blocks</a>, 2.5.2 | © 2013-2019, <a href="https://custom.simplemachines.org/mods/index.php?action=search;author=242014" target="_blank" class="new_win">davidhs</a> | <a href="https://creativecommons.org/licenses/by/3.0/" target="_blank" class="new_win">Creative Commons Attribution 3.0 Unported License</a>',
// END MOD CustomBlocks
/* Modification Authors: You may add a copyright statement to this array for your mods.
Copyright statements should be in the form of a value only without a array key. I.E.:
'Some Mod by Thantos © 2010',
$txt['some_mod_copyright'],
*/
'mods' => array(
// BEGIN MOD CustomBlocks
'<a href="https://custom.simplemachines.org/mods/index.php?mod=3703" target="_blank" class="new_win">Custom blocks</a>, 2.5.2 | © 2013-2019, <a href="https://custom.simplemachines.org/mods/index.php?action=search;author=242014" target="_blank" class="new_win">davidhs</a> | <a href="https://creativecommons.org/licenses/by/3.0/" target="_blank" class="new_win">Creative Commons Attribution 3.0 Unported License</a>',
// END MOD CustomBlocks
/* OTHER MOD WROTE HERE */
2.2. Try uninstall my mod with not errors.
Wait some days before update this mod: I have ready another version and I will upload soon.
The settings is now fine, but I'm still getting the error on ./sources/who.php:
Type Action Description
1. Execute Code code-2.0.php
2. Adapt Database database-upgrade-2.0.php
* 3. Execute Modification ./Sources/ManageSettings.php Test successful
* 4. Execute Modification ./Sources/Subs.php Test successful
* 5. Execute Modification ./Sources/Who.php Test failed
1. Replace ./Sources/Who.php Test failed
* 6. Execute Modification ./Themes/default/index.template.php Test successful
Quote from: arielvered on May 10, 2019, 09:38:30 AM
The settings is now fine, but I'm still getting the error on ./sources/who.php:
Is there an empty line between
// END MOD CustomBlocks
and text?
Attach here your Who.php.
New version:
2.5.2 2019-05-05
------------------
! SMF 2.1.x: Use HTML 5.
! SMF 2.x: The Quick Search of the Administration Center look for in settings variables of MOD.
+ SMF compatibility: 2.1 RC1 to RC2.
Quote from: davidhs on May 10, 2019, 09:42:42 AM
Is there an empty line between
Attach here your Who.php.
there is a line.
I have attached the who.php file.
Many thanks.
Quote from: arielvered on May 10, 2019, 10:18:54 AM
Quote from: davidhs on May 10, 2019, 09:42:42 AM
Is there an empty line between
Attach here your Who.php.
there is a line.
I have attached the who.php file.
Many thanks.
I do not understand. Your file is incorrect.
$context['copyrights'] = array(
'smf' => sprintf($forum_copyright, $forum_version),
/* Modification Authors: You may add a copyright statement to this array for your mods.
Copyright statements should be in the form of a value only without a array key. I.E.:
'Some Mod by Thantos © 2010',
$txt['some_mod_copyright'],
*/
'mods' => array(
// BEGIN MOD CustomBlocks
'<a href="https://custom.simplemachines.org/mods/index.php?mod=3703" target="_blank" class="new_win">Custom blocks</a>, 2.5.2 | © 2013-2019, <a href="https://custom.simplemachines.org/mods/index.php?action=search;author=242014" target="_blank" class="new_win">davidhs</a> | <a href="https://creativecommons.org/licenses/by/3.0/" target="_blank" class="new_win">Creative Commons Attribution 3.0 Unported License</a>',
// END MOD CustomBlocks
/* OTHER MOD WROTE HERE */
),
);
1. line 725 has 3 tab instead of 2 tab:
/* Modification Authors: You may add a copyright statement to this array for your mods.
Perhaps other mod change this ??? If you added this tab, remove
/* Modification Authors: You may add a copyright statement to this array for your mods.
This is not important for my mod.
2. line 735 has my example text (remove this line):
/* OTHER MOD WROTE HERE */
3. line 732 has copyright text of my example
'<a href="https://custom.simplemachines.org/mods/index.php?mod=3703" target="_blank" class="new_win">Custom blocks</a>, 2.5.2 | © 2013-2019, <a href="https://custom.simplemachines.org/mods/index.php?action=search;author=242014" target="_blank" class="new_win">davidhs</a> | <a href="https://creativecommons.org/licenses/by/3.0/" target="_blank" class="new_win">Creative Commons Attribution 3.0 Unported License</a>',
You are copy my example (v2.5.2) instead of move text of your Who.php (can be v.2.5 or other).
If you have your Who.php original, attach here.
Else tell me version of your Custom Block.
Quote from: davidhs on May 10, 2019, 12:48:23 PM
If you have your Who.php original, attach here.
Else tell me version of your Custom Block.
I tried implementing what you wrote here.
I changed the version to 2.3.2 and getting rid of extra tab. It still didn't help.
I have attached current who.php.
Thanks
Quote from: arielvered on May 12, 2019, 02:25:02 AM
Quote from: davidhs on May 10, 2019, 12:48:23 PM
If you have your Who.php original, attach here.
Else tell me version of your Custom Block.
I tried implementing what you wrote here.
I changed the version to 2.3.2 and getting rid of extra tab. It still didn't help.
I have attached current who.php.
Thanks
Copyright line for v2.3.2 is different. I attach your Who.php with copyright corrected. Replace this in your served and try uninstall.
Compatible with SMF 2.0.16 and 2.0.17.
I just have a question of anyone who has this mod installed, please (I've not installed it yet).
I'm specifically looking today for a solution that would allow me to have a field of text appear beneath a particular category and before its subsequent boards, that would provide some in-depth information about the purpose of the category. For instance, in the attached screenshot of Simple Machines, you see the category "General Community" and the first board is "Chit Chat".
If I had a similar category on one of my forums and wanted a field to appear between General Community and Chit Chat, so that I could insert text that gave some detailed information about the category and its purpose.... could I do that with this mod? Can the block be placed as specifically as that, or is it limited to only a few locations?
Thanks. :)
No, I don't think you can do that with this mod... though I don't have it installed.
Quote from: GigaWatt on January 19, 2021, 10:28:33 AM
No, I don't think you can do that with this mod... though I don't have it installed.
Ah... thanks. I also looked at the author's Custom Fields but my "Stupid Meter" started going off and I had to stop. :D
Quote from: Grammy on January 19, 2021, 07:30:05 AM
I just have a question of anyone who has this mod installed, please (I've not installed it yet).
I'm specifically looking today for a solution that would allow me to have a field of text appear beneath a particular category and before its subsequent boards, that would provide some in-depth information about the purpose of the category. For instance, in the attached screenshot of Simple Machines, you see the category "General Community" and the first board is "Chit Chat".
If I had a similar category on one of my forums and wanted a field to appear between General Community and Chit Chat, so that I could insert text that gave some detailed information about the category and its purpose.... could I do that with this mod? Can the block be placed as specifically as that, or is it limited to only a few locations?
Thanks. :)
Sorry, this is not possible. :(
Quote from: Grammy on January 19, 2021, 10:35:14 AM
I also looked at the author's Custom Fields but my "Stupid Meter" started going off and I had to stop. :D
That mod adds custom field in post or topic, not allow do this.
Your wanted block is a good idea to do in next update ;) : add custom blocks in forum index before/after a category, before/after a forum and before/after a child forum.
Quote from: davidhs on January 19, 2021, 04:45:58 PM
Your wanted block is a good idea to do in next update ;) : add custom blocks in forum index before/after a category, before/after a forum and before/after a child forum.
Wow, that would be awesome! Sometimes the title bar for the Category just isn't big enough to say it all, and a plain white field below would really be useful. Thanks, I look forward to it! :D
This update you speak of, will it be for 2.1 RC4 or 2.1? ;)
Hello, is a modification for 2.1 planned?