vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - Thread Font Resize - by StarBuG (https://vborg.vbsupport.ru/showthread.php?t=253771)

StarBuG 11-15-2010 10:00 PM

Thread Font Resize - by StarBuG
 
1 Attachment(s)
Introduction:
I am StarBuG, a clinical Physician for Children, and I am running several health Forums to support patients with medical questions. Due to the nature of my forums my visitors are mostly not very tech-savvy. Also I am attracting a lot of older people who might be visually impaired that is why I created this mod.

I know that every browser supports this feature by clicking CTRL + plus or minus but
for non tech-savvy people this browser feature might be unknown to them.

What this mod does:
This mod adds two buttons above every thread and private message which
lets your users increase or decrease the font size of a thread without reloading
the page. This increases the website accessibility.

Installation instructions:
See the readme.txt file inside the doc (do-not-upload) folder

This Product utilizes the Template Modification System. If you use the TMS no template edits are needed. If you don't use the TMS you have to edit 2 templates.

You can edit the CSS for your needs in the fontresize.css

Don't forget to Mark as Installed

Live Demo: Patientenfragen.net

Version History:
v1.0: Initial release
v1.1: Added support for Private Messages

Feedback is welcome

If you wish do Donate, feel free to use the "Support Developer" Button ;)

StarBuG

https://vborg.vbsupport.ru/

Google isn't paying you enough money! Discover WHY!

StarBuG 11-16-2010 09:54 AM

First post reserved

Adem GEN? 11-16-2010 11:21 AM

Nice, Thanks

But, required reset button

StarBuG 11-16-2010 11:26 AM

I am no javascript specialist, if anyone has a solution for a reset
of the font size let me know.

I don't think a missing reset is a problem though because reloading
the page or changing the page resets the font size anyway ;)

BadgerDog 11-16-2010 11:28 AM

1 Attachment(s)
Looks very nice and could be very valuable to our old members, which our average age is 60+ .... :D

I just need to find someone who can change the buttons to our color scheme. Is there anyone out there who can do that for a PayPal donation?

Does the font size set stay active for the whole thread, or just the post being viewed?

Regards,
Badger

StarBuG 11-16-2010 11:42 AM

1 Attachment(s)
Quote:

Originally Posted by BadgerDog (Post 2122406)
I just need to find someone who can change the buttons to our color scheme. Is there anyone out there who can do that for a PayPal donation?

Does the font size set stay active for the whole thread, or just the post being viewed?

Regards,
Badger

Here you go.

Donations are always welcome. Click on Support Developer for a Paypal Donation ;)

The font size change only effects the currently viewed page.

BadgerDog 11-16-2010 11:46 AM

Quote:

Originally Posted by StarBuG (Post 2122412)
Here you go.

Donations are always welcome. Click on Support Developer for a Paypal Donation ;)

The font size change only effects the currently viewed page.

Wow .. thanks ... :D

I just was trying to test this (I'm using 4.04) and in Showthread template for that version, there is no ...

Code:

<div id="thread_controls" class="thread_controls toolsmenu">
Can I send you the Showthread template and perhaps you can tell me where to put the additional code for it?

Thanks again ... :up:

Regards,
Badger

StarBuG 11-16-2010 11:49 AM

Search for

Code:

<div id="thread_controls" class="thread_controls
I think the "toolsmenu" part was added in later Versions.

or as alternative search for this code and put my code below it:

Code:

<div id="pagetitle" class="pagetitle">
    <h1>
        {vb:rawphrase thread}: <span class="threadtitle"><a href="{vb:raw thread_url}" title="{vb:rawphrase reload_this_page}">{vb:raw threadinfo.title}</a></span>
        <vb:if condition="$show['fb_likebutton']">
            {vb:raw fblikebutton}
        </vb:if>
    </h1>
</div>

However you should really upgrade your vBulletin because there are tons of bugfixes since 4.0.4

BadgerDog 11-16-2010 12:13 PM

1 Attachment(s)
Quote:

Originally Posted by StarBuG (Post 2122415)
Search for

Code:

<div id="thread_controls" class="thread_controls
I think the "toolsmenu" part was added in later Versions.

or as alternative search for this code and put my code below it:

Code:

<div id="pagetitle" class="pagetitle">
    <h1>
        {vb:rawphrase thread}: <span class="threadtitle"><a href="{vb:raw thread_url}" title="{vb:rawphrase reload_this_page}">{vb:raw threadinfo.title}</a></span>
        <vb:if condition="$show['fb_likebutton']">
            {vb:raw fblikebutton}
        </vb:if>
    </h1>
</div>

However you should really upgrade your vBulletin because there are tons of bugfixes since 4.0.4

Sorry, my bad ... :(

I found it ... :)

The darn "search" in templates doesn't find things sometimes, particularly if there's quotes and other symbols in the search. I went into the 4.04 Showthread template and found it manually, so it is there. I added the template edits and upload the files, including your new coloured buttons, which look great ... :up:

The only thing I notice is that when I click the A+ button for the first time in any thread, nothing happens. When I click it a second time, at that point the font size increases a level? Is that because of our default font size or something like that?

PayPal on the way ... thanks again... nice work and I know there's a whole bunch of very old military veterans with bad eyesight that will appreciate this mod ... :up:

Regards,
Badger (Doug)

StarBuG 11-16-2010 12:20 PM

Quote:

Originally Posted by BadgerDog (Post 2122419)
The only thing I notice is that when I click the A+ button for the first time in any thread, nothing happens. When I click it a second time, at that point the font size increases a level? Is that because of our default font size or something like that?

PayPal on the way ... thanks again... nice work and I know there's a whole bunch of very old military veterans with bad eyesight that will appreciate this mod ... :up:

I noticed that problem too unfortunatly I have no solution nor do I know why this happens.

Thanks for the Donation :)

BadgerDog 11-16-2010 12:25 PM

Quote:

Originally Posted by StarBuG (Post 2122424)
I noticed that problem too unfortunatly I have no solution nor do I know why this happens.

Thanks for the Donation :)

You're welcome ... :)

Thanks for your efforts ... :up:

Regards,
Doug

Marv 11-16-2010 01:01 PM

Gute Idee, StarBug. Dank f?r?s teilen :up: Nice and simple.
(Good addition, StarBug, Thanks for sharing this.)

P.S. Schau mal in Deine PN?s von letztem Monat ;)

StarBuG 11-16-2010 01:10 PM

Hi

I just updated this product so it works on private messages too.

Enjoy

BadgerDog 11-16-2010 01:20 PM

Updated to v1.1 .. :)

Seems to work fine on 4.04 ... :up:

Also noticed that the PM A+ function works on first click, unlike the thread A+ we discussed earlier ....

Regards,
Doug

StarBuG 11-16-2010 01:35 PM

Quote:

Originally Posted by BadgerDog (Post 2122439)
Updated to v1.1 .. :)

Seems to work fine on 4.04 ... :up:

Also noticed that the PM A+ function works on first click, unlike the thread A+ we discussed earlier ....

Regards,
Doug

Nice to hear it works for you.

Enjoy ;)

BadgerDog 11-16-2010 01:51 PM

Quote:

Originally Posted by StarBuG (Post 2122449)
Nice to hear it works for you.

Enjoy ;)

Suggestion for future mods or changes to this one.

We'd love to have this type of capability as an option an individual member can set under his own personal options, so he doesn't have to do it when he reads every thread .. :up:

Again, nice work ... thanks .. :)

Regards,
Doug

StarBuG 11-16-2010 02:03 PM

That is to far above my head.

I am no real programmer I just know my way around html and CSS ;)

Adem GEN? 11-16-2010 03:22 PM

Quote:

Originally Posted by StarBuG (Post 2122405)
the page or changing the page resets the font size anyway ;)

I did not know it
Yes, no problem now

Thanks

BadgerDog 11-17-2010 10:57 AM

Quote:

Originally Posted by StarBuG (Post 2122457)
That is to far above my head.

I am no real programmer I just know my way around html and CSS ;)

Thanks ... :)

