vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Prevent Doubleposting (https://vborg.vbsupport.ru/showthread.php?t=96602)

Paul M 12-27-2008 08:11 PM

You have put "can_administer()" in the mods custom code option, there is no such function.

Forum-Germany 12-27-2008 09:18 PM

Hello. Thank you for this intereats. :)
What should this be called now? if I switch off this add-on, is away fehler., unfortunately I am "newbie."

what I should do?

Paul M 12-28-2008 11:08 AM

Just remove that from the option.

Forum-Germany 12-28-2008 01:31 PM

:(

What should I remove them? It would be very nice of you if you with step by step could explain what is doing. :(

Forum-Germany 12-28-2008 01:51 PM

Ok, I have the whole times better viewed. After all, I think I find anything. it is up to the "! can_administer ()" in the ratings for this add-on?

Here it is: http://www.abload.de/image.php?img=unbenanntdwyi.png

but I need this function. what can I do?

Paul M 12-28-2008 07:28 PM

Sorry, the mod will not work while you have that in the option - as there is no such function in vb. Maybe post #1041 is what you want ?

Forum-Germany 12-28-2008 07:35 PM

Hello. :)

Means that the code "!can_moderate()" applies to moderators, super-moderators and administrators hleichzeitig? Have I understood correctly?

EDIT:

So would the code "!can_moderate()" as I have understood my problem?

armthehomeless1 12-31-2008 01:57 PM

Quote:

Originally Posted by TheInsaneManiac (Post 1590529)
How do I change the time to the forums time?

I'd like to know this also...as my forum is based in Australia with the server in the US.

So my times are way off! :confused:

Saviour 01-05-2009 12:15 AM

I use vbulletin 3.7.4 PL1 and have this installed and working...except for the time stamp separator...

Is there a fix for this anywhere within the 71 pages of posts here?

Can someone tell me what this section is for within the vboptions settings of this mod:

Code:

Bump Thread

Do you want a thread beeing bumped by a doublepost, or should it be a real edit?

Also, I know I can add my own Post Separator, but is there a way to add this as a separator:

----------[user] added on January 4, 2009 at 9:14 PM----------

I really don't feel like searching through 71 pages of posts. Just call me lazy...however, I'll try searching again.


Thanks in advance.

redlabour 01-08-2009 07:23 AM

Does it work with 3.8?

mA|tRiX 01-08-2009 07:52 AM

Whats with the authorizations? Can i exclude usergroups from this hack?

redlabour 01-08-2009 04:49 PM

Works great with 3.8 GOLD!

mA|tRiX 01-09-2009 04:57 AM

Quote:

Originally Posted by mA|tRiX (Post 1704900)
Whats with the authorizations? Can i exclude usergroups from this hack?

Can someone give me an answer? :) Thx

Dave Hawley 01-09-2009 05:07 AM

Quote:

Can i exclude usergroups from this hack?
Ok, I give up. Can you?

Simon Lloyd 01-09-2009 09:17 AM

Dave, it seems at the moment you can only exclude admin with the !can_moderate() notation, i don't know whether you can add an if condition like:
PHP Code:

<if condition="is_member_of($bbuserinfo,2)">!can_moderate()</if> 

usergroup 2 is registered users, if you do try it back up your db first.

flup 01-15-2009 07:00 PM

Can't seem to get it working for 3.5.4 table 'executionorder' doesnt exist, not sure wether I can just add it without having any further problems with the forums?

flup 01-15-2009 07:07 PM

Ok, got it working, needed to remove some things in the XML, for all other 3.5.4 users, here's a XML which is working.

talkncaasports 01-21-2009 10:21 AM

Works good in 3.8.0.

Leo Brazil 01-21-2009 06:46 PM

Does it works good with quick reply ? How does it deals with attachments ? I mean, if the first post has 3 of them and second one more 3 but you limit for them for each post is 5.

I tried to search about this here but end up nothing

Thanks

redlabour 01-21-2009 07:30 PM

Quote:

Originally Posted by Leo Brazil (Post 1720390)
1. Does it works good with quick reply ?

2. How does it deals with attachments ? I mean, if the first post has 3 of them and second one more 3 but you limit for them for each post is 5.

I tried to search about this here but end up nothing

Thanks

1. Yes

2. Works without Problems. Don?t ask me how but it works.

Leo Brazil 01-22-2009 01:06 PM

Thanks for feedback redlabour, I'm gonna try it.

It's a pitty xenon last login of Sep 2008. This mod is really usefull and considering tons of information I've read here with some changes it would be one of the best here.

RedHacker 01-24-2009 01:19 AM

When put this addon look what happen..!!!Why..?Can help me..?

https://vborg.vbsupport.ru/

Voltar 01-24-2009 07:34 AM

Quote:

Originally Posted by RedHacker (Post 1722873)
When put this addon look what happen..!!!Why..?Can help me..?

https://vborg.vbsupport.ru/

Did you install any other mods at the same time that you installed this? Because I can tell you it doesn't add anything to the left side menu, and it does work beautifully for me on vB 3.8.

RedHacker 01-24-2009 07:45 AM

Maybe input Greek Language and Uninstall and then import this addon...

Simon Lloyd 01-25-2009 06:52 PM

Quote:

Originally Posted by RedHacker (Post 1722873)
When put this addon look what happen..!!!Why..?Can help me..?

http://img217.imageshack.us/img217/3166/91498903gp8.jpg

Maybe its a problem with the "Post Thanks" hack, i don't use it but if someone has just posted and then wants to post a thanks....... then that may be a problem, so just maybe when installing the hack it has picked up some of the attributes of the post thanks hack causing a problem.

RedHacker 01-25-2009 10:31 PM

I dont understand what must do with post thanks for function correctly.....? I install vBulletin and then install Language Pack and then saw ????????????

Shazz 01-26-2009 03:41 AM

Those 2 mods may not function right together...

ePrOmD 01-26-2009 02:55 PM

hi!
I just install this useful hack.

At first, I thought that it didn´t function, cause I can see messages of unification, but It doesn´t really been unified, until I press F5(refresh) they were unified.

I found a problem testing post with attachments. they are not been unified. any ideas?
thank you very much! greetings to all!

Leo Brazil 01-27-2009 01:58 PM

I've install it but nothing happens at all on 3.8.0

I've enabled the products that was disabled by default but nothing so far.

Any tips ?

cynthetiq 01-27-2009 08:41 PM

Okay, I've gone through so many of these pages, probably at least 50 of them, and I can't for the life of me figure out where or how I inserted this as the seperator of the automerge. Can anyone be so kind as to point me in the right direction?

----Added 27/1/2009 at 03 : 47 : 52-----

snowbizx 01-28-2009 12:38 AM

Quote:

Originally Posted by Leo Brazil (Post 1726175)
I've install it but nothing happens at all on 3.8.0

I've enabled the products that was disabled by default but nothing so far.

Any tips ?

edit: disregard, i looked a little further back and found out :P

cynthetiq 01-28-2009 01:10 AM

it worked, then it stopped working.... i'm reinstalling again, and trying them one mod at a time.

snowbizx 01-28-2009 01:16 AM

i'm not getting any time notations between the posts... help please!

cynthetiq 01-28-2009 04:29 AM

Code:

// ########### Xenon's prevent doublepost modification #########
$vbulletin->GPC['xen_isdoublepost'] = false;
// parse custom conditions
$custcond = true;
if (trim($vbulletin->options['xen_dp_custcond']) != '')
{
 eval('$custcond = ((' . $vbulletin->options['xen_dp_custcond'] . ') ? true : false);');
}
 
// at first check if there is at least the possibility to be a doublepost
if ($custcond AND $type != 'thread'
 AND $dp_threadinfo['lastpost'] > TIMENOW - $vbulletin->options['xen_dp_timespan'] * 60
 AND $dp_threadinfo['lastposter'] == $vbulletin->userinfo['username']
 AND $dataman->fetch_field('attach') == 0)
{
 // we are here, so we may have a doublepost -> do more exact checkings
 $doublepost = $vbulletin->db->query_first("
  SELECT post.*
  FROM " . TABLE_PREFIX . "post AS post
  LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
  WHERE post.threadid = $threadinfo[threadid]
  AND post.dateline > " . (TIMENOW - $vbulletin->options['xen_dp_timespan'] * 60) . "
  AND post.visible = 1 AND deletionlog.primaryid IS NULL
  AND post.postid <> $post[postid]
  ORDER BY post.dateline DESC
  LIMIT 1
 ");
 if ($doublepost['userid'] == $vbulletin->userinfo['userid'] AND $doublepost['attach'] == 0)
 {
  // we truely have a doublepost, now check if the merged post still fits the rules!
  $dpdataman =& datamanager_init('Post', $vbulletin, ERRTYPE_ARRAY, 'threadpost');
  $dpdataman->set_existing($doublepost);
  $doublepost['message'] = $doublepost['pagetext'] . "\n[SIZE=\"1\"][COLOR=\"DarkSlateGray\"]" . '-----Added '.date("j/n/Y"). ' at '.Date("h : i : s").'-----'.$vbulletin->options['xen_dp_spacer'] . "[/color][/size]\n" . $post['message'];
  // set info
  $dpdataman->set_info('preview', $post['preview']);
  $dpdataman->set_info('parseurl', $post['parseurl']);
  $dpdataman->set_info('posthash', $post['posthash']);
  $dpdataman->set_info('forum', $foruminfo);
  $dpdataman->set_info('thread', $dp_threadinfo);
  // set options
  $dpdataman->setr('showsignature', $post['signature']);
  $dpdataman->setr('allowsmilie', $post['enablesmilies']);
  // set data
  $dpdataman->setr('pagetext', $doublepost['message']);
  $dpdataman->setr('iconid', $post['iconid']);
  $dpdataman->pre_save();
  if (!$dpdataman->errors)
  {
  // merged post is ok, so actually do the merging by editing old post
  $vbulletin->GPC['xen_isdoublepost'] = true;
  if ($vbulletin->options['xen_dp_bumpthread'])
  {
    // bump thread, so change the post's dateline
    $doublepost['dateline'] = TIMENOW;
    $dpdataman->setr('dateline', $doublepost['dateline']);
  }
  $dpdataman->save();
  // as we have edited an old post, we can now delete the new created post
  $postman =& datamanager_init('Post', $vbulletin, ERRTYPE_SILENT, 'threadpost');
  $postman->set_existing($post);
  $postman->delete($foruminfo['countposts'], $threadinfo['threadid'], $removaltype = true, array('userid' => $vbulletin->userinfo['userid'], 'username' => $vbulletin->userinfo['username'], 'reason' => $vbulletin->options['xen_dp_editedby'], 'keepattachments' => false), false);
  unset($postman);
  $doublepost['oldmessage'] = $post['message'];
  $post = $doublepost;
  $id = $post['postid'];
  //now add edited by message
  if ($vbulletin->options['xen_dp_editedby'] != '')
  {
    $vbulletin->db->query_write("
    REPLACE INTO " . TABLE_PREFIX . "editlog (postid, userid, username, dateline, reason)
    VALUES ($post[postid], " . $vbulletin->userinfo['userid'] . ", '" . addslashes($vbulletin->userinfo['username']) . "', " . TIMENOW . ", '" . addslashes($vbulletin->options['xen_dp_editedby']) . "')
    ");
  }
  // last step update counters
  build_thread_counters($post['threadid']);
  build_forum_counters($foruminfo['forumid']);
  }
 }
}

I added

$doublepost['message'] = $doublepost['pagetext'] . "\n[SIZE=\"1\"][COLOR=\"DarkSlateGray\"]" . '-----Added '.date("j/n/Y"). ' at '.Date("h : i : s").'-----'.$vbulletin->options['xen_dp_spacer'] . "[/color][/size]\n" . $post['message'];

RedHacker 01-28-2009 04:01 PM

Import in manage products..!!!I must anything else....?

Paul M 01-28-2009 04:42 PM

Read the big red note in the first post ;)

cynthetiq 01-28-2009 05:26 PM

Quote:

Originally Posted by Paul M (Post 1727369)
Read the big red note in the first post ;)

Nice to see you still follow this thread :) It's much appreciated.

Can I ask you where you did the dirty part for the AJAX?

Does this mean that instead of the screen pausing saying it will merge the post, and then does so upon refresh, it just merges at that point?

Where do I insert that code? In the same place I did the first edit?

Paul M 01-28-2009 09:12 PM

Yes, it merges the post instantly (like here at vb.org).

It involves changes to the actual plugin code and also vbulletin_quick_reply.js

Voltar 01-28-2009 09:46 PM

Quote:

Originally Posted by Paul M (Post 1727561)
Yes, it merges the post instantly (like here at vb.org).

It involves changes to the actual plugin code and also vbulletin_quick_reply.js

Care to share those improvements? :D

Leo Brazil 01-29-2009 10:30 AM

Quote:

Originally Posted by Voltar (Post 1727587)
Care to share those improvements? :D

I'm glad to see I'm not the only one on this....lol....I was about say the same thing....lol...

I've seen something similar to this working pretty good on vB.org and I always feel like I really need something like it on my board. But after reading tons of pages I just can't figure out how.

As Xenon seems to be out of this for a long time why not take over it for improvements ?


All times are GMT. The time now is 03:10 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02254 seconds
  • Memory Usage 1,835KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete