vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=266689

Gemma 13 Oct 2011 12:44

Quote:

Originally Posted by wilburshere (Post 2256724)
i like it installed both forum sidebar and cms widget very nice would like the widget smaller 240px but i can live with it

For the CMS widget? Replace the countdown_cms.css contents with this, should fit nicely into a 240px block. (though the font is a little small for my own liking)

You can play about with the css file (possibly change the font-family and some of the padding to suit)


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


GreyGhost 14 Oct 2011 07:47

Hi Gemma,
First up... Excellent mod, Works great!

I did search and read most posts and didn't see this mentioned, so I appologize if it's already been asked and answered.

Is there a way of dropping the "WEEKS" altogether and changing the display to
DAYS | HRS | MINS | SECS

i.e. instead of 4 weeks, 6 days, 3 Hrs, 45 Mins, 10 Secs
it would display as... 34 Days, 3 Hrs, 45 Mins, 10 Secs

Doing it this way would allow for a narrower column without losing any real detail.

8-)

.

Gemma 14 Oct 2011 09:11

Try this,

In the template replace the <script> part with something like this (ie add the omitWeeks part)


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Then replace this part of the template:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

With:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And save.

You might need to then play about with the css file to fix .first as it probably won't be aligned properly, this will differ depending on the block width you are using but try changing the margin-left value.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Hope that makes sense :confused::erm:

GreyGhost 14 Oct 2011 10:21

1 Attachment(s)
Thanks Gemma,

That works perfectly! :D

Attachment 133883

That's with a 230 sideblock, which will work on my CMS as well and I can still get it smaller with some minor font & dash changes. :up:

8-)

Gemma 14 Oct 2011 11:00

Looks good. The only thing I don't like about your screenshot is the fact that Battlefield 3 is released in Australia before the UK :p

GreyGhost 14 Oct 2011 11:39

Quote:

Originally Posted by Gemma (Post 2257101)
Looks good. The only thing I don't like about your screenshot is the fact that Battlefield 3 is released in Australia before the UK :p

Haha, the funny thing is... I've ordered it from OzGameShop (half the price of Origin) but they're based in the UK... so I won't have it til a week after release. :(

8-)

GreyGhost 15 Oct 2011 09:43

Quote:

Originally Posted by Gemma (Post 2256266)
No real update, all I've done is added additional instructions on how to create a widget for the CMS and how to add more than one countdown to the OP.

Another thing that can be done using the code is creating more than one countdown on your forum index page (forumhome).

By creating a table, using the basic countdown code and calling countdownX, countdownY and countdownZ I've been able to create 3 separate countdowns. (see attached)

Live demo - http://www.forumbanter.com/forum/

Hi Gemma,

When you say "By creating a table," am I correct that you create a single template that includes the code for all 3 countdowns wrapped within a table?

Then make the appropriate block or widget that uses that template?

8-)

pantani 15 Oct 2011 18:19

Works fine thank you, only thing is when countdown is active, the other articles are way down?? What could i do to make this normal again??

https://www.vbulletin.org/forum/external/2011/10/32.jpg

Gemma 15 Oct 2011 18:27

Quote:

Originally Posted by pantani (Post 2257529)
Works fine thank you, only thing is when countdown is active, the other articles are way down?? What could i do to make this normal again??

https://www.vbulletin.org/forum/external/2011/10/32.jpg

Looks like I've missed a couple of closing </div> tags, add </div></div> to the bottom of the vbcms_widget_countdown template and see if that helps.

pantani 15 Oct 2011 18:38

Nope, did not help :(

GreyGhost 16 Oct 2011 03:39

Quote:

Originally Posted by Gemma (Post 2257535)
Looks like I've missed a couple of closing </div> tags, add </div></div> to the bottom of the vbcms_widget_countdown template and see if that helps.

Don't think it's </div> tags, I get the same thing whenever I try to add anything containing javascript to the cms home page.
I've tried adding it as a widget, Article, Static HTML, Direct php AND by adding the javascript to the footer (as per the forum/wgo instructions).

If I remove the javascript then it displays correctly.. but obviously doesn't function.

ATM I'm trying a different approach... I created a php page containing 3 countdown timers laid out within a table etc. (including the javascript). When I call this page directly the 3 countdown timers appear as they should and functioning correctly.
The plan is to create a PHP Direct Eval and call this page using a php "include" ... but I'm struggling to get this to work in a PHP Direct Eval page, actually, I'm struggling to get anything to work with the CMS's PHP Direct function.

8-/

Gemma 16 Oct 2011 17:54

I've removed support for the CMS widget just now, can't figure out why it has suddenly stopped working.

1320Nation 16 Oct 2011 23:56

Is there ANYWAY to get this mod to work with the sidebar in vBadvance?

GreyGhost 16 Oct 2011 23:59

1 Attachment(s)
Quote:

Originally Posted by Gemma (Post 2257824)
I've removed support for the CMS widget just now, can't figure out why it has suddenly stopped working.

I got mine working fine..
was just a matter of creating a Grid that was suitable for my layout.

8-)

Attachment 133882

Gemma 17 Oct 2011 21:48

Quote:

Originally Posted by psychobike (Post 2257945)
Is there ANYWAY to get this mod to work with the sidebar in vBadvance?

I'll install vBAdvanced and have a look


All times are GMT. The time now is 02:19.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.