|
Page 3 of 3
|
hpl 
Joined: August 2006
Posts: 302
Location:  Trieste
|
 Re: BlogMod For XS2
can you do in portal to change languages
ACP>configuration>XS
ok
|
#31 Thu 26 Oct, 2006 00:32 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
difus 
Joined: August 2006
Posts: 763
Location:
|
 Re: BlogMod For XS2
I'm getting SQL error
|
#32 Thu 26 Oct, 2006 00:34 |
|
hpl 
Joined: August 2006
Posts: 302
Location:  Trieste
|
 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 :
- // Quote variable to make safe
- function quote_smart($value)
- {
- $value = "'" . mysql_real_escape_string($value) . "'";
- return $value;
- }
-
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 :
- post_username = '" . str_replace("'", "''", $username) . "'
-
becomes
- post_username = " . quote_smart($username) . "
-
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 - $preview_message = stripslashes(prepare_message(addslashes(unprepare_message($message)), $html_on, $bbcode_on, $smilies_on, $bbcode_uid));
-
(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"?
|
#33 Thu 26 Oct, 2006 02:49 |
|
difus 
Joined: August 2006
Posts: 763
Location:
|
 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]
|
#34 Thu 26 Oct, 2006 07:53 |
|
difus 
Joined: August 2006
Posts: 763
Location:
|
 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
Description: |
|
 Download |
Filename: |
weblog_hpl.rar |
Filesize: |
260.77 KB |
Downloaded: |
143 Time(s) |
|
#35 Thu 26 Oct, 2006 08:20 |
|
hpl 
Joined: August 2006
Posts: 302
Location:  Trieste
|
 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
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
|
#36 Thu 26 Oct, 2006 14:54 |
|
difus 
Joined: August 2006
Posts: 763
Location:
|
 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
|
#37 Thu 26 Oct, 2006 15:32 |
|
hpl 
Joined: August 2006
Posts: 302
Location:  Trieste
|
 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?
|
#38 Thu 26 Oct, 2006 16:57 |
|
difus 
Joined: August 2006
Posts: 763
Location:
|
 Re: BlogMod For XS2
go to ACP >amod+ admin>db adjustments click fresh install
|
#39 Thu 26 Oct, 2006 17:08 |
|
hpl 
Joined: August 2006
Posts: 302
Location:  Trieste
|
 Re: BlogMod For XS2
|
#40 Thu 26 Oct, 2006 17:18 |
|
difus 
Joined: August 2006
Posts: 763
Location:
|
 Re: BlogMod For XS2
why I can't see the blog ?
|
#41 Thu 26 Oct, 2006 17:31 |
|
hpl 
Joined: August 2006
Posts: 302
Location:  Trieste
|
 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....
|
#42 Thu 26 Oct, 2006 17:44 |
|
hpl 
Joined: August 2006
Posts: 302
Location:  Trieste
|
 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...
|
#43 Thu 26 Oct, 2006 19:07 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 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
|
#44 Sun 29 Oct, 2006 11:47 |
|
|
Page 3 of 3
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
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
|
|
|
|