News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

zCommunity 0.8.1 Beta Now available! (supports SMF 2.0 RC1 and 1.1.8)

Started by Charles Hill, June 16, 2008, 03:33:34 PM

Previous topic - Next topic

robbie93

hi charles,

I tried to edit the blog.php like you said but for some reason the file wont let you save edits in cpanel,  so,  I tried uninstalling the mod and reinstalling,  and noticed this.

1.  Execute Modification  ./index.php  Test successful
2. Execute Modification ./Sources/BoardIndex.php Test successful
3. Execute Modification ./Sources/Display.php Test successful
4. Execute Modification ./Sources/Load.php Test successful
5. Execute Modification ./Sources/ManageBoards.php Test successful
6. Execute Modification ./Sources/ManagePermissions.php Test successful
7. Execute Modification ./Sources/MessageIndex.php Test successful
8. Execute Modification ./Sources/Post.php Test successful
9. Execute Modification ./Sources/Profile.php Test successful
10. Execute Modification ./Sources/QueryString.php Test successful
11. Execute Modification ./Sources/Recent.php Test successful
12. Execute Modification ./Sources/RemoveTopic.php Test successful
13. Execute Modification ./Sources/SplitTopics.php Test successful
14. Execute Modification ./Sources/Subs-Boards.php Test successful
15. Execute Modification ./Sources/Subs-Post.php Test successful
16. Execute Modification ./Sources/Subs.php Test successful
17. Execute Modification ./Sources/Who.php Test successful
18. Execute Modification ./Themes/default/languages/index.english-utf8.php Test successful
19. Execute Modification ./Themes/default/languages/index.english.php Test successful
20. Execute Modification ./Themes/default/languages/index.english_british-utf8.php Test successful
21. Execute Modification ./Themes/default/languages/index.english_british.php Skipping file
22. Execute Modification ./Themes/default/index.template.php Test successful
23. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
24. Execute Modification ./Themes/default/Post.template.php Test successful
25. Execute Modification ./Themes/default/Profile.template.php Test successful
26. Execute Modification ./Themes/default/SendTopic.template.php Test successful
27. Execute Modification ./Themes/default/SplitTopics.template.php Test successful
28. Execute Modification ./Themes/default/style.css Test successful
29. Execute Modification ./Themes/default/TPBlockLayout.template.php Skipping file
30. Execute Code add_settings.php
31. Extract File ./Sources/Blog.php
32. Extract File ./Sources/BlogPlugins.php
33. Extract File ./Sources/BlogSettings.php
34. Extract File ./Themes/default/Blog.template.php
35. Extract File ./Themes/default/pngfix.js
36. Extract File ./Themes/default/languages/Blog.english.php
37. Extract File ./Themes/default/languages/Blog.english-utf8.php
38. Extract File ./Themes/default/languages/Blog.english_british.php
39. Extract File ./Themes/default/languages/Blog.english_british-utf8.php
40. Extract File ./Themes/default/images/mysteryperson.jpg
41. Extract File ./Themes/default/images/defaultAvatar.png
42. Extract File ./Themes/default/images/rss_horizontal.png
43. Extract File ./Themes/default/images/icons/arrow_down.gif
44. Extract File ./Themes/default/images/icons/arrow_left.gif
45. Extract File ./Themes/default/images/icons/arrow_up.gif
46. Extract File ./Themes/default/images/icons/arrow_right.gif
47. Extract File ./Themes/default/images/icons/CategoryIcon.gif
48. Extract File ./Themes/default/images/icons/del.icio.us.gif
49. Extract File ./Themes/default/images/icons/delete_icon_16.gif
50. Extract File ./Themes/default/images/icons/digg_icon.gif
51. Extract File ./Themes/default/images/icons/edit_16.gif
52. Extract File ./Themes/default/images/icons/envelope_icon.gif
53. Extract File ./Themes/default/images/icons/exclamation_icon.gif
54. Extract File ./Themes/default/images/icons/failure_icon.gif
55. Extract File ./Themes/default/images/icons/furl_icon.gif
56. Extract File ./Themes/default/images/icons/globe_icon_16.gif
57. Extract File ./Themes/default/images/icons/icon_ip.gif
58. Extract File ./Themes/default/images/icons/icon_success.gif
59. Extract File ./Themes/default/images/icons/little_remove_icon.gif
60. Extract File ./Themes/default/images/icons/lock_icon_16.gif
61. Extract File ./Themes/default/images/icons/medium_rss_icon.png
62. Extract File ./Themes/default/images/icons/moveicon_16.gif
63. Extract File ./Themes/default/images/icons/preview_icon_16.gif
64. Extract File ./Themes/default/images/icons/print_icon_16.gif
65. Extract File ./Themes/default/images/icons/QuestionIcon.gif
66. Extract File ./Themes/default/images/icons/split_icon.gif
67. Extract File ./Themes/default/images/icons/stumbleupon_icon.gif
68. Extract File ./Themes/default/images/icons/tag_icon.gif
69. Extract File ./Themes/default/images/icons/technorati_icon.gif
70. Extract File ./Themes/default/images/icons/blinklist_icon.png
71. Extract File ./Themes/default/images/icons/facebook_icon.png
72. Extract File ./Themes/default/images/icons/windowslive_icon.png
73. Extract File ./Themes/default/images/icons/myweb_icon.png
74. Extract File ./Themes/default/images/icons/magnolia_icon.png
75. Extract File ./Themes/default/images/icons/mixx_icon.png
76. Extract File ./Themes/default/images/icons/google_icon.png
77. Extract File ./Themes/default/images/icons/twitter_icon.png
78. Extract File ./Themes/default/images/icons/reddit_icon.png
79. Extract File ./Themes/default/images/blogCatalog_button2.gif
80. Extract File ./Themes/default/images/blogCatalog_button3.gif
81. Extract File ./Themes/default/images/bbc/float.gif

Smoky "Rider" Blue

#401
Charles..

i have a few errors.. not sure where they are coming from.. perhaps you could check..

8: Undefined index: rss_feed
File: /home/lisa2/public_html/test/Themes/default/languages/Blog.english.php (manageBlogs sub template - eval?)
Line: 1708

8: Undefined index: can_poll_view
File: /home/lisa2/public_html/test/Sources/BlogSettings.php
Line: 435


if you need access to this, if you could, give me a few hours, as this is a test site for a client of mine and i am in the process of moving it to his site today.. will be glad to send you a demo pass, etc.,

EDIT: and the polls dont show on the blog..
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Smoky "Rider" Blue

Quote from: robbie93 on September 14, 2008, 11:53:31 AM
hi charles,

I tried to edit the blog.php like you said but for some reason the file wont let you save edits in cpanel,  so,  I tried uninstalling the mod and reinstalling,  and noticed this.

looks like you had no problem installing robbie..

are you using notpad++ to edit your files?? you need to take the blog.pp file down, add the edits (or check them) like that link that Charles pointed you to:

http://www.simplemachines.org/community/index.php?topic=244848.msg1706511#msg1706511

and then re upload the file from your desktop via ftp to the file it came out of.. this isnt a cpanel edit Robbie.. ;)
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Kindred

also, it should be noted that uninstalling/reinstalling is usually the WORST thing your can do.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

robbie93

hi smoky ;D

I usually edit files from cpanel I havent even heard of notebokk ++  :-[

but on this occassion the file blog.php had no option to save all edits,  so i couldnt do it :'(

have you got link for the notebook download  :D

thanks for you're helpys  8)


Smoky "Rider" Blue

notepad link here you didnt say if youwere on windows or?? but if this wont work they have a version out for mac as well.. never ever use just notepad, use the notepad++ or other text editor..

alos, i use coreftp light, its free, and good  ;)
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Furqon

Hello .. its me again

Is there any methode to redirect/replace  index forum to index blog ?

Thanks

robbie93

thanks for the link smoky,  I downloaded notepad++ and edited the required files :D

I am now getting these errors  :-[

when i click on one members blog and then there blog control panel I get this error

An Error Has Occurred!
Hey! Get down from there!

also the same members avatar has mysteriously changed by itself  :o form the avatar they used to an iceberg       any ideas ???


Smoky "Rider" Blue

did you go over your edits you made?? check to make sure you didnt put a " . " in the wrong place ;)

sometimes that does happen..
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Charles Hill

@ SmokyBlue...  Undefined index errors mean that a variable is being used that hasn't been set yet.  rss_feed is a txt variable.  Most likely you're just missing this variable in your Blog language file.  can_poll_view is a context variable.  It is a context variable.  It should only be used if viewing the blog control panel... Maybe your BlogSettings.php.  Make sure you can find the following in the blogControlPanel2 function in Blog.php:
'can_poll_view' => 'poll_view',


@robbie93... If you are getting the following message:
An Error Has Occurred!
Hey! Get down from there!

That means you are both not the blog owner and not an admin.  You have to be an admin to view other users' blogs...  If you are an admin and are getting that message, there is something wrong with your Blog.php.

Smoky "Rider" Blue

Thanks Charles, will check it out.. if i get it cleared will say how ;)

i do think i got the rss fixed tho  O:) lol will check tomorrow... had too much stuff to do today..
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Sudhakar Arjunan

Hi Charles,

I have posted this topic in the drafts page. Earlier i was replying to drafts mod. Then i had typed everything and posted in drafts mod itself.

Waiting for reply here, and found my post is not found, so i went to my post and checked that i have posted in drafts mod.

-----------------------------------

Here is my question, before that i will let you know that, am a php developer and i know how to edit but still i would like you to edit and change it. Since i had already faced lots and lots of error log because of SMF . But now its safe and i want to modify and patch blog mod without any error .

------------------------------------

Hi Charles, I have tried to install 2.0.2 beta in my smf 1.1.6

Noted two error test failed fails.

11.   Execute Modification   ./Sources/Recent.php   Test failed
22.   Execute Modification   ./Themes/default/index.template.php   Test failed

Used the parser to manually check the files and found these simple errors,

In Default/Index.template.php file,

Find : <meta name="description" content="', $context['page_title'], '"

Present in my file as :    <meta name="description" content="', $context['page_title'], (!empty($context['description']) ? ' - '. $context['description'] : '') , '" />', empty($context['robot_no_index']) ? '' : '

So that gives me a issue.

In Source/Recent.php file,

Find : WHERE ml.ID_MSG = b.ID_LAST_MSG" .

Present in my file as : WHERE ml.ID_MSG = b.ID_LAST_MSG" . (!empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0 ? "

Find : WHERE b.ID_CAT IN (" . implode(', ', $_REQUEST['c']) . ")

Present in two lines : Line 237 & Line 1375 So conflict occurs

Give me a solution for the above errors.

I have attached the index.template file and recent file.

Kindly help me to modify it, i will install with errors and then replace the edited file charles.

Help me with the felblog conversion tool also.  :)
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Charles Hill

Have you considered making a dev subdomain with the same files as your live site?  That way you can make edits and test them before uploading changes to your live site.... can avoid a lot of problems that way.  And can increase your user base's confidence in you.

I would really prefer not to get into making manual edits for anyone as my time is extremely scarce already....

Sudhakar Arjunan

Ok Charles, thats right . Everyone's time is precious.

I will try it myself. But you check the lines i have mentioned and then give me a manual changes required for those quoted lines only.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

robbie93

yeah charles,  I edited the files in blog.php and then started getting this message when trying to view a members blog as admin

An Error Has Occurred!
Hey! Get down from there!

any idea how to fix?   also why did the members avatar change?  when the member didnt change it ?

Charles Hill

Well it uses the defaultAvatar.png as the avatar for a board if the blog owner's avatar was not found... That is a highly complex feature and it may have some minor bugs.  Are you sure those users have avatars?

What did you modify in the Blog.php?

robbie93

yep the user added an avatar of there own then made a blog,  I saw the avatar he used,  then for some reason the avatar switched only in the blog section to that of an iceberg.

in blog.php I edited the fix for the database error that you showed me,  thats when I started getting this

An Error Has Occurred!
Hey! Get down from there!

Charles Hill

#417
Uh.... the fix I gave was for the Blog() function... you are getting the "Hey! Get down from there!" message when attempting to view someone's blog control panel yes?  The blog control panel is handled by the function blogControlPanel2()


Ya I'll have to run some more tests on the avatar on blog index feature... I'll be working a lot with attachments/avatars/file/downloads for the store front I am building and for an additional couple features in the Blog Community mod.  So hopefully I'll figure out what the problem is.

robbie93

before the fix I was getting this error

Database Error: 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 ')
ORDER BY b.blogViews DESC
LIMIT 0, 20' at line 7
File: /home/****/public_html/Sources/Blog.php
Line: 724

then after the fix in Blog.php I got this error "Hey! Get down from there!"

plus the error with the avatar :D




Smoky "Rider" Blue

same error here Charles:

Database Error: 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 ')
ORDER BY b.blogViews DESC
LIMIT 0, 20' at line 7
File: /hsphere/local/home/dmeceo99/dangerousmindz.com/forum/Sources/Blog.php
Line: 724


not sure but this is php4, smf 1.1.6, tp 1.05

list of mods:

   Mod Name     Version     
1.    SMF Gallery Lite    1.9    [ Uninstall ] [ List Files ] [ Delete ]
2.    SMF Arcade    2.0.15    [ Uninstall ] [ List Files ] [ Delete ]
3.    User Email System    1.3    [ Uninstall ] [ List Files ] [ Delete ]
4.    Reason For Editing Mod    1.14    [ Uninstall ] [ List Files ] [ Delete ]
5.    SMF Classifieds    1.1.5    [ Uninstall ] [ List Files ] [ Delete ]
6.    Ad Managment    2.3    [ Uninstall ] [ List Files ] [ Delete ]
7.    AvatarSelect    1.1.2    [ Uninstall ] [ List Files ] [ Delete ]
8.    SMF Trader System    1.2    [ Uninstall ] [ List Files ] [ Delete ]
9.    SMFShop    3.0    [ Uninstall ] [ List Files ] [ Delete ]
10.    TinyPortal    1.052    [ Uninstall ] [ List Files ] [ Delete ]
11.    Logo redirect    0.1    [ Uninstall ] [ List Files ] [ Delete ]
12.    Auto Embed Video/Audio Clips    3.1.2    [ Uninstall ] [ List Files ] [ Delete ]
13.    SMF Links    1.6.7    [ Uninstall ] [ List Files ] [ Delete ]
14.    SMF Staff Page    1.5.1    [ Uninstall ] [ List Files ] [ Delete ]
15.    Blog Community (for 1.1.x)    2.0.2    [ Uninstall ] [ List Files ] [ Delete ]
16.    Karma Description Mod    2.3    [ Uninstall ] [ List Files ] [ Delete ]
17.    Save PM as HTML    1.0.6    [ Uninstall ] [ List Files ] [ Delete ]
18.    Order Stickied Topics    1.01    [ Uninstall ] [ List Files ] [ Delete ]
19.    SMF Media Gallery    1.0    [ Uninstall ] [ List Files ] [ Delete ]
20.    Treasury    2.30    [ Uninstall ] [ List Files ] [ Delete ]
21.    Skype Integration    1.0    [ Uninstall ] [ List Files ] [ Delete ]
22.    MySpace Field    2.4    [ Uninstall ] [ List Files ] [ Delete ]

just noticed that, but again, i will dig a bit deeper tomorrow..
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Advertisement: