Posting mode reply

Support for phpBB mods/hacks.

Moderator: Moderators

Posting mode reply

Postby Oggy on Sat Jan 24, 2004 3:22 pm

I have installed the XTreme mod, using another template than the subSilver one, and it is working fine.

Except for one little problem : while replying at some topics/posts, it shows the SubSilver template but only in the topic review "iframe".

All the rest of the page, and forum, is correctly set to my default template.

How can I solve that ?
Oggy
Registered User
Registered User
 
Posts: 11
Joined: Sat Jan 24, 2004 3:15 pm
Location: France

Postby PostBot on Sat Jan 24, 2004 4:00 pm

Probably that template is buggy or you forgot to upload simple_header.tpl

What template are you using?
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby Oggy on Sat Jan 24, 2004 4:11 pm

Thank you for your previous reply.

It is based on the subSilver template, duplicated and renamed (renamed also cfg, css files)
I have made changes in php files as well.
Anyway, everything is working fine on the whole forum, except for that topic review thing where I have no clue why.
Oggy
Registered User
Registered User
 
Posts: 11
Joined: Sat Jan 24, 2004 3:15 pm
Location: France

Postby PostBot on Sat Jan 24, 2004 4:19 pm

Then whoever created that template probable forgot to edit simple_header.tpl

Open overall_header.tpl and copy all css from there to simple_header.tpl so css would be identical in both files.
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby Oggy on Sat Jan 24, 2004 4:30 pm

CyberAlien wrote:Then whoever created that template probable forgot to edit simple_header.tpl


I'm affraid that the whoever is me :oops:

CyberAlien wrote:Open overall_header.tpl and copy all css from there to simple_header.tpl so css would be identical in both files.


I feel a bit stupid...
In fact I completely forgot about those hardcoded style in simple_header.tpl

Problem solved, thank you soo much.
Oggy
Registered User
Registered User
 
Posts: 11
Joined: Sat Jan 24, 2004 3:15 pm
Location: France

Postby PostBot on Sat Jan 24, 2004 4:34 pm

One more addition: if you want to change style in control panel edit admin/page_header.tpl same way as you just edited simple_header.tpl
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby Oggy on Sun Jan 25, 2004 12:23 pm

Thank you, but I am only using .css files, 2 actually.
And it was quite difficult (for me I mean!) because there were many errors in the php files.
For example, <span class="postbody"><a href ="some link"></span> that can't work : the "a" class is taken into account, not the "postbody" class.
In that case it is not very hard, it's enough to add "a" class to postbody.
But when there is a link without any class and if you aleady have the "a" class defined in your site's style sheet, you need to efit all the php files which contains <a href>.

For the template, in fact I saw last night that in some place it is still showing subsilver buttons/icons, while I have replaced them in my new template.
I found the solution : in some files, the path to images is "templates/subSilver/... hardcoded.

I hope I am clear enough, english is not my native language.
Oggy
Registered User
Registered User
 
Posts: 11
Joined: Sat Jan 24, 2004 3:15 pm
Location: France

Postby PostBot on Sun Jan 25, 2004 12:31 pm

actually its quite simple.

For example, to set color to link for code like this:
Code: Select all
<span class="postbody"><a href="some link">blah</a></span>
without editing class in <a> you should use following css:
Code: Select all
.postbody a { color: #FF0000; } /* normal link */
.postbody a:visited { color: #AA0000; } /* visited link */
.postbody a:hover { color: #FFFFFF; text-decoration: none; } /* mouseover */
.postbody a:active { color: #FF8000; text-decoration: none; } /* clicked */
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby PostBot on Sun Jan 25, 2004 12:33 pm

..and there are no hardcoded images. all images that aren't changable in tpl can be changed in style_name.cfg
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby Oggy on Sun Jan 25, 2004 2:19 pm

CyberAlien wrote:
Code: Select all
.postbody a { color: #FF0000; } /* normal link */
.postbody a:visited { color: #AA0000; } /* visited link */
.postbody a:hover { color: #FFFFFF; text-decoration: none; } /* mouseover */
.postbody a:active { color: #FF8000; text-decoration: none; } /* clicked */

As I said, I already did.
But when you have a link without a class specified, like for example the www link in users profile, it will take the a class from my css file (the one I use for my whole website).
In my css file, the links are black because my pages are in white background.
For the forum I need them white because the forum is in black background.
And it is not very easy to change that.
(not easy to explain in english neither, I confess !)

CyberAlien wrote:..and there are no hardcoded images. all images that aren't changable in tpl can be changed in style_name.cfg


I did not change the name of the images, I just replaced them with mine.
There are errors in the cfg file.
For example this one :
Code: Select all
$images['voting_graphic'][0]  "$current_template_images/voting_bar.gif";
$images['voting_graphic'][1]  "$current_template_images/voting_bar.gif";
$images['voting_graphic'][2]  "$current_template_images/voting_bar.gif";
$images['voting_graphic'][3]  "$current_template_images/voting_bar.gif";
$images['voting_graphic'][4]  "$current_template_images/voting_bar.gif";

Where the voting_bar where voting_lcap.gif and voting_rcap.gif are not defined.
I did not change that, it was already like this.

The result is that the page picks up the subSilver one because it does not find the images in the current template, because, if I understand correct, there are not defined in the cfg file.
Oggy
Registered User
Registered User
 
Posts: 11
Joined: Sat Jan 24, 2004 3:15 pm
Location: France

Postby PostBot on Sun Jan 25, 2004 2:29 pm

voting_lcap and voting_rcap are in tpl files - you can change it there.
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby Oggy on Sun Jan 25, 2004 2:30 pm

Found in viewtopic_poll_result.tpl :
Code: Select all
<td><img src="templates/subSilver/images/vote_lcap.gif" width="4" alt="" height="12" /></td>
...
<td><img src="templates/subSilver/images/vote_rcap.gif" width="4" alt="" height="12" /></td>
Oggy
Registered User
Registered User
 
Posts: 11
Joined: Sat Jan 24, 2004 3:15 pm
Location: France

Postby Oggy on Sun Jan 25, 2004 2:32 pm

CyberAlien wrote:voting_lcap and voting_rcap are in tpl files - you can change it there.


We post at the same time.
I'll do that.

Thank you for your answers
Oggy
Registered User
Registered User
 
Posts: 11
Joined: Sat Jan 24, 2004 3:15 pm
Location: France


Return to phpBB Mods

Who is online

Users browsing this forum: No registered users and 0 guests