collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18365
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: trek , homer, love, movie, random quotes  (Read 11867 times)

0 Members and 1 Guest are viewing this topic.

Offline kardsen

  • BeBot Apprentice
  • ***
  • Posts: 81
  • Karma: +0/-0
trek , homer, love, movie, random quotes
« on: July 11, 2008, 01:16:39 am »
5 files.  each one contains a different set of quote styles..
!trek for a random Star Trek Quote.
!mquote for a random movie quote
!rquote for a random quote
!homer for a homer simpson quotes
!love for some humorous adult themed responces

All of the above updated using Temar's memory friendly code example given on the !trek.phps below

Thanks Temar, Vrykalas, Creation (ragebot), Chaly (ragebot)..  and anyone else I may have forgotten.
The only original by me is the trek.phps  and that list was stolen from a quotes site  :)

TO INSTALL
download modules you want to add.
rename them from .phps  to .php
Install them to  ./customer/modules/    folder
« Last Edit: July 15, 2008, 04:46:54 pm by kardsen »

Offline glintz

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: trek quotes
« Reply #1 on: July 12, 2008, 10:56:51 pm »
This made my day thank you sir.

Glintz

Offline kardsen

  • BeBot Apprentice
  • ***
  • Posts: 81
  • Karma: +0/-0
Re: trek quotes
« Reply #2 on: July 12, 2008, 11:23:28 pm »
glad you like it :)

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: trek quotes
« Reply #3 on: July 13, 2008, 07:06:23 am »
I have Improved the Coding of this, this is more memory Friendly as you have all the quotes inside a function and cache
mine has it inside a function only

Offline glintz

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: trek , homer, love, movie, random quotes
« Reply #4 on: July 13, 2008, 03:23:13 pm »
Thanks guys I am using all of these.  For some reason just with homer quotes the bot displays squares where there is punctuation using this char ’ .  If you search and replace them all with ' it goes away though.  This may just be on my bot but I have only seen it with the Homer.php.  It was the same when I modified the ragebot homer to run on bebot using the !chuck module as a model.

Thanks for all your hard work on this my guild and I love them.

Glintz

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: trek , homer, love, movie, random quotes
« Reply #5 on: July 13, 2008, 03:35:34 pm »
yer the issue was prob because like with alot of these module its all just copied from webpages :p

Offline glintz

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: trek , homer, love, movie, random quotes
« Reply #6 on: July 13, 2008, 03:46:10 pm »
Here is the one i modified from chuck if you want to copy the txt i think its the same quotes.

Glintz

Offline kardsen

  • BeBot Apprentice
  • ***
  • Posts: 81
  • Karma: +0/-0
Re: trek , homer, love, movie, random quotes
« Reply #7 on: July 13, 2008, 10:50:48 pm »
hmm, my homer works fine.

Strange.

Offline Vrykolas

  • BeBot Apprentice
  • ***
  • Posts: 100
  • Karma: +0/-0
Re: trek , homer, love, movie, random quotes
« Reply #8 on: July 13, 2008, 11:29:16 pm »
I've had the same bug come up in files - a solution I use is to replace single quotes in the text with ' (note: only do this with text that is supposed to display a single quote mark eg: <a href='text://xxxx'>It's good day</a>
« Last Edit: July 13, 2008, 11:33:43 pm by Vrykolas »

Offline eliro2000

  • BeBot Rookie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: trek , homer, love, movie, random quotes
« Reply #9 on: July 14, 2008, 08:21:37 am »
i know im a noob but please tell me anyone in what folder do the *.phps files go. thanks in avance

Offline Nytridr

  • BeBot Expert
  • ****
  • Posts: 262
  • Karma: +0/-0
    • Rising Sun
Re: trek , homer, love, movie, random quotes
« Reply #10 on: July 14, 2008, 08:50:39 am »
rename it to *.php and put it in the proper folder.. phps is just for the web server will not think it needs to run it basically.. phps = PHP Source
Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)

Offline kardsen

  • BeBot Apprentice
  • ***
  • Posts: 81
  • Karma: +0/-0
Re: trek , homer, love, movie, random quotes
« Reply #11 on: July 15, 2008, 04:46:15 pm »
Found the problem in homer.phps.

’  was used    should have been '

Changed in current Homer.phps file.

 

* Recent Posts
0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm ]

* Who's Online
  • Dot Guests: 151
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal