MyBB Community Forums

Full Version: Condition and vb navbar for 1.20
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
That's what the "find updated" tool within the admin cp should have done.
* flick ish a newbie MyBB user *runs away and clicks furiously on that 'Find updated' tool* Smile

Thanks, destroyer! ^^
Didn't you read the announcement? Toungue

I hope it's working now.
destroyer Wrote:Didn't you read the announcement? Toungue

I hope it's working now.

Evidently only the first one-and-a-half posts! Cool
Still working on it, but am trying hard! ^^ Will remember to read the announcement posts *in full* from now on though!
If anyone has had issues with the 'if condition' not working (where even guests can see the "Private messages" and a string of nonsense) - with (complete) reference to this thread:

Open inc/class_templates.php
and find (around Line 101 in the latest version)
$template = str_replace("\\'", "'", $db->escape_string($template));

and add below
$template= str_replace("<if condition=","\".iif(",$template);
$template= str_replace("<then>",",\"",$template);
$template= str_replace("<else />","\",\"",$template);
$template= str_replace("</if>","\").\"",$template);

So no major template changes, thankfully! Smile I will make notes of any new changes to make the template codes more standards compatible and post them gradually.
But won't anybody solve my problem ? When i add these code on a theme then i can't logout !!

Help please....
Thanks flick u r helping me lots !! Now i can sign out but now facing another problem.....After applying this now i see last post in thread column and thread count show in last post column Sad

What can i do now ?? You can see that here www.mydreamtech.com

Thanks and waiting for ur early reply.....
Glad it worked for you - have to thank judel for posting the link in the first place Smile

One of the edits the Navbar makes to Forum Bit Templates > forumbit_depth2_forum:
Quote:
<tr>
<td class="{$bgcolor}" align="center" valign="middle"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" /></td>
<td class="{$bgcolor}" valign="middle">
<strong><a href="forumdisplay.php?fid={$forum['fid']}">{$forum['name']}</a></strong><div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div>
</td>
<td class="{$bgcolor}" valign="midlle" width="21%" align="left" style="white-space: nowrap">{$lastpost}</td>
<td class="{$bgcolor}" valign="middle" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="middle" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>
</tr>

but for your case you might want to use

<tr>
<td class="{$bgcolor}" align="center" valign="middle"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" /></td>
<td class="{$bgcolor}" valign="middle">
<strong><a href="forumdisplay.php?fid={$forum['fid']}">{$forum['name']}</a></strong><div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div>
</td>
<td class="{$bgcolor}" valign="middle" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="middle" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>
<td class="{$bgcolor}" valign="middle" width="21%" align="left" style="white-space: nowrap">{$lastpost}</td>
</tr>

which is simply to move
<td class="{$bgcolor}" valign="middle" width="21%" align="left" style="white-space: nowrap">{$lastpost}</td>
to become the last column before </tr>

It might be worth going through the edits first next time before posting? Smile
Wow many many thanks bro.....
Now everythings ok...u helped me more.....

Again thanks......
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17