Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [split] Coding Question
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #11
RE: [split] Coding Question
(06-06-2010 07:34 AM)leefish Wrote:  Have options to place the banners in different areas of the portal - as a header. a footer, a side bar etc. This would mean a plug in where I paste the plugin name eg {$myplugin} into a template.

Try this way:

Remove / comment out this line:

PHP Code:
$GLOBALS['header'] = str_replace('<!-- Attachment Gallery -->', $mnattachment_gallery, $GLOBALS['header']);


Then, put {$mnattachment_gallery} variable manually in your portal template.

(06-06-2010 07:34 AM)leefish Wrote:  Have a banner on a single forum that is JUST for that forum (puzzling over this now)

Try this attachments (only for XThreads attachments thumbnail).


Attached File(s)
.php  mnflatatgal.php (Size: 5.78 KB / Downloads: 474)

06-06-2010 10:19 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #12
RE: [split] Coding Question
Wahey - It works! You guys are so awesome -  am now looking at the plug in code to figure out HOW you did it with the forum only attachment. This will be very very cool for a book review area on a forum. That is my next project, I hope to post it here in the X threads area.

Thank you very much Rateu and Zinga.


[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 06-06-2010 10:53 AM by leefish.)
06-06-2010 10:51 AM
Visit this user's website Find all posts by this user Quote this message in a reply
walkman Offline
Junior Member
**
Posts: 36
Joined: May 2010
Post: #13
RE: [split] Coding Question
These guys are genious and very helpful. I love it here.
06-06-2010 11:24 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #14
RE: [split] Coding Question
If Yumi didn't provide us this code, maybe we never know how to pull the XThreads thumbnails Smile
(06-05-2010 10:20 AM)ZiNgA BuRgA Wrote:  

PHP Code:
	$mnlag_att_thumb = xthreads_get_xta_url($mnlag).'/thumb160x120';


Thank you very much, Yumi Smile

06-06-2010 11:27 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #15
RE: [split] Coding Question
(06-06-2010 11:27 AM)RateU Wrote:  If Yumi didn't provide us this code, maybe we never know how to pull the XThreads thumbnails Smile
(06-05-2010 10:20 AM)ZiNgA BuRgA Wrote:  

PHP Code:
	$mnlag_att_thumb = xthreads_get_xta_url($mnlag).'/thumb160x120';


Thank you very much, Yumi Smile

+1 Totally agree.


[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 06-06-2010 11:42 AM by leefish.)
06-06-2010 11:41 AM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: