MyBB Community Forums

Full Version: change language side
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
The discussions before reaching the template part focused on the text align and direction.

When it comes to templates, then we are changing the HTML codes. Usually in Arabic and Hebrew sites even the boxes and menu are from the other side. That's why we edit the html templates. So for example on the index page to have the forum bit icons to the right instead of the left side you will have to edit the HTML there for the templates which is done through the templates manager.

Regards
OK, so I go to the admin PC---> templates--->modify--->Default Templates---> and than what? if I click on edit button I see onlt a small box that i ask me to fill Title in it...


.
Emm, anyone?
Hello...

To work with templates yes you go the way you have mentioned. You choose a template and click edit or edit original. There you find the HTML codes.. with basic knowledge of HTML you can start rearranging the codes the way i have explained before.

regards
ok , It's not EDIT. I have to choose EXPAND for change the HTML code...(you said EDIT button) Smile
well, after I choose expand I see list of Template Management (Default Templates). near to every Template i see or expand button or change original button and that give me the HTML code
yeahhhh Smile
what is the code that i need to write if i want to change the furom side?
for example, I see this code for "header template):

	<a name="top" id="top"></a>
	<div id="container">
		<div id="header">
			<div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" /></a></div>
			<div class="menu">
				<ul>
					<li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" />{$lang->toplinks_search}</a></li>
					<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" />{$lang->toplinks_memberlist}</a></li>
					<li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$theme['imgdir']}/toplinks/calendar.gif" alt="" />{$lang->toplinks_calendar}</a></li>
					<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" />{$lang->toplinks_help}</a></li>
				</ul>
			</div>
			<hr class="hidden" />
			<div id="panel">
				{$welcomeblock}
			</div>
		</div>
		<hr class="hidden" />
		<br class="clear" />
		<div id="content">
			{$bannedwarning}
			{$bbclosedwarning}
			{$unreadreports}
			<navigation>
			<br class="clear" />

how the code have to be so the header will be on te right side of the forum?
Quote:ok , It's not EDIT. I have to choose EXPAND for change the HTML code...(you said EDIT button)

Well Edit comes after expand which is a normal thing to do...

Regarding the template codes.. it is not ONE thing you do and everything is changed.. you have to pass by ever and each template that you need to change, like everypage ,where you want to have what's on the currently to the left to appear on the right side intead, should be edited.


I can't help you fixing all the templates.. that's a lot of work.

Anyway for the logo what you can do is to edit the header template
find
<div class="logo">
replace with
<div class="logo" align="right">

regards
You don't need to edit the templates.

If you enable the switch in the inc/languages/[language file].php then everything will be switched from LTR over to RTL.

Modifying templates is not necessary at all.
chris Boulton - thanks. i already donw that , but it's not working

Zaher - if i'll put align="right" hwereever i see <div...> it will do the swetch?
BTW - witch template charge on the main page - where you see the forums list...?
GRToungue i knew there should be some other way... good oneWink


Quote:chris Boulton - thanks. i already donw that , but it's not working
It should work... make sure that in ur lang settings file $langinfo['rtl'] is 1

Quote:BTW - witch template charge on the main page - where you see the forums list...?
Stick on the RTL

Even though at some points some templates still need a bit of modification
Quote:Zaher - if i'll put align="right" hwereever i see <div...> it will do the swetch?
If you put the align right inside the div. the logo will move to the right side instead of the left.

regards
Pages: 1 2 3