News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Editing the word 'Newbie' etc.

Started by Big Gee, October 24, 2013, 11:56:15 AM

Previous topic - Next topic

Big Gee

Hi All!

I've just installed a SMF forum on my gardening site. However, instead of the labels like 'Newbie' etc, being displayed against member user-names I would like to change the wording to something more appropriate for the members on the forum.

I guess I'll need to do some php file editing - that's no problem, but being new to this platform I'm not familiar with which files I need to edit.

Any pointers please?

Thanks,

G.

Arantor

Admin > Members > Membergroups

You can edit the names of the groups in there.

kat

Just for information...

If you want to change the text for other things, take a look at the file index.english.php in the default theme's "languages" directory. ;)

Big Gee

Thank you very much Arantor & K@.

Between you I think you've put me on the right road & cleared up everything I wanted to know. I'd been looking under in the wrong theme folder for a 'language' php file to edit - DOH!

Much appreciated!

G.


Big Gee

Great. Now whilst the topic is open (sorry to be an opportunist) - how can I insert a link into the header graphic to link back to the main site?

Here's the URL for the forum site - you'll see what graphic I'm referring to. :

http://gardenerschat-shed.net/forum

Thanks again!

G.

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

Big Gee

Quote from: Kindred on October 24, 2013, 08:31:02 PM
Edit index.template.pho

Thanks - can anyonr give me a bit more than that please? Like what in index.template.php.

Ta

G.

kat

Don't you hate it, when you know what's needed, yet your mind goes blank?

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

You have to add the URL, in there, somewhere, I believe. But, my mind's gone blank on the "How"...

I'll try and get back, later, when my brain's woken up...

margarett

Actually in this theme it's not that easy because the image is loaded from CSS, not directly from index.template.
I would take this question to the theme's support topic...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Big Gee

Quote from: K@ on October 25, 2013, 06:07:11 AM
Don't you hate it, when you know what's needed, yet your mind goes blank?

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

You have to add the URL, in there, somewhere, I believe. But, my mind's gone blank on the "How"...

I'll try and get back, later, when my brain's woken up...

My brains been drawing more blanks in latter years than live rounds!!!

Don't worry - I can wait.

Thanls -

G.

Big Gee

Quote from: margarett on October 25, 2013, 07:30:13 AM
Actually in this theme it's not that easy because the image is loaded from CSS, not directly from index.template.
I would take this question to the theme's support topic...

OK - thanks - I'll go & knock on their door to see if they'll answer. If not I'll pop back & let you know.

Thankls,

G.

kat

If my memoery's not playing tricks, which is entirely possible, I think I just replaced

<a href="', $scripturl, '">

with:

<a href="http://english-72682862726.spampoison.com"> (Change the URL to whatever you need, obviously).

That would've made it something like this:

<a href="http://english-72682862726.spampoison.com">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>

But, from what ol' Margie's been saying, I could be throwing you a bum steer, with that. (It was a LONG time ago and no way could I, even remotely, be called a coder. ;)

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

kat

'eck! What IS the world coming to?!? :)

Big Gee

Thanks Guys -

I can find:

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

In the 'index.template.php' file in the 'Default' theme folder, but not in the 'index.template.php' file in the 'Bright Forest' theme  folder (which I presume is the one I need to edit).

Can you enlighten me a bit more please?

Thanks,

G.

Kindred

look  for <a href="', $scripturl, '"> which happens close to $context['forum_name']
Сл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."

margarett

Yup, that was I was telling you guys ;)
That line is correct for the default theme. This one is a little bit different...
There isn't a "a href=xxxx" thing here, neither a "img" thing. Just a CSS background image.
Quote from: margarett on October 25, 2013, 07:30:13 AM
I would take this question to the theme's support topic...
;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Kindred

there really should be an
<a href="', $scripturl, '">  line...
Сл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."

margarett

Nop, there isn't. The logo isn't "clickable" so there is no HTML for it...

<div id="header"', !empty($settings['header_logo_url_html_safe']) ? ' style="background-image: url(' . $settings['header_logo_url_html_safe'] . ')"' : '', '>
<h1>', $context['forum_name'], '</h1>';

;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Advertisement: