Jump to content

Content Portal


CnCNet
 Share

Recommended Posts

thats what I thought but item did not change. wonder if its cache issue, will have to verify that.
thanks much :smile:

edit: well removing the line, recache skins and recache all and block still there. tried different browsers to rule out cookie/temp file and still there.
wonder if this one is part of the template. will have to see if I can break it LOL :)

Link to comment
Share on other sites

well, here is my index.html template. see how I have removed some blocks? there are empty lines where I have changed my mind ...

{ccs special_tag="navigation"}


<div class='ipsLayout ipsLayout_largeright ipsLayout_withright'>


<div class='ipsLayout_largeright ipsLayout ipsLayout_right'>



{parse block="myfriends_block"}


{parse block="friendstatus_block"}



</div>


<div class='ipsLayout ipsLayout_largeleft ipsLayout_withleft'>


<div class='.ipsLayout_largeleft ipsLayout ipsLayout_left'>


{parse block="1attempt_block"}


{parse block="customNav"}


{parse block="recent_articles"}


{parse block="1attempt_block"}



</div>



<div class='ipsLayout_content'>


{parse block="mystatus_block"}


<div class='ipsLayout_content clearfix'>


<div style='width:49%; float: left;' class='left'>


{parse block="myprofile_block"}



</div>


<div style='width: 49%; float: right;' class='right'>


{parse block="artmedlink"}


</div>


</div>



{parse block="mygroups_block"}



</div>



</div>



<style>


#blockcenter{


display: block;


margin-left: auto;


margin-right: auto }



</style>

Link to comment
Share on other sites

For those of you who are working with IP Content and like this MOD, some of the blocks that NeoGrant provides do not appear as he projects in his post #15:
http://community.invisionpower.com/topic/346166-download-neo-free-content-portal/page__view__findpost__p__2163749

What happens is that for those of us with 3.14, there is no class="ipsSideBlock clearfix in the css styles.

The fix, provided by Mr. Marcher, is to use this div line:
<div id="category_list" class="general_box clearfix">

but ... there is one other thing to do ...

you need to delete the line above: <div class='general_box'>

AND, you need to delete a </div> at the bottom of the block template.

After you do that, badda bing, you got the stylin' sweet block NeoGrant designed.

- Brian

Link to comment
Share on other sites

  • 1 month later...

Recent Posts and Recent Topics don't work properly with Facebook Connect enabled.
pp_thumb_photo is a link, not a file located on the server, so

{$this->settings['upload_url']}/{$author['pp_thumb_photo']}


returns an invalid file location resulting in the wonderous RED X.

I'm sure it's a simple elseif statement to account for pp_thumb_photo values that start with 'http', but my kungfu is not strong today. How would you compare the first 4 characters of pp_thumb_photo to see if they are 'http'?

Link to comment
Share on other sites

Yeah, my kungfu came back... Here's how to get it to work if your board has facebook connect enabled.

FIND


if($author['pp_thumb_photo'])

{

$pic = <<<EOF

<img src='{$this->settings['upload_url']}/{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_mini' />

EOF;

}

ADD BEFORE


if($r['fb_uid'])

{

$pic = <<<EOF

<img src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_mini' />

EOF;

}

else

{



Don't forget to add a closing } after the else if statements..

Link to comment
Share on other sites


Yeah, my kungfu came back... Here's how to get it to work if your board has facebook connect enabled.



FIND



if($author['pp_thumb_photo'])

{

$pic = <<

[img=%7B$this-%3Esettings[]

EOF;

}

ADD BEFORE


if($r['fb_uid'])

{

$pic = <<

[img={$author[]

EOF;

}

else

{



Don't forget to add a closing } after the else if statements..

...
why not simply use {parse expression="IPSMember::buildProfilePhoto($author['member_id'], 'mini')"} ?
tis the reason the function exists... to properly handle snafus like this...
Link to comment
Share on other sites


How would I go about using that? I'm not the most proficient at php or the built in IPS functions.



Where could I find documentation of all the built in functions?



Here for Member
buildAvatar is depreciated in 3.2.x... it simply needs the member id and a size.... ima look at his code rq, and spit you sommat immediately usable.
I Find no reference to any user picture in his code..... what, pray-tell are you using? Edited by Marcher Technologies
Link to comment
Share on other sites


<div class='maintitle'>{$title}</div>

<div class='ipsBox'>

<div class='ipsBox_container ipsPad'>

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

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

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

<php>

$this->DB->build( array( 'select'   => 't.last_poster_id',

						 'from'	 => array( 'topics' => 't' ),

						 'where'	=> "t.tid='{$r['tid']}'",

						 'add_join' => array( 0 => array(

						 'select' => 'pp.pp_thumb_photo',

						 'from'   => array( 'profile_portal' => 'pp' ),

						 'where'  => 'pp.pp_member_id=t.last_poster_id',

						 'type'   => 'left' ) ),


								)		  );

$this->DB->execute();

while ( $author = $this->DB->fetch() )

{

if($r['fb_uid'])

{

$pic = <<<EOF

<img src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_mini' />

EOF;

}

else

{

if($author['pp_thumb_photo'])

{

$pic = <<<EOF

<img src='{$this->settings['upload_url']}/{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_mini' />

EOF;

}

else

{

if(!$author['pp_thumb_photo'])

{

$pic = <<<EOF

<img src='{$this->settings['board_url']}/public/style_images/master/profile/default_large.png' class='ipsUserPhoto ipsUserPhoto_mini' />

EOF;

}

}

}

}

$this->settings['pics'] = $pic;

</php>

<ul class='ipsList_withminiphoto'>

   <li class='clearfix'>

<a href='{parse url="showuser={$r['lastposter']}" seotitle="{$r['seo_last_name']}" template="showuser" base="public"}' title='{$this->lang->words['view_profile']}' class='ipsUserPhotoLink left'>{$this->settings['pics']}</a>

<div class='list_content'>

<a href='{parse url="showtopic={$r['tid']}&pid={$r['pid']}" base="public" template="showtopic" seotitle="{$r['title_seo']}"}' rel='bookmark' class='ipsType_small' title='{$this->lang->words['view_topic']}'>{$r['topic_title']}</a>

<p class='desc ipsType_smaller'>{parse expression="IPSMember::makeProfileLink( $r['lastpostername'], $r['lastposter'], $r['author_seo_name'] )"}<br>{parse date="$r['lastpost']" format="short"}</p>

</div>


						</li>

  </ul>

  </foreach>

</div></div>

			 </if>



Inside the while loop you'll see the fb_uid that I added.. Other than that change.. It's almost stock.

Link to comment
Share on other sites


<a class="ipsUserPhotoLink left" title="{$this->lang->words[" href='{parse url="showuser={$r[' }?="" base="public" view_profile?]}?="" template="showuser" seotitle="{$r['seo_last_name']}" lastposter?]}?="">{parse expression="IPSMember::buildprofilephoto( $r['lastposter'], 'mini')"}</a>



Ahh, figured it out.. THANKS!!!

Couple lines from the end... basically take out the whole while loop and just put the parse expression as the link output instead of what the while loop built into $pics

Link to comment
Share on other sites



<a class="ipsUserPhotoLink left" title="{$this->lang->words[" href='{parse url="showuser={$r[' }?="" base="public" view_profile?]}?="" template="showuser" seotitle="{$r['seo_last_name']}" lastposter?]}?="">{parse expression="IPSMember::buildprofilephoto( $r['lastposter'], 'mini')"}</a>



Ahh, figured it out.. THANKS!!!

Couple lines from the end... basically take out the whole while loop and just put the parse expression as the link output instead of what the while loop built into $pics


:D yup, why i mentioned the function, figured its use would turn multiple lines of extraneous code into easy does it... usually does ;)
Link to comment
Share on other sites



<a class="ipsUserPhotoLink left" title="{$this->lang->words[" href='{parse url="showuser={$r[' }?="" base="public" view_profile?]}?="" template="showuser" seotitle="{$r['seo_last_name']}" lastposter?]}?="">{parse expression="IPSMember::buildprofilephoto( $r['lastposter'], 'mini')"}</a>



Ahh, figured it out.. THANKS!!!

Couple lines from the end... basically take out the whole while loop and just put the parse expression as the link output instead of what the while loop built into $pics


did we find an editor bug? :logik:
its quoting fail >.<
Link to comment
Share on other sites

  • 3 months later...

in the demo, when you click on an article on the portal page it will show you that full article on the portal page. How would one go about having that article and all other articles displayed on the portal page show on a new page that would only show the article (on the left or right side) and a sidebar? This way some blocks like a welcome message would only be shown on that portal (main) page. Thank you.

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

in the demo, when you click on an article on the portal page it will show you that full article on the portal page. How would one go about having that article and all other articles displayed on the portal page show on a new page that would only show the article (on the left or right side) and a sidebar? This way some blocks like a welcome message would only be shown on that portal (main) page. Thank you.




+1.
Update this perfect app for 3.3, please.
Link to comment
Share on other sites

I will continue to update this for 3.3, more blocks, layouts etc. For now you have...

3.3 Download includes:

  • Two Custom Blocks to allow you to import.
  • A three column layout to use
  • A basic video tutorial in the readme file will show you how to add any type of blocks easily into three columns. We will start by making a page with a three column layout, followed by inserting our blocks into the page layout, along with creating blocks inside Content, and also adding them into our page.

Custom Blocks:
  • Welcome Message
  • Custom Links

IPS Layout Includes (So far):
  • 3 Column layout demo
Link to comment
Share on other sites

Thanks I agree. Didn't look good.

http://k4z.co.uk/dev...hp?/page/portal

Blocks Added: [*]Feed: Specify a topic, or leave as default to pull any reply from any forum. [*]Feed: Latest profile comments [*]Feed: Featured Blog Entry [*]Feed: Add any Feed URL and display its content. Example is WORLD NEWS - BBC.

[*]Custom Navigation (Updated to include title for links, and title for the <h3>Block Name</h3> [*]Plugin: Polls - Specify a poll to be listed in your block in Plugin Options. [*]Plugin: Displays a welcome block to the logged in user, or a login form if the user is a guest [*]Active Users - Shows all active users. [*]Online Friends - Shows online friends to members. [*]Status Updates - A list of all status updates created by your members. [*]Who's 'Viewing this page' - Specifically for individual pages if you want to see who's viewing separate content. [*]Tags - Displays tags just like the forum. Pending update

bug tracker.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...