Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 21 Oct 2011, 19:30
Mazinger's Avatar
Mazinger Mazinger is offline
 
Join Date: Nov 2006
Location: Egypt
Question Calling threadicon in a plugin


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

Let's assume I've the above query & code.

How do I modify it so it can correctly call $thread[iconpath] which is the path of the thread icon?
__________________
موقع اخبار مصر واخبار الرياضة والدولار في دليل مصر
Reply With Quote
  #2  
Old 22 Oct 2011, 00:20
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
The iconpath is being retrieved by the query, but I don't know what to tell you about using it because the code you posted is using $thread as a string and an array. What does the "while" line look like?
Reply With Quote
  #3  
Old 23 Oct 2011, 01:24
Mazinger's Avatar
Mazinger Mazinger is offline
 
Join Date: Nov 2006
Location: Egypt
This is a correct code for a plugin, but it still can't call for iconpath.


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

__________________
موقع اخبار مصر واخبار الرياضة والدولار في دليل مصر
Reply With Quote
  #4  
Old 23 Oct 2011, 14:01
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Do you have a table prefix defined? If so, you need to add an AS to the FROM line, like:


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


But I guess you don't have a prefix, otherwise the query wouldn't work at all.

In any case, I tried that query in PHPMyAdmin and it works, but note that if a thread doesn't have an icon assigned (and it seems that most do not), the iconpath will be NULL.
Reply With Quote
  #5  
Old 23 Oct 2011, 14:49
Mazinger's Avatar
Mazinger Mazinger is offline
 
Join Date: Nov 2006
Location: Egypt
Thanks alot!

I managed to get it work. This is a correct code:


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

__________________
موقع اخبار مصر واخبار الرياضة والدولار في دليل مصر
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 11:00.

Layout Options | Width: Wide Color: