Jump to content

Download: Nexus Feed Block


Marcher Technologies

Recommended Posts


Note, finishing up patch of source file for nexus 1.4.1 compatibility.



Which has been uploaded.
This Version also adds a good number of vital language strings for inline block help, as well as a package $r['image'] that provides the full url to the image, rather than $r['p_image'] which is only the filename.
Until I can sort a different method, the PRIMARY package image is what is available here.
Link to comment
  • 3 weeks later...

Hey Bob


I have this working but want to know how to scale the images down to a respectable say 80x80 pix? Essentialy I changed the template to look like below, but adding thr img src= to fit right where i wish. I know CSS is going to be my Key, So I will as, Will I need to add a new CSS tag for what I want to do, if so what CSS would it be in nexus



<div class='general_box'>

<h3>{$title}</h3>

<ul class='hfeed'>

  <if test="is_array( $records ) && count( $records )">

  {parse striping="feed_striping" classes="row1,row2 altrow"}

  <foreach loop="$records as $r">

  <li class='hentry {parse striping="feed_striping"}'><a href='{$r['url']}' rel='bookmark' title='{$r['title']}'><b>{$r['title']}</B></a>

   <br /><span class='date'><abbr class="published" title="{parse expression="date( 'c', $r['date'] )"}">{parse date="$r['date']" format="short"}</abbr></span>

   <img src='{$this->settings['upload_url']}/{$r['p_image']}' /><span class='desctext'><i>{IPSText::truncate( strip_tags($r['content']), 320 )}</i></span>

  </li>

  </foreach>

  </if>

</ul>

</div>

<br />



get on skype
in honesty, i think we should set you up timthumb... css seems... meh, tbh.... squishing it isnt the answer, which is what css does basically.
Link to comment

OK, I now have an Idea formated correct now that I have the images and thumbs working. Tables to correctly format the Product as seen below, Imagine the black the table border. The Image is a merge as well as the blah blah sections. How would I add that table into your template to get that effect? You can somewhat see the start of it here
http://www.usa-synth.../index.php/test What do you think Just updated the test page. But I dont know where the --- is coming from

post-167989-0-25125900-1324093379_thumb.

Link to comment

Here is the semi Final code changes I made, Feel free to clean this up and use it of you want bob. I am a hack so I know there is probably a far better way to do this


<div class='general_box'>

<h3>{$title}</h3>

<ul class='hfeed'>

  <if test="is_array( $records ) && count( $records )">

  {parse striping="feed_striping" classes="row1,row2 altrow"}

  <foreach loop="$records as $r">

  <font size=2 color="#000000" face="Arial">

<div><table width="90%" border="1" cellpadding="2" cellspacing="2" bgcolor="#ffffff">

<tr valign="top">

<td colspan=2><font size=2 color="#000000" face="Arial">

<div><li class='hentry {parse striping="feed_striping"}'><a href='{$r['url']}' rel='bookmark' title='{$r['title']}'>{$r['title']}</a>

   <br /><span class='date'><abbr class="published" title="{parse expression="date( 'c', $r['date'] )"}">{parse date="$r['date']" format="short"}</abbr></span></div>

  </font>

</td>

</tr>

<tr valign="top">

<td width="73"><font size=2 color="#000000" face="Arial">

   <div><center><img src='{$this->settings['upload_url']}/{$r['p_image']}' height="80" width="80" /></center></div>

</font>

</td>

<td width="394"><font size=2 color="#000000" face="Arial">

<div><span class='desctext'>{IPSText::truncate( strip_tags($r['content']), 320 )}</span></div>

</font>

</td>

</tr>

</table>

</div>

</font>

    </li>

</foreach>

  </if>

</ul>

</div>

<br />

Link to comment


<div class='general_box'>

<h3>{$title}</h3>

<ul class='hfeed'>

  <if test="is_array( $records ) && count( $records )">

  {parse striping="feed_striping" classes="row1,row2 altrow"}

  <foreach loop="$records as $r">

<li class='hentry {parse striping="feed_striping"} clearfix'>

<a href='{$r['url']}' rel='bookmark' title='{$r['title']}' class='ipsUserPhotoLink left'>

<img src='{$this->settings['upload_url']}/{$r['p_image']}' class='ipsPad_half ipsUserPhoto_large' />

</a>

<span class='desctext left'>

<a href='{$r['url']}' rel='bookmark' title='{$r['title']}'>{$r['title']}</a>

<br>

{IPSText::truncate( strip_tags($r['p_desc']), 320 )}

</span>

</li>

</foreach>

  </if>

</ul>

</div>

<br />


... the --- was from the date... no such thing as "date" on nexus packages.
... cleaned out the "tables" as well... cant truncate parsed html, which is what $r['content'] is, thats dangerous, using $r['p_desc'] instead which is raw.

Link to comment
  • 4 weeks later...
  • 2 months later...

The Nexus Feed Block is tossing errors. I will send you the SQL I think you still have my log in info for usa-synthetics.com

Support says its
"The nexus content blocks are for the upcoming nexus release. They won't work with the current version that is out now. The current version doesn't have the p.filter_stock field in it, so.. Any block that pulls that, ro attempts to pull that, won't work."


Date: Mon, 02 Apr 2012 02:43:13 +0000 Error: 1054 - Unknown column 'p.filter_stock' in 'where clause' IP Address: 71.92.249.39 - /admin/index.php?adsess=af06430adde471a66dac5166c9dfebdf&app=ccs&module=blocks&section=blocks&do=recacheAll ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- mySQL query error: SELECT p.*,prod.* FROM nexus_packages p LEFT JOIN nexus_packages_products prod ON ( prod.p_id=p.p_id ) WHERE p.filter_stock = -1 OR p.filter_stock >= 1 AND 0 AND 0 AND 0 AND 0 AND 0 AND 0 AND 0 AND 0 AND 0 ORDER BY p.p_base_price desc LIMIT 0,16 .--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------. | File | Function | Line No. | |----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------| | admin/applications_addon/ips/nexus/extensions/content/feed_blocks/nexus.php| [feed_nexus].getPackages | 1219 | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | admin/applications_addon/ips/ccs/sources/blocks/feed/admin.php | [feed_nexus].executeFeed | 512 | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | admin/applications_addon/ips/ccs/modules_admin/blocks/blocks.php | [adminBlockHelper_feed].recacheBlock | 1065 | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | admin/applications_addon/ips/ccs/modules_admin/blocks/blocks.php | [admin_ccs_blocks_blocks]._recacheAllBlocks | 118 | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | admin/sources/base/ipsController.php | [admin_ccs_blocks_blocks].doExecute | 306 |

Link to comment

The Nexus Feed Block is tossing errors. I will send you the SQL I think you still have my log in info for usa-synthetics.com



Support says its


"The nexus content blocks are for the upcoming nexus release. They won't work with the current version that is out now. The current version doesn't have the p.filter_stock field in it, so.. Any block that pulls that, ro attempts to pull that, won't work."




Date: Mon, 02 Apr 2012 02:43:13 +0000 Error: 1054 - Unknown column 'p.filter_stock' in 'where clause' IP Address: 71.92.249.39 - /admin/index.php?adsess=af06430adde471a66dac5166c9dfebdf&app=ccs&module=blocks&section=blocks&do=recacheAll ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- mySQL query error: SELECT p.*,prod.* FROM nexus_packages p LEFT JOIN nexus_packages_products prod ON ( prod.p_id=p.p_id ) WHERE p.filter_stock = -1 OR p.filter_stock >= 1 AND 0 AND 0 AND 0 AND 0 AND 0 AND 0 AND 0 AND 0 AND 0 ORDER BY p.p_base_price desc LIMIT 0,16 .--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------. | File | Function | Line No. | |----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------| | admin/applications_addon/ips/nexus/extensions/content/feed_blocks/nexus.php| [feed_nexus].getPackages | 1219 | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | admin/applications_addon/ips/ccs/sources/blocks/feed/admin.php | [feed_nexus].executeFeed | 512 | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | admin/applications_addon/ips/ccs/modules_admin/blocks/blocks.php | [adminBlockHelper_feed].recacheBlock | 1065 | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | admin/applications_addon/ips/ccs/modules_admin/blocks/blocks.php | [admin_ccs_blocks_blocks]._recacheAllBlocks | 118 | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | admin/sources/base/ipsController.php | [admin_ccs_blocks_blocks].doExecute | 306 |



First of all..... That is not my code, that is the stock IP.Content Feed now and not anything in this download, this block source is for IPC 2.2.x- before Nexus Feeds were stock.
secondly... http://community.invisionpower.com/tracker/issue-36484-neus-feed-block-package-type-driver-error/
Link to comment

Geez Dude, you need a vacation, you sound a tad snippy



I assumed it had something to do with Nexus Feed Block Languages by Marcher Technologies



Forgive my ignorance



...I do at some point... I apologize... its kind of irritating being pointed at as a culprit for a bug I did not code, found, and debugged to a usable resolution.
Oh... and you should uninstall that hook.... its really not doing anything now... literally.
Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...