Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-26-2009, 02:23 AM
HondaATC HondaATC is offline
 
Join Date: May 2004
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default vbcms_widget_recentblogposts_page

OK, on the home page, in the Recent Blog Posts widget, I want to change the text effects in that widget ONLY (for the time being anyhow) as I understand the system from the .pdf's that Don released today, I go to the template editor, and go to the vbcms_widget_recentblogposts_page template and edit it with my CSS for this to happen, correct?

I'm not sure if its a bug or what (Might be my bad CSS I'm just trying to learn too), but I can't get anything to change.

Original code:
Code:
<div class="cms_widget">
<div class="block">
	<div class="cms_widget_header">
	
		<img src="images/cms/widget-blog.png" alt="{vb:rawphrase recent_blog_posts}" /> {vb:rawphrase recent_blog_posts}
	</div>
	<div class="cms_widget_content">
		{vb:raw result_html}
	</div>
</div>
</div>
What I want is white text in the header...so according to what I've been trying to learn at w3schools.com it should be:

Code:
<div class="cms_widget">
<div class="block">
	<div class="cms_widget_header">
	<style type="text/css">
#header1
{text-align:center;
color:white
}
 </style>
		<p id="header1"><img src="images/cms/widget-blog.png" alt="{vb:rawphrase recent_blog_posts}" /> {vb:rawphrase recent_blog_posts}</p>
	</div>
	<div class="cms_widget_content">
		{vb:raw result_html}
	</div>
</div>
</div>

But it doesn't work Where am I going wrong, someone point me in the right direction? I've gotten the stylevar's figured out pretty well but I'm just looking for some more flexibility.
Reply With Quote
  #2  
Old 11-26-2009, 02:48 AM
bobster65's Avatar
bobster65 bobster65 is offline
 
Join Date: Mar 2006
Location: Montana
Posts: 1,169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

why not just add the style elements to the <p> tag if that is all you are using it for..

Code:
<div class="cms_widget">
<div class="block">
	<div class="cms_widget_header">
		<p style="text-align: center; color: white;"><img src="images/cms/widget-blog.png" alt="{vb:rawphrase recent_blog_posts}" /> {vb:rawphrase recent_blog_posts}</p>
	</div>
	<div class="cms_widget_content">
		{vb:raw result_html}
	</div>
</div>
</div>
Reply With Quote
  #3  
Old 11-26-2009, 02:56 AM
HondaATC HondaATC is offline
 
Join Date: May 2004
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually I was just reading about how to do that, and had tried doing exactly that and it still doesn't change :/ I even cut and pasted your code just to make absolute sure it and still doesn't work? Am I on the right template? This is the one the dictionary says I should be changing...
Reply With Quote
  #4  
Old 11-26-2009, 03:28 AM
bobster65's Avatar
bobster65 bobster65 is offline
 
Join Date: Mar 2006
Location: Montana
Posts: 1,169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HondaATC View Post
Actually I was just reading about how to do that, and had tried doing exactly that and it still doesn't change :/ I even cut and pasted your code just to make absolute sure it and still doesn't work? Am I on the right template? This is the one the dictionary says I should be changing...
it SHOULD work... did you do a HARD refresh of the page? I'm not sure if its the right template or not, but I do know that you can add style elements like that.. I just did a quick test and it worked fine for me in both IE and FF..
Reply With Quote
  #5  
Old 11-26-2009, 03:38 AM
HondaATC HondaATC is offline
 
Join Date: May 2004
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yup, Ctrl + R in firefox and I also opened a IE window and tried it as well. Stayed the same. Hmmm... I tried a few other templates I thought could of been it as well:

vbcms_searchresult_blogentry
vbcms_widget_recentBlogs_page (This one, actually has the text "Recent Blog Posts" in it instead of injecting a vbulletin phrase like the one I first started working on)

I can't get results out of either one of them either.
Reply With Quote
  #6  
Old 11-26-2009, 03:45 AM
bobster65's Avatar
bobster65 bobster65 is offline
 
Join Date: Mar 2006
Location: Montana
Posts: 1,169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HondaATC View Post
Yup, Ctrl + R in firefox and I also opened a IE window and tried it as well. Stayed the same. Hmmm... I tried a few other templates I thought could of been it as well:

vbcms_searchresult_blogentry
vbcms_widget_recentBlogs_page (This one, actually has the text "Recent Blog Posts" in it instead of injecting a vbulletin phrase like the one I first started working on)

I can't get results out of either one of them either.
did you view the source on the page to see if your template edits are showing up?
Reply With Quote
  #7  
Old 11-26-2009, 04:14 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To find the template to modify, 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. Sometimes the template is the one mentioned at the very top of the page source.
Reply With Quote
  #8  
Old 11-26-2009, 12:35 PM
hoof hoof is offline
 
Join Date: May 2006
Location: Texas, USA
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
To find the template to modify, 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. Sometimes the template is the one mentioned at the very top of the page source.
Thanks Lynne, this makes it a lot easier for me...completely overlooked that setting all this time lol
Reply With Quote
  #9  
Old 11-26-2009, 07:37 PM
HondaATC HondaATC is offline
 
Join Date: May 2004
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lynne, I tried what you suggested. According to the source, it is "cms_widget_header"


Code:
<div class="cms_widget">
	<div class="block">
		<!--  Widget Header -->
		<div class="cms_widget_header">
			<h3>Recent Blog Posts</h3>
		</div>

		<!--   SEARCH RESULTS DATA  -->
		<div class="cms_widget_content">
			<!-- BEGIN TEMPLATE: vbcms_searchresult_blogentry -->
There is a vbcms_widget_headerfont stylevar, but it doesn't have the feature to change the color...just the size. There is no template with the name cms_widget_header, or anything similar from what I can tell. I see that the "Recent Blog Posts" is coded in with just the h3 tag...does this mean there isn't a template to change the header after all, and that there is only one for the search results displayed under it?
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 05:11 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.04118 seconds
  • Memory Usage 2,252KB
  • Queries Executed 13 (?)
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
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete