MyBB Community Forums

Full Version: myBlog need help!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, I have myblog installed but the blog icon does not appear on the main page, how can I add it to the template? I know it's in header, but I don't know the code, that's how I was testing it on header template
<li> <a href="/mybblog.php"> {$ lang-> mybblog} </a> </li>
{$ menu_portal}
{$ menu_search}
{$ menu_memberlist}
{$ menu_calendar}

But it doesn't come out, can someone help me please?
You can edit Template via Admin Control Panel:

Home » Template Sets » Default Templates » Edit Template: header

For example:
<img src="URL-Image-Blog.png"><a href="URL-MyBlog.php">MyBlog</a>

[Image: Template-Sets.png]

Big Grin

Pd:
En mi personal site hay un tutorial en español,  con las referencias que he modificado de la comunidad de mybb

Blush
since you are opting to add this link to the toplinks, there is something to factor, the toplinks sprite! and the fact that it will display on your added link (ie: that pesky search icon that display when adding an undefined toplink thus the sprite displays that icon) unless told not to do so by another definition....

add to toplinks menu in header:
<li><a href="{$mybb->settings['bburl']}/mybblog.php" class="mybblog" title="{$lang->mybblog}">{$lang->mybblog}</a></li>

for this example we have an image named mybblog.png -> [attachment=43893] so we must download and upload it to images directory

add to toplinks styling in global.css:
#logo ul.top_links a.mybblog {
	background: url('images/mybblog.png') left no-repeat; 	/* placing image where toplinks sprite by default is called */
}
(2021-03-04, 04:09 PM)censor_deeznutz Wrote: [ -> ]since you are opting to add this link to the toplinks, there is something to factor, the toplinks sprite! and the fact that it will display on your added link (ie: that pesky search icon that display when adding an undefined toplink thus the sprite displays that icon) unless told not to do so by another definition....

add to toplinks menu in header:
<li><a href="{$mybb->settings['bburl']}/mybblog.php" class="mybblog" title="{$lang->mybblog}">{$lang->mybblog}</a></li>

for this example we have an image named mybblog.png ->  so we must download and upload it to images directory

add to toplinks styling in global.css:
#logo ul.top_links a.mybblog {
	background: url('images/mybblog.png') left no-repeat; 	/* placing image where toplinks sprite by default is called */
}
Thanks so much!!
(2021-03-10, 08:30 PM)A_Joycel Wrote: [ -> ]
(2021-03-04, 04:09 PM)censor_deeznutz Wrote: [ -> ]since you are opting to add this link to the toplinks, there is something to factor, the toplinks sprite! and the fact that it will display on your added link (ie: that pesky search icon that display when adding an undefined toplink thus the sprite displays that icon) unless told not to do so by another definition....

add to toplinks menu in header:
<li><a href="{$mybb->settings['bburl']}/mybblog.php" class="mybblog" title="{$lang->mybblog}">{$lang->mybblog}</a></li>

for this example we have an image named mybblog.png ->  so we must download and upload it to images directory

add to toplinks styling in global.css:
#logo ul.top_links a.mybblog {
	background: url('images/mybblog.png') left no-repeat; 	/* placing image where toplinks sprite by default is called */
}
Thanks so much!!


Big Grin no worries. Cool  cool beans @ if it helped your request.   Toungue