vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Need to make font bigger in part of template (https://vborg.vbsupport.ru/showthread.php?t=216404)

z0diac 06-17-2009 10:02 PM

Need to make font bigger in part of template
 
The part of a thread's display for multi-page threads, on the top right and bottom right, that says "Page 1 of X, 1/2/3/etc"

I need to make that part more visible (larger).

I'm guessing the template that needs to be edited is: threadbit_pagelink correct ?

it currently has this line:

<a href="$address<if condition="$curpage != 1">&amp;page=$curpage</if>$address2">$curpage</a>

What/where would I add to it to force it to use a larger font size? (ie: 14pt)

Lynne 06-17-2009 10:19 PM

Are you sure that is the template? Do this - - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code.

I come up with a different template on my site (if we are looking at the same thing - maybe we aren't?) and mine has class="smallfont" in the link, so why not just remove the class and it should be normal sized?

z0diac 06-18-2009 12:52 AM

Quote:

Originally Posted by Lynne (Post 1831598)
Are you sure that is the template? Do this - - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code.

I come up with a different template on my site (if we are looking at the same thing - maybe we aren't?) and mine has class="smallfont" in the link, so why not just remove the class and it should be normal sized?

Ok I turned that on.

Style Manger - edit templates > Threadbit Templates > threadbit_pagelink

this is the contents:

<a href="$address<if condition="$curpage != 1">&amp;page=$curpage</if>$address2">$curpage</a>

I THINK that's it. I only posted that to help someone interested him helping me with my problem.

Anyway it doesn't matter - what I'm looking to do is change the font size of JUST the "Page 1 of X, 1/2/3/4" part that it shown at the topright and bottomright of each thread display page on thread that have multiple pages

z0diac 06-18-2009 12:57 AM

1 Attachment(s)
Ok I think I'm overcomplicating what I want to do in my explaination of the problem...

The part circled in green (in the attachment) - I want to make THAT text *BIGGER*. Nothing else though. If I edit it in CSS Main to make that text bigger, it will make other text bigger as well.

I thought someone who knows PHP might reply " oh sure, you don't have to use the CSS Main entry for that font.. you can force it to use a specific font size by adding [code] to [this] template"

Lynne 06-18-2009 01:49 AM

1 Attachment(s)
If after turning on the html template comments, you are being told it is the threadbit_pagelink template, then your style is different than mine. Mine (which is default) is shown to be the four pagenav (Page Navigation) templates and all four have class="smallfont" in the <a> tag and if I take it out, the fonts are all normal size. Or, I added style="font-size:14pt" to one of them, just to see what would happen, and the fonts got very large.

z0diac 06-18-2009 02:00 AM

Quote:

Originally Posted by Lynne (Post 1831663)
If after turning on the html template comments, you are being told it is the threadbit_pagelink template, then your style is different than mine.

No no.. after turning them on, nothing happened. (nothing different that is). The forum still displays as it usually does. So I couldn't see what difference turning that option on did.

(this is for vb v3.6.8 - but I dn't think the templates that show this text have changed much over the last few releases a least)

Ok ok, I saw in another post you said to view the SOURCE of the page... ok.

It looks like it's in: <!-- BEGIN TEMPLATE: pagenav -->

I will check that now.

--------------- Added [DATE]1245297920[/DATE] at [TIME]1245297920[/TIME] ---------------

Ok, pagenav has this line in it:

<td class="vbmenu_control" style="font-weight:normal"><phrase 1="$pagenumber" 2="$totalpages">$vbphrase[page_x_of_y]</phrase></td>

I'm guessing this is the line that needs to be changed somehow so that a hardcoded font size is used??

Lynne 06-18-2009 02:09 AM

You could just add the font-size to the <td> right there. That will just effect the part that says Page x or y though. You need to look at all four of the pagenav templates. I don't have a 3.6 board, so I don't know what the default templates are like for them, but if they have the smallfont class called, then try removing it as I did.

z0diac 06-18-2009 02:24 AM

Yes there are 4 templates (wow that's a lot for a little piece of text! :) )

pagenav_curpage
<td class="alt2"><span class="smallfont" title="<phrase 1="$numbers[first]" 2="$numbers[last]" 3="$total">$vbphrase[showing_results_x_to_y_of_z]</phrase>"><strong>$curpage</strong></span></td>


pagenav_pagelink
<td class="alt1"><a class="smallfont" href="$address$address2<if condition="$curpage != 1">&amp;page=$curpage</if>" title="<phrase 1="$pagenumbers[first]" 2="$pagenumbers[last]" 3="$total">$vbphrase[show_results_x_to_y_of_z]</phrase>">$curpage</a></td>

pagenav_pagelinkrel
<td class="alt1"><a class="smallfont" href="$address$address2<if condition="$curpage != 1">&amp;page=$curpage</if>" title="<phrase 1="$pagenumbers[first]" 2="$pagenumbers[last]" 3="$total">$vbphrase[show_results_x_to_y_of_z]</phrase>"><!--$relpage-->$curpage</a></td>

(and the one I posted above this post).

Can you give an example of that one of these would look like to force a text size of say, 14pt ? (I don't know ANY html or php so I won't even guess) I see 'smallfont' listed there but I wouldn't even know what to replace it with.

Lynne 06-18-2009 04:40 PM

Quote:

Originally Posted by z0diac (Post 1831677)
Yes there are 4 templates (wow that's a lot for a little piece of text! :) )

pagenav_curpage
<td class="alt2"><span class="smallfont" title="<phrase 1="$numbers[first]" 2="$numbers[last]" 3="$total">$vbphrase[showing_results_x_to_y_of_z]</phrase>"><strong>$curpage</strong></span></td>

Can you give an example of that one of these would look like to force a text size of say, 14pt ? (I don't know ANY html or php so I won't even guess) I see 'smallfont' listed there but I wouldn't even know what to replace it with.

Something like this:
HTML Code:

    <td class="alt2"><span style="font-size:14pt;" title="<phrase 1="$numbers[first]" 2="$numbers[last]" 3="$total">$vbphrase[showing_results_x_to_y_of_z]</phrase>"><strong>$curpage</strong></span></td>
See if that works.

z0diac 06-19-2009 02:58 PM

Perfect! Just editing pagenav_curpag and pagenav_pagelink has it displaying MUCH more prominent now. Thank you !!!!


All times are GMT. The time now is 08:40 AM.

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.02836 seconds
  • Memory Usage 1,749KB
  • 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
  • (1)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete