| This board has been archived and is no longer accepting new questions. If you have a support question for your ZetaBoard, please visit us at the new support board. Registration is free and easy. Visit the NEW ZetaBoards Support forum! |
- Pages:
- 1
- 2
| Shorten Long Urls v2.1 | |
|---|---|
| Topic Started: Jun 3 2008, 06:57 PM (713 Views) | |
| ProgramFreak | Jun 3 2008, 06:57 PM Post #1 |
|
Member
![]() ![]() ![]() ![]()
|
Edit maxlength to the max size it should be. V2 makes urls nice, keep it at 50, its a decent length:
Edited by ProgramFreak, Jun 17 2008, 01:20 PM.
|
![]() |
|
| Viral | Jun 3 2008, 07:04 PM Post #2 |
|
i'm stanley nao
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Nice, but wouldn't you do for the substring part
so it really is a max of 100. You just forgot to count the elipse. |
![]() |
|
| ProgramFreak | Jun 3 2008, 07:10 PM Post #3 |
|
Member
![]() ![]() ![]() ![]()
|
Nope, the ... is added just to look good. If you wanted exactly 100 characters you would do it your way. But thats originally not the actual length. So I'm going to keep it as it is, only thing I'm worried about is matching images. Which I need to do next.might work I'm going to do some texting. Edited by ProgramFreak, Jun 3 2008, 07:12 PM.
|
![]() |
|
| Thunder | Jun 3 2008, 07:51 PM Post #4 |
|
Thunder
![]() ![]() ![]() ![]() ![]()
|
I don't get how this works... |
![]() |
|
| ProgramFreak | Jun 3 2008, 09:33 PM Post #5 |
|
Member
![]() ![]() ![]() ![]()
|
Basically when you have a link thats like: http://watchinplainsight.info/LONGURL/LONGURL/LONGURL/LONGURL/LONGURL/LONGURL/LONGURL/LONGURL/LONGURL/LONGURL/LONGURL/LONGURL/LONGURL/LONGURL/LONGURL/LONGURL/LONGURL.html It won't stretch the page |
![]() |
|
| RyanCE | Jun 5 2008, 02:24 AM Post #6 |
![]()
The Root Of All
![]() ![]() ![]()
|
Really good code, long urls do mess up our themes. Thanks for this! |
![]() |
|
| Marky C | Jun 5 2008, 04:32 AM Post #7 |
|
Member
![]() ![]() ![]()
|
Not quite sure what I should change and where I should put it. Is just the code I was looking for though |
![]() |
|
| dark knight | Jun 7 2008, 09:36 AM Post #8 |
![]()
Member
![]() ![]() ![]() ![]() ![]()
|
You change the 100 part in the second line to how ever many letters you want to show before it shortens it. For example if I wanted to have 80 letters show I'd change the second line from var maxlength = 100; to var maxlength = 80; Also you go to Board Template and place it in the box that says Below the Board. Hope that helps
|
![]() |
|
| Marky C | Jun 8 2008, 05:24 PM Post #9 |
|
Member
![]() ![]() ![]()
|
thanks, excellent code |
![]() |
|
| ProgramFreak | Jun 8 2008, 05:54 PM Post #10 |
|
Member
![]() ![]() ![]() ![]()
|
NP
|
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| Go to Next Page | |
| « Previous Topic · User Created Codes · Next Topic » |
- Pages:
- 1
- 2




![]](http://209.85.62.24/static/1/pip_r.png)





8:51 AM Dec 8