MyBB Community Forums

Full Version: Side Boxes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello, how do I replace the Search box into a Login Box ?(remove the shortcut login form @ the index too)

I know that the login template is welcome_guesttext and the other is welcome_membertext


Next,
How do I Implant a 'Ads' box below the Login Box like http://talkcerts.com/

heloo there

install my mod side boxes, then replace ./sb.php with the modified attached one

now in Admin CP > templates > Modify / Delete > Expand> index page template > index

find

<table width="100%" border="0">
<tr>
<td width="75%" valign="top">$forums </td>

<td width="25%" valign="top">
$search
$latestthreads
</td>

</tr>
</table>

replace with

<table width="100%" border="0">
<tr>
<td width="75%" valign="top">$forums </td>

<td width="25%" valign="top">
$welcome
$pms
$search
$latestthreads
</td>

</tr>
</table>


now in Admin CP > templates > Modify / Delete > Expand > Portal Templates > portal_welcome_guesttext

replace it with

<span class="smalltext">$lang->guest_welcome_registration<br />
<br />
<form action="member.php" method="post">
<input type="hidden" name="action" value="do_login" />
$lang->username<br />&nbsp;&nbsp;<input type="text" name="username" value="" /><br /><br />
$lang->password<br />&nbsp;&nbsp;<input type="password" name="password" value="" /><br />
<br /><input type="submit" class="submit" name="loginsubmit" value="$lang->login" /></form>

and ur done Smile
thx! ;D
ops! how do i create a new box called sponser or ads ?
well it's all explained here

Quote:for example a simple box like this will have this code


<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td class="tborder">
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" width="100%">
<tr>
<td class="thead"><strong>Title here </strong></td>
</tr>
<tr>
<td class="trow1">
<span class="smalltext">
<strong>Things here </strong><br />
<br />
</span></td>
</tr>
</table>
</td></tr></table>
<br />

regards
Great Zaher! I just implemented the side box on my forum www.qnhl.com

Thanks a lot!
GSA
Is there any way to add the Link or Sponsor box as an additional template or something so that the index.php code doesn't have to be touched every time a link or sponsor is added/deleted?

I know that with vBadvance Portal for vB there is the ability to add seperate templates that can contain either BB code or HTML. Just hoping there is a way to accomplish something similar in MyBB.
Yes sure you can, but after creating this template (make sure to put index_urbox) so it appear with the index templates set. now u will have to open sb.php

find
 // Search box

and add above it

 eval("\$urbox = \"".$templates->get("index_urbox")."\";");


regards
Zaher, is there a simple way of creating templates for that?

Thanks!
Well as any new template, from the templates manager, click add a template.

but u should always remember that u can't use them properly , until u eval them in the corresponding php file.

read this example once i made for creating a new box in the portal page , using a new template > read more

regards
Pages: 1 2