I've had some feedback from testing our site's header, indicating that there are some minor display issues on IE. Apparently, running IE9 in compatibility mode works perfect, though IE6 under XP showed some extra gaps. The site looks perfect in Safari, Chrome and Firefox.

With your CSS and HTML knowledge, would you be able to do some paid work to ensure we don't have anomalies with the IE browser family, including IE9?

It appears all the other browsers work fine, but since I'm a MacBook Pro user with OSX, Safari and FireFox, I don't see any problems that the IE9 people seem to have.

Regards,
Doug

StarBuG 11-17-2010 11:23 AM

Hi

Sorry but I am full time medical doctor and work on my websites in my spare time.
I am also relying on vBulletin to solve the IE 6 Display problems so I am no expert
on this field either. I just make sure my site is usable for people using IE 6 but
because this browser is 9 years old I don't really want to support it full.

BadgerDog 11-17-2010 03:49 PM

Quote:

Originally Posted by StarBuG (Post 2122764)
Hi

Sorry but I am full time medical doctor and work on my websites in my spare time.
I am also relying on vBulletin to solve the IE 6 Display problems so I am no expert
on this field either. I just make sure my site is usable for people using IE 6 but
because this browser is 9 years old I don't really want to support it full.

Thanks ... understood .. :up:

We don't support IE6 and advise members accordingly ....

Do you think it would be difficult to have the font mod added to support vbCMS articles? It works so well with posts and the articles are esssentially the same thing.

Also, I notice the speak aloud option for posts on your site. Is that a vBulletin mod? One of yours?

Regards,
Doug

StarBuG 11-17-2010 04:02 PM

I think it is possible to add the mod to the cms

you just need to find some code (like I used <blockquote>) that is uniquely wrapped around the text you want to change size.

And then you need to create a copy of the js and replace the blockquote code with the one you found/want to use.
Then include the new js as well in the header.
Unfortunately I don't use the CMS so I can't adapt it for you.

The text-to-speech is a licensed service from ReadSpeaker.com.
I pay a lot of money for that with annual fees.

However the implementation of ReadSpeaker Enterprise into vbulletin currently
only works with a product I got written for my forum.
I am currently in a negotiation with the company about if they want to acquire the plugin.

But if you think about acquiring a readspeaker enterprise license, send me a PM ;)

BadgerDog 11-17-2010 04:17 PM

Quote:

Originally Posted by StarBuG (Post 2122849)

But if you think about acquiring a readspeaker enterprise license, send me a PM ;)

Thanks, but we're a not-for-profit site and I doubt we can afford their enterprise license. We take in just enough now to pay for the hosting and some add-on work, such as your excellent mod here ... :up:

I don't know vbCMS, but the templates are similar to regular vBulletin templates, so I'm sure it can be added, but I'd screw it up for sure if I started playing in there .. :D

I'll have to see if I can find a coder who can adapt your code to it ...

Thanks again .. :)

Regards,
Doug

hamedbia2 11-18-2010 09:23 AM

Perfect

Dr.osamA 11-27-2010 03:39 AM

Perfect

installed + 5 Stars

DerBademeister 02-15-2011 08:15 PM

I've updated to vb 4.1.1 and the font resizer doesn't seem to work in PMs anymore - it still works in regular forum threads though.

Any idea how to fix it? Maybe the code / structure of private messages was changed.

Samsine 03-02-2011 04:25 PM

I used vb 4.1.1 too and it works absolutely perfekt ;)

Thanks 4 shared this mod and nominate.

OturanBoğa 06-30-2011 12:09 PM

vb 4.1.4?

StarBuG 06-30-2011 01:34 PM

There is no reason why it should not work.

kether1 06-30-2011 01:45 PM

I notice on your site, you seem to have fixed the button to work on the first click. My site requires two clicks to make the change. What did you change to get it to work on the first click on your site, Sir?

Kether

scoutz 11-27-2013 03:36 AM

Really nice. Installed ;)


All times are GMT. The time now is 04:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01313 seconds
  • Memory Usage 1,816KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (31)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete