Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » How do I…?
  3. » My own logo

#1 2017-09-03 18:37:31

netgeezer
Member
Registered: 2017-09-01
Posts: 19

My own logo

How do I upload my own logo to my site, which will be used on every article page?

Offline

#2 2017-09-03 19:42:15

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: My own logo

You upload all images in the images tab and call them through the presentation and write tabs.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2017-09-14 13:09:41

netgeezer
Member
Registered: 2017-09-01
Posts: 19

Re: My own logo

…sorry what does “call them” mean? I’m quite new to all this…. will I have to code something?

Offline

#4 2017-09-14 18:13:10

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: My own logo

netgeezer wrote #306998:

…sorry what does “call them” mean? I’m quite new to all this…. will I have to code something?

You could use <txp:image id="##" />, or better, do check the tag reference as it will give you many more options.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2018-08-24 00:25:07

alejnadro
New Member
Registered: 2018-08-24
Posts: 2

Re: My own logo

I have the same problem… I uploaded the image, called it by the tag <txp:image id=“1” /> but dont know where to place it so it is always in the top and aligned with all the content.

Im currently using the default page.

If I go to presentation>pages>default and place the tag right before the header it places the logo at the top but left aligned.

Any ideas where should I place the code? thanks!

PS: by the header I mean the next section:

<script type="application/ld+json">
	{
		"@context": "https://schema.org",
		"@type": "WebSite",
		"headline": "<txp:site_name escape="json" />",
		<txp:if_description>"description": "<txp:meta_description format="" escape="json" />",</txp:if_description>
		"url": "<txp:site_url />"<txp:image id="1" />
	}
</script>

Edited: Textile

Last edited by uli (2018-08-24 12:56:48)

Offline

#6 2018-08-24 08:11:56

Wanderer
Member
Registered: 2009-02-06
Posts: 23

Re: My own logo

alejnadro wrote #313607:

Any ideas where should I place the code? thanks!

forms > body_header:

<header class="site-header">
    <txp:image id="##" />
    <h2><txp:link_to_home><txp:site_name /></txp:link_to_home></h2>
    <txp:evaluate>
        <h3><txp:site_slogan /></h3>
    </txp:evaluate>
</header>

Offline

#7 2018-08-24 19:03:35

alejnadro
New Member
Registered: 2018-08-24
Posts: 2

Re: My own logo

that was it thanks!!!

Offline

#8 2020-11-28 12:04:48

PixelOfNux
New Member
Registered: 2020-11-28
Posts: 2

Re: My own logo

Hello,
I have just discovered Textpattern which I did not know, and I am motivated to get involved because it seems to me to be a very interesting and very elegant CMS. It’s a very good job.

I followed the instructions given above to place a little logo.

I thought I figured out how to do this by reading this post, and tried to modify the code as well:

<header class="site-header">    
 <!-- Add logo here -->
 <txp:image class="logo" escape="" html_id="1" id="1" />
    <h2><txp:link_to_home><txp:site_name /></txp:link_to_home></h2>
    <txp:evaluate>
        <h3><txp:site_slogan /></h3>
    </txp:evaluate>
</header>

But when I click on Save, a popup appears and displays: Sorry, the form could not be submitted. Please try again later.
Can someone explain to me what is going on?


if (sad() == true) { sad.stop(); BeAwesome(); }

Offline

#9 2020-11-28 13:22:11

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

Re: My own logo

I sometimes get this notice when saving changes in the admin panels. I don’t know why, exactly, but it usually goes away if I click out of the panel, come back and try again.

Might be a session thing. Make sure you’re not logged out in a different browser tab, or whatever.

Offline

#10 2020-11-28 17:32:38

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,269
Website GitHub

Re: My own logo

PixelOfNux wrote #327132:

when I click on Save, a popup appears and displays: Sorry, the form could not be submitted. Please try again later.

Hi and welcome. Glad you found us and sorry for this hiccup. That message occurs when something goes wrong with the save process, usually but not limited to:

  1. The on-page security token is mangled somehow.
  2. Something in the content tripped your host’s spam filter which meant it returned a response other than “OK”.
  3. Your Textpattern files aren’t all uploaded correctly so it’s getting confused.
  4. A plugin is interfering with the save process.

My money is on #2 but a good way to find out is to look at what happens under the hood when you click Save. Open your browser’s web inspector, check its Network tab (and/or the Console) and see if anything throws an error there when you click Save.

If you report back here with anything you find in the inspector (e.g. JavaScript or network errors) then that might give us more of a clue what’s going on.

Hope that helps.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#11 2020-11-28 17:32:42

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: My own logo

PixelOfNux wrote #327132:

Hello,
I have just discovered Textpattern which I did not know, and I am motivated to get involved because it seems to me to be a very interesting and very elegant CMS. It’s a very good job.

I followed the instructions given above to place a little logo.

I thought I figured out how to do this by reading this post, and tried to modify the code as well:

<header class="site-header">...

But when I click on Save, a popup appears and displays: Sorry, the form could not be submitted. Please try again later.
Can someone explain to me what is going on?

Hi and welcome to txp. It could indeed be a session thing as Destry already wrote. As safety feature, txp allows a each user to be logged in on one browser at a time.

Alternatively, did you check if there are any errors in Admin>Diagnostics?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#12 2020-11-29 16:09:09

PixelOfNux
New Member
Registered: 2020-11-28
Posts: 2

Re: My own logo

Thank you for your answers :)

I followed Bloke’s suggestions and I tried the change using another browser, Edge and Chrome without any plugins: same problem.
So I open my browser’s web inspector, and check its Network tab as you suggested to me, and I found this:

POST
https://mysite.org/blog/textpattern/index.php
État403
Forbidden
VersionHTTP/1.1
Transfert491 o (taille 318 o)
Politique de référentstrict-origin-when-cross-origin
HTTP/1.1 403 Forbidden
Date: Sun, 29 Nov 2020 15:23:05 GMT
Content-Type: text/html; charset=iso-8859-1
Content-Encoding: gzip
Vary: Accept-Encoding
X-Varnish: 47597866
Age: 0
X-Cache: MISS
Content-Length: 247
Connection: keep-alive
POST /blog/textpattern/index.php HTTP/1.1
Host: mysite.org
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0
Accept: text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01
Accept-Language: fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate, br
X-Requested-With: XMLHttpRequest
Content-Type: multipart/form-data; boundary=---------------------------12154445128654112353469945952
Content-Length: 2458
Origin: https://mysite.org
DNT: 1
Connection: keep-alive
Referer: https://mysite.org/blog/textpattern/index.php?event=form&step=form_edit&name=body_header&_txp_token=246020454544xxx33ade38ed6d8de7e9c2
Cookie: txp_login=admin%2C6839445454xx0a68215acc1278; txp_login_public=87ced04540admin

I see a 403 Forbidden indication. When I’m looking for what it means i read:

The HTTP 403 Forbidden response error status code indicates that a server understands the request but refuses to allow it.

I conclude that the problem must be with the server, just installed. Am I on the right track ?
I installed TextPattern from the LWS cPanel. Is there a manipulation to be done on the server side to correct this problem ?

To answer Colak, yes I launched the Admin>Diagnostics and i have this:

Textpattern version: 4.8.3 (596bca03a4b32004412499363cecec62)
Last update: 2020-09-13 18:26:06
Textpattern path: __TXP-ROOT/textpattern
Article URL pattern: section_title
Production status: testing
Temporary directory path: __TXP-ROOT/textpattern/tmp
PHP version: 7.1.33
GD Graphics Library: Unavailable
Server timezone: Europe/Paris
Server local time: 2020-11-29 17:23:39
Daylight Saving Time enabled?: 0
Automatically adjust Daylight Saving Time setting?: 0
Time zone (GMT offset in seconds):  (+0)
MySQL: 10.4.15-MariiiaDB-cll-lve (MariiiaDB Server) 
Database server time: 2020-11-29 17:23:39
Database server time offset: 1 s
Database server timezone: SYSTEM
Database session timezone: SYSTEM
Locale: fr_FR.UTF-8
Site / Admin language: fr / fr
Web server: Apache
PHP server API: litespeed
RFC 2616 headers: 
Server OS: Linux 3.10.0-962.3.2.lve1.5.39.el7.x86_64
Admin-side theme: hive 4.8.3
Pre-flight check: 
------------------------
New Textpattern version 4.8.4 available for download.
------------------------
.htaccess file contents: 
------------------------
# BEGIN Textpattern
#DirectoryIndex index.php index.html
<IfModule mod_rewrite.c>
    RewriteEngine On
    # Enable the `FollowSymLinks` option below if it isn't already.
    #Options +FollowSymlinks
    #RewriteBase /relative/web/path/
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^(.+) - [PT,L]
    RewriteCond %{REQUEST_URI} !=/favicon.ico
    RewriteRule ^(.*) index.php
    RewriteCond %{HTTP:Authorization}  !^$
    RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
<IfModule mod_mime.c>
    AddType image/svg+xml  svg svgz
    AddEncoding gzip       svgz
</IfModule>
# For additional Apache-compatible web server configuration settings to enhance
# site performance and security, we recommend:
# https://github.com/h5bp/server-configs-apache/blob/master/dist/.htaccess
# END Textpattern
------------------------

Last edited by PixelOfNux (2020-11-29 16:32:37)


if (sad() == true) { sad.stop(); BeAwesome(); }

Offline

  1. Index
  2. » How do I…?
  3. » My own logo

Board footer

Powered by FluxBB