Go Back

Blogger templates overview in Blog System


Posted on: June 5, 2019

The blogger templates are used when rendering the blogs content. They represent a standard HTML code mixed with some special tags which are replaced in runtime with the dynamically generated content. You may find below the answers of some frequently asked questions related to the bloggers templates content and management.



1.What are the currently supported blog tags?



<blog logo/> - Displays the blog logo, if the blogger has uploaded one. If not, shows the last update date.



<blog author/> - Shows the author description (entered by the blogger)



<blog contact_link/> - Displays a link to the blogger contact form



<blog content/> - The blog content (the center area of the blog)



<blog categories/> - The blog note categories defined by the users



<blog recent_notes/> - The list with the recent notes posted by the blogger



<blog albums/> - The list with the photo albums created by the blogger



<blog recent_photos/> - Recent photos uploaded by the blogger



2.How to make changes in an existing template?



All the templates are identified by an ID and are stored in the folder [ROOT]/ADMIN/templates. The name format of the file containing the code of a template is [ID].php. For example the code for template 121 is stored in the file [ROOT]/ADMIN/templates/112.php



If you need to make changes in a template, you should edit directly the blog template code file.



3.How to set the default template which will be used when new users sign up?



In order to do this you need to change the value of the DEFAULT_TEMPLATE parameter in the blog_config file. Blog System comes by default configured with a default template 1



4.How to disable some of the available templates?



The list with the currently enabled template on your site is stored in the parameter BLOGGER_TEMPLATES in the blog_config file. Please note that the template ids should be separated with comer.



For example:



BLOGGER_TEMPLATES = "151,152,153,141,142,131,132,133,143,101,102,103,111,112,113,121,122,123";



If you want to disable a template, you simply has to remove his ID from this list.



5.How to add new templates?



All you need to do when adding a new blogger template on your site is:



1)create the template code (you should use the tags described at the beginning of this document) and upload the code file in [ROOT]/ADMIN/templates , for example [ROOT]/ADMIN/templates/156.php



2)upload a screen shot for the template (which will be visible for the blogger) in [ROOT]/ADMIN/template_screenshots



Please note that you should name your screen shot with the same ID as the template. For example [ROOT]/ADMIN/template_screenshots/156.gif (the supported extensions are .gif .png .jpg)



3) to include it in the BLOGGER_TEMPLATES list in the blog_config file





Related Articles


Banners management and configuration in Jobs Portal version 3
Jobs Portal 3 - employers admin panel pages description
PHP Mall 2 admin pages overview
Adding advertisements on the user blogs in Blog System
Blog packages in Blog System
Supported RSS feed urls in Blog System
Blog System version 3 and earlier - blog categories management

Advertisements


Ready-made web systems to help you achieve success with your online business ...