News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Convert any blog to SMF forum - using the wpsmf plugin

Started by sharks, June 21, 2010, 12:26:34 PM

Previous topic - Next topic

jferreira

#20
@roco i have to say...good job!

btw im SchattenMann ^^ i just don't know ho the hell registered my nick first...

roco

Hi SchattenMann :)

Sorry about Your Nick.., You know this is verry nice Nick ;)

You have a great understanding of the mechanisms SMF and WordPress I think so..
And who better undersud Your Great Plugin?, I think.. only You..

Can you think of my tips to deploy the plugin? It's needed thinks.
I have a strong need to extend the functionality of the plugin.
This is not my fad I think it's serious proposals for this plugin.
Actually, the proposal for you, while it is my request to you to extend the possibility of the Great Plugin. Please :)

I want to say - thank you, nice to finally meet in the topic, author of the plugin WPSMF

Best Regards :)
roco

sharks

Hey SchattenMann.. erm, i mean  jferreira :) It's great to finally see you manage some time out of developing to check this thread out here. As you can see, many people on this forum are very interested in your WPSMF plugin. This topic has been read over 2769 times!!
Unfortunately my skills and understanding of your nice plugin is limited. roco has done a great job with providing assistance to those who are using the WPSMF plugin, but i also think that it would be best to receive feedback directly from the plugin's creator, you!

By the way, i would like to report a minor thing (not a bug, but it makes things complicated) about the converted posts from WP to SMF. All the converted SMF posts use HTML instead of BBC tags. Can you fix this? HTML is complicated for most of us. BBC tags are much easier to read and edit quickly without inserting any code errors in the process.

Thanks again for your work, and welcome to the official SMF forum! ;)

jferreira

Hey sharks

at first i tried to convert html to bbcode but its virtual impossible to do it bug free!

theres dozens of tags and to make things worst users may be using diferent WP plugins with a lot options...

so im not able to do a proper convertion!

sharks

For whatever this idea is worth... In SMF 2.0, there is the WYSIWYG editor, which allows copy and paste of any post (in this case, try it with a Wordpress post) and the result is that post appears identically but with BBC tags! Is it possible to use that method to convert all posts to use BBC tags in an SMF post? Just wondering...

Nao 尚

#25
Probably could, yeah. I think the code is in Subs-Editor.php. There's an entire and very complex html_to_bbc() function, but of course it only works on tags that SMF understands.

An alternative could be to simply use html tags around the post. Of course, it only works if either (1) the blog author is the author, (2) or the admin enabled use of the html tag for everyone.
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.


roco

And I think that would not go so easily...
To accomplish this, it would parse html content from Wordpres BBCode to form intelligible to SMF.
The whole process would take place in a "fly". But we all know how the CPU load causes by WordPress.
Parsing the code makes it particularly hard.

Of course, you can write a script or framwerk or php class or anoder,
but to do good and thoughtful way - perhaps 10 men + 1 month of hard work with the code = can by maby ..?

Let us not forget that bloggers put in posts, different things .. For example, Flash, JavaScript, jQuery often, various galleries, or code. etc
Of course, in this case, when the script encounters just such a case, it should move the contents of the post in html tags.

This example Wordpres post with html tags code eg like this, (so this is flash in post on WP):

       <div class="win_out">
          <div class="win_in">
            <div class="win_post">
             
<script type="text/javascript">
var flashvars = {};
flashvars.playOnStart = "false";
flashvars.startVolume = "70";
flashvars.autoHideOther = "false";
flashvars.autoHideVideoControls = "false";
flashvars.onStartShowControls = "true";
flashvars.fullVideoScale = "true";
flashvars.showPlayButton = "true";
flashvars.share = "false";
flashvars.MediaLink2 = "http://www.youtube.com/watch?v=RiriqhUT_Wc";
flashvars.image = "http://localhost/wp/wp-content/plugins/youtube-with-style/lib/img.php?v=RiriqhUT_Wc";
var params = {};
params.bgcolor = "#000000";
params.allowfullscreen = "true";
params.wmode = "opaque";
var attributes = {};
attributes.id = "myplayer";
swfobject.embedSWF("http://localhost/wp/wp-content/plugins/youtube-with-style/lib/player.swf", "myAlternativeContent", "460", "310", "9.0.0", false, flashvars, params, attributes);
</script> <div id="myAlternativeContent">blah</div>
<p>and ass..</p>

            </div>



And how you want to parse such code? You do not even help a great Mod AEVA, I don't think so..

I suggest this item to set the end of the list ..
Otherwise we can maby wait a long time to update.

In my humble opinion, certainly it is essential that the post was under (on the SMF), date of Art and a link back to Article I is a need for SEO, and so as not to offend Ms. Goooo*

It is very important, I think, is that the date of the post Wordpres was the same as a post SMF and it is more interesting problem, and yet more necessary thing.

Of course, it is worth to the Config was able to enable / disable these features.
Maybe would have been nice if you can change the date format yourself? Prior to export?

btw. I inadvertently exported the comment, but the post prior to export.
Well, was created a new Topic with the name of a post from WP hmm
I wonder now what will happen when I will export this post?
hehe I still have not tested..

You should simplify it, for example, you can use all the finished tips in this topic.
And You should maby update your Plugin to make, from what is already ok.

You do not want there to write, for example, something that has replied @roco,
Please, use all the tips and tricks - to improve your plugin and let the people update.


BTW. if anyone has an idea what needs to be done in code,
- To date posts from WP and Topics from the SMF were the same?

Good luck with the development of Your Plugin ;)

Regards :)
roco

jferreira

hey there
as you can see i have done nothing in the last weeks...
my car just broke and im totally screw at the time so i have to dedicate my time to get some extra money...

sry bout that and hope i can publish something sooner

Rudy64

I have a small laundry list of issues I've found with the plugin, but I have one simple idea for the HTML/BBCode issue:  just give us an option to send posts over to SMF in plain text.  It is easier to "fix up" a forum post with a few highlights rather than have to remove a lot of HTML codes.  In fact, most of our posts are 99% text anyway.

I can list the other issues over at wp.org [nofollow]...they could be settings I'm overlooking, or minor things I could change myself in the code.

forumnepali

I am sure you have heard this a million times, but I am getting this error in WordPress when I go into the options:

smf not found! Please set smf local path before creating or updating posts

This is a fairly easy thing, mine is /home/crusader/public_html/forum - but I still keep getting an error.

Any ideas?

My forum Version is r3

Thanks!

protagonist

This plugin is missing one thing that would make it perfect.

Displaying SMF thread replies in the Wordpress post would make it a true comment system replacement.

Or at the very least, displaying the number of replies in the link to the forum. IE: "Comments (6) have been left on our forum"

I'd buy a beer for whoever can make that happen. :D

sharks

Quote from: protagonist on September 29, 2010, 10:03:47 AM
This plugin is missing one thing that would make it perfect.

Displaying SMF thread replies in the Wordpress post would make it a true comment system replacement.

Or at the very least, displaying the number of replies in the link to the forum. IE: "Comments (6) have been left on our forum"

I'd buy a beer for whoever can make that happen. :D

jferreira is the official developer of that plugin, so i suggest you take it up to him if you want anything done fast. :)
His profile link: http://www.simplemachines.org/community/index.php?action=profile;u=250544

forumnepali

Quote from: forumnepali on September 27, 2010, 11:18:58 AM
I am sure you have heard this a million times, but I am getting this error in WordPress when I go into the options:

smf not found! Please set smf local path before creating or updating posts

This is a fairly easy thing, mine is /home/crusader/public_html/forum - but I still keep getting an error.

Any ideas?

My forum Version is r3

Thanks!

Bump please reply me

protagonist

Quote from: forumnepali on September 27, 2010, 11:18:58 AM
I am sure you have heard this a million times, but I am getting this error in WordPress when I go into the options:

smf not found! Please set smf local path before creating or updating posts

This is a fairly easy thing, mine is /home/crusader/public_html/forum - but I still keep getting an error.

Any ideas?

My forum Version is r3

Thanks!

There's a line underneath that says "relative to:"

It's looking for the path to your forum relative to that directory. Not an absolute path. You may have to create a symlink.

jaisi

Thank you for replying how to create  that path please guide me Step to step i have tryed many times but i'am failed so please help me how to create  that path.

Thank in advance

Forbs


jaisi

could someone make for me please. i'am waiting here

jaisi

i have seccefully connect with SMF Now i'am getiing this Erorr

An Error Has Occurred!
Wrong value type sent to the database. Integer expected. (id_board)

please help me

sharks

jaisi, no need to repeat your question so many times! :) unfortunately, many of us are not online all the time to check on help requests.

i try will to help you with, as i have done this many months ago for my own SMF 2.0 RC3 (that's the only version that it works with. So first make sure that you have upgraded to the latest RC3).
The board id refers to the id number of the board where you want all the blog posts to be copied into. to find the board, just hover your mouse over your board name and you should be see the id in as part of the URL for that board in the status bar of your browser. enter that number in the WPSMF settings area.

Advertisement: