Actually, the "page" in question is a member's profile. I know this is an odd request, but is there any way you can think of to allow a change of the forum banner image rather than the default just when viewing somebody's profile?
I know it sounds silly.
If anyone has an idea, however...
Same banner (Other then default) on each profile OR different banners for different profiles ?
A particular banner (different from default) on a particular, single profile. I realise this makes things more complicated, since it would be a lot easier to make it happen for all profiles. But if you know a way let me know.
And you're saying it's possible to make the actual header banner of the theme update for a particular profile? (I would only want this to happen on one particular theme.) If this is possible using such methods I'm very thankful.
Yes, if you want I can try to write a tutorial using the default theme for you to use.
Here in the header template, copy all the template, in the member profile, at {$header} place and remove this variable, i.e.
Find
{$header}
Replace with
<div id="container">
<a name="top" id="top"></a>
<div id="header">
<div id="logo">
<div class="wrapper">
<a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a>
<ul class="menu">
<li><a href="http://vubscs.tk" class="active" target="_self"><span>Home</span></a></li>
<li><a href="http://vubscs.tk/forum" target="_self"><span>Study Material</span></a></li>
<li><a href="http://vubscs.tk/about.html" target="_self"><span>About Us</span></a></li>
<li><a href="http://vubscs.tk/contact.html" target="_self"><span>Contact Us</span></a></li>
</ul>
</div>
</div>
<div id="panel">
<div class="upper"><!-- This div(class="upper") is closed in the header_welcomeblock_member and header_welcomeblock_guest templates -->
<div class="wrapper">
<ul class="menu top_links">
<li><a href="{$mybb->settings['bburl']}/search.php" class="search">{$lang->toplinks_search}</a></li>
<li><a href="{$mybb->settings['bburl']}/memberlist.php" class="memberlist">{$lang->toplinks_memberlist}</a></li>
<li><a href="{$mybb->settings['bburl']}/calendar.php" class="calendar">{$lang->toplinks_calendar}</a></li>
</ul>
{$welcomeblock}
</div>
</div>
<div id="content">
<div class="wrapper">
{$pm_notice}
{$bannedwarning}
{$bbclosedwarning}
{$unreadreports}
{$pending_joinrequests}
<navigation>
<br />
Now in the above code you just pasted, in member_profile template,
Change logo part, i.e.
<a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a>
to
<a href="{$mybb->settings['bburl']}/index.php"><img src="images/mempic/{$memprofile['uid']}.png" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a>
Now, create a directory in your images folder with the name "mempic ". And upload your banners in it, which you want to show in profiles, You must have a banner for each user, otherwise the banner place will be empty. And remember , save the banner with members, uid , e.g. for a user having, uid=1 , then save the banner as,
1.png for a user having uid=4, save the banner as
4.png
Live demo (this is my test form, so I do it in haste, you can change it with a nice banner
):-
profile no 1
profile no 2
^ fine work
I'd suggest to use
global templates plugin for making the custom header to use its code (eg. {$header2}) in other templates ..
(2011-10-08, 07:08 AM)ranjani Wrote: [ -> ]^ fine work
I'd suggest to use global templates plugin for making the custom header to use its code (eg. {$header2}) in other templates ..
Awesome plugin, I was looking for it
That will not allow each member to choose their banner and if a banner is not choose then it will show a empty space.
But if that works for Fluid Mantis...
(2011-10-08, 07:08 AM)ranjani Wrote: [ -> ]^ fine work
I'd suggest to use global templates plugin for making the custom header to use its code (eg. {$header2}) in other templates ..
That is already possible if you use the Template Conditionals or PHP In Templaes plugins.
If not, very good plugin