PDA

View Full Version : Tip of the day! hack


Ruth
01 Sep 2001, 21:04
Any thoughts?

mjames
02 Sep 2001, 03:58
How would this be related to vBulletin?

tubedogg
02 Sep 2001, 07:55
Does it matter?

vBulletin can be formed into many things, including a site front-end (portal), CMS, site back-end, etc. etc. etc.

That said, I can also see this being used internally in vB for teaching users about the intracacies of vB.

Ruth
02 Sep 2001, 08:01
Good ideas tubedogg :)

i myself would use it for the front page in a portal or the vB index.

More thoughts?

Ruth
02 Sep 2001, 08:09
This could help

http://www.mattkruse.com/scripts/tip/index.html

but i prefer to see something using a database.

Chen
03 Sep 2001, 12:57
I might start working on this.

Chen
03 Sep 2001, 14:09
By the way, do you want it to be a single tip per day (like the thread title says), or a different tip every time the page is loaded (like that script you showed us)?
I think a random tip every time is better, but it's your hack...

Also, how do you want it to be formatted?
I think a link in the footer could pop up a page, with a random tip would be great.

Tell me what you think. :)

Ruth
03 Sep 2001, 19:08
Cool :)

i made a rough screen shot of the hack to help you ...
you may change it to whatever you find easier for you

about viewing it to the members:
link with a pop up window would be nice
also, to integrate it in the page itself in a table.

hope this help :p

and thanks in advance :)


cheers,

Ruth
08 Sep 2001, 22:44
FireFly, any updates on this?

Thomas P
09 Sep 2001, 07:47
Hi,
good idea, Afterburner did this for UltraBoard and it was like in Windows Tip of the day. Was very stylish as it looked pretty the same as the tip of the day on windows machines.
We may contact him about that if he wants to share his coding he did so far.
cu,
-Tom

Afterburner
09 Sep 2001, 07:55
no this were only hardcoded links and the newest topic off all. At the moment I dont have any interest to do anything - private problems -

Chen
09 Sep 2001, 09:10
Originally posted by Ruth
FireFly, any updates on this?
Nope, sorry. I kinda forgot about this, but I'll keep working today. :)

Ruth
18 Sep 2001, 00:02
how is the work going FireFly?

The Prohacker
18 Sep 2001, 00:07
If your still doing this, I just remembered about this cool setup for a tip of the day...



http://www.dynamicdrive.com/dynamicindex11/tod/tod.htm


If you did use this, you might have it set a cookie that will expire in 24 hours, and it will only popup if that cookie isn't present, and of course only popup if the user is registered, and has opted to receive the tips...

ToraTora!
18 Sep 2001, 01:32
I was going to suggest checking out a few free java script sites as well...these scripts are plentiful, so there is no need to try and reinvent the wheel here.
The one script i picked up, (but havent bothered using because its a pain in the ass to look at) has over 300 "tips" or "sayings" for the day, in which you can customize them any way you wish. :)

Ruth
18 Sep 2001, 02:26
using java/dhtml scripts will not be as powerful as using the DB, with functions to show different tips for different groups, or can you?

Chen
18 Sep 2001, 07:39
I didn't use usergroups for this, sorry.
I didn't know that's what you wanted until after I started working on this.

Thomas P
18 Sep 2001, 11:51
Originally posted by The Prohacker
If your still doing this, I just remembered about this cool setup for a tip of the day...

http://www.dynamicdrive.com/dynamicindex11/tod/tod.htm



That'd be awesome!
-Tom

Ruth
20 Sep 2001, 02:40
Originally posted by FireFly
I didn't use usergroups for this, sorry.
I didn't know that's what you wanted until after I started working on this.

its ok to start now without user_groups, and i think it is easier afterwards to duplicate the hack and add permissions based on users_Group_ID.

Ruth
25 Sep 2001, 21:02
any updates FireFly?

Chen
25 Sep 2001, 21:10
Ok, here it is.
This might not be the best way to do this, but well, it's something.

I'm just packed with jobs lately, just can't do them all.
And since I do have some previous commitments (yes, even earlier than this one), I must complete them first.
Veyr sorry, Ruth.

1. Run this query:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



2. Save this as tip.php, and upload to your main folder:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



3. Save this as tip.php and upload to your admin folder:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



4. Save this as tip_main template:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



5. Save this as tip_showtip template:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



6. In index.php of the admin folder add this:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


right BEFORE this:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



That's it.
This will display a random tip on every page load.

I understand if you don't want to use this, it's far from perfect.

Sorry again. :(

Ruth
25 Sep 2001, 21:19
Thanks so much FireFly :)

it is better than nothing, i'll try it soon...

thanks again for your time...you are great :D

inetd
26 Sep 2001, 13:10
Do you have demo or screenshot's?:confused:

sysmom
26 Sep 2001, 19:13
Although there's no vB admin interface to it, last week I quickly wrote up a bare bones little "verse of the day" script that works with a client's vbPortal.

It reads from a two field flat file and spits out a new one every day.

If this little scrap of code would be helpful to anyone, please let me know.

It could be used for quotes, tips, well, you know... :)

deb

Ruth
27 Sep 2001, 20:03
FireFly, i think the modify link in the CP is not working, besides what is the command to show tips in the pages?

Chen
28 Sep 2001, 13:47
Use this code in the pages:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


and just add $showtip wherever you want it.

Looks like I forgot a big part from the tip.php file, I'll find it in a min.

shadowbreed
29 Sep 2001, 00:24
Any idea why the modify option won't work?

Chen
29 Sep 2001, 08:01
Yeah, I forgot that whole part from my file, and now it's not in my file anymore! :(
I guess I'll have to re-write it.
Arrgh...

Ruth
10 Oct 2001, 02:03
Originally posted by FireFly
Yeah, I forgot that whole part from my file, and now it's not in my file anymore! :(
I guess I'll have to re-write it.
Arrgh...

any updates?

thanks

Ruth
04 Nov 2001, 20:20
can anyone finish this hack?

and the ability maybe to make usergroups defined.

thanks

inetd
12 Mar 2002, 19:18
Hello!
This is very good idea!
FireFly, sorry for anxiety, you will complete this hack? Please, please, please! :)

Psychdrone
12 Mar 2002, 22:18
heh all you gotta do is find a random script like at hotscripts, and just tie that in to Vb

eh if FF, dosn't realease this, I will finnaly crack down and release a hack:P

dreck
07 Jan 2005, 17:42
Did this hack ever get finished or is there a hack similar to it?

dreck
16 Jan 2005, 18:41
Can this code be used to do something similar? I want to do a tip of the day on my automotive forum. I was thinking it would be at the top of the pages like the message for unregistered users:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Using a Phrase Varname like:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


But what I need is a way to make it revolve from a list of say 30 tips.

Can someone point me in the right direction?

cmiller1014
18 May 2005, 03:33
Bump, anything out there like this?

Neutral Singh
18 May 2005, 11:52
Would it be nice if we could pick out an item from FAQs and randomly show a small box called Tip of the day on the lines of yahoo groups... it would really helpful in introducing new features to forum automatically like just creating a new entry into FAQ section and displaying it in the box... i am surprised no body is working on such a hack... if it has already been made please guide me to it...

Thanks.