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

Reply
 
Thread Tools Display Modes
  #21  
Old 05-16-2012, 04:00 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The stuff in the first post is specific to the block of type "CMS Articles". If you are doing this for a different block type, then you need to apply similar changes to the appropriate template and file for the block you are trying to modify. So, if that is what you are doing, then post your block type and the exact files and templates you are changing along with what you changed.
Reply With Quote
  #22  
Old 05-16-2012, 04:05 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
The stuff in the first post is specific to the block of type "CMS Articles".
Oops...I was wrong. Sorry about that.
Reply With Quote
  #23  
Old 05-16-2012, 05:40 PM
afcbob afcbob is offline
 
Join Date: Feb 2012
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It was a forum thread block, its just the default template and changed the same files thats on the first page.
Reply With Quote
  #24  
Old 05-16-2012, 08:52 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 afcbob View Post
It was a forum thread block, its just the default template and changed the same files thats on the first page.
And, as I already said, you CANNOT change the same files as in the first page because that is for a different block. You need to edit the appropriate file (/includes/block/threads.php) and the appropriate template (block_threads) for what you are doing.
Reply With Quote
  #25  
Old 06-17-2012, 05:50 PM
johnnymc7 johnnymc7 is offline
 
Join Date: Nov 2010
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I followed all instructions and Im getting no joy :-/

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

In my recent articles block on the front page all that is happening is the avatar has disappeared


block_cmsarticles
Code:
<li>
	<div class="block smaller">
		<div class="blocksubhead">
			<a class="collapse" id="collapse_block_cmsarticles_{vb:raw blockinfo.blockid}" href="{vb:raw relpath}#top"><img alt="" src="{vb:stylevar imgdir_button}/collapse_40b.png" id="collapseimg_cmsarticles_{vb:raw blockinfo.blockid}"/></a>
			<img src="{vb:stylevar imgdir_cms}/widget-article.png" alt="" />
			<span class="blocktitle">{vb:raw blockinfo.title}</span>
		</div>
		<div class="widget_content blockbody floatcontainer">
		<ul id="block_cmsarticles_{vb:raw blockinfo.blockid}" class="blockrow">
			<vb:each from="articles" key="articleid" value="article">
			<li class="noavatarcontent floatcontainer widget_post_bit">
				<div class="widget_post_userinfo"></div>
<vb:if condition="$article['previewimage']">
<img alt="previewimage" src="{vb:raw article.previewimage}"  with="250" height="250" />
</vb:if>
				<div class="smallavatartext widget_post_comment_noavatar">
					<h5 class="widget_post_header"><a href="{vb:raw article.url}" class="title">{vb:raw article.title}</a></h5>
					<p class="widget_post_content">{vb:raw article.message}</p>
					<div class="meta">
						<vb:if condition="$articlestype == 0">
						{vb:stylevar dirmark}(1{vb:rawphrase x_comments, {vb:raw article.replycount}})
						</vb:if>
					</div>
				</div>
			</li>
			</vb:each>
		</ul>
		</div>
	</div>
	<div class="underblock"></div>
</li>
and in includes/block/cmsarticles.php

Code:
$results = $this->registry->db->query_read_slave("
			SELECT cms_article.contentid, cms_article.pagetext as message,
			        cms_article.previewimage, cms_article.previewvideo,
				cms_node.nodeid, cms_node.url, cms_node.publishdate,
				cms_nodeinfo.title,
				thread.replycount, thread.lastpost as lastpostarticle, thread.lastposter, thread.lastpostid, thread.lastposterid,
				user.*
				" . ($this->registry->options['avatarenabled'] ? ",avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight" : "") . "
			FROM " . TABLE_PREFIX . "cms_article AS cms_article
Reply With Quote
  #26  
Old 06-17-2012, 11:55 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can we get a link to see the problem?
Reply With Quote
  #27  
Old 06-24-2012, 08:20 PM
johnnymc7 johnnymc7 is offline
 
Join Date: Nov 2010
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry Lynne in my delaying in replying to you. Heres my site http://www.irishdrumandbass.com/content.php as you can see the article block is at the bottom with no images for any of the articles

Thanks

John
Reply With Quote
  #28  
Old 06-25-2012, 02:36 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't think you have edited the correct template (or else I am not looking at the correct style). This is in the page source where the image should be:

HTML Code:
			<div class="cms_widget_post_bit widget_post_bit">
				<div class="cms_widget_post_userinfo widget_post_userinfo">
					<div class="cms_widget_post_useravatar widget_post_useravatar">
						
							<img alt="" src="images/misc/unknown.gif" />
						
					</div>
				</div>
				<div class="cms_widget_post_comment widget_post_comment">
None of that is in the template code you posted above.
Reply With Quote
  #29  
Old 06-25-2012, 07:22 AM
johnnymc7 johnnymc7 is offline
 
Join Date: Nov 2010
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Lynne, thanks for the reply.

I only have one style its the default style with some changes. Ive edited block_cmsarticles in vbulletin and then I edited /includes/block/cmsarticles.php in my text editor. I can see all edits when I look there so Im really confused
Reply With Quote
  #30  
Old 06-25-2012, 03:12 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 that part of the code. What is the template name that surrounds that widget?

Then
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 01:55 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.04341 seconds
  • Memory Usage 2,262KB
  • Queries Executed 11 (?)
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
  • (2)bbcode_code
  • (1)bbcode_html
  • (2)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
  • (3)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
  • (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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete