User Panel

Welcome, Guest.
Please login or register.

 
 
 

Did you miss your activation email?

 Who's Online

  • • Users: 1
  • • Guests: 21

 Shoutbox

 Theme Changer

 Recent Posts

Re: Google Mail
Last Poster: ccbtimewiz | Today at 01:12:24 AM

Re: Meet the Team - ccbtimewiz
Last Poster: Matt | Yesterday at 06:21:48 AM

Re: Team Page Mod
Last Poster: smithtrd | September 05, 2010, 07:41:51 AM

Re: Dream Portal signature
Last Poster: hadesflames | September 05, 2010, 01:51:59 AM

Re: [WIP] Simple Listings
Last Poster: hadesflames | September 04, 2010, 07:45:09 PM

Re: Hey
Last Poster: ѕησω | September 04, 2010, 10:08:55 AM

Re: Dream Portal in your Language
Last Poster: smithtrd | September 03, 2010, 08:45:16 PM

Re: Dream Portal Custom Theme: Vis Albastru
Last Poster: smithtrd | September 02, 2010, 02:48:47 AM

Re: Updated to Dream Portal 1.0 RC1
Last Poster: smithtrd | September 02, 2010, 02:42:00 AM

Re: Cheesy Idea for Team Page
Last Poster: Afro | September 01, 2010, 04:14:52 PM

Re: Hello Everyone from NC
Last Poster: xTmDarren | August 26, 2010, 07:44:05 PM

Re: SMF Services
Last Poster: smithtrd | August 25, 2010, 02:56:08 AM

Re: I'm making a video game
Last Poster: Gazmanafc | August 24, 2010, 07:39:04 AM

Re: Meet the Team - Gazmanafc
Last Poster: Gazmanafc | August 23, 2010, 05:47:14 AM

Author Topic: Random Quote Mod  (Read 950 times)

0 Members and 1 Guest are viewing this topic.

Offline explodingcan

  • Semi Newbie
  • *
  • Posts: 33
  • Gender: Male
  • EDD!
    • MakaBoy.net
Random Quote Mod
« on: January 30, 2010, 05:37:27 AM »
Sometimes a random quote is enough to change someones life or have them laugh :)

Offline hadesflames

  • Finance Manager
  • Developer
  • *
  • Posts: 1,254
  • Gender: Male
  • C++ Coder
Re: Random Quote Mod
« Reply #1 on: January 30, 2010, 01:32:07 PM »
This sounds like something to hand over to the customization team. In fact, I think Runic made a random quote mod. The cust. team could probably expand it from there.
- Former Developer
- Server Administrator


Offline Costa

  • Friend
  • *
  • Posts: 850
  • Gender: Male
  • Don't feed the trolls...
    • In4tek!
Re: Random Quote Mod
« Reply #2 on: January 30, 2010, 01:39:37 PM »
One PHP module can handle this, no?

Something like
Code: [Select]
global $scripturl;

$quotes = array(
   'Quote 1',
   'Quote 2',
   'Quote 3',
   'Quote 4'
);

echo $quotes[rand(0, count($quotes)-1)], '<br /><br />
   <a href="', $scripturl, '">Click here to see another quote.</a>';

-Costa

Offline tyty1234

  • Friend
  • *
  • Posts: 506
  • Gender: Male
    • WiiPowered.com
Re: Random Quote Mod
« Reply #3 on: January 30, 2010, 02:17:50 PM »
Chris, hadesflames and I have already established a small script for this.

However Costa, if they were to put it in a PHP Module, they would have to manage the quotes by editing the code. With a module for the random quote, you can manage the quotes easily via it's manage module page.

But it's up to the customization team if they want to do a Random Quote Module with easy to use configuration options, or if the end-user can just do it in a PHP module.
tyty1234
Co-Founder of Dream Portal

Offline SoLoGHoST

  • Dreamer
  • ******
  • Posts: 1,238
  • Gender: Male
  • // Real programmers don't comment their code! :)
Re: Random Quote Mod
« Reply #4 on: January 30, 2010, 03:29:39 PM »
Yeah, this would be easier to just use the text or large_text parameter type and have the user themselves input each quote into the Module when modifying the module.  Would be 1 of the easiest modules one could ever make... ;)

Offline Costa

  • Friend
  • *
  • Posts: 850
  • Gender: Male
  • Don't feed the trolls...
    • In4tek!
Re: Random Quote Mod
« Reply #5 on: January 30, 2010, 03:43:30 PM »
However Costa, if they were to put it in a PHP Module, they would have to manage the quotes by editing the code. With a module for the random quote, you can manage the quotes easily via it's manage module page.
Ok ok, I only put this 'cause it's not so difficult to do in a php module.
But great, you dudes alredy think about this.

-Costa

Offline SoLoGHoST

  • Dreamer
  • ******
  • Posts: 1,238
  • Gender: Male
  • // Real programmers don't comment their code! :)
Re: Random Quote Mod
« Reply #6 on: January 30, 2010, 03:47:34 PM »
Costa, you are free to create a module for just this if you'd like ;)

I believe you have access to the Development Documentation Board.  If so, you can actually begin making a module on this right now if you'd like.

Cheers :)

Offline Costa

  • Friend
  • *
  • Posts: 850
  • Gender: Male
  • Don't feed the trolls...
    • In4tek!
Re: Random Quote Mod
« Reply #7 on: January 30, 2010, 03:57:50 PM »
Yes, I have access, although I'm not into :P
I know how to do the module like I've done in my post -- I've done it in a couple foruns --, however put options to select the quotes, I don't have skills for that :P
I'm not a Dev God Dude Man, just a Tiger xD

In March I'll have more time to learn about our modules system, until then I only do few tweaks -- My Uni is speeding Up with exams -- 3 per week until March :P

-Costa

Offline SoLoGHoST

  • Dreamer
  • ******
  • Posts: 1,238
  • Gender: Male
  • // Real programmers don't comment their code! :)
Re: Random Quote Mod
« Reply #8 on: January 30, 2010, 04:01:23 PM »
Ok, suit yourself, this goes for anyone else who has access to revisions and the Development Documentation Board also.  You can begin building modules for DP right now.

Solomon

Offline hadesflames

  • Finance Manager
  • Developer
  • *
  • Posts: 1,254
  • Gender: Male
  • C++ Coder
Re: Random Quote Mod
« Reply #9 on: January 30, 2010, 05:47:09 PM »
Once Dream Portal is public, people will be able to code their own modules as well, so maybe someone will look into it if the cust. team doesn't.
- Former Developer
- Server Administrator


Offline Dismal Shadow

  • Apprentice
  • Public Relations
  • *
  • Posts: 279
  • Gender: Male
  • This wretched world does not reward endeavor
    • The Two Worlds
Re: Random Quote Mod
« Reply #10 on: January 30, 2010, 06:26:09 PM »

Online Xarcell

  • Document Writer
  • *
  • Posts: 218
  • Gender: Male
  • Dreamy
    • Inspire Romance
Re: Random Quote Mod
« Reply #11 on: May 31, 2010, 06:56:40 AM »
I know this is a really old post, but i would like to see this module. I looked at the list of default modules and I didn't see it listed. Is there still any interest in adding this module?

Offline hadesflames

  • Finance Manager
  • Developer
  • *
  • Posts: 1,254
  • Gender: Male
  • C++ Coder
Re: Random Quote Mod
« Reply #12 on: May 31, 2010, 02:38:53 PM »
It won't be added by default. This is a "Module Request" board, with the key word being "Request"

If someone WANTS to make the modules in this board they can. It doesn't haven to be someone on the team either. It can be anyone willing to make it that knows how to code for Dream Portal (documentation on it should be available soon)
- Former Developer
- Server Administrator


Online Xarcell

  • Document Writer
  • *
  • Posts: 218
  • Gender: Male
  • Dreamy
    • Inspire Romance
Re: Random Quote Mod
« Reply #13 on: May 31, 2010, 06:49:16 PM »
It won't be added by default. This is a "Module Request" board, with the key word being "Request"

If someone WANTS to make the modules in this board they can. It doesn't haven to be someone on the team either. It can be anyone willing to make it that knows how to code for Dream Portal (documentation on it should be available soon)

I understand this is a request board. That why I suggested it. Sorry if i sounded like I was demanding it.

Offline hadesflames

  • Finance Manager
  • Developer
  • *
  • Posts: 1,254
  • Gender: Male
  • C++ Coder
Re: Random Quote Mod
« Reply #14 on: June 01, 2010, 12:27:15 AM »
No, it sounded more like you figured no one was going to do it period because it's not on the module list. The only thing that means is that the team will not make it AND include it with Dream Portal by default. However someone on or off the team is free to make it and release it to the public as a downloadable module.
- Former Developer
- Server Administrator