-

blog mod issues with seo rewrite

General phpBB3 Discussion
Forum rules
Support is not provided in this forum. Support topics will be locked on sight.

blog mod issues with seo rewrite

Postby superj707 » Fri Jul 09, 2010 4:16 am

Image

These links fail when I have SEO rewrites turned on in the ACP
superj707
Member
Member
 
Posts: 15
Joined: Sat Mar 14, 2009 4:30 pm
Blog: View Blog (1)

Re: blog mod issues with seo rewrite

Postby EXreaction » Fri Jul 09, 2010 8:34 pm

How do they fail?
Grateful for the mods I've built? Then donate!
User avatar
EXreaction
Site Owner
Site Owner
 
Posts: 4996
Joined: Wed Jun 28, 2006 5:08 pm
Blog: View Blog (53)

Re: blog mod issues with seo rewrite

Postby superj707 » Sat Jul 10, 2010 5:33 pm

error screen
superj707
Member
Member
 
Posts: 15
Joined: Sat Mar 14, 2009 4:30 pm
Blog: View Blog (1)

Re: blog mod issues with seo rewrite

Postby EXreaction » Sat Jul 10, 2010 6:50 pm

What is the error?
Grateful for the mods I've built? Then donate!
User avatar
EXreaction
Site Owner
Site Owner
 
Posts: 4996
Joined: Wed Jun 28, 2006 5:08 pm
Blog: View Blog (53)

Re: blog mod issues with seo rewrite

Postby superj707 » Sun Jul 11, 2010 11:39 am

General Error
SQL ERROR [ mysql4 ]

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 4 [1064]

SQL

SELECT blog_style FROM phpbb_blogs_users WHERE user_id =

BACKTRACE

FILE: includes/db/mysql.php
LINE: 174
CALL: dbal->sql_error()

FILE: blog.php
LINE: 250
CALL: dbal_mysql->sql_query()

FILE: blog.php
LINE: 384
CALL: style_is()

FILE: blog/view/blog.php
LINE: 53
CALL: include('blog.php')
superj707
Member
Member
 
Posts: 15
Joined: Sat Mar 14, 2009 4:30 pm
Blog: View Blog (1)

Re: blog mod issues with seo rewrite

Postby EXreaction » Sun Jul 11, 2010 1:22 pm

That file appears to be modified, which is probably what is causing errors.
Grateful for the mods I've built? Then donate!
User avatar
EXreaction
Site Owner
Site Owner
 
Posts: 4996
Joined: Wed Jun 28, 2006 5:08 pm
Blog: View Blog (53)

Re: blog mod issues with seo rewrite

Postby superj707 » Sun Jul 11, 2010 2:18 pm

why is that file not allowed to be modified in any way?



Code: Select all
function style_is($user_id)
{
      
      global $db;

      $sql = 'SELECT
            blog_style
            FROM '.phpbb_blogs_users.'
            WHERE user_id ='. $user_id;
      $result       = $db->sql_query($sql);

      $is_style      = $db->sql_fetchfield('blog_style');

      
      
      $db->sql_freeresult($result);
      return   $is_style;

}



that is the function I wrote that is causing the problem. This function along with it's template var
'BLOG_STYLE' => style_is($user_id),
allows me to hide the CSS text area box for styles that do not have a * and cannot use CSS
superj707
Member
Member
 
Posts: 15
Joined: Sat Mar 14, 2009 4:30 pm
Blog: View Blog (1)

Re: blog mod issues with seo rewrite

Postby EXreaction » Sun Jul 11, 2010 3:03 pm

It's an issue with the code you wrote, not the mod.
Grateful for the mods I've built? Then donate!
User avatar
EXreaction
Site Owner
Site Owner
 
Posts: 4996
Joined: Wed Jun 28, 2006 5:08 pm
Blog: View Blog (53)

Re: blog mod issues with seo rewrite

Postby superj707 » Sun Jul 11, 2010 4:58 pm

well my code is working great unless in SEO mode so it's good code.
superj707
Member
Member
 
Posts: 15
Joined: Sat Mar 14, 2009 4:30 pm
Blog: View Blog (1)


Return to phpBB3



Who is online

Users browsing this forum: No registered users and 2 guests

cron