Icy Phoenix

     
 


Post new topic  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 2
Goto page 1, 2  Next
 
Reply with quote Download Post 
Post Questions 
 
Hi, I've just swapped my old integramod based phpbb to XS for my site ( http://www.posetteforever.com ) and I've some questions to ask :

-Same for the avatar, it was not shown and I can't find the option to show it so I had to phisycally remove the "something like" "show avatar" in the viewtopic template, the oprion is not in the control panel nor in the ACP
happened ?
-If I play with style, for example for halloween I fixed the style to a black one some mess happen with the style, in particulare after replying to a post the original style reappears, I found that it's related to the UPI2DB mod, I turned it off but this is a bug
 



 
tormentorSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Questions 
 
tormentor wrote: [View Post]
-Same for the avatar, it was not shown and I can't find the option to show it so I had to phisycally remove the "something like" "show avatar" in the viewtopic template, the oprion is not in the control panel nor in the ACP

I can't understand what your problem is. Can you try to explain it again, by providing some link or examples?

tormentor wrote: [View Post]
-If I play with style, for example for halloween I fixed the style to a black one some mess happen with the style, in particulare after replying to a post the original style reappears, I found that it's related to the UPI2DB mod, I turned it off but this is a bug

I've never had this error.

Try to:
  • Set the default style using eXtreme Style ACP
  • Empty site cache
  • Empty your cookies

 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Questions 
 
Thank you for your reply, I've found what I was doing wrong in both cases, the second one can be defined a "bug" because if you force all the users on a style or if you delete a style that a user was using the fact that the information for the style are stored in a cookie make the connection impossible for the specified user unless he or she deletes the cookies.
 



 
tormentorSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Questions 
 
tormentor wrote: [View Post]
Thank you for your reply, I've found what I was doing wrong in both cases, the second one can be defined a "bug" because if you force all the users on a style or if you delete a style that a user was using the fact that the information for the style are stored in a cookie make the connection impossible for the specified user unless he or she deletes the cookies.

That should be avoided by an option I put in the template.php... are you getting this error in 058b?
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Questions 
 
I'll take a look at the template.php file, I should be using the latest release, I downloaded it 30 October if I'm not wrong. However I'm not used of this kind of mod that writes the information about the theme in the cookie and it really caused me a big headache because if you uninstall a style and then you reinstall it (or another one) the counter of the styles goes on so if the user is "pointed" to a style's number that doesn't exist anymore he or she has an error unless he or she deletes the cookie (or if the webmaster manually changes the style's number in the database   ). Or even if the style exists, if you force all the users on a specific style, when the browser makes use of the cookie (for example after writing a post) it turns back on the style selected by the user (or to the same error page that I mentioned above). If you want to test it it's simple: change your style to one different from the default one, make sure the cookie has been written then force all the users on the default style. When you post something if you'll be turned to the style you selected. It's not a real problem (for me) because I'm not intended to play with the styles anymore.


Mighty Gorgon wrote: [View Post]
tormentor wrote: [View Post]
Thank you for your reply, I've found what I was doing wrong in both cases, the second one can be defined a "bug" because if you force all the users on a style or if you delete a style that a user was using the fact that the information for the style are stored in a cookie make the connection impossible for the specified user unless he or she deletes the cookies.

That should be avoided by an option I put in the template.php... are you getting this error in 058b?

 



 
tormentorSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Questions 
 
You are right... I forgot to add another check...

Try this:

OPEN functions.php

FIND
Code: [Download] [Hide] [Select]
            if ( $theme = setup_style($style) )

REPLACE WITH
Code: [Download] [Hide] [Select]
            if ( $theme = setup_style($style, $old_style) )


FIND
Code: [Download] [Hide] [Select]
function setup_style($style)

REPLACE WITH
Code: [Download] [Hide] [Select]
function setup_style($style, $old_style = false)


FIND
Code: [Download] [Hide] [Select]
            if ( $style != $board_config['default_style'])
            {

REPLACE WITH
Code: [Download] [Hide] [Select]
            if ( ($style != $board_config['default_style']) || ($old_style != false) )
            {
                if ($old_style != false)
                {
                    $board_config['default_style'] = $old_style;
                }


This should definitely solve this issue.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Questions 
 
I made it, checked it twice but still:


Critical Error

Could not update user theme info

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' at line 3
 



 
tormentorSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Questions 
 
Now I should really have solved it!

I have added a function in functions.php

Code: [Download] [Hide] [Select]
function check_style_exists($style_id)
{
    global $db, $board_config, $template, $images, $phpbb_root_path;
    global $phpEx, $themes_style;

    if ( defined('CACHE_THEMES') )
    {
        include( $phpbb_root_path . './includes/def_themes.' . $phpEx );
        if ( empty($themes_style) )
        {
            cache_themes();
            @include( $phpbb_root_path . './includes/def_themes.' . $phpEx );
        }
    }
    if ( !empty($themes_style[$style_id]) )
    {
        $stile_exists = true;
    }
    else
    {
        $sql = 'SELECT *
            FROM ' . THEMES_TABLE . '
            WHERE themes_id = ' . (int) $style;
        if ( !($result = $db->sql_query($sql, false, true)) )
        {
            message_die(CRITICAL_ERROR, 'Could not query database for theme info');
        }

        if ( !($row = $db->sql_fetchrow($result)) )
        {
            $stile_exists = false;
        }
        else
        {
            $stile_exists = true;
        }
    }

    return $stile_exists;
}


And added a new check in common.php if the user is trying to change its template:

FIND
Code: [Download] [Hide] [Select]
        $board_config['default_style'] = ($board_config['default_style'] == 0) ? $old_style : $board_config['default_style'];


REPLACE WITH
Code: [Download] [Hide] [Select]
        $board_config['default_style'] = (check_style_exists($board_config['default_style']) == false) ? $old_style : $board_config['default_style'];


Let me know if this time it is working as expected!
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Questions 
 
It can't work (or it can't work in my installation), I've not that original line of code in common.php ("old_style" there isn't on the original file)  and in the first mod there is nothing about common.php, only changes in functions.php, you should have forgot something to change in common.php in the first try. I'll look forward  
 



 
tormentorSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Questions 
 
Ok... this should teach me to not try solving problems on the fly... I hope it won't happen again.

I'm working on the new project and I have inserted code everywhere... I think that 80% of XS files have something different respect to 058, so I'll stop to provide minor fixes on the fly, because most of them won't work as expected on 058, and I don't want to complicate users' life.

This bug should be solved in the new project, and until a public beta will be out, you have to trust me...


Thank you for your time, and sorry for having provided a wrong fix.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Questions 
 
MG, I made all, the only thing missing is the code to change in common.php , from the original file, you simply forgot to write it in the post
 



 
tormentorSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Questions 
 
tormentor wrote: [View Post]
MG, I made all, the only thing missing is the code to change in common.php , from the original file, you simply forgot to write it in the post

The problem is different... I'm working on a version which is now too different from 058b...

It is fixed here on this site, and you'll have this fixed in the new project.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Questions 
 
The problem is still there on the beta, just a reminder
 



 
tormentorSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Questions 
 
tormentor wrote: [View Post]
The problem is still there on the beta, just a reminder

Do you have a link of the error on this site?

Or... Can you provide me a way on how to replicate it on a clean installation?

I thought I have fixed it, and I cannot replicate the error here...
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Questions 
 
That's simple: Add a theme to the board. Choose it with another browser and nickname, now with the browser that you use to go to the ACP, go there and delete the theme. Now try to connect to the site with the test nickname (you could do it with your main browser and admin nickname but it will be more difficult to go in the site). The error is something like "Could not get data for theme id []".
 



 
tormentorSend private messageVisit poster's website  
Back to topPage bottom
Post new topic  This topic is locked: you cannot edit posts or make replies.  Page 1 of 2
Goto page 1, 2  Next


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events