MyBB Community Forums

Full Version: 'last 5 topics'
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
yes it works! +1 for you

btw, how could i make to appear just the month and the day numbers?
Hi
I've got this working OK .. but how can I make the page with the thread open in the same window?

<a href=\"http://mysite.com/showthread.php?tid=$tid\" target=\"_blank\">

I tried changing the "_blank to "_self but it still opens in a new window.

BTW .. I've got an include for the php file in an iFrame as I'm using the MyBB Portal Table.. could this be the problem?

Thanks
Delete target? =) Like this -> <a href=\"http://mysite.com/showthread.php?tid=$tid\">

<a href=\"http://mysite.com/showthread.php?tid=$tid\" target=\"_self\">
Should work aswell.
Hi
Thanks for the fast response! Smile

I just tried your suggestion .. but it still opens in a new window .. I've already tried the "self" one with the same result.

Any ideas?

Wink
Thanks for this Smile this is exactly what i needed Smile
gumleaf Wrote:Hi
I've got this working OK .. but how can I make the page with the thread open in the same window?

<a href=\"http://mysite.com/showthread.php?tid=$tid\" target=\"_blank\">

I tried changing the "_blank to "_self but it still opens in a new window.

BTW .. I've got an include for the php file in an iFrame as I'm using the MyBB Portal Table.. could this be the problem?

Thanks


Solved !!!
Change the .. target=\"_blank\"> .. to .. target=\"_parent\">

Doh ! .. I'm stupid!

Sad
Everything is working fine for me, but I was waondering if you can set it to not show any characters say after 20, how could I set that up?

I would also like to know how to set up a login on my home page like you have, Michael83 on http://www.mybboard.de
Boring Dude Wrote:I would also like to know how to set up a login on my home page like you have, Michael83 on http://www.mybboard.de
Try this code:
<form action="member.php" method="post">
<input type="hidden" name="action" value="do_login" />
<table width="240" border="0" cellspacing="2" cellpadding="0">
  <tr>
    <td><strong>Username:</strong></td>
    <td><input type="text" name="username" title="Username" onfocus="this.value=''" /></td>
  </tr>
  <tr>
    <td><strong>Password:</strong></td>
    <td><input type="password" name="password" title="Password" onfocus="this.value=''" /></td>
  </tr>
  <tr>
    <td colspan="2"><div align="center">
      <input type="submit" value="Login" />
    </div></td>
    </tr>
</table>
</form>
You have to edit the path to your member.php in the first line.
Thanks for the Login, it's very useful, now is it possible to extend on that and have a login that when you login , it logs you in but it shows your stats on the website home page which you logged in on, not in the forum, or is that too complicated?
Some thing that you have which when you login you can change your profile, and stuff wia the homepage and not in the forum
Boring Dude Wrote:Everything is working fine for me, but I was waondering if you can set it to not show any characters say after 20, how could I set that up?

I would also like to know how to set up a login on my home page like you have, Michael83 on http://www.mybboard.de

As for the limiting of the character length .. just change the "20" in the line below to whatever you want in each file.

if (strlen($item['subject']) > 24) { $subject = substr($item['subject'], 0, 20)."...."; } else { $subject = $item['subject']; }


Hey Michael83 .. that login code is just what I needed!
Big Grin
Pages: 1 2 3 4 5 6