Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
[AJAX] MFSG - Mod Forums & Social Groups PostBit Popup Details »»
[AJAX] MFSG - Mod Forums & Social Groups PostBit Popup
Version: 0.1.1, by civil78 civil78 is offline
Developer Last Online: Nov 2021 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.7.x Rating:
Released: 07-16-2008 Last Update: 07-17-2008 Installs: 28
Uses Plugins Auto-Templates
Additional Files Translations  
No support by the author.

MFSG - Mod Forums & Social Groups PostBit Popup (AJAX)
Created by civil78

What it does?

Replace usertitle in post with a popup menu that contains the forums that post user can moderate and the social groups to which they belong.

This mod designed to take low resources from the server because it uses AJAX technology. Only if a user clicks in the usertitle of a user post, execute the query to find if Moderator Forums (if the user is a moderator) and Social Groups. This is means that there no extra server load when a user just see the posts. Also when a user clicks in usertitles and then clicks again, the query executed only one time. In the second time takes the data from cache.

I hope that you like it, and please Mark Installed if you finally use this mod.

New Installation

1. Upload files from "Upload" folder into your vBulletin root directory.
2. Add New Product with included XML
3. Go to vBulletin Options -> MFSG Postbit Popup: General and set your specific settings.

Upgrade

1. Reinstall the product and set Yes to Allow Overwrite.
2. Upload again the files from "Upload" folder into your vBulletin root directory.
3. Go to vBulletin Options -> MFSG Postbit Popup: General and set your specific settings.

Time to install: Easy - 1 minutes.

History
0.1.0 - 17/07/2008 - Initial release.
0.1.1 - 18/07/2008 - Fixed an SQL security issue.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
caoducanh9x

Comments
  #2  
Old 07-17-2008, 10:42 AM
Bombowiec89 Bombowiec89 is offline
 
Join Date: May 2008
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great! Thanx!
Reply With Quote
  #3  
Old 07-17-2008, 12:29 PM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

really nice ...
Reply With Quote
  #4  
Old 07-31-2008, 08:30 AM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

omg I love you!

<< runs to install now
Reply With Quote
  #5  
Old 07-31-2008, 09:04 AM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

req:
think you could get something for USER PROfILE?
Reply With Quote
  #6  
Old 07-31-2008, 10:52 AM
civil78's Avatar
civil78 civil78 is offline
 
Join Date: Nov 2005
Location: Greece
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

User profile it has already a Group Memberships table in the right column to show the social groups that the user belongs. Look at the vBulletin Options --> User Profile Options --> Enabled User Profile Features--> Social Groups checkbox.

Maybe I can make something to show the Moderator forums there. I think about it but I can’t do that in the next days because I make some add-ons for my site now
Reply With Quote
  #7  
Old 08-10-2008, 06:36 AM
Arved Yagami Arved Yagami is offline
 
Join Date: Jan 2004
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice mod, but I have a problem:

For some users (without something in common) it does not work, instead of display the social groups, shows (in plain text) something like this:

Code:
<script src="clientscript/mfsg_postbit.js"></script> <table cellpadding="0" cellspacing="0" border="0" align="left"> <tr align="center"> <td id="usergroups_32355" class="smallfont"> <a href="/comunidad/showthread.php?t=1634&amp;nojs=1#usergroups_32355" onclick="findUser(53,32355)">User title here</a> <script type="text/javascript"> vbmenu_register("usergroups_32355", true); </script> </td> </tr> </table> <div class="vbmenu_popup" id="usergroups_32355_menu" name="ug_53" style="display:none" align="left"> <div id="popug32355" name="popnameug53"></div> </div> <br>
Other thing, could be this put in the pop up menu of the username instead of the usertitle, perhaps as an option.

Thank you =)
Reply With Quote
  #8  
Old 08-10-2008, 09:46 AM
civil78's Avatar
civil78 civil78 is offline
 
Join Date: Nov 2005
Location: Greece
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, I notice that in another forum (GrendelKhan{TSU forum) but it doesn’t appears in my test forum (its clean install forum) so I can't look what could be wrong on that .

I have to see this problem to appear somewhere that I have access to play with the code and options to correct it.

The problem looks like appears in the progress of passing the template in status title. I use the fetch_template function to change the status title from default to custom code and for some reason returns &lt; instead of < and &gt; instead of >. So it breaks the html code and returns the html as text.

See your pm for more instructions for an idea that maybe corrects the problem.

Quote:
Originally Posted by Arved Yagami View Post
Other thing, could be this put in the pop up menu of the username instead of the usertitle, perhaps as an option.
I have to look how it works the mechanism of this popup and to see if this is possible. I check it out for future versions. But maybe I will have a little problem with ajax support of this module. What I mean. The popup window generated only when the user clicks on the status text. Only in that reason execute the php code and ask queries from database. For that reason this popup don’t increase the cpu load by viewing only the pages. The username popup is a pre generated code that executed every time the users view a page. So if I put it in there I don’t know if I can keep the ajax goodies .
Reply With Quote
  #9  
Old 08-11-2008, 01:08 PM
nirvana43's Avatar
nirvana43 nirvana43 is offline
 
Join Date: Oct 2007
Location: Pune, India
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed. Thanks a lot man.
Reply With Quote
  #10  
Old 08-11-2008, 07:01 PM
Arved Yagami Arved Yagami is offline
 
Join Date: Jan 2004
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My problem was solved (by civil78 of curse), now every user title looks fine. Thank you very much for your support, civil78, and keep your great work =D
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:14 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04434 seconds
  • Memory Usage 2,300KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete