MyBB Community Forums
5 questions - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Themes (https://community.mybb.com/forum-103.html)
+---- Forum: Theme Support (https://community.mybb.com/forum-10.html)
+---- Thread: 5 questions (/thread-1796.html)



5 questions - YaddaYadda - 2005-03-09

1. why is it that when u add an attachment, your typed text is deleted? is it possible to change the "add attachment" to a pop up ? that way the text could be saved

if not, you don't have to read further cause this would make me switch the forum software...


the next questions are illustrated by the picture - the above is how it is, the bottom one is how it shall be

A: where can I change the word "Home" to "index" ?
B: how can I change the table layout from vertical to horizontal ?
C: where can I change the background color behind the "new messages icon" ?
D: where can I change the text color for the admin indicator ?


RE: 5 questions - Smethead - 2005-03-09

1. text shouldn't be deleted by adding an attachment. Don't know why this happens with you. (Maybe it's due to your browser?)
A: go to AdminCP and browse to Templates >> Modify / Delete >> *Default templates* >> toplinks and toplinks_admin and toplinks_member and change the line
<li><a href="$settings[bburl]/index.php">$lang->toplinks_home</a></li>
B: go to AdminCP and browse to Templates >> Modify / Delete >> *Default templates* >> Forum Bit Templates >> forum_depth1_forum and change the lines
<td class="$bgcolor" valign="top">
<strong><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a></strong><br /><div class="smalltext">$forum[description]$modlist</div>
</td>
<td class="$bgcolor" valign="top" align="center" nowrap="nowrap">$threads</td>
<td class="$bgcolor" valign="top" align="center" nowrap="nowrap">$posts</td>
<td class="$bgcolor" valign="top" align="right" nowrap="nowrap">$lastpost</td>
into
<td class=[color=red]"trow2"[/color] valign="top">
<strong><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a></strong><br /><div class="smalltext">$forum[description]$modlist</div>
</td>
<td class=[color=red]"trow1"[/color] valign="top" align="center" nowrap="nowrap">$threads</td>
<td class=[color=red]"trow2"[/color] valign="top" align="center" nowrap="nowrap">$posts</td>
<td class=[color=red]"trow1"[/color] valign="top" align="right" nowrap="nowrap">$lastpost</td>
Then open the template forum_depth2_forum and change the lines
<td valign="top">
<strong><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a></strong><br /><div class="smalltext">$forum[description]$modlist</div>
</td>
<td class="$bgcolor" valign="top" align="center" nowrap="nowrap">$threads</td>
<td class="$bgcolor" valign="top" align="center" nowrap="nowrap">$posts</td>
<td class="$bgcolor" valign="top" align="right" nowrap="nowrap">$lastpost</td>
</tr>
into
<td class=[color=red]"trow2"[/color] valign="top">
<strong><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a></strong><br /><div class="smalltext">$forum[description]$modlist</div>
</td>
<td class=[color=red]"trow1"[/color] valign="top" align="center" nowrap="nowrap">$threads</td>
<td class=[color=red]"trow2"[/color] valign="top" align="center" nowrap="nowrap">$posts</td>
<td class=[color=red]"trow1"[/color] valign="top" align="right" nowrap="nowrap">$lastpost</td>
</tr>
C: go to AdminCP and browse to Templates >> Modify / Delete >> *Default templates* >> Forum Bit Templates >> forum_depth1_forum and change the lines
<td width="15" align="left"><img src="$theme[imgdir]/$folder.gif" alt="" /></td>
into
<td [color=red]bgcolor="#FF00FF"[/color] width="15" align="left"><img src="$theme[imgdir]/$folder.gif" alt="" /></td>
go to the template forum_depth2_forum and change the line
<td class="$bgcolor" align="center" valign="top"><img src="$theme[imgdir]/$folder.gif" alt="" /></td>
into
<td [color=red]bgcolor="#FF00FF"[/color] align="center" valign="top"><img src="$theme[imgdir]/$folder.gif" alt="" /></td>
where the red peace is, you can change it into whatever colour you want in HEX
D: that's just the namestyle of the admin and can be changed via AdminCP >> Users and Groups >> Manage Groups >> Administrators >> Edit Usergroup


RE: 5 questions - YaddaYadda - 2005-03-09

WOW thank you very very much!! you realy helped me out! *hughs* Smile

I didnt find the way how to edit the templates first - didnt see I have to "expand" it first...
It didnt look totaly the same like the lines u wrote I have to change but I could easiely adapt that with these detailed instructions!

only 2 last questions to finish the layout...

in which templates can I edit the indicator of private messages and where the description of the icons at the bottom -> attachment


EDIT: your answer to "A" part 1 didnt work properly. I first had to copy everything from forum_depth2_forum to forum_depth1_forum. Is there any reason why there is a "table in table"-structure in depth1 ? that made the background color not fit the whole space


RE: 5 questions - Smethead - 2005-03-09

ow sorry mate, but forum_depth1_forum and forum_depth2_forum are not the same. depth2 is used on the index page, depth1 is used on forumdisplay.php for subforums. I have accidentaly copied the depth2 2 times. You should restore forum_depth1_forum to the original (you can do it with the button next to it) and change
<td valign="top"><strong><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a></strong>
<br /><span class="smalltext">$forum[description]$modlist</span>
</td>
</tr></table>
</td>
<td class="$bgcolor" valign="top" align="center" nowrap="nowrap">$threads</td>
<td class="$bgcolor" valign="top" align="center" nowrap="nowrap">$posts</td>
<td class="$bgcolor" valign="top" align="right" nowrap="nowrap">$lastpost</td>
</tr>
to
<td valign="top" class="trow2"><strong><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a></strong>
<br /><span class="smalltext">$forum[description]$modlist</span>
</td>
</tr></table>
</td>
<td class="trow1" valign="top" align="center" nowrap="nowrap">$threads</td>
<td class="trow2" valign="top" align="center" nowrap="nowrap">$posts</td>
<td class="trow1" valign="top" align="right" nowrap="nowrap">$lastpost</td>
</tr>
.

Now for your new questions:
The indicator of private messages is the same image used for the forums. they're called on.gif and off.gif and are in you forum/images directory.
The discriptions of the icons are in the index.lang.php file of the language you are using. You can find it in forum/inc/languages/*language*/index.lang.php.
The lines you mean are the 3rd, 4th and 5th


RE: 5 questions - YaddaYadda - 2005-03-09

aah I don't want to change the gif or the description! I want to change the background for the icons there, too, that's why I asked for the template Smile any idea which it is ?

and ur way of changing the forum_depth1 doesnt work - not for the background of the "new posts indicator" - but as I said - copying the content from depth2 and addidng $forums variable works fine for me


RE: 5 questions - Smethead - 2005-03-09

pm's: Index Page Templates >> index_pms
icon descriptions: Index Page Templates >> index
You have to look a bit harder there