[ABD] phpBB Sidebar

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
Pico88
Registered User
Posts: 878
Joined: Sat Mar 07, 2009 10:24 pm
Location: Poland
Name: Lukasz

Re: [BETA] phpBB Sidebar

Post by Pico88 » Fri Jun 24, 2011 5:50 am

Show/hide sidebar is based on cookies, so you have to edit belowe code in overall_header.html

Code: Select all

<script type="text/javascript">
jQuery(function($) {

	var objMain = $('#main');
	var objFl = $('#forumslist');
	var objSidebarbutton = $('#sidebar-button');
	
	objSidebarbutton.click(function(e){
		if ( objMain.hasClass('use-sidebar') ){
			objFl.animate({width: "100%"}, 400);
			objMain.removeClass('use-sidebar');
			$.cookie('sidebar', null, { expires: 365 });
			return false;
		}
		else {
			objFl.animate({width: "78%"}, 400,
            function() {
                objMain.addClass('use-sidebar');});
			$.cookie('sidebar', 'use-sidebar', { expires: 365 });
			return false;
		}
	});

	objMain.addClass($.cookie('sidebar'));
});
</script>
Please do not PM me for support.

User avatar
Shakensoul
Registered User
Posts: 77
Joined: Fri Mar 20, 2009 9:37 am
Location: India
Contact:

Re: [BETA] phpBB Sidebar

Post by Shakensoul » Fri Jun 24, 2011 6:48 pm

Thanks for replying.

I am not an expert at coding.

I tried changing a few lines but it didn't work.

Changed

Code: Select all

objSidebarbutton.click(function(e){
      if ( objMain.hasClass('use-sidebar') ){
         objFl.animate({width: "100%"}, 400);
to

Code: Select all

objSidebarbutton.click(function(e){
      if ( objMain.hasClass('use-sidebar') ){
         objFl.animate({width: "78%"}, 400);
I would appreciate if you can specify the exact changes.

User avatar
Pico88
Registered User
Posts: 878
Joined: Sat Mar 07, 2009 10:24 pm
Location: Poland
Name: Lukasz

Re: [BETA] phpBB Sidebar

Post by Pico88 » Fri Jun 24, 2011 8:33 pm

Now I haven't time to make it work as you wish.
Probably the best way is to rewrite function - if there is no cookie, show sidebar, if there is cookie, hide it.
Please do not PM me for support.

User avatar
Shakensoul
Registered User
Posts: 77
Joined: Fri Mar 20, 2009 9:37 am
Location: India
Contact:

Re: [BETA] phpBB Sidebar

Post by Shakensoul » Sat Jun 25, 2011 10:11 am

Ok thanks. I'll try something.

Also does this mod not work on IE6 ?

User avatar
boy_ofpersia
Registered User
Posts: 88
Joined: Sat Sep 13, 2008 5:58 pm
Location: Tehran, Iran
Name: Arman Pasayandeh
Contact:

Re: [BETA] phpBB Sidebar

Post by boy_ofpersia » Sat Jun 25, 2011 2:44 pm

hmm... awesome! Thank you man for this useful MOD!
As you know, it has a problem with supernova style. What's the solution now?! :?
Thanks again.
"We tie knots & bind up words in double meanings, and then try to untie them"
--Seneca

User avatar
Pico88
Registered User
Posts: 878
Joined: Sat Mar 07, 2009 10:24 pm
Location: Poland
Name: Lukasz

Re: [BETA] phpBB Sidebar

Post by Pico88 » Sat Jun 25, 2011 6:39 pm

There is no solution yet.
Please do not PM me for support.

User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: [BETA] phpBB Sidebar

Post by keith10456 » Sat Jun 25, 2011 6:46 pm

Shakensoul wrote:Ok thanks. I'll try something.

Also does this mod not work on IE6 ?
I'm surprised if anything works on IE6!

Tell me that's NOT what you're using!!!

User avatar
Shakensoul
Registered User
Posts: 77
Joined: Fri Mar 20, 2009 9:37 am
Location: India
Contact:

Re: [BETA] phpBB Sidebar

Post by Shakensoul » Mon Jun 27, 2011 5:50 pm

keith10456 wrote:
Shakensoul wrote:Ok thanks. I'll try something.

Also does this mod not work on IE6 ?
I'm surprised if anything works on IE6!

Tell me that's NOT what you're using!!!
I am not using IE6 ;)

but still there are many users who use IE6 in my forum as some offices/organizations are still stuck with IE 6 and just wanted to ensure that the forum is operational even in IE6 when people access from their offices.

User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [BETA] phpBB Sidebar

Post by darkonia » Mon Jun 27, 2011 6:25 pm

lool there are not many users that use ie6 anymore only noobs and old.schoolers they wont to update... :lol:
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.

mapcel
Registered User
Posts: 1
Joined: Mon Jul 25, 2011 9:35 pm

Re: [BETA] phpBB Sidebar

Post by mapcel » Mon Jul 25, 2011 9:39 pm

Link to download doesn't exit :(
Can you reply the link?

User avatar
Pico88
Registered User
Posts: 878
Joined: Sat Mar 07, 2009 10:24 pm
Location: Poland
Name: Lukasz

Re: [BETA] phpBB Sidebar

Post by Pico88 » Wed Jul 27, 2011 6:51 pm

mapcel wrote:Link to download doesn't exit :(
Can you reply the link?
The link exist but the board is turned off. It will come back soon.
Please do not PM me for support.

User avatar
Pico88
Registered User
Posts: 878
Joined: Sat Mar 07, 2009 10:24 pm
Location: Poland
Name: Lukasz

Re: [BETA] phpBB Sidebar

Post by Pico88 » Fri Jul 29, 2011 12:41 pm

Mod reupload.
Link
Please do not PM me for support.

User avatar
FranckTH
Registered User
Posts: 361
Joined: Thu Jul 28, 2011 12:14 pm
Location: France
Name: Franck
Contact:

Re: [BETA] phpBB Sidebar

Post by FranckTH » Fri Jul 29, 2011 12:50 pm

Pico88 wrote:Mod reupload.
Link

thanks Pico88, great mod ;) it's possible in future to add "profil user with avatar" when he is connected ?
Free Flash & HTML5 Games for Phpbb 3.2.2 + Extension Relax Arcade Pro
Free Flash & HTML5 Games for Relax Arcade Pro

Nikolopoulos
Registered User
Posts: 1
Joined: Thu Aug 18, 2011 8:31 am

Re: [BETA] phpBB Sidebar

Post by Nikolopoulos » Thu Aug 18, 2011 8:36 am

Good morning from greece, I want to ask, I can put as default being open and closes who wants the sidebar?
Thanks

User avatar
Pico88
Registered User
Posts: 878
Joined: Sat Mar 07, 2009 10:24 pm
Location: Poland
Name: Lukasz

Re: [DEV] phpBB Sidebar

Post by Pico88 » Mon Dec 12, 2011 7:41 pm

Ok, I come back to develepo this mod :)
More information soon.

Now you can have a look at new script for hiding/showing sidebar - this one doesn't cause any problem like previous one. :)
Please do not PM me for support.

Locked

Return to “[3.0.x] Abandoned MODs”