Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-17-2009, 11:02 PM
z0diac z0diac is offline
 
Join Date: Dec 2006
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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)
Reply With Quote
  #2  
Old 06-17-2009, 11:19 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 06-18-2009, 01:52 AM
z0diac z0diac is offline
 
Join Date: Dec 2006
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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
Reply With Quote
  #4  
Old 06-18-2009, 01:57 AM
z0diac z0diac is offline
 
Join Date: Dec 2006
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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"
Attached Images
File Type: jpg screen.jpg (34.0 KB, 0 views)
Reply With Quote
  #5  
Old 06-18-2009, 02:49 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Attached Images
File Type: png Picture 8.png (25.1 KB, 0 views)
Reply With Quote
  #6  
Old 06-18-2009, 03:00 AM
z0diac z0diac is offline
 
Join Date: Dec 2006
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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??
Reply With Quote
  #7  
Old 06-18-2009, 03:09 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 06-18-2009, 03:24 AM
z0diac z0diac is offline
 
Join Date: Dec 2006
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 06-18-2009, 05:40 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by z0diac View Post
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.
Reply With Quote
  #10  
Old 06-19-2009, 03:58 PM
z0diac z0diac is offline
 
Join Date: Dec 2006
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


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


All times are GMT. The time now is 10:02 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.04735 seconds
  • Memory Usage 2,286KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete