Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
Adding rules to lang file (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Adding rules to lang file
#13730
Adding rules to lang file 1 Year, 1 Month ago  
I have found the english.php file to edit for my forum rules but am finding it difficult to format the text so that it presents well. Is ther a plan for an admin module to achieve this editing function.
currong (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#13820
Re:Adding rules to lang file 1 Year, 1 Month ago  
Where did you find the file? I looked under components/com_fireboard/ but I don't have a languages directory. I have avatars, category_images, sources, template, and uploaded. What am I missing?

***Update: Found the file after looking at posts in other forums. It is under administrator/components/com_fireboard/language Thanks, anyway.
geekette (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2007/07/05 01:50 By geekette. Reason: Found my solution
 
The administrator has disabled public write access.  
#33620
Re:Adding rules to lang file 8 Months, 3 Weeks ago  
Hello

Could I ask you to help me identify exactly where (the line of code) in english.php I should enter text for the rules and help pages please?
I am a complete novice at this and PHP and am finding it quite hard.

Thanks

CP
pinkpale (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#33622
Re:Adding rules to lang file 8 Months, 3 Weeks ago  
This post is more than 5 months old. I don't believe it is valid anymore to affect change to the rules/help that are displayed in the forums. That is unless you are running an older version.

To create RULES an HELP in Fireboard you need to create static content in Joomla for each, note the ID of each and add them to your FB config. I haven't done this in a while so someone may need to correct me.
grumblemarc (User)
Platinum Boarder
Posts: 3557
graph
User Offline Click here to see the profile of this user
Gender: Male
Logged Logged
 
The administrator has disabled public write access.  
#33745
Re:Adding rules to lang file 8 Months, 3 Weeks ago  
I also need help adding text to the Rules page. Can someone give clear instructions on how to do this? I have identified line 671 in english.php -- DEFINE('_COM_FORUM_RULES', 'Rules'; -- as the likely place to add the text, but I don't know how to edit that line in order to make the text show up.

I'm afraid I also don't know what "Note the ID of each and add them to your FB config" means.

It seems to me that it should be more stupid-proof. Can anyone help, please?
Mimi (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2007/12/08 18:51 By Mimi.
 
The administrator has disabled public write access.  
#37394
Re:Adding rules to lang file 7 Months, 4 Weeks ago  
To create and link a RULES page to the Fireboard RULES menu button:

1. In Joomla Administrator:
Go to Content > Static Content Manager> and CREATE your rules page. Note the ID number.
2. In the FireBoard Configuration page:
Enable Rules Page - "Yes"
Show rules in fireboard - "Yes"
Rules Content ID - (Insert the ID from your static content "Rules" page.
SAVE Configuration
Rice_King (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#51101
Re:Adding rules to lang file 3 Months, 1 Week ago  
Rice_King wrote:
To create and link a RULES page to the Fireboard RULES menu button:

1. In Joomla Administrator:
Go to Content > Static Content Manager> and CREATE your rules page. Note the ID number.
2. In the FireBoard Configuration page:
Enable Rules Page - "Yes"
Show rules in fireboard - "Yes"
Rules Content ID - (Insert the ID from your static content "Rules" page.
SAVE Configuration


Which version of Joomla are you using?

In v1.5.3 there is no Static Content Manager that I can find...

Under Content, the options are:
Article Manager; Article Trash; Section Manager; Category Manager; and Front Page Manager

I have searched all the components and plugins as well and cannot find "Rules".

I have no problem editing html, php, or even editing code within the MySQL Db, but someone please tell me where to find the "Rules" and "Help" for the Fireboard Forum.

At least SMF provides a comprehensive Help System with their forum (it actually uses your css files to conform to the look of your forum in their examples. Too bad it's nearly impossible to bridge with Joomla.

To have a post come up with notes on how wonderful Joomla and OpenSource is, doesn't help new forum users understand anything!
bas123 (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#51111
Re:Adding rules to lang file (UPDATE) 3 Months, 1 Week ago  
As an alternate solution, I added a forum category Rules and a post within it which included some rules.

Then I followed Rice_King's instruction as it related to the Fireboard configuration with the following changes:
Enable Rules Page = Yes
Show rules in fireboard = No
Rules Content ID = 1 (You should set "YES" "Show rules in fireboard" setting.) I assume "YES" means "1"
Rules external page link = index.php?option=com_fireboard&Itemid=60&func=view&id=1&catid=2 (where catid is the rules post)

Note: I had to clear cache for this to show up.

Now, if someone would finally write a Help file explaining how to use this forum, we could do the same thing!!!

Note to bestofjoomla: Preview renders "Warning: Variable passed to each() is not an array or object in /home/bestofjo/public_html/components/com_fireboard/template/default/smile.class.php on line 44"
bas123 (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#51113
Re:Adding rules to lang file 3 Months, 1 Week ago  
Sorry. I had to move on. You can read my reasoning here....
Rice_King (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/05/23 23:41 By Rice_King.
 
The administrator has disabled public write access.  
#52097
Re:Adding rules to lang file 2 Months, 1 Week ago  
I was searching for an answer to this myself, and I stumbled upon this thread which almost gave me the answer, then I tripped over a couple of lines of code and "Boom!" it works and I've created my own [copied from someone else] set of rules.

This is what you do...

1. First, check out this thread www.bestofjoomla.com/component/option,co...mit,10/limitstart,0/

If you go to this page www.bestofjoomla.com/component/option,co...it,10/limitstart,20/ at the bottom you will find a set of sample "Rules", all coded up and ready to go. Download the file and edit it to suit.

2. Go to administrator/components/com_fireboard/language/english.php and make a backup again

3. Around line 755, look for // rules.php
DEFINE('_COM_FORUM_RULES', 'Rules';
DEFINE('_COM_FORUM_RULES_DESC', '<ul><li>Edit this file to insert your rules joomlaroot/administrator/components/com_fireboard/language/english.php</li><li>Rule 2</li><li>Rule 3</li><li>Rule 4</li><li>...</li></ul>';


4. The file you downloaded and edited contains these lines and the full rules, so copy and paste over, then save.

5. At this point you might expect to see your new rules when you go to your forum, but all you get is the Joomla! blurb.

To fix that, do the following...

1. Go to com_fireboard/sources/fb_rules.php and save it as fb_rules.php.bak just in case

2. Look in fb_rules.php, around line 39/40 and make the following edits

<?php /* Kill the select query that pulls out the Joomla! blurb

$database->setQuery("SELECT introtext FROM #__content WHERE id=".$fbConfig['rules_cid']."";
$j_introtext = $database->loadResult();

*/?>
<?php /* Don't echo the result
echo $j_introtext; */?>


2. Immediately below that uncomment the line
<?php // echo _COM_FORUM_RULES_DESC; ?>

to make it
<?php echo _COM_FORUM_RULES_DESC; ?>

3. Save your amended fb_rules.php

Go back to your forum, click rules and you should have it sorted.
FoxE (User)
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
Go to top
Powered by FireBoard - Creditsget the latest posts directly to your desktop