Subrion CMS Support Forums   Follow Subrion on Twitter Join Us on Facebook

Go Back   Subrion CMS Support Forums > Subrion CMS Packages Discussion > Article Script / Article Directory Script

Article Script / Article Directory Script Here we discuss current functionality of our article directory script for Subrion CMS. It could be easily used as a standalone articles website as well as article directory script.

Reply

 

LinkBack Thread Tools Display Modes
Old 10-13-2008   #1 (permalink)
Subrion Tech Support
 
Join Date: Apr 2007
Posts: 644
Sergey Hmelevsky will become famous soon enough
Default Frequently Asked Questions

What is the 'hidden' articles?
It is system record used for autosave and some other things, there are no useful information in it. Hidden articles makes active or approval when user submit it.

How to clear hidden articles?
It is not necessary to clear hidden articles often, once in a month quite enough.
Go to admin panel -> Manage Database and run following query
Code:
DELETE FROM `{prefix}articles` WHERE `url`='' AND (TO_DAYS(NOW()) - TO_DAYS(`date`) > 1)
How to change text on home page?
Go to Admin panel -> Language Manager -> Search in Phrases and find 2 phrases by 'Phrase Variable Name'
start_slogan_head
start_slogan_bottom
you should change they values.

How to show articles comments number?
Edit file packages/publishing/includes/classes/sbr.front.common.php, find
PHP Code:
function getArticles($aStart 0$aLimit 0$aWhere ''$aShowInactive false$aFeaturedOnTop false)
{
    
$sql  "SELECT SQL_CALC_FOUND_ROWS t1.`id`, t1.`account_id`, t1.`title`, t1.`summary`, t1.`url`, t1.`date` ";
    
$sql .= ", t1.`avatar`, t1.`nofollow`, t1.`status`, t1.`num_clicks` "
and append ", t1.`comments`". What you should have
PHP Code:
function getArticles($aStart 0$aLimit 0$aWhere ''$aShowInactive false$aFeaturedOnTop false)
{
    
$sql  "SELECT SQL_CALC_FOUND_ROWS t1.`id`, t1.`account_id`, t1.`title`, t1.`summary`, t1.`url`, t1.`date` ";
    
$sql .= ", t1.`avatar`, t1.`nofollow`, t1.`status`, t1.`num_clicks`, t1.`comments` "
Next. Edit file packages/publishing/templates/brief_article.tpl and remove 2 lines those started with {* and *}
__________________
With private requests send a ticket on http://www.subrion.com/desk/

Last edited by Sergey Hmelevsky; 10-21-2008 at 09:23 PM.
Sergey Hmelevsky is offline   Reply With Quote
Old 11-25-2008   #2 (permalink)
Subrion Tech Support
 
Join Date: Apr 2007
Posts: 644
Sergey Hmelevsky will become famous soon enough
Default Re: Frequently Asked Questions

How to translate Subrion to other language?
  • Go to Admin Panel -> Language Manager
  • Click on "New Language" button
  • Input ISO code and title. Example: for Germany ISO=de, Title=German
  • Click "Copy Language" button.
Now you see additional language in Language Manager, but it still contains English phrases and we need to translate them.
  • Click on "Edit / Translate German phrases"
  • Double click in "Value" cell of the first row, change phrase and click 'Save' button.
Repeat last step for all phrases.
Now you have translated Subrion and can backup language on your computer in "Language Manager".
__________________
With private requests send a ticket on http://www.subrion.com/desk/
Sergey Hmelevsky is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Questions about Subrion CMS jay888 General Chat 6 09-10-2008 11:49 PM
Few Questions bosshog General Chat 1 01-03-2008 08:33 PM
Questions after installation baramister General Chat 2 05-30-2007 09:18 PM


All times are GMT -6. The time now is 04:49 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0