BBPress Patrick : Replies Created

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Own custom template not working as expected #431986
    Patrick
    Participant

    Hi Steve,
    I found that you need to use __ FILE __ instead of FILE. The __ was probably remove from your last Reply #431596.

    Now it looks like I can open the customizer, but it’s not displaying the entry with the “my1card” template, instead it shows the “names” template.

    And any change I do in the customizer cannot be saved.
    When I click the “save&publish” button, it doesn’t save (normally the button reverts to “saved”).

    Is there generally an issue with the template path?

    When I check the system information I get:

    • Connections Folder Permissions

    Image Path Exists: Yes
    Image Path Writeable: Yes

    Template Path Exists: No
    Template Path Writeable: No

    Cache Path Exists: Yes
    Cache Path Writeable: Yes

    Regards
    Patrick

    in reply to: Own custom template not working as expected #431984
    Patrick
    Participant

    Hi Steve,
    I added the var_dump line and got following output showing the relative path:

    string(22) “./class.customizer.php”
    Warning: require_once(./class.customizer.php): failed to open stream: No such file or directory in /homepages/34/d560985172/htdocs/clickandbuilds/test/wp-content/plugins/conn1_card/card-default.php on line 325

    Fatal error: require_once(): Failed opening required ‘./class.customizer.php’ (include_path=’.:/usr/lib/php7.0′) in /homepages/34/d560985172/htdocs/clickandbuilds/test/wp-content/plugins/conn1_card/card-default.php on line 325

    (BTW, I temporary changed the permissions to 777 for all files inside the template folder. But this hasn’t changed anything)

    Regards
    Patrick

    in reply to: Own custom template not working as expected #431451
    Patrick
    Participant

    Hi Steve,
    I followed your instructions on a brand new wordpress instance with no plugins except connections.

    I moved (not copied) the card folder and changed the

    require_once...
    

    line and activated my1card (this is a temporary name fore testing).

    When starting the customizer I got following error:

    Warning: require_once(./class.customizer.php): failed to open stream: No such file or directory in /homepages/34/d560985172/htdocs/clickandbuilds/test/wp-content/plugins/conn1_card/card-default.php on line 325

    Fatal error: require_once(): Failed opening required ‘./class.customizer.php’ (include_path=’.:/usr/lib/php7.0′) in /homepages/34/d560985172/htdocs/clickandbuilds/test/wp-content/plugins/conn1_card/card-default.php on line 325

    When checking the directoty, the file is present:

    (uiserver):u79741875:~/clickandbuilds/test/wp-content/plugins/conn1_card$ ls -l
    total 60
    -rw----r-- 1 u79741875 ftpusers  8908 Aug  4 23:27 card-default.php
    -rw----r-- 1 u79741875 ftpusers  3687 Aug  4 23:25 card-single.php
    -rw----r-- 1 u79741875 ftpusers  4129 Aug  4 23:25 card.php
    -rw----r-- 1 u79741875 ftpusers  2952 Aug  4 23:25 class.customizer.php
    -rw----r-- 1 u79741875 ftpusers 30278 Aug  4 23:25 thumbnail.png
    (uiserver):u79741875:~/clickandbuilds/test/wp-content/plugins/conn1_card$ 
    

    Regards
    Patrick

    in reply to: Own custom template not working as expected #431302
    Patrick
    Participant

    Hi Steve,
    I doublechecked the slug and its correct. The activated template is “mycard” and the shortcode on the directory homepage is [connections].
    But it still doesn’t work.
    I changed the shortcut to [connections template="mycard"] now I see the customizer is opening the directory listing with this template, but doing any change (e.g. add or remove show address) still has no effect on the output.
    Whereas customizing the “card” template also changes the visibility of entries in the output of “mycard” template.

    Regards
    Patrick

    in reply to: Own custom template not working as expected #431157
    Patrick
    Participant

    Hi Steve,
    for my css problem I found a solution. I will use custom classes (e.g. “cn-myentry” to not interfere with the default card template.

    But using the customizer to modify default card template also changes the entries in my custom “mycard” template. I use the correct unique slug “mycard” and I also changed following in the default-card.php from:

    require_once CN_PATH . 'templates/card/class.customizer.php';
    

    to

    require_once CN_PATH . '../../plugins/connections-mycard/class.customizer.php';
    

    I don’t know If this is correct, but anyway it doesn’t work.

    in reply to: Tweaking Core Templates #431117
    Patrick
    Participant

    Thanks for the quick answer. You can set it to resolved.

Viewing 6 posts - 1 through 6 (of 6 total)