Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: fadetoblack22 - lokakuu 05, 2011, 02:29:18 IP

Otsikko: Where to change the colour of "Pages: [1] 2 3 4"
Kirjoitti: fadetoblack22 - lokakuu 05, 2011, 02:29:18 IP
I am having trouble finding where to change the Pages: [1] 2 3 4 on the post page.

At the moment they are the same colour as the background so the users can't see them.

Does anyone know which file to edit for this?

Thank you.
Otsikko: Re: Where to change the colour of "Pages: [1] 2 3 4"
Kirjoitti: All Colours Sam - lokakuu 05, 2011, 03:39:32 IP
What SMF version are you using?

on 2.0 and the default curve theme the pagination is controlled by a div with a class="pagelinks"  so all you have to do is go to your theme's  css  file and find that class and adapt it to your needs
Otsikko: Re: Where to change the colour of "Pages: [1] 2 3 4"
Kirjoitti: fadetoblack22 - lokakuu 06, 2011, 05:05:12 AP
It's version 1.1.4

You can see what I mean here: cr17 dot com/index.php/board,1.0.html

and

cr17 dot com/index.php/topic,32256.0.html

The second one has black text which I want to change so the user can see it.
Otsikko: Re: Where to change the colour of "Pages: [1] 2 3 4"
Kirjoitti: ziycon - lokakuu 06, 2011, 05:16:54 AP
Have a look at style.css for the theme your using.
Otsikko: Re: Where to change the colour of "Pages: [1] 2 3 4"
Kirjoitti: fadetoblack22 - lokakuu 06, 2011, 06:03:29 AP
I don't have the pagelinks class in my themes style or the default style.

I'm using version 1.1.4

Is that normal?
Otsikko: Re: Where to change the colour of "Pages: [1] 2 3 4"
Kirjoitti: ziycon - lokakuu 06, 2011, 06:08:01 AP
In style.css look for line 283, '.middletext' and add the below line to it, replace DEDEDE with whatever colour code you need. Please be aware that this will change other text, not just the page numbers.
color: #DEDEDE;
Otsikko: Re: Where to change the colour of "Pages: [1] 2 3 4"
Kirjoitti: Antechinus - lokakuu 06, 2011, 06:41:57 AP
Wont work. Read this: http://www.simplemachines.org/community/index.php?topic=432280.msg3032203#msg3032203
Otsikko: Re: Where to change the colour of "Pages: [1] 2 3 4"
Kirjoitti: fadetoblack22 - lokakuu 11, 2011, 06:49:51 IP
Lainaus käyttäjältä: Antechinus - lokakuu 06, 2011, 06:41:57 AP
Wont work. Read this: http://www.simplemachines.org/community/index.php?topic=432280.msg3032203#msg3032203

I am trying to follow: http://www.simplemachines.org/community/index.php?topic=432280.msg3032203#msg3032203 but I don't have that code in display.template.

My code is this from version 1.1.4:

// Show the page index... "Pages: [1]".
echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="margin-bottom: 1ex;">
<tr>
<td align="left" class="catbg" width="100%" height="35">
<table cellpadding="3" cellspacing="0" width="100%">
<tr>
<td>
<b>', $txt[139], ':</b> ', $context['page_index'];


How can I do it with just this code?
Otsikko: Re: Where to change the colour of "Pages: [1] 2 3 4"
Kirjoitti: Antechinus - lokakuu 11, 2011, 06:53:34 IP
You have to change the code. It's custom code. That's why I put it in my post. ;)
Otsikko: Re: Where to change the colour of "Pages: [1] 2 3 4"
Kirjoitti: fadetoblack22 - lokakuu 12, 2011, 06:16:34 AP
Lainaus käyttäjältä: Antechinus - lokakuu 11, 2011, 06:53:34 IP
You have to change the code. It's custom code. That's why I put it in my post. ;)

I'm not sure which exact bit of code to change as when I replace the code I quoted above, it throws up errors.

Also, the changes affect the page navigation at the top, but the bottom is left unchanged. What do I need to edit to do the same at the bottom?

Thanks :)
Otsikko: Re: Where to change the colour of "Pages: [1] 2 3 4"
Kirjoitti: fadetoblack22 - lokakuu 14, 2011, 01:04:06 IP
Can help me with this when you see it :)