PDA

View Full Version : End-User Options - Lucky Button


Atakan KOC
10-21-2007, 10:00 PM
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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=160816) - Nominate for MOTM (https://vborg.vbsupport.ru/vborg_miscactions.php?do=nominate&threadid=160816&type=1)


Manuel Template Change

Open navbar template

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

<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
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
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
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
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...

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
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
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
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
* PoetJA-1975 Marks As Installed!

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
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...

edytwinky
12-28-2008, 08:33 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

I get this same error now too

Peejay
06-28-2009, 04:27 PM
I'm getting the following error;

Database error in vBulletin 3.6.8:

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

MySQL Error : Unknown column 'thread.forumid' in 'where clause'
Error Number : 1054
Date : Sunday, June 28th 2009 @ 12:51:22 PM
Script : http://clubaristo.net/forums/misc.php?do=lucky
Referrer : http://clubaristo.net/forums/forums.php


Any ideas?

deadlySniper
06-28-2009, 04:33 PM
Haha, awesome! Thanks!

Peejay
06-28-2009, 05:04 PM
OK, found the issue in the xml file and corrected it.

Look for thread.forumid and edit to read vb_thread.forumid and then reimport the file.