how edit board Graphic

Started by TheDragon, February 13, 2021, 08:43:17 PM

Previous topic - Next topic

TheDragon




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!

Antechinus

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.

Kindred

Слaва
Украинi

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."

TheDragon

Quote from: Antechinus 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.
curious - in my ftp = under themes, there are 2 folders. curve and default

TheDragon

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)



Illori

again, we cannot help you without a link to your actual forum so we can tell you what may need to be changed.

shadav

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
<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

<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>';

Kindred

Quote from: TheDragon 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)

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

Слaва
Украинi

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."

Antechinus

Quote from: TheDragon 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

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).

TheDragon

#9
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'

TheDragon

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 !


Antechinus

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?

TheDragon

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

TheDragon

Quote from: Antechinus 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?
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

Antechinus

This is what your forum looks like on my box:

TheDragon

hmmmm - here is my home page using win 10 and chrome

shadav

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)


#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

Antechinus

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.

Antechinus

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).

Antechinus

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:

<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:

<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.

Advertisement: