DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • May 18, 2013, 04:11:25 AM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: 1 [2]   Go Down
  Print  
Author Topic: I need a module - Can someone code it please?  (Read 2961 times)
0 Members and 1 Guest are viewing this topic.
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 823


View Profile WWW
« Reply #15 on: October 26, 2009, 07:33:38 PM »

yes and above the chat area there is a description of the chat room and a link in the chat area for return to city and to the arbitrary text area and then the text area has a link to chat area and return to city and it hooks into the village
Logged

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination
White Knight
Mod God
*****
Offline Offline

Posts: 1030

For the truth!


View Profile
« Reply #16 on: October 27, 2009, 12:10:31 AM »

I've made a simple (sorry, no time for anything fancy) module that, I believe, does what you want. Let me know if that's not the case.

Images are allowed on the description page (the "New Place" page). To insert an image, the code is [img=image_location]. For example, to display a PayPal logo that comes with the game, you'll need to type in
[img=images/paypal1.gif]

If you enter any text with color, be sure to "close" colors with `0 at the end of the text.
Logged

Helping you help yourself.
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 823


View Profile WWW
« Reply #17 on: October 27, 2009, 10:34:43 AM »

bless you white knight its exactly what i wanted.  a big thanks to you and a hug!

EDIT: how do i put a clickable link on the text page?  example: http://www.blah.com  how do i put that on the text page and make it clickable to say Blah. the html coding i know to do it only works in motd's

html code:  <a href="http://www.blah.com">Blah</a>

I also want to know if there is a way to change the font face of just one word
« Last Edit: October 27, 2009, 01:40:55 PM by SaraDayBella » Logged

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination
White Knight
Mod God
*****
Offline Offline

Posts: 1030

For the truth!


View Profile
« Reply #18 on: October 27, 2009, 05:15:40 PM »

Thank you for the blessing and the hug.  Smiley

I'm attaching a version that can add links and font faces to the text page. The links have to be external or they will give you badnavs. If they do, let me know and I'll uncomment the code that takes care of that.

The syntax for links:
Code:
[url=http://yahoo.com]Yahoo![/url]
Will open a new window with Yahoo! portal in it.

Syntax for fonts:
Code:
Legend of the [font=Arial]Green[/font] [font=Times New Roman]Dragon[/font]
Will output Green in Arial and Dragon in Times New Roman.

This is very similar to bbcode used by many forums. In fact, when I put those codes in "as is," they produce the following:
Yahoo!
and
Legend of the Green Dragon
So there's a preview for you. Smiley

If you need more freedom than that, I can simply allow you to use HTML in there instead if you want.
« Last Edit: October 27, 2009, 05:17:47 PM by White Knight » Logged

Helping you help yourself.
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 823


View Profile WWW
« Reply #19 on: October 27, 2009, 05:32:49 PM »

i need the font working on the chat page also.  thanks

also can you add all bbcode into it so i can change the size of the font too.  thanks bbcode is easier for me or full html what ever allows be to change font face and font size.  in my opinion i like bbcode better but if html is easier for you than do it please.  allow it both n the text area and on the chat ares.  thanks
« Last Edit: October 27, 2009, 05:42:15 PM by SaraDayBella » Logged

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination
White Knight
Mod God
*****
Offline Offline

Posts: 1030

For the truth!


View Profile
« Reply #20 on: October 27, 2009, 05:41:00 PM »

If it's all working the way it should on the text page, I think I'll just allow everything from there to be used in the chat description, too.

New version attached. I understand the argument for bbcode, but it looks like it's going to be the wrong tool for the job. It made sense using it for the few things that I originally allowed the module to do, but you want a bit more control. HTML is the way to go. It's not that much harder. Here's a small "translation table," if you will:

BB Code
HTML
Code:
[url=http://yahoo.com]Yahoo![/url]
Code:
<a href="http://yahoo.com" target="_blank">Yahoo!</a>
Code:
[img=images/paypal1.gif]
Code:
<img src="images/paypal1.gif">
Code:
[font=Arial]Green Dragon[/font]
Code:
<span style="font-family:Arial,sans-serif">Green Dragon</span>

The last one, with span, allows you to change many things inside style. For example, if you want a larger font, you can do this:
<span style="font-family:Arial,sans-serif; font-size:larger">Green Dragon</span>
« Last Edit: October 27, 2009, 06:53:25 PM by White Knight » Logged

Helping you help yourself.
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 823


View Profile WWW
« Reply #21 on: October 27, 2009, 05:43:19 PM »

read my above post i added to it.  thanks
Logged

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination
White Knight
Mod God
*****
Offline Offline

Posts: 1030

For the truth!


View Profile
« Reply #22 on: October 27, 2009, 07:55:52 PM »

read my above post i added to it.  thanks

Done Smiley; module now attached to previous post.
Logged

Helping you help yourself.
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 823


View Profile WWW
« Reply #23 on: October 27, 2009, 08:43:54 PM »

thank you and bless you again.  you are great with your coding knowledge.  i really appreciate this and if this is good enough to the owners of this site then i think they should post it in the download area.
Logged

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination
Pages: 1 [2]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
$100 raised this year
Your help is greatly appreciated!
Who's Online
26 Guests, 2 Users
Lana, supermingo
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search