Community Forum

User info

Welcome, Guest! Please login or register.


You are here » Community Forum » New Forum Features » Installing Blogs Script


Installing Blogs Script

Posts 1 to 7 of 7

Poll

Do you want this blog script will continue to be developed?
Yes

100% - 5
No

0% - 0
Votes: 5

1

I found this useful blogs script in russian forum .... This is still not perfect, but it can be used to install a system blogs on your forum.

http://sl.uploads.im/7fTOp.png
http://sm.uploads.im/4a80b.png
http://sj.uploads.im/G7rvu.png

How to Install?
Follow the blogs installation steps below carefully !!

:mybb:  The First Step
1. Create a special category with entitled @Blogs
2. Create a New Forum with entitled ex: Bloggers and find the ID number of the [Bloggers] forum.  ex: yourmybbsite/viewforum.php?id=2.

:mybb: The Second Step
Add this code to your Adminstrator panel --> Options --> HTML Header
NOTE: BLOG.fID   =2 -> change the id number into a number of the new Forum ID that you have created

Code:
<!-- Created by © Alex_63  HTML header -->
<script type="text/javascript">var BLOG = {};
// Settings//
BLOG.view  = [1,2,4] ; // Groups allowed to view blogs; 0 - all groups
BLOG.groups = [1,2,4] ; // Groups allowed to create blogs, 0 - all groups (except Guest)
BLOG.comment =0;    // Groups allowed to comment on entries; 0 - all groups (except Guest)
BLOG.fID   =2;    // ID Forum established to blogs
</script>
<style type="text/css">.category.BlogCat { display: none !important; }</style>
<link rel="stylesheet" type="text/css" href="http://forumfiles.ru/files/0016/f0/0a/72354.css" />
<script type="text/javascript" src="http://forumfiles.ru/files/0018/02/f4/93587.js"></script>
<!-- End js translated by http://bit.ly/TwitterName -->


Add this code to your Adminstrator panel --> Options --> HTML Footer

Code:
<!-- The system of blogs on the forum in HTML footer © Alex_63-->
<script type="text/javascript">
if(BLOG.view == 0 || $.inArray(GroupID,BLOG.view)!=-1){BLOG.setup();}
else if(BLOG.view!=0){(function() {
if(document.URL.indexOf('blogs.php')!=-1){$('#pun-main .info .container').html(BLOG.txterror);}
if($('#pun-index').length){$('.category h2>span:contains("@Blogs")').parents('.category').remove();}
if($('#pun-searchtopics').length){$('.tcl a:contains("·")').parents('tr').remove();}
if($('#pun-searchposts').length){$('.post h3>span>strong+a [href$="viewforum.php?id='+BLOG.fID+'"]').parents('.post').remove();}
}())}</script>


then SAVE.
If you have done all the steps correctly, then the blogs system already installed on your mybb forum site that can be accessed through the: /blogs.php....
Visit the Example Forum With Blog: http://bit.do/blogid

:mybb: The Third Step
Trials with creating a new blogposts. New entry will take a few minutes / hours to be indexed or displayed on the main page

NOTE:
This blog script needs to be developed. Still has many shortcomings, among them are:
->Messages in blog not are displayed in the results search on Forum. Respectively find that either under large numbers posts will be difficult.
->Blogposts can be set to be read by the public (You, forum member, and other people can read)...PROBLEM: I tried to share it via google plus but google+ can not read the address: /blogs.php?act=show&blog=ID. it can be caused by not using fancy url or for other reasons such as abnormal redirect system.

Hidden text:

To view hidden text please login or register.


Visit the Example Forum With Blog: http://bit.do/blogid

Last edited by kami (2017-04-26 22:19:06)

+1

2

kami
This is a good script indeed. Thank you for translation! :mybb:

+1

3

kami
Thank you for translation :)
I've found some mistakes in translation, for example, here:

$('#blogs').html('<div class="container" style="padding:1em;display:block!important;">The function of creating blogs is not connected.</div>');

"The function of creating blogs is not enabled" - would be better.

Some text is not translated to English:

$('.warntext>span').html('Просмотр комментария перед удалением');

kami wrote:

New entry will take a few minutes / hours to be indexed or displayed on the main page

The script works via the search system, so it takes 20-30 minutes for blog posts to be indexed.

kami wrote:

Messages in blog not are displayed in the results search on Forum. Respectively find that either under large numbers posts will be difficult.

Maybe I will try to make displaying of blog posts and comments in search results, but now they're hidden because of difficulty of parsing special parameters, which are set in that posts, so the code of script will be longer if I add this function.

kami wrote:

->Blogposts can be set to be read by the public (You, forum member, and other people can read)...PROBLEM: I tried to share it via google plus but google+ can not read the address: /blogs.php?act=show&blog=ID. it can be caused by not using fancy url or for other reasons such as abnormal redirect system.

There's no real page on address /blogs.php?*** , they are created via script, so the Google+ cannot display the page content. Unfortunately there's no way to fix it.

+1

4

Thanks for correction,,,

Alex_63 wrote:

Maybe I will try to make displaying of blog posts and comments in search results, but now they're hidden because of difficulty of parsing special parameters, which are set in that posts, so the code of script will be longer if I add this function.


I [WE] really hope if there are some new improvement on this mybb blogs scripts in particular relating to the forum search results can be posted here or announced to us

Alex_63 wrote:

There's no real page on address /blogs.php?*** , they are created via script, so the Google+ cannot display the page content. Unfortunately there's no way to fix it.

this is not good news.... but I still have hope if it can be like other blogs contents, facebook note, etc (other robots search engine can read the contents)... RSS ->> http://bit.ly/2oftzPf

0

5

kami
In the near future the blog script will not be updated, I've got lots of work to do and there is no time to re-write this script

0

6

Alex_63 wrote:

kami
In the near future the blog script will not be updated, I've got lots of work to do and there is no time to re-write this script

Just a hope, maybe you can fix the blog Css style so blog can be accessed via mobiling with better view just like if user access the normal forum topic via mobiling (Using Style by default)

0

7

kami
Maybe I'll try to do this. But not in the nearest future...

0


You are here » Community Forum » New Forum Features » Installing Blogs Script