vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   End-User Options - Lucky Button (https://vborg.vbsupport.ru/showthread.php?t=160816)

Atakan KOC 10-21-2007 10:00 PM

Lucky Button
 
Lucky Button

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

Mark as Installed - Nominate for MOTM


Manuel Template Change

Open navbar template

HTML Code:

vbphrase[faq]</a></td>
add below

HTML Code:

<td class="vbmenu_control"><a href="misc.php?do=lucky">$vbphrase[lucky]</a></td>

Khalid-B 10-22-2007 09:30 AM

gonna try it...

Khalid-B 10-22-2007 09:33 AM

wich templet i have to change ??

Atakan KOC 10-22-2007 09:49 AM

Manuel Template Change added

edgecutioner 10-22-2007 09:56 AM

hey can you give us a screenie please :D

Spank 10-22-2007 10:58 AM

Sonds like a great idea, will install later.

Detomah 10-22-2007 12:14 PM

I like. :)

Would be good to have an option to exclude certain forums from it though.

lasto 10-22-2007 03:01 PM

yeah because i would like the lucky button to only do a few sections and miss others out.
Who wants to read bug reports :) - no that lucky are they

TTG 10-22-2007 08:43 PM

Quote:

Originally Posted by Detomah (Post 1365844)
Would be good to have an option to exclude certain forums from it though.

I'll certainly install if you can include that option .. great idea.

peterpigman 10-22-2007 09:07 PM

It works nice, but I don't think it works in ie7. Well I know it doesn't cuz I tried it.

Jason Black 10-22-2007 11:23 PM

i don't understand what this does

Tulsa 10-22-2007 11:31 PM

You click on the work "Lucky" in your navbar and it takes you to a random post.

yoyoyoyo 10-22-2007 11:37 PM

Quote:

Originally Posted by peterpigman (Post 1366240)
It works nice, but I don't think it works in ie7. Well I know it doesn't cuz I tried it.

yes it does - it works fine in IE7, firefox, and opera

Jason Black 10-22-2007 11:43 PM

whaoo lol...
uhmmm
i don't know if i want to install this one

SuperTaz 10-23-2007 05:14 AM

Add the code where? Above or below the code?

Detomah 10-23-2007 05:33 AM

Quote:

Originally Posted by Warden-B- (Post 1366490)
Add the code where? Above or below the code?

After.

Before would break the code for the previous cell.

This addon definately works on IE7 for me and on Firefox for many members of my community who love it, but like me would much prefer to have it not include certain forum sections.

Question - This addon won't go showing up threads for private forums or for places users don't have permission to view, right? If it does that would seriously need addressing and quickly for the addon to remain useful.

MrZeropage 10-23-2007 04:05 PM

does this take care of forum permissions and even user/group-permissions to certain forums ? It would be bad to be randomly linked to a thread in the internal moderator forum and result in a "no permission" page ;)

Triky 10-23-2007 04:20 PM

Great! Installed.

peterpigman 10-23-2007 04:30 PM

Quote:

Originally Posted by yoyoyoyo (Post 1366339)
yes it does - it works fine in IE7, firefox, and opera

Ok strange, I have two pcs, both using ie7. On one it works on the other it doesn't. The only diff is one is on xp and the other is on 64 bit vista. I'll have to have a good look at the vista pc if it is due to a security setting.

chickadee 10-23-2007 06:53 PM

Installed, but I keep getting a database error:

Invalid SQL:
SELECT thread.threadid, thread.dateline, thread.visible FROM vbthread WHERE NOT ISNULL(thread.threadid) AND thread.visible = '1' ORDER BY RAND() LIMIT 1;

MySQL Error : Unknown column 'thread.threadid' in 'field list'
Error Number : 1054

KTP 10-23-2007 07:24 PM

i get pretty much the same...

Quote:

Database error in vBulletin 3.6.8:

Invalid SQL:
SELECT thread.threadid, thread.dateline, thread.visible FROM vb3_thread WHERE NOT ISNULL(thread.threadid) AND thread.visible = '1' ORDER BY RAND() LIMIT 1;

MySQL Error : Unknown table 'thread' in field list
Error Number : 1109
Date : Tuesday, October 23rd 2007 @ 09:23:00 PM
Script : http://www.globalbanter.com/vb/misc.php?do=lucky
Referrer : http://www.globalbanter.com/vb/
IP Address : *****
Username : *****
Classname : vb_database

BuRaCh 10-23-2007 07:25 PM

oooh yeah
good work atakan;)
installed.

edytwinky 10-24-2007 04:42 PM

Quote:

Originally Posted by MrZeropage (Post 1366813)
does this take care of forum permissions and even user/group-permissions to certain forums ? It would be bad to be randomly linked to a thread in the internal moderator forum and result in a "no permission" page ;)


I concur. Does this stop from posting certain threads. Cause I have some moderator only forums.

Tulsa 10-24-2007 04:58 PM

I have disabled this on my forum until someone can answer that very question.

hddstudio 10-24-2007 05:48 PM

Quote:

Originally Posted by Detomah (Post 1365844)
I like. :)

Would be good to have an option to exclude certain forums from it though.

Yes, I Agree....definitely....

PoetJA-1975 10-27-2007 01:28 AM

Well it's marked as not supported - but it would be nice to get an answer from the hack Author :/

Jacquii.

Atakan KOC 10-28-2007 08:46 PM

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

ymy 10-28-2007 08:58 PM

Quote:

Originally Posted by Atakan KOC (Post 1370657)
v1.1 - 28 Octaber 2007
- Query error fixed
- Setting Added
- Usergroup permisson added
- Disallow forum ID added
- Forum permisson added
- On/Off added

Thanks for UPDATE :up:

now i can install it in my forum

PoetJA-1975 10-28-2007 10:13 PM

Very nice update - I will try = Thanx for the sharing ;)

Jacquii.

PoetJA-1975 10-29-2007 01:07 AM

[high]* PoetJA-1975 Marks As Installed!
[/high]

Thanx so much for the modification - works just wonderfully now.
If you need a demo site for your 1st post = http://JPiCForum.info
The "Feeling Lucky" button is in the main navigation bar next to the Donate button ;)

Jacquii.

SuperTaz 10-29-2007 04:30 AM

Installed. Thank you :D

PoetJA-1975 10-30-2007 12:45 PM

quick question - would it be easy to implement so that even blog posts have the chance to display when click the lucky button?

Thanx,

Jacquii.

Detomah 10-31-2007 10:10 PM

Quote:

Originally Posted by Atakan KOC (Post 1370657)
v1.1 - 28 Octaber 2007
- Query error fixed
- Setting Added
- Usergroup permisson added
- Disallow forum ID added
- Forum permisson added
- On/Off added

Nice one, just what I was hoping to see added. :up:

periphrastic 11-14-2007 12:14 AM

thank you for the update

tschai 11-25-2007 05:55 PM

In my 3.6.3 version it's raising an error that '...table thread does not exist...', which is true: I've addedd manually the table prefix in line 78 and it'working like a charm....as always with mods of Atakan.

Sagol usta!

basketmen 12-09-2007 09:58 AM

Hi Atakan KOC

i want to give suggest,

this hack like The surfer TM in friendster, for surfing random friendster profile

take a look at this for example http://profiles.friendster.com/mschmidt


so i suggest how if not only random thread, but random member profile too

can you do this?? or give me clue how to do that

Vinyljunky 12-17-2007 11:35 AM

Great simple idea, thanks for sharing it :up:

VinylJunky

Mazinger 12-21-2007 10:00 AM

Could you please add an option to select threads these have been active for a period of time?

GuaRRand 12-21-2007 11:55 AM

funnah

The Fat Boy 12-28-2007 03:29 PM

I have enjoyed this thoroughly, and used it as a tool to help get my members to rate more threads...


All times are GMT. The time now is 05:23 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.01303 seconds
  • Memory Usage 1,808KB
  • 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_html_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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