Jump to content
  • Sign Up

Lock Down

Rising Star
  • Posts

    1,035
  • Joined

  • Last visited

  • Days Won

    71

Everything posted by Lock Down

  1. Is this what you are trying to do? If yes it is in there already as I said. If you want the code go to blocks and click this Status Updates
  2. It's already there if you are using ip.content as your portal. Blocks Block Management Status Updates just add this to the pages > index.html under right side (< div class='ipsLayout_right' >). {parse block="portal_status_updates"}
  3. It means he has no php experience at all. Here is his while. <if test="is_array( $records ) && count( $records )"> <div class='ipsSideBlock clearfix' id='recent_articles'> <h3>{$title}</h3> <ul class='block_list'> <foreach loop="$records as $r"> <php>$likeRecs = array(); ipsRegistry::DB()->build(array('select' => 'field_1 as title, field_3 as content, record_updated as date, record_dynamic_url as url', 'from' => 'ccs_custom_database_1', 'where' => 'member_id='.$r['member_id'].' and post_key != "'.$r['post_key'].'"')); $rnew = ipsRegistry::DB()->execute(); while( $rlikes = ipsRegistry::DB()->fetch($rnew) ) // Below is the while he wants { // whatever he wants goes in here } // Above is the while he wants </php> <li> <a href='{$r['url']}'>{parse expression="IPSText::truncate( $r['field_1_value'], 30 )"}</a> </li> </foreach> </ul> </div> <br /> </if>
  4. Ok here is the code to get the like articles by the same author. I just have it display the count of the like articles. I hope th "code" can get at least the information he needs from it.. <if test="is_array( $records ) && count( $records )"> <div class='ipsSideBlock clearfix' id='recent_articles'> <h3>{$title}</h3> <ul class='block_list'> <foreach loop="$records as $r"> <php>$likeRecs = array(); ipsRegistry::DB()->build(array('select' => '*','from' => 'ccs_custom_database_1', 'where' => 'member_id='.$r['member_id'].' and post_key != "'.$r['post_key'].'"')); $rnew = ipsRegistry::DB()->execute(); while( $rlikes = ipsRegistry::DB()->fetch($rnew) ){ $likeRecs[] = $rlikes; } </php> ** {parse expression="count($likeRecs)"}** <li> <a href='{$r['url']}'>{parse expression="IPSText::truncate( $r['field_1_value'], 30 )"}</a> </li> </foreach> </ul> </div> <br /> </if>
  5. Exactly where is he running this? Board index? Content home page? And where is his code that gathers the information or is he just using the one that is defalt with the IPS forum?
  6. The code you supplied only processes records. Where is the code to pull the records. That code needs to add to the where sql statement to check for the starter_id. The second would have to add to the where to check the forum_id of the topic then find it's parent (category) and all the forums under that category. Then add to the sql where to check if the forum_id is one of the forums in that category.
  7. look in the template (Downloads) Download Manager portalSidebarBlock Click the variables tab on the right and make sure this is there. If it does not have all change it to all and try it. $menutype='all' You also have to remember if the member has chosen something different it will remain in the cookies. So try clearing out the cookies and cache after making the change.
  8. In admin panel > Members > Custom Profile Fields find the skype icon and click the pencil on right. and fill out these fields Include on registration page? Yes If 'yes', the field will be shown upon registration. Field MUST be completed and not left empty? Yes If 'yes', an error will be shown if this field is not completed. Field can be edited by the member? Yes If 'no', the member cannot edit the field but Super Moderators and Admins will be able to. Make this a private profile field? No If yes, field only visible to profile owner, super moderators and admins. If 'no', members can search within this field. Make Admin and Super Moderator Editable/Viewable Only? No If yes, will override the above options so only admins and super moderators can see and edit this field. If enabled, the field will not show on the registration form! Topic View Format? <span class='row_data'><img src='imgs/{key}'></span> </span><span class='row_data'>{content}</span> Leave blank if you do not wish to add this field in the author details when viewing a topic. {title} is the title of the custom field, {content} is the user added content. {key} is the form select value of the selected item in a dropdown box. Example: <span class='row_title'>{title}:</span><span class='row_data'>{content}</span> Example: <span class='row_title'>{title}:</span><span class='row_data'><img src='imgs/{key}'></span>
  9. manage languages search for new_version_submit_h3 which should be under downloads tab and in the public_downloads pack. <lang> <word_app>downloads</word_app> <word_pack>public_downloads</word_pack> <word_key>new_version_submit_h3</word_key> <word_default>Uploading A New Version</word_default>
  10. This works fine for IPB 3.46..
  11. You can try this go to edit the Article View template (under IP.Content -> Templates -> Article Templates) you can edit this code to change the resize option to a different value, or not resize at all. change <img src='{$data['record']['article_image']}' {parse resize_image="$data['record']['article_image']" maxwidth="225"} alt='' style="float: right; padding: 10px" /> to <img src='{$data['record']['article_image']}' alt='' style="float: right; padding: 10px" />
  12. You can try changing the div below it that has logo in it and see if that helps.
  13. Just create a custom bbcode for img or adding a new bbcode like imgr or imgw and place the proper html/css to show it in the way you want.
  14. Ok look at it now. You have one of those fancy skins is why it didn't work. Hope that is what you wanted.
  15. I will look at it if you want. Pm me an admin login, url and the image name. Probably this afternoon.
  16. Try changing the height to the height of the image. If that doesn't work properly change the width for css for branding. (ipb_styles.css)
  17. You are welcome. I forgot to remove an additonal > in that code . Try this <div id='branding' style="background-image: url({$this->settings['img_url']}/test-background.gif); height: 100%; width: 100%; ">
  18. Ok here you go. In admin panel Applications & Modules > Manage Hooks Click the pencil on the right side of this hook Feedback Information [TopicView] v1.4.1 . Now click the files tab. In file #1 change the hook id by clicking the drop down to authorcfileds . Change the position of template hook by clicking the drop down to (post.endif) After if statement ends Now click save hook at bottom of screen. ON the second one show me the exact code you changed it to.
×
×
  • Create New...