PDA

View Full Version : 3.8 Sliding Side Column To List Modules or even Ads


Edgespeeder06
03-24-2011, 02:55 AM
I recently saw a modification that was sent to the graveyard regarding a sliding side column so I was curious if anyone had designed a copy of something similar that can be distributed for 3.8? Its perfect for what I'm looking for and I haven't see any other mods for side columns that were as detailed or was it just me in my search?

BirdOPrey5
03-25-2011, 09:37 PM
Even though it's graveyarded if you could give a link I'll check it out and know to keep an eye out.

Edgespeeder06
03-26-2011, 01:51 AM
Thanks: https://vborg.vbsupport.ru/showthread.php?t=231961&highlight=sliding I think it would work if it didn't have an issue with why its in the graveyard, I am not sure.

I did find another one that I like but the user has been around to help and it creates 4 columns on the homepage messing up my website but yet it allows me to have it on the forum and post bit pages. If only I could turn it off from show off on the homepage.

Here's the one I'm talking about: https://vborg.vbsupport.ru/showthread.php?t=204773

BirdOPrey5
03-26-2011, 03:01 AM
Ahh, yeah that first was was removed because the author was re-distributing copyrighted vBulletin files in violation of the license.

The 2nd one however can easily be fixed so it doesn't display on the forumhome (index) page...

In Admin CP go to Plugin Manager, scroll down to the Sidebar mod and edit the plugin:
[+++++++.VN] - Sidebar Column Parse Templates

Find the line:
elseif ($vbulletin->options['sc_lor'] == 2 )
and change it to:
elseif ($vbulletin->options['sc_lor'] == 2 AND THIS_SCRIPT != 'index')

And save your changes. It should stop showing on your forum homepage now.

Edgespeeder06
03-26-2011, 03:32 PM
Ah I tried that but it still shows it on the home page.....I change that setting and set it to all right? I mean if its easier just to get to post to the index (being the forum home and post bit sections) instead of setting all the limits for where I dont want it to post like homepage njstangers @org or the member garage page?

I appreciate your help. Thanks

BirdOPrey5
03-26-2011, 03:48 PM
Yes you'd set it to show on all.

If your "homepage" the forum index site? (the original index.php file)? AKA FORUMHOME? Or do you have someone else as your homepage?

Can I get a link to your site?

Edgespeeder06
03-26-2011, 03:54 PM
sure, here's the link to my home: njstangers.org and my forum is njstangers.org/forum

Does that make sense?

BirdOPrey5
03-26-2011, 04:08 PM
AH ok your homepage is VBAdvanced...

Make the line:


elseif ($vbulletin->options['sc_lor'] == 2 AND THIS_SCRIPT != 'adv_index')


See if that works.

Edgespeeder06
03-26-2011, 04:19 PM
ok perfect, I changed it but its still spacing out the home page....any ideas?

BirdOPrey5
03-26-2011, 05:07 PM
Hmmm... there's one more line in the same plugin:


elseif (THIS_SCRIPT=='index' AND $vbulletin->options['sc_lor'] == 2)


Make it:

elseif (THIS_SCRIPT=='index' AND $vbulletin->options['sc_lor'] == 2 AND THIS_SCRIPT != 'adv_index')


Sorry I don't have VBAdvanced on my test site else I'd have tested it first.

Edgespeeder06
03-26-2011, 10:44 PM
Hey its completely understandable, I appreciate the help....it's still showing the gapping. :(

BirdOPrey5
03-26-2011, 11:00 PM
Well I know vBadvanced has some sort of cache, if turned on it may take a while before changes show... but assuming they don't change the only thing I can think of is there is 1 more line you might want to try changing, it certainly can't hurt anything.

Find:
if ($vbulletin->options['sc_lor'] == 1)

Make it:
if ($vbulletin->options['sc_lor'] == 1 AND THIS_SCRIPT != 'adv_index')

If that doesn't work, open your forum homepage (index.php) in a text editor and see if the page is in fact called "adv_index"

There should be a line:
define('THIS_SCRIPT', 'adv_index');

If it says something other than adv_index then go back and change all the lines I gave you to whatever it says.

Edgespeeder06
03-26-2011, 11:32 PM
perfect that did it! Thank you. I was able to mimic that code to do the same for the arcade. Thanks

BirdOPrey5
03-26-2011, 11:34 PM
Excellent. :up: