Forum Activity for @dim

alt=
@dim
03/28/15 01:58:52PM
167 posts

Page headers are not formed properly


Jamroom Developers

@brian, let me know what does
{assign var="selected" value="community"}
{jrCore_lang skin=$_conf.jrCore_active_skin id="26" default="community" assign="page_title"}
{jrCore_page_title title=$page_title}
do, please?
I just did a week modifying the skin. I do not want to repeat it again :(
alt=
@dim
03/28/15 06:40:29AM
167 posts

Page headers are not formed properly


Jamroom Developers

@brian, now I have a similar problem with other pages (blogs, community, galleries, etc...).
Page headers are not formed properly:
<!doctype html>
<html lang="en" dir="ltr">
<head>Community</head>
<body>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="generator" content="5.2.28/diSa" />
<link rel="stylesheet" href="http:// etc...
If I remove this code
{assign var="selected" value="community"}
{jrCore_lang skin=$_conf.jrCore_active_skin id="26" default="community" assign="page_title"}
{jrCore_page_title title=$page_title}
from community.tpl, then I see the correct page headers for the community page.

Why is this happening?
Where can I find the cause of the error?
I made only the changes in the css files, and a few small changes in the templates. By the way, I did not change the community.tpl so far.
updated by @dim: 04/29/15 07:05:45PM
alt=
@dim
03/27/15 02:36:27PM
167 posts

What does jrProfile_is_profile_owner() do?


Jamroom Developers

@brian, now I have a similar problem with other pages (blogs, community, galleries, etc...).
Page headers are not formed properly:
<!doctype html>
<html lang="en" dir="ltr">
<head>Community</head>
<body>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="generator" content="5.2.28/diSa" />
<link rel="stylesheet" href="http:// etc...
If I remove this code
{assign var="selected" value="community"}
{jrCore_lang skin=$_conf.jrCore_active_skin id="26" default="community" assign="page_title"}
{jrCore_page_title title=$page_title}
from community.tpl, then I see the correct page headers for the community page.

Why is this happening?
Where can I find the cause of the error?
I made only the changes in the css files, and a few small changes in the templates. By the way, I did not change the community.tpl so far.
alt=
@dim
03/26/15 01:29:59PM
167 posts

What does jrProfile_is_profile_owner() do?


Jamroom Developers

brian:It lets the header template "know" if it is being included by a profile templates versus a skin template.
I'm sorry, but why is it necessary?
alt=
@dim
03/26/15 01:08:17PM
167 posts

What does jrProfile_is_profile_owner() do?


Jamroom Developers

douglas: That is being used for the main menu, to highlight a link if it is the active page. There maybe another reason for it, but I know that is one of them.

@brian, what the code is doing more?
I want to understand that I will lose if I do not use it.
alt=
@dim
03/26/15 12:42:29PM
167 posts

What does jrProfile_is_profile_owner() do?


Jamroom Developers

Hello,
Thanks for the answers.
I get the wrong profile page, if I use that code.
<!doctype html>
<html lang="en" dir="ltr">
<head></head>
<body>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="generator" content="5.2.28/diSa" />
<link rel="stylesheet" href="http:// etc
<script type="text/javascript" src="http:// etc

<div id="wrapper">
    <div id="header">
        <div id="header_content"> 
...etc

Look at <head></head> <body>

{if jrProfile_is_profile_owner($_profile_id)}
    {assign var="from_profile" value="yes"}
{/if}
If I remove this code, the page is displayed correctly.
updated by @dim: 03/26/15 12:49:40PM
alt=
@dim
03/26/15 11:37:56AM
167 posts

What does jrProfile_is_profile_owner() do?


Jamroom Developers

Please let me know what is the code doing in profile_header.tpl
{if jrProfile_is_profile_owner($_profile_id)}
    {assign var="from_profile" value="yes"}
{/if}
what is it and can I delete it?
updated by @dim: 03/26/15 12:02:38PM
alt=
@dim
03/06/15 03:53:53AM
167 posts

error: invalid order direction


Archived

OK, thank you. I'll wait for a response.
  15