Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 17 Dec 2016, 20:01
SilverBoy SilverBoy is offline
 
Join Date: Feb 2002
Real name: Malik
I want the avatar url

Hi

I have a plugin which is grab the avatar url for CMS articles, I don't know why, the plugin give me the Thump link not the actual link, so what do you suggest?
here is the code


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

Thanks in advance.
__________________
One of highly customized vBCMS used for news site.
www.manshor.net
Reply With Quote
  #2  
Old 17 Dec 2016, 21:33
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
You may want to have a link to the api - https://members.vbulletin.com/api/

According that that, you want to change true to false in the fetch_avatar_url function . True gives the thumbnail, false does not.
__________________
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
  #3  
Old 18 Dec 2016, 00:47
SilverBoy SilverBoy is offline
 
Join Date: Feb 2002
Real name: Malik
Thank you Lynne
Actually I don't know how to use the api.
and in function fetch_avatar_url the default value for thump=false !!
btw I changed this line in this function

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

by removing thump stuff !!

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

Now it works like I want, but I'm worry if this change affect any avatar existing in the forum, because I want the full size only in the CMS articles.
Thanks.
__________________
One of highly customized vBCMS used for news site.
www.manshor.net
Reply With Quote
  #4  
Old 18 Dec 2016, 17:41
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by SilverBoy View Post
Thank you Lynne
Actually I don't know how to use the api.
and in function fetch_avatar_url the default value for thump=false !!
I know it's default is false, but you set it to true here:

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

So, either set it to false or remove the comma and true and let it default to false.

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

__________________
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
  #5  
Old 18 Dec 2016, 19:51
SilverBoy SilverBoy is offline
 
Join Date: Feb 2002
Real name: Malik
Thank you, I will give it a try

--------------- Added 18 Dec 2016 at 20:03 ---------------

It works great, thanks Lynne
__________________
One of highly customized vBCMS used for news site.
www.manshor.net
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 14:35.

Layout Options | Width: Wide Color: