Connections Business Directory
[resolved] [Plugin: Connections] Where is the documentation for creating new templates? (9 posts)

  1. I need to create a new template that just show the photo ordered by "department" and "title". It should also include an hidden <DIV> with full name, email, social links and bio.

    Sample code:
    <img src="/wp-content/connection_images/[user_name]_entry.jpg" alt="" width="50" />
    <div id="user-1" class="hide">
    <p><b>User Full Name</b></p>
    <p>The User's Bio. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <p><ul class="ulIcons">

  2. <img src="emailIcon.png" />
  3. <img src="socialIcon.png" />
  4. </p>

    But I don't find any info and the current templates are poorly commented.

    Hope someone could help.



  • I pasted the code at Snipplr.

    Please check it at http://snipplr.com/view/42738/connections-template/

  • The moderation decided to close the other one at http://wordpress.org/support/topic/plugin-connections-where-is-the-documentation-for-creating-new-templates-again and not this one. Great!

  • shazahm1
    Plugin Author

    Posted 4 years ago #

    So what is wrong with the code you posted at Snipplr? At a glance it looks good.

  • Tomorrow I'll post somewhere to screenshots because it won't show.

    One for the page creation backoffie
    One for the frontpage view

    And thanks for the quick reply and sorry for the mess in this page. Not my fault :)


  • By the way the template code is saved at /wp-content/connection_templates/profile.php

    There is also a page with the following code in it: [connections_list department='Direcção' order_by='title' template='profile']

    Is this correct?

  • One thing I already found in your code. You don't orderby title in class.filters.php. Any particular reason not to do so?

    Another thing is why the iamge dir is connection_images and the template dir is connections_templates. I already changed the dir name with no avail.

    Checked the code with var_dump and it is loading /home/userid/www/wp-content/plugins/connections/templates/card.php and not /home/userid/www/wp-content/connections_templates/profile.php.

  • I was using template and not template_name. Now it is loading the right file :)

  • Everything else is solved.

    Now I'm getting in my template parsing the following message:

    Parse error: syntax error, unexpected T_STRING in /home/userid/www/wp-content/connections_templates/orgaos-sociais.php on line 16

    This is related to the first foreach

    Can you help? Thanks!

  • Topic Closed

    This topic has been closed to new replies.

    About this Plugin

    About this Topic