Advertisement:

Author Topic: how edit board Graphic  (Read 648 times)

Offline TheDragon

  • Sr. Member
  • ****
  • Posts: 833
how edit board Graphic
« on: February 13, 2021, 08:43:17 PM »



this (THE VCSY LOGO) used to be small and centered
then updated from 2.0 to 2.18 and now it is HUGE and left-aligned
so - what file do I edit (even if by hand)
and - how do I know If I am using curve or default?
THANKS!

Offline Antechinus

  • SMF Friend
  • SMF Master
  • *
  • Posts: 25,655
  • Master of BBC Abuse
Re: how edit board Graphic
« Reply #1 on: February 13, 2021, 09:20:00 PM »
Always a good idea to give a live link to the issue. Makes support easier. ;)

Curve is default, unless you set another theme as site default.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,203
  • Gender: Male
    • Kindred-999 on GitHub
Re: how edit board Graphic
« Reply #2 on: February 13, 2021, 10:39:50 PM »
How did you upgrade?
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Offline TheDragon

  • Sr. Member
  • ****
  • Posts: 833
Re: how edit board Graphic
« Reply #3 on: February 14, 2021, 12:12:53 PM »
Always a good idea to give a live link to the issue. Makes support easier. ;)

Curve is default, unless you set another theme as site default.
curious - in my ftp = under themes, there are 2 folders. curve and default

Offline TheDragon

  • Sr. Member
  • ****
  • Posts: 833
Re: how edit board Graphic
« Reply #4 on: February 14, 2021, 12:21:50 PM »
I did not upgrade
I made a NEW install using cPanel
and then copied all the folders form last forum onto new folders
(most (all?) of  my custom GUI did not survive - ok with me - HAPPY just to get the old posts back again!!!)
and imported the old SQL (from backup made using phpMyAdmin)



Offline Illori

  • Lead Support Specialist
  • SMF Legend
  • *
  • Posts: 52,858
Re: how edit board Graphic
« Reply #5 on: February 14, 2021, 12:52:27 PM »
again, we cannot help you without a link to your actual forum so we can tell you what may need to be changed.

Offline shadav

  • Support Specialist
  • Sophist Member
  • *
  • Posts: 1,265
  • Gender: Female
    • shadav on Facebook
    • leashadav on GitHub
    • Ask The Muslims: A Place To Ask Honest Questions and Receive Respectful Answers
Re: how edit board Graphic
« Reply #6 on: February 14, 2021, 01:41:20 PM »
um...I'm confused...if you overwrote the 2.0.18 with your old files and using your old database, then you didn't update anything, you are still using whatever your previous version of smf was
you just moved the old forum into a new folder
which means that all your old themes and things should be working
use the repair settings tool to correct all the path locations
https://wiki.simplemachines.org/smf/Repair_settings.php

I'm sure there's a better way and I'm assuming that you used the theme settings in admin current theme to add the link for the logo....
if that is what you did then in the default theme folder in  index.template.php
find
Code: [Select]
<h1 class="forumtitle">
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
</h1>';

you can add a width to the image

Code: [Select]
<h1 class="forumtitle">
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" width="70px" />', '</a>
</h1>';

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,203
  • Gender: Male
    • Kindred-999 on GitHub
Re: how edit board Graphic
« Reply #7 on: February 14, 2021, 04:17:25 PM »
I did not upgrade
I made a NEW install using cPanel
and then copied all the folders form last forum onto new folders
(most (all?) of  my custom GUI did not survive - ok with me - HAPPY just to get the old posts back again!!!)
and imported the old SQL (from backup made using phpMyAdmin)

That is the WRONG way to upgrade and it seems that you may have a mixture of files from different versions.

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Offline Antechinus

  • SMF Friend
  • SMF Master
  • *
  • Posts: 25,655
  • Master of BBC Abuse
Re: how edit board Graphic
« Reply #8 on: February 14, 2021, 04:21:10 PM »
I did not upgrade
I made a NEW install using cPanel
and then copied all the folders form last forum onto new folders

Given that you have a default folder and a Curve folder, my guess is that you have copied some files and directories from either 1.1.x or 2.0 Beta (ie: Core was default before 2.0 RC2).

Offline TheDragon

  • Sr. Member
  • ****
  • Posts: 833
Re: how edit board Graphic
« Reply #9 on: February 14, 2021, 04:46:43 PM »
I did send the link - but I guess it did not post
here: www.ggustin.com/PPE

can you tell by looking if I am using CORE or Default?
TY'
« Last Edit: February 14, 2021, 04:58:06 PM by TheDragon »

Offline TheDragon

  • Sr. Member
  • ****
  • Posts: 833
Re: how edit board Graphic
« Reply #10 on: February 14, 2021, 04:57:12 PM »
to combines the answers about update/upgrade etc
you might have all missed the reason WHY I did this (in another post)
ALL was working ok - until server farm updates PHP to 7.4
NOTHING worked to get it working again
so - I made a FRESH INSTALL using cPanel of v 2.0.18
that worked ok - but of course, had ZERO messages\
so, following the great advice, I imported the old SQL file
and copied over the old files  from the original forum
and had to run repair settings 3 x
and finally worked
(except for a LOT o my CUSTOM formatting - which I can do without)
the only UGLY thing is the BIG VCSY graphic on page one
I will now try the edit shown above
THANKS !


Offline Antechinus

  • SMF Friend
  • SMF Master
  • *
  • Posts: 25,655
  • Master of BBC Abuse
Re: how edit board Graphic
« Reply #11 on: February 14, 2021, 04:58:41 PM »
Well that looks well and truly screwed. The CSS is nowhere near standard Curve, so your initial screenshot was rather deceptive. What, exactly, are you trying to achieve?

Offline TheDragon

  • Sr. Member
  • ****
  • Posts: 833
Re: how edit board Graphic
« Reply #12 on: February 14, 2021, 05:12:32 PM »
to: shadav = THANKS for the file and line ID to change the logo graphic
was surprised that changing JUST the width ALSO changed the height :)
now =
is there an EASY edit to center it?
TY

Offline TheDragon

  • Sr. Member
  • ****
  • Posts: 833
Re: how edit board Graphic
« Reply #13 on: February 14, 2021, 05:14:06 PM »
Well that looks well and truly screwed. The CSS is nowhere near standard Curve, so your initial screenshot was rather deceptive. What, exactly, are you trying to achieve?
I just wanted to edit the graphic font to be smaller = as I just did with help from SHADAV

FYI

I just did a google search on SMF Curve samples
it seems to look a lot like my current install?
anyway
working now

Offline Antechinus

  • SMF Friend
  • SMF Master
  • *
  • Posts: 25,655
  • Master of BBC Abuse
Re: how edit board Graphic
« Reply #14 on: February 14, 2021, 05:16:18 PM »
This is what your forum looks like on my box:

Offline TheDragon

  • Sr. Member
  • ****
  • Posts: 833
Re: how edit board Graphic
« Reply #15 on: February 14, 2021, 05:21:59 PM »
hmmmm - here is my home page using win 10 and chrome

Offline shadav

  • Support Specialist
  • Sophist Member
  • *
  • Posts: 1,265
  • Gender: Female
    • shadav on Facebook
    • leashadav on GitHub
    • Ask The Muslims: A Place To Ask Honest Questions and Receive Respectful Answers
Re: how edit board Graphic
« Reply #16 on: February 14, 2021, 05:27:18 PM »
yeah to me it looks the same as what antechinus posted

seems you are missing a lot of css

in your index.css there should be a
#top_section

but there's not so you'll need to add that and you can add

text-align: center;

and it should center the image (and well anything else that you put in the div)

Code: [Select]
#top_section
{text-align: center;}

as for your theme being off, did you change your theme in your profile or did you change it from the admin and set all to forum default?

because what you are seeing and what everyone else is seeing are 2 different themes

Offline Antechinus

  • SMF Friend
  • SMF Master
  • *
  • Posts: 25,655
  • Master of BBC Abuse
Re: how edit board Graphic
« Reply #17 on: February 14, 2021, 05:28:16 PM »
Just checked with my other browsers. Looks exactly the same in Chrome, Edge, Firefox, Opera and Pale Moon. All on W10 desktop. All with cache cleared.

Offline Antechinus

  • SMF Friend
  • SMF Master
  • *
  • Posts: 25,655
  • Master of BBC Abuse
Re: how edit board Graphic
« Reply #18 on: February 14, 2021, 05:33:03 PM »
Aha! I have a suspicion that the problem is some markup being borked for guests, but not when logged in. That would explain why everyone here is seeing it messed up.

IOW, check your template logic (probably in index.template.php).

Offline Antechinus

  • SMF Friend
  • SMF Master
  • *
  • Posts: 25,655
  • Master of BBC Abuse
Re: how edit board Graphic
« Reply #19 on: February 14, 2021, 06:02:57 PM »
Yup. Borked markup. See if you can access this link (I ran a validation from my desktop):

https://validator.w3.org/check?uri=http%3A%2F%2Fwww.ggustin.com%2FPPE%2Findex.php&charset=%28detect+automatically%29&doctype=Inline&ss=1&group=0&verbose=1&user-agent=W3C_Validator%2F1.3+http%3A%2F%2Fvalidator.w3.org%2Fservices

You've manually added your width to the image, but screwed the markup there:

Code: [Select]
<h1 class="forumtitle">
    <a href="https://ggustin.com/PPE/index.php"><img src="assets/images/VCSY-Chat-v2.png" alt="VCSY-CHAT Discussion Board" width=70px"/></a>
</h1>

It needs to be width="70px"


You have another issue here:

Code: [Select]
<td class="info">
    <a class="subject" href="https://ggustin.com/PPE/index.php?board=28.0" name="b28"><font color="red">Notes from Admin</font></a>
    <p><b>Everyone<b/> - <i>please</i> read </p>
</td>

Closing </b> tag has the slash in the wrong place.

Offline TheDragon

  • Sr. Member
  • ****
  • Posts: 833
Re: how edit board Graphic
« Reply #20 on: February 14, 2021, 07:51:49 PM »
ok - looks like I got some work to do
THANKS  everyone


Offline TheDragon

  • Sr. Member
  • ****
  • Posts: 833
Re: how edit board Graphic
« Reply #21 on: February 14, 2021, 08:51:42 PM »
a.fixed the 2 hard coded items
b. I flushed cache and now my system also looks AFU -- argh


Offline Antechinus

  • SMF Friend
  • SMF Master
  • *
  • Posts: 25,655
  • Master of BBC Abuse
Re: how edit board Graphic
« Reply #22 on: February 14, 2021, 09:44:47 PM »
Just looking through the CSS, it looks like you are calling the Core theme CSS file on top of the Curve theme markup.

Offline TheDragon

  • Sr. Member
  • ****
  • Posts: 833
Re: how edit board Graphic
« Reply #23 on: February 15, 2021, 03:17:49 PM »
after reading ALL great replies here and in my other posts
I decided to start over
turns out - NO one gave me the correct advice = close but not correct
that's how I wound up with a jumbled mess
anyway ALL fixed now
will make a report later on how I resolved this
in summary
THANKS to ALL
not possible to fix this without everyone inputs