MyBB Community Forums

Full Version: Couple of 1.2.9 errors
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Ok, i have just realised i can't logout either and my members are getting this;
[Image: 16b1914605os2.jpg]
It'd be best to turn that theme off for now, while the author updates it
I have tried using different themes but it's too much trouble tbh becuase i have edited my current theme quite abit with new graphics, mods and banner is perfectly suited etc.

I have also screwed up my arcade by trying new themes.

I would really appreciate it if someone could find a way to solve the small problems with my exsisting theme.
your theme is too good to revert to original Smile
In my mind, you need change 'header' template.

Original header use templates $header_welcomeblock_guest/member - but not directly. MyBB scripts care of valid welcomeblock: there should be used {$welcomeblock}

If you have in header template diffrent code to show welcomeblock - delete this

I see in page source that you have changed header_welcomeblock_guest to:
<strong>
 <a href="{$mybb->settings['bburl']}/member.php?action=register">
{$lang->welcome_register}</a>
</strong>
My proposition: add here
{$lang->welcome_guest} 
<a href="{$mybb->settings['bburl']}/member.php?action=login">
{$lang->welcome_login}</a>
This is from original template.
{$lang->welcome_guest} is used for show text "Hello there, guest".

-------

code with "welcome back, xxx" put into header_welcomeblock_member

-------

if you use not changed myBB php scripts this should working good.

I can't help you much more because i don't see your templates.
-------
Before you try repair this:
- make a copy of this theme (with templates)
- set in your UserCP this "copy of theme"
now you can change what you want without difficulties for your members Wink


Post scriptum:
You have login/logout not compatible with myBB 1.2.8/9
i try more clear.

[Image: header_templates.jpg]

In your page i see something like:
<td class="trow2" valign="top" nowrap="nowrap">
<div class="smalltext">
<strong>Welcome back, %1$s</strong>. You last visited: %2$s<br />
<a href="private.php">Private Messages</a> (New %1$s, Unread %2$s, Total %3$s)<BR />
<strong>Current time:</strong> 07-21-2007, 12:01 AM
</div>
</td>
Hmm. You can see this before login, so
is possible that you put this directly to 'header' template,
or you have error in 'header_welcome_block'

How you can find this code in header template? Look for {$lang->welcome_back}

Anyway, if this is in header, then delete this and write:
<td class="trow2" valign="top" nowrap="nowrap">
<div class="smalltext">
  {$welcomeblock}
</div>
</td>

After when you do this, then in this one place you can see:
- welcome back – for logged people
- welcome guest – for not logged

Now go to template 'header_welcomeblock_member'
For your theme this should be:
<strong>{$lang->welcome_back}</strong><br />
<a href="{$mybb->settings['bburl']}/private.php">{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}
<BR />
{$lang->welcome_current_time}
<BR />{$admincplink}

ok. check the 'header_welcomeblock_guest', this shoud look like:
{$lang->welcome_guest}
<BR />
<a href="{$mybb->settings['bburl']}/member.php?action=login">
{$lang->welcome_login}</a>
 — <a href="{$mybb->settings['bburl']}/member.php?action=register">
{$lang->welcome_register}</a>
<BR />
{$lang->welcome_current_time}

I saw ‘Welcome guest! Login’ in the menu (is showed on the picture), but now you don't have register link. After changes above “Welcome guest” is showed close to loginform, so you can delete {$header_welcome_guest} from menu. In my mind this is good way because if you use any links from “welcome_guest / member” is possible that this can be showed not correctly.


Next: ‘index_logoutlink’
Make sure that this look like:
<a href="member.php?action=logout&uid={$mybb->user['uid']}&sid={$session->sid}">{$lang->index_logout}</a>

Ok, we come back to ‘header’ template.
In menu you have link “Logout” (even if I’m not logged). You need change this link to:
<a href="{$mybb->settings['bburl']}/member.php?action=logout&uid={$mybb->user['uid']}&sid={$session->sid}">{$lang->welcome_logout}</a>
This link can be showed always, but if you want “Logout” link here it’s no problem.

How you can find this? In template ‘header’ look for ‘action=logout’

Ok. Now we need hide loginform. Exactly this is ‘index_loginform’ template.
But at this moment I must finish Sad I have some duties
That saved me a lot of work Smile Now I might consider upgrading from 1.2.7 (which I wasn't going to do because I worked hard on my VB and UT2004VB themes).
carra23 Wrote:
GG-Xtreme Wrote:Your theme is using an "<if condition=$mybb->user['uid']> 0 <then>...", which isn't compatible with 1.2.8 or up.

Ok, is this repairable?
GG-Xtreme Wrote:Your theme is using an "<if condition=$mybb->user['uid']> 0 <then>...", which isn't compatible with 1.2.8 or up.

Ok i fixed the 0 problem by getting rid of this line, is there a way to fix the other problem?Sad
Just curious, is this the RedBulletin theme? I have the 0s on mine too if it is. So where did you find that line to remove? Shy
GG-Xtreme Wrote:That saved me a lot of work Smile Now I might consider upgrading from 1.2.7 (which I wasn't going to do because I worked hard on my VB and UT2004VB themes).
This is a brutal reality Smile
There you can find list of changed templates in v1.2.8
# changeuserbox - Revert required
# forumdisplay_announcements_announcement_modbit - Added
# forumdisplay_announcements_announcement - Revert required
# header_welcomeblock_member - Revert required
# index_logoutlink - Revert required
# misc_imcenter_icq - Revert required
more info:
http://community.mybboard.net/showthread.php?tid=20463

But revert is not required Big Grin is not too much to change Wink
In this template is something like:
<table>
...
  <td>{$welcome_block}</td>
  <td> "code-for-login-form" </td>
</table>
I delete this, so now is:
<table>
...
  {$welcome_block}
</table>

and i put loginform to header_welcomeblock_guest

header_welcomeblock_guest:
<td class="trow2" valign="top" nowrap="nowrap">
<div class="smalltext">

{$lang->welcome_guest}
<BR />
<a href="{$mybb->settings['bburl']}/member.php?action=login">
{$lang->welcome_login}</a>
 — <a href="{$mybb->settings['bburl']}/member.php?action=register">
{$lang->welcome_register}</a>
<BR />
{$lang->welcome_current_time}

</div>
</td>

<td class="trow2" nowrap="nowrap" style="padding:0px">

<!-- login form -->
<form action="member.php" method="post">
<input type="hidden" name="action" value="do_login" />
<table cellpadding="0" cellspacing="3" border="0">
<tr>
<td class="smalltext">$lang->username</td>
<td><input type="text" name="username" size="10" title="$lang->username" value="$lang->username" onfocus=" this.value=''" /></td>
<td class="smalltext" colspan="2" nowrap="nowrap">

<label for="remember">
<input type="checkbox" name="remember" id="remember" value="yes" checked="checked" />Remember?</label>

</td>
</tr>
<tr>
<td class="smalltext">$lang->password</td>

<td><input type="password" name="password" size="10" title="$lang->password" value="$lang->password" onfocus=" this.value=''" /></td>

<td><input type="submit" class="smalltext" style="font-weight:normal" value="OK" /></td>

</tr>
</table>
</form>

<!-- / login form -->

</td>

header_welcome_member:
<td class="trow2" valign="top" nowrap="nowrap">
<div class="smalltext">

<strong>{$lang->welcome_back}</strong><br />
<a href="{$mybb->settings['bburl']}/private.php">{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}
<BR />
{$lang->welcome_current_time}

</div>
</td>

Now this working correctly - loginform is visible only for not logged Smile
Pages: 1 2