We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
  • Pages:
  • 1
Extra Blogging Options (+Post count, +Board Feed)
Topic Started: Sep 1 2010, 07:40 PM (3,987 Views)
Viral
Member Avatar
Viral
[ *  *  *  *  *  * ]
What This Does: This modification increases users post counts by 1 when making a new entry or commenting on an existing blog entry. Not only that, but it adds the action to the board feed to alert other users that you have commented/ made a new entry. You are able to select which groups get the incremented post count and board feed update as well.
Preview: http://s1.zetaboards.com/ViralCodes/blog/main/842/ - http://s1.zetaboards.com/ViralCodes/stats/feed
Browsers: Should work in all, tested in firefox 3.
Installation:
1 - Go to your ACP and create a new forum (ACP >> Forum Sections >> Create Sections)
2 - Click the first option, Normal Forum
3 - Call it whatever you want, but make sure Posts count towards a user's personal count: is set to yes.
For the Forum Permissions, it gets a bit complicated. For now, set it so staff can view, read, start and reply. Then if you want any other group to get the incremented post count and board feed update, set it so they can read and reply. They must not be able to view/start/upload in the forum.
4 - Go back to the board, find the newly created forum and make a note of the forum ID. This will be found in the address bar when you go to the forum. For example if it is http://s1.zetaboards.com/ViralCodes/forum/7361/, the forum ID are the numbers at the end, in this case 7361.
5 - Create a new topic, call it whatever you want, and the post can be whatever you want.
6 - Make a note of the topic ID. This is the number after /topic/ in the address bar when viewing the topic. For example, if the topic is http://s1.zetaboards.com/ViralCodes/topic/3751901/2/#new, then the topic ID is 3751901.
7 - Go back to the ACP and change the forum permissions of the forum you made. Set it so staff cannot view//start/upload in the forum any more. The only boxes that should be ticked are reply and read, and that should only be for groups which are using this feature.
8 - Add the following code to your forum (ACP >> Themes >> Board Template >> JavaScripts)
Code:
 
<script type='text/javascript' src='http://z3.ifrm.com/313/104/0/p312803/zeta_cookie.js'></script>

9 - Add the following code to your forum (ACP >> Themes >> Board Template >> Below the Board)
Code:
 
<script type="text/javascript">
//<![CDATA[
// blogging options by Viral of http://victoryroad.zetabin.com
var blogged = {
forum : 7361,
topic : 3751901,
ini : function(){
if(location.href.match(/\/blog\/3\/\d+\/?$/)){
zeta_cookie.del("blog_new");
$("form[name=posting]").submit(function(){
zeta_cookie.set("blog_new",$("form[name=posting] input[name=xc]").val(),1);
});
} else if(location.href.match(/\/blog\/entry\/\d+\/\d+\/?$/)){
if($("dl.notice.info dd:contains('Blog comment added')").size() == 1){
blogged.comment();
}
$("form[name=posting]").submit(function(){
zeta_cookie.set("blog_reply",$("form[name=posting] input[name=xc]").val(),1);
});
} else {
if($("dl.notice.info dd:contains('Blog entry added')").size() == 1){
blogged.newentry();
} else {
zeta_cookie.del("blog_new");
zeta_cookie.del("blog_reply");
}
}
},
comment : function(){
if($("form[name=posting] input[name=xc]").val() == zeta_cookie.get("blog_reply")){
entry = $("#blog_main a:first");
details = [$("#blog_comments blockquote:last").text()];
blogged.post(details);
} else {
zeta_cookie.del("blog_reply");
}
},
newentry : function(){
$.get($("#blog_sub a:contains(Post New Blog Entry)").attr("href"),function(d){
if($("form[name=posting] input[name=xc]",d).val() == zeta_cookie.get("blog_new")){
entry = $("#blog_main a:first");
details = [entry.attr("href"),entry.text()];
blogged.post(details);
} else {
zeta_cookie.del("blog_reply");
}
});
},
post : function(details){
$.get(main_url+"post/?mode=2&type=1&f="+blogged.forum+"&t="+blogged.topic,function(d){
form = $("form[name=posting]",d).parent();
post = details.length == 1 ? 'Blog Comment: ' + details[0] : 'New Blog Entry: [url='+details[0]+']'+details[1]+'[/url]';
$.post(main_url+"post/?mode=2&type=1&f=7361&t=3751901",{mode:2,type:1,f:blogged.forum,t:blogged.topic,emo:1,ast:form.find("input[name=ast]").val(),xc:form.find("input[name=xc]").val(),post:post,q:0,qhash:form.find("input[name=qhash]").val(),sd:1,fcolor:'',helpbox:'Quote Text',zbpost:0,attach1:'',mod_opts:'',sig:1,post_submit:''},function(){
zeta_cookie.del("blog_new");
zeta_cookie.del("blog_reply");
});
})
}
}
blogged.ini();
//]]>
</script>
Look near the top of the code. You'll see two numbers, they need to be changed to the number of your forum and topic that you noted down earlier. For example, if your forum number is 10 and your topic number is 46 then your code will look like:
Click to Toggle


If the code does not work properly, you may have automerging enabled on your forum. This must be disabled if you want to use this modification. This can be done by going to ACP >> Topics and Posts >> Merging Before Cutoff: Don't Merge Posts >> Merging After Cutoff: Don't Merge Posts (thanks to Solide 18 for noticing this).
Edited by Viral, Sep 2 2010, 11:06 AM.
Offline Profile Quote Post Goto Top
 
Quozzo
Member Avatar
By the blood of Sanguinius!
[ *  *  *  *  * ]
This doesn't work on my forums, i have another one of your mods with the blog url in a custom field under the members user group, do they clash at all? oh and i already had

Code:
 
<script type='text/javascript' src='http://z3.ifrm.com/313/104/0/p312803/zeta_cookie.js'></script>


in the JS section, i assume of your other blog mod.

code clicky
Offline Profile Quote Post Goto Top
 
Viral
Member Avatar
Viral
[ *  *  *  *  *  * ]
Woops, small error I left in there.. one sec.
Offline Profile Quote Post Goto Top
 
Kene
Member Avatar
Member
[ *  * ]
This should be integrated into all ZB forums :) Great modification, as usual. Viral... It's astounding that you keep up the work and ideas.
Offline Profile Quote Post Goto Top
 
Viral
Member Avatar
Viral
[ *  *  *  *  *  * ]
Kene
Sep 1 2010, 11:12 PM
This should be integrated into all ZB forums :) Great modification, as usual. Viral... It's astounding that you keep up the work and ideas.
Thanks ^_^ .

The bug should be fixed now, btw.
Offline Profile Quote Post Goto Top
 
Solide18-ZNR
Member
[ * ]
Thanks, but i cant get it work.
No post count increases or i get anything on stats/feed -page
my forum: http://s14.zetaboards.com/Kojima_Visions
Offline Profile Quote Post Goto Top
 
Quozzo
Member Avatar
By the blood of Sanguinius!
[ *  *  *  *  * ]
same here, no post count increases or site feed changes
Offline Profile Quote Post Goto Top
 
Viral
Member Avatar
Viral
[ *  *  *  *  *  * ]
I can't help if you don't have the code installed on your board :< .
Offline Profile Quote Post Goto Top
 
Solide18-ZNR
Member
[ * ]
I have the code installed.
Offline Profile Quote Post Goto Top
 
Viral
Member Avatar
Viral
[ *  *  *  *  *  * ]
You need to place it below the board, not above the board.
Offline Profile Quote Post Goto Top
 
Quozzo
Member Avatar
By the blood of Sanguinius!
[ *  *  *  *  * ]
your tut says javascripts
Offline Profile Quote Post Goto Top
 
Solide18-ZNR
Member
[ * ]
What?
In your first post both codes are supposed to go to javascripts section.
Which one i will move to belove the board.
Offline Profile Quote Post Goto Top
 
Quozzo
Member Avatar
By the blood of Sanguinius!
[ *  *  *  *  * ]
the long one

I just moved it and it works for me :D
Offline Profile Quote Post Goto Top
 
Solide18-ZNR
Member
[ * ]
heheh... thanks.
Let's try it...

EDIT: Damn, still doenst work. :(
Edited by Solide18-ZNR, Sep 2 2010, 12:13 AM.
Offline Profile Quote Post Goto Top
 
Quozzo
Member Avatar
By the blood of Sanguinius!
[ *  *  *  *  * ]
if you comment on your own blog then it doesn't, but otherwise no problems.

the only quibble is that when using a stat mod like Advanced top X statistics, then theres an entry in it with the Blog forum that anyone can go to, they cant do anything in it though, and it quite a good system for letting members know theres a new blog entry. in fact. I've changed my mind, i like it even more now.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · ZetaBoards Codes & Modifications · Next Topic »
Add Reply
  • Pages:
  • 1