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 /> <input type="text" name="username" value="" /><br /><br />
$lang->password<br /> <input type="password" name="password" value="" /><br />
<br /><input type="submit" class="submit" name="loginsubmit" value="$lang->login" /></form>
and ur done
ops! how do i create a new box called sponser or ads ?
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