vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Troubleshooting / "How do I..." Questions

 
 
Thread Tools Display Modes
  #1  
Old 02-27-2005, 10:31 PM
tomshawk's Avatar
tomshawk tomshawk is offline
tech-unity.com
 
Join Date: Jun 2004
Posts: 452
Question Sidebar hack question?!?!

Hello Everyone,

Using this sidebar seems easy enough to do, but I have a question.

I saw a site not to long ago, (sorry, cant remember the name or link) that had the sidebar, and a link in the navbar that could be used to enable and disable the sidebar, while in forums.

I dont know if it was this sidebar hack or the one on vbulletin.org but... Brian?
Is that possible with the version on this site?
__________________



  #2  
Old 02-27-2005, 11:30 PM
Tom M Tom M is offline
Senior Member
 
Join Date: Jan 2004
Posts: 1,867
Default Re: Sidebar hack question?!?!

Are you thinking of this?
  #3  
Old 02-28-2005, 12:10 AM
tomshawk's Avatar
tomshawk tomshawk is offline
tech-unity.com
 
Join Date: Jun 2004
Posts: 452
Default Re: Sidebar hack question?!?!

I've seen that portal before and it looks alright, but No, this is not what I ment

I saw a site running vbulletin and vbadvanced.

While in the forums, it had a sidebar, but there was a link in the navbar that you could click on that would make the sidebar disappear. if you clicked it again, the sidebar would come back.

Thanks anyway Tom
__________________



  #4  
Old 02-28-2005, 09:30 PM
tomshawk's Avatar
tomshawk tomshawk is offline
tech-unity.com
 
Join Date: Jun 2004
Posts: 452
Default Re: Sidebar hack question?!?!

anybody???
__________________



  #5  
Old 02-28-2005, 09:49 PM
ttnb ttnb is offline
Senior Member
 
Join Date: Sep 2004
Posts: 451
Default Re: Sidebar hack question?!?!

Dou you mean this one ?
http://www.vbadvanced.com/forum/show...ghlight=module

Follow the links and then go to the Demo take a look at the left side .
  #6  
Old 02-28-2005, 09:51 PM
ttnb ttnb is offline
Senior Member
 
Join Date: Sep 2004
Posts: 451
Default Re: Sidebar hack question?!?!

Demo here http://www.mobileforces.org/
Clich the "-" mark of all the module you will see how it works . have funs!
  #7  
Old 02-28-2005, 10:28 PM
tomshawk's Avatar
tomshawk tomshawk is offline
tech-unity.com
 
Join Date: Jun 2004
Posts: 452
Default Re: Sidebar hack question?!?!

Thank you ttnb,

This is not what I'm looking for, but, thank you for the effort.

what I am looking for will take the sidebar that is in the forum itself and make it disappear. Like I said though, I'm not sure which sidebar hack the person was using.

Man, I wish I knew which freaking site, I saw it on
__________________



  #8  
Old 02-28-2005, 10:41 PM
ttnb ttnb is offline
Senior Member
 
Join Date: Sep 2004
Posts: 451
Default Re: Sidebar hack question?!?!

I thinks you should go to the vbulletintemplates.com and vbulletin.org to and do a search or request for help!

Good luck!
  #9  
Old 02-28-2005, 11:45 PM
Tom M Tom M is offline
Senior Member
 
Join Date: Jan 2004
Posts: 1,867
Default Re: Sidebar hack question?!?!

How long ago did you visit the site? The link may still be in your history file depending on which browser you use.
  #10  
Old 03-01-2005, 02:02 PM
tomshawk's Avatar
tomshawk tomshawk is offline
tech-unity.com
 
Join Date: Jun 2004
Posts: 452
Default Re: Sidebar hack question?!?!

It was awhile ago and not in my history anymore (

Anyway, Brian, do you have any ideas?
__________________



  #11  
Old 03-01-2005, 03:58 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Sidebar hack question?!?!

The only way I can think of to do it would be to create a separate file that you could create a link to, use that file to set a cookie for the user, then add something in the files to disable the modules if they have that setting in their cookie.
  #12  
Old 03-01-2005, 04:26 PM
tomshawk's Avatar
tomshawk tomshawk is offline
tech-unity.com
 
Join Date: Jun 2004
Posts: 452
Default Re: Sidebar hack question?!?!

That makes sense Brian, but, if you do that, it would probably affect the modules on the cmps homepage, wouldn't it?

It's funny because I was thinking it may be something you can set up in a custom user profilefield to make it visable or not, but again, I think that would affect the cmps as well, and I dont want that.

this is frustrating, thats for sure.
__________________



  #13  
Old 03-01-2005, 05:58 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Sidebar hack question?!?!

If you just put something like if ($pages['name'] == 'forum_include_page') then that would keep it from affecting other pages.
  #14  
Old 03-03-2005, 12:58 AM
tomshawk's Avatar
tomshawk tomshawk is offline
tech-unity.com
 
Join Date: Jun 2004
Posts: 452
Default Re: Sidebar hack question?!?!

Brian,

I was hoping I could get this to work, but... so far I am unsucessful

knowing all I have to do is change

this
PHP Code:
eval('print_output("' fetch_template('FORUMHOME') . '");'); 
to this
PHP Code:
eval('$HTML = "' fetch_template('FORUMHOME') . '";');

print_portal_output($home$HTML); 
I thought i would try making a custom user profile field, and doing this setting this in the forums\index.php

PHP Code:
if ("$bbuserinfo[field5] == On")
 
{eval(
'$HTML = "' fetch_template('FORUMHOME') . '";');

print_portal_output($home$HTML);}

else

{eval(
'print_output("' fetch_template('FORUMHOME') . '");');} 
I get the sidebar whether I say on or off in the UserCP. It doesn't seem to care.

Could you give me an idea what I may be doing wrong

Any help would be greatly appriciated
__________________



  #15  
Old 03-03-2005, 08:20 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Sidebar hack question?!?!

if ($bbuserinfo['field5'] == 'On')

Try that instead.
  #16  
Old 03-03-2005, 09:04 AM
tomshawk's Avatar
tomshawk tomshawk is offline
tech-unity.com
 
Join Date: Jun 2004
Posts: 452
Default Re: Sidebar hack question?!?!

That worked perfectly, thank you Brian

Now, for the part, I am really lost on

Would it be possible to put this usercp\options dropdown on the navbar or in the footer, kinda like the style chooser.

Because the chooser is out there, I have to assume it is possible.

I'll work on it tonight, but ideas would be greatly appriciated.

Thank again for the help you've given me
__________________



  #17  
Old 03-03-2005, 09:27 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Sidebar hack question?!?!

Hmmm... I'm not sure if there would be a good way to do that other than writing a separate script that would update that field.
  #18  
Old 03-03-2005, 09:55 AM
tomshawk's Avatar
tomshawk tomshawk is offline
tech-unity.com
 
Join Date: Jun 2004
Posts: 452
Default Re: Sidebar hack question?!?!

Thats what I thought

I'll look into it and see what I can come up with then ask your opinion, once I have something.

Thanks agian for the help
__________________



  #19  
Old 03-05-2005, 03:13 PM
tomshawk's Avatar
tomshawk tomshawk is offline
tech-unity.com
 
Join Date: Jun 2004
Posts: 452
Default Re: Sidebar hack question?!?!

Hi Brian,

I got a hold of someone over at vbulletin.org to help me out

He had me remove what I did above, because we wanted to do guests as well. OK..

So, I went back to your original code

PHP Code:
define('VBA_PORTAL'true);
define('VBA_PAGE''forumshome'); 
and this

PHP Code:
eval('$HTML = "' fetch_template('FORUMHOME') . '";');
print_portal_output($home$HTML); 
OK kewl

he had me modify the adv_portal template to this

PHP Code:
<table align="center" class="page" cellspacing="0" cellpadding="0"width="100%">
<
tr valign="top">

<if 
condition="$show['left_column']">

<
td width="$vba_options[portal_leftcolwidth]id="collapseobj_gtpcloseleftcol" style="$vbcollapse[collapseobj_gtpcloseleftcol]"
and add a link in the navbar like this

PHP Code:
<a href="#top"
onclick="return toggle_collapse('gtpcloseleftcol')">SideBar</a
As you can see, it works

http://www.tech-unity.com/forums/boards.php?

But,

If you turn off the sidebar it goes away..... Now refresh the screen.
You see it comes back.

He said that this is a cookie setting in vbadvanced.

Do you have an idea as to why? or what the cookie setting is and where to change it?

Thank you very much for any help with this
__________________



  #20  
Old 03-05-2005, 03:22 PM
tomshawk's Avatar
tomshawk tomshawk is offline
tech-unity.com
 
Join Date: Jun 2004
Posts: 452
Default Re: Sidebar hack question?!?!

P.S. I'm thinking this might be something you could add to the global.php file

maybe under the
// read the list of collapsed menus from the 'vbulletin_collapse' cookie
section

Thoughts?
__________________



 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sidebar(s) in forums? maximux1 Troubleshooting / "How do I..." Questions 89 06-14-2006 10:55 AM
Sidebar hack....please help Takamine334 Troubleshooting / "How do I..." Questions 9 02-27-2005 02:14 PM
Different sidebar per forum? RetroDreams Troubleshooting / "How do I..." Questions 17 02-23-2005 10:38 AM
Weird board issue..only hack I have is the portal hack..help? Volconvo Troubleshooting / "How do I..." Questions 1 12-20-2004 10:28 AM
Sidebar on forum. Problems with same dir? rbl Bugs & Other Issues 11 12-14-2004 03:33 PM


All times are GMT -4. The time now is 12:50 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.