Icy Phoenix

     
 


Post new topic  This topic is locked: you cannot edit posts or make replies. 
Page 3 of 3
Goto page Previous  1, 2, 3
 
Reply with quote Download Post 
Post Re: BlogMod For XS2 
 
difus wrote: [View Post]
can you do in portal to change languages
ACP>configuration>XS


ok
 



 
hplSend 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: BlogMod For XS2 
 
I'm getting SQL error
 




____________
*VOLVO CLUB*
 
difusSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: BlogMod For XS2 
 
I found this solution:

http://www.theblogmod.com/community...+entry+database

but I must to do this:

Quote:
1/ Change all str_replace in SQL queries In order to do that, I added a function in functions_weblog.php :
Code: [Download] [Hide]
  1. // Quote variable to make safe  
  2. function quote_smart($value)  
  3. {  
  4.    $value = "'" . mysql_real_escape_string($value) . "'";  
  5.    return $value;  
  6. }  
  7.  


each time a str_replace is called in a SQL query INSERT or UPDATE, the str_replace has to be replaced with quote_smart($value).

Example :
Code: [Download] [Hide]
  1. post_username = '" . str_replace("'", "''", $username) . "'  
  2.  


becomes
Code: [Download] [Hide]
  1. post_username = " . quote_smart($username) . "  
  2.  


NOTE that the "quotes" before and after the str_replace have been removed. That is because quote_smart already adds the quotes.

2/ remove all call to "stripslashes" EXCEPT in
Code: [Download] [Hide]
  1. $preview_message = stripslashes(prepare_message(addslashes(unprepare_message($message)), $html_on, $bbcode_on, $smilies_on, $bbcode_uid));  
  2.  

(in weblog_posting.php)


I thy to change the function "str_replace" to "quote_smart" and the BlogMoD work with ' ...


why doesn't work with function "str_replace"?
 



 
hplSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: BlogMod For XS2 
 
I think it is not a good solution, but it must work
it is depending of server configuration [magic quotes enabled]
 




____________
*VOLVO CLUB*
 
difusSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: BlogMod For XS2 
 
for right work and security,if you are not tired , do backup of your root and
try to replace these files

weblog_hpl.rar
Description:  
Download
Filename: weblog_hpl.rar
Filesize: 260.77 KB
Downloaded: 143 Time(s)

 




____________
*VOLVO CLUB*
 
difusSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: BlogMod For XS2 
 
difus wrote: [View Post]
for right work and security,if you are not tired , do backup of your root and
try to replace these files


Quote:
Could not insert entry into database

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 '5d66167146', -1, -1, '', 1161867198, 1, 1, 0, 0, 0, 2, 2, '')' at line 2

INSERT INTO phpbb_weblog_entries (entry_id, weblog_id, entry_access, entry_subject, entry_text, bbcode_uid, entry_mood, entry_currently, currently_text, entry_time, enable_bbcode, enable_smilies, enable_html, memorable, no_replies, entry_last_post_userid, entry_poster_id, category) VALUES (19, 1, 0, 'hfg', 'hrty'', '5d66167146', -1, -1, '', 1161867198, 1, 1, 0, 0, 0, 2, 2, '')

Line : 598
File : /var/www/vhosts/ilsitodellagiungla.it/httpdocs/forum_test/weblog_posting.php


       
 



 
hplSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: BlogMod For XS2 
 
no ideas  

create one more test forum and install my release
if it goes down , then I'll be sure that problem is your hosting
 




____________
*VOLVO CLUB*
 
difusSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: BlogMod For XS2 
 
LOL

I try your relase ---> http://www.ilsitodellagiungla.it/forum_difus/forum.php

and the ' doesn't work in Blog and doesn't work in forum...for example if I try to post:

Quote:
Could not obtain post/user information.

DEBUG MODE

SQL Error : 1054 Unknown column 'u.user_trophies' in 'field list'

SELECT u.user_trophies, u.ina_char_name, u.username, u.user_id, u.user_posts, u.user_from, u.user_weblog, u.user_from_flag, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_skype, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_rank2, u.user_rank3, u.user_rank4, u.user_rank5, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, u.ct_miserable_user, u.user_allow_viewonline, u.user_session_time, u.user_warnings, u.user_level, u.user_birthday, u.user_next_birthday_greeting, u.user_gender, u.user_personal_pics_count, u.user_style, u.user_lang, p.*, pt.post_text, pt.post_text_compiled, pt.post_subject, pt.bbcode_uid, u.karma_plus, u.karma_minus, pt.edit_notes, t.topic_poster, t.title_compl_infos FROM phpbb_posts p, phpbb_users u, phpbb_posts_text pt, phpbb_topics t WHERE p.topic_id = 3 AND t.topic_id = p.topic_id AND pt.post_id = p.post_id AND u.user_id = p.poster_id ORDER BY p.post_time ASC LIMIT 0, 15

Line : 759
File : viewtopic.php


but in my forum the ' work...where is the bug?
 



 
hplSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: BlogMod For XS2 
 

go to ACP >amod+ admin>db adjustments  click fresh install
 




____________
*VOLVO CLUB*
 
difusSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: BlogMod For XS2 
 
ok now ' work in forum...but doesn't work in blog....        
 



 
hplSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: BlogMod For XS2 
 
why I can't see the blog ?
 




____________
*VOLVO CLUB*
 
difusSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: BlogMod For XS2 
 
NEWS

1) see this: http://www.ilsitodellagiungla.it/fo...g_entry.php?e=4

-------> I'm hpl work...but I writed --> I''m hpl (with 2 ' )

If you write two ' , the blog work with one ' ....

2) the ' work on shoutbox of weblog....
 



 
hplSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: BlogMod For XS2 
 
GOOD

we have found the problem: the blogmod work only if magic_quotes_gpc is ON in php        

thank difus for support...
 



 
hplSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [Solved] BlogMod For XS2 problem 
 
Another DIFUS great job.

Thanks my friend.
 




____________
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
Post new topic  This topic is locked: you cannot edit posts or make replies.  Page 3 of 3
Goto page Previous  1, 2, 3


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


  

 

  cron