Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 05 Nov 2011, 20:59
killer_t killer_t is offline
 
Join Date: Nov 2010
Sidebar Block CMS Article - Image instead of avatar

Hi at all.

I have the sidebar in forum with CMS article.
Now i see the avatar of the publisher, but i want see the image of the article..

This is what you have to do :

1- Edit block_cmsarticles to call the image instead of avatar :


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

- 2 Edit file /includes/blocks/cmsarticles.php and around line 160 include cms_article.previewimage in order to be able to recall the variable in the template:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

That's all. Now you are able to use image instead of avatar.
Remeber to clear cms cache after you apply your modify.

Demo here (my site)

Last edited by killer_t; 09 Dec 2011 at 18:43.
Reply With Quote
  #2  
Old 08 Nov 2011, 09:20
killer_t killer_t is offline
 
Join Date: Nov 2010
Nobody can Help me??
Reply With Quote
  #3  
Old 10 Nov 2011, 22:06
killer_t killer_t is offline
 
Join Date: Nov 2010

Please help me
Reply With Quote
  #4  
Old 10 Nov 2011, 22:19
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
You need to modify the query $results in /includes/blocks/cmsarticles.php around line 160 to include cms_article.previewimage in order to be able to use it in the template.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)

Last edited by Lynne; 09 Dec 2011 at 17:08. Reason: misspelling
Reply With Quote
  #5  
Old 11 Nov 2011, 09:28
killer_t killer_t is offline
 
Join Date: Nov 2010
I had already tried this way, but doesn't work.

Last edited by killer_t; 11 Nov 2011 at 09:56.
Reply With Quote
  #6  
Old 11 Nov 2011, 18:50
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Please post your exact changes so we can try it ourselves.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #7  
Old 11 Nov 2011, 20:05
killer_t killer_t is offline
 
Join Date: Nov 2010
I tried and tried and it works!
I do not know what I did but now it works. And it works thanks to your code. Thank you Lynne!
Reply With Quote
  #8  
Old 11 Nov 2011, 20:38
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
You probably didn't Clear CMS cache after making the changes and so it was still showing the cached widget.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #9  
Old 11 Nov 2011, 21:12
killer_t killer_t is offline
 
Join Date: Nov 2010
I think you're right! Thanks Lynne!
Reply With Quote
  #10  
Old 09 Dec 2011, 11:54
killer_t killer_t is offline
 
Join Date: Nov 2010
where you stop?
Reply With Quote
  #11  
Old 09 Dec 2011, 17:09
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by lightbox View Post
Would you be so nice as to share the necessary changes?
I would like to do the same.

Thanks,
Martin
The changes are posted already in the first post and in the fourth post.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #12  
Old 09 Dec 2011, 18:36
killer_t killer_t is offline
 
Join Date: Nov 2010
I've edited the first post with instruction. Hope this help you!
Reply With Quote
  #13  
Old 09 Dec 2011, 18:38
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
If you want the widget to be changed permanently, then yes, you would need to put the suggestion into the tracker over on vbulletin.com
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #14  
Old 12 Dec 2011, 23:13
illkeyone's Avatar
illkeyone illkeyone is offline
 
Join Date: Oct 2006
Real name: ilke
I'd like to see attachment images in the RECENT THREADS widget. So, when someone posts a message to a specific forum, the attached image will be shown in the home page.

- Is this also possible? -- considering I'm not a coder :/
__________________
_____________________________
Reply With Quote
  #15  
Old 12 Dec 2011, 23:39
killer_t killer_t is offline
 
Join Date: Nov 2010
what kind of attachments?
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 02:08.

Layout Options | Width: Wide Color: