Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Lucky Thread Details »»
Lucky Thread
Version: 2.00, by Atakan KOC Atakan KOC is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.8.x Rating:
Released: 10-27-2008 Last Update: Never Installs: 51
Uses Plugins Auto-Templates
 
No support by the author.

Lucky Thread

This hack redirects the user to a various thread when they click "Lucky" button on the navbar. This is like Google's lucky button. Let's see what is your lucky subject.
install

Go to your admin cp, then:
Plugin System -> Manage Products -> [Add/Import Product] -> Select 'product-lucky.xml' from your computer then press 'Import'

Modifications Info

Plugin : 3
Phrases : 1
Template : 1
Setting : 0

Versions:
v1.0 - 22 Octaber 2007
-First release

v1.1 - 28 Octaber 2007
- Query error fixed
- Setting Added
- Usergroup permisson added
- Disallow forum ID added
- Forum permisson added
- On/Off added

v1.2 - 20 December 2007
- vBulletin 3.7
- Project name change "Lucky Button => Lucky Thread"
- Small Phrase change

v2.0 - 12 Octaber 2008

Download Now

File Type: xml product-lucky.xml (5.6 KB, 352 views)

Screenshots

File Type: jpg resimxx11.jpg (54.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 06-11-2009, 06:06 PM
RTMdotORG RTMdotORG is offline
 
Join Date: Dec 2008
Posts: 282
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working On Trying To Fix This For The Author...
As Was Said That The Same Error Was In 3.7...
The Best I Could Do So Far Was Make It Active For ALL Usergroups...
Here is The XML....
Attached Files
File Type: xml product-lucky.xml (5.6 KB, 27 views)
Reply With Quote
  #23  
Old 06-11-2009, 06:17 PM
DobieGillis? DobieGillis? is offline
 
Join Date: Feb 2009
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RTMdotORG View Post
Working On Trying To Fix This For The Author...
As Was Said That The Same Error Was In 3.7...
The Best I Could Do So Far Was Make It Active For ALL Usergroups...
Here is The XML....
nice!
Reply With Quote
  #24  
Old 06-11-2009, 06:21 PM
DobieGillis? DobieGillis? is offline
 
Join Date: Feb 2009
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

got it installed, just can't find a link to it. Is it a manual edit?
Reply With Quote
  #25  
Old 06-11-2009, 06:45 PM
RTMdotORG RTMdotORG is offline
 
Join Date: Dec 2008
Posts: 282
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, this looks like the only way to get this to work....

download and install the plugin provided....
the default usergroups.. are 2,5,6,7...
if you want different usergroups, you're going to have to edit the product....

go to edit templates>>>navbar>>
Find:
Code:
vbphrase[faq]</a></td>
Add After:
Code:
<td class="vbmenu_control"><a href="misc.php?do=lucky">$vbphrase[lucky]</a></td>
Open the Product
Find:
Code:
<defaultvalue>2,5,6,7</defaultvalue>
Change the usergroup id to your liking...

DO NOT CHANGE ANY SETTINGS FOR THIS MOD IN THE VBULLETIN OPTIONS, OR IT WILL RESET USERGROUPS...
Attached Files
File Type: xml product-lucky.xml (5.6 KB, 22 views)
Reply With Quote
  #26  
Old 06-11-2009, 06:48 PM
DobieGillis? DobieGillis? is offline
 
Join Date: Feb 2009
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RTMdotORG View Post
Ok, this looks like the only way to get this to work....

download and install the plugin provided....
the default usergroups.. are 2,5,6,7...
if you want different usergroups, you're going to have to edit the product....

go to edit templates>>>navbar>>
Find:
Code:
vbphrase[faq]</a></td>
Add After:
Code:
<td class="vbmenu_control"><a href="misc.php?do=lucky">$vbphrase[lucky]</a></td>
Open the Product
Find:
Code:
<defaultvalue>2,5,6,7</defaultvalue>
Change the usergroup id to your liking...

DO NOT CHANGE ANY SETTINGS FOR THIS MOD IN THE VBULLETIN OPTIONS, OR IT WILL RESET USERGROUPS...

thanks mate!
Reply With Quote
  #27  
Old 06-11-2009, 06:54 PM
Jamieinnh Jamieinnh is offline
 
Join Date: Mar 2009
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for a great Mod and Thanks for the ones that help fix it to work with all the user groups!

Jamie
Reply With Quote
  #28  
Old 06-12-2009, 08:46 AM
edytwinky edytwinky is offline
 
Join Date: Aug 2007
Posts: 512
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still couldn't get this sucker to work. Crap
Reply With Quote
  #29  
Old 06-12-2009, 08:04 PM
edytwinky edytwinky is offline
 
Join Date: Aug 2007
Posts: 512
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I could get any help on this, it'd be greatly appreciated. I'm running vb 3.8.2.

Is there some LUCKY button that is supposed to pop up?

I'd like for this to work with usergroups: 6, 28, 29 and 32

I'd like for it to not use the forum ids: 9, 10, 12, 16, 17, 18, 22, 25, 29, 30, 32, 34, 37, 39, 43, 46, 55
Reply With Quote
  #30  
Old 06-12-2009, 09:58 PM
RTMdotORG RTMdotORG is offline
 
Join Date: Dec 2008
Posts: 282
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by edytwinky View Post
If I could get any help on this, it'd be greatly appreciated. I'm running vb 3.8.2.

Is there some LUCKY button that is supposed to pop up?

I'd like for this to work with usergroups: 6, 28, 29 and 32

I'd like for it to not use the forum ids: 9, 10, 12, 16, 17, 18, 22, 25, 29, 30, 32, 34, 37, 39, 43, 46, 55
try this....

go to edit templates>>>navbar>>
Find:

Code:
vbphrase[faq]</a></td>
Add After:

Code:
<td class="vbmenu_control"><a href="misc.php?do=lucky">$vbphrase[lucky]</a></td>
and upload this xml, BUT DONT SUBMIT ANY SETTINGS IN THE VBULLETIN OPTIONS..THE XML I PROVIDED SHOULD WORK THE WAY YOU WANT IT TO
Attached Files
File Type: xml product-lucky.xml (5.7 KB, 12 views)
Reply With Quote
  #31  
Old 06-12-2009, 10:31 PM
edytwinky edytwinky is offline
 
Join Date: Aug 2007
Posts: 512
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. I tried it and received this error:

PHP Code:
Database error in vBulletin 3.8.2:

Invalid SQL:
SELECT threadiddatelinevisible FROM xxxcthread WHERE NOT ISNULL(threadid) AND visible '1' AND thread.forumid NOT IN (0,17,18,29,30ORDER BY RAND() LIMIT 1;

MySQL Error   Unknown column 'thread.forumid' in 'where clause'
Error Number  1054
Request Date  
FridayJune 12th 2009 07:30:03 PM
Error Date    
FridayJune 12th 2009 07:30:03 PM
Script        
http://forums.xxx.com/misc.php?do=lucky
Referrer      http://forums.xxx.com/index.php
IP Address    68.102.23.100
Username      
xxx
Classname     
vB_Database
MySQL Version 
5.0.77-community 
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 01:18 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.04736 seconds
  • Memory Usage 2,338KB
  • Queries Executed 26 (?)
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
  • (8)bbcode_code
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete