Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ![]() Interested in joining? Click here. If you are already a member of ZBCode, feel free to login right here: |
- Pages:
- 1
- 2
| Turning JavaScript code into PHP BBcode | |
|---|---|
| Topic Started: Nov 18 2009, 06:15 PM (369 Views) | |
| PD.Phoenix | Nov 18 2009, 06:15 PM Post #1 |
![]()
Kokuhyou no Tentei
![]()
|
I've just finished a JavaScript text rotator, which is actually a sig space rotator, well it's planned to be. What I want to do is make a BBcode, in PHP, that allows the same thing as my JavaScript rotator. It will make it so when refreshing or posting again will chose a random signature that you input, into to BBcode, so its in your sig space. Here's my JavaScript rotator. http://209.85.62.24/106/35/0/p245047/sigrotator.html I know how to make basic BBcodes in PHP but this is a lil out of my league... any help? |
|
Phoenix Designz is now open Looking for staff and classers PM me here or on PD if interested. Want to win some easy money? Enter Phoenix Designz tournaments. Learn more here ->> click ![]() | My dA | Vote PD Top 100 | | |
![]() |
|
| Gorgor | Nov 18 2009, 06:29 PM Post #2 |
|
Hello
![]()
|
Well to do this, you'd need to use the rand function, which will generate a random number between two specified numbers. This code will do what needs to be done...
|
|
This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc | |
![]() |
|
| PD.Phoenix | Nov 18 2009, 06:34 PM Post #3 |
![]()
Kokuhyou no Tentei
![]()
|
That doesn't make it a BBcode... That's just a PHP version of my code. I want to make it a BBcode to use an a forum. Where I can like... Say put [rand=1]sig info/sig bbcode[/rand] [rand=2]sig info/sig bbcode2[/rand] [rand=3]sig info/sig bbcode3[/rand] and then when around the forum, it will choose one to show in the signature space and then a different post which show another etc. Making it a rotating signature. It's going to be on a VBulletin board, btw. If that makes a difference |
|
Phoenix Designz is now open Looking for staff and classers PM me here or on PD if interested. Want to win some easy money? Enter Phoenix Designz tournaments. Learn more here ->> click ![]() | My dA | Vote PD Top 100 | | |
![]() |
|
| Gorgor | Nov 18 2009, 06:57 PM Post #4 |
|
Hello
![]()
|
Are those BBCodes going to be placed in a signature or a specific post? |
|
This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc This forum is closed. Please visit http://zetascript.co.cc | |
![]() |
|
| PD.Phoenix | Nov 18 2009, 07:03 PM Post #5 |
![]()
Kokuhyou no Tentei
![]()
|
Signature. It's a rotating signature BBcode. But it's not going to be only one person. Anyone will be able to use it if they want. But yes, it's only for signatures. And it needs to be able to use BBcode within it. So someone can put this in the rotator BBcode ![]() Click here blah blah blah and then ![]() Click here blah blah blah And then it will rotate between them Edited by PD.Phoenix, Nov 18 2009, 07:06 PM.
|
|
Phoenix Designz is now open Looking for staff and classers PM me here or on PD if interested. Want to win some easy money? Enter Phoenix Designz tournaments. Learn more here ->> click ![]() | My dA | Vote PD Top 100 | | |
![]() |
|
| PD.Phoenix | Nov 20 2009, 01:30 PM Post #6 |
![]()
Kokuhyou no Tentei
![]()
|
Anyone else think they could help? I really would appreciate it. I can't figure it out on my own D= |
|
Phoenix Designz is now open Looking for staff and classers PM me here or on PD if interested. Want to win some easy money? Enter Phoenix Designz tournaments. Learn more here ->> click ![]() | My dA | Vote PD Top 100 | | |
![]() |
|
| PD.Phoenix | Nov 24 2009, 09:12 PM Post #7 |
![]()
Kokuhyou no Tentei
![]()
|
Is there anyone who can help me? |
|
Phoenix Designz is now open Looking for staff and classers PM me here or on PD if interested. Want to win some easy money? Enter Phoenix Designz tournaments. Learn more here ->> click ![]() | My dA | Vote PD Top 100 | | |
![]() |
|
| Kitsueki | Nov 25 2009, 02:53 AM Post #8 |
![]()
♠ Aizu
![]()
|
This kinda looks like a code request, try it there, maybe you'll have more progress. Keep in mind, Gorgor is the only one right now, so until Red comes back or another Code Staff is hired things wont be as fast as previously =/ |
|
Kingdom of Etruria Spoiler: click to toggle
| |
![]() |
|
| PD.Phoenix | Nov 25 2009, 03:20 AM Post #9 |
![]()
Kokuhyou no Tentei
![]()
|
It's not a code request. Those are requests for codes for ZB and IF from people who do not know how to make things at all.. I've made the javascript example and a php version has been made before, even posted by gorgor which is similar. And I kinda know how to make BBcodes. I just need help with this particular one because it's more advanced than I know how to do I'm looking for help to make a PHP BBcode that I can use on Vbulletin Edited by PD.Phoenix, Nov 25 2009, 03:23 AM.
|
|
Phoenix Designz is now open Looking for staff and classers PM me here or on PD if interested. Want to win some easy money? Enter Phoenix Designz tournaments. Learn more here ->> click ![]() | My dA | Vote PD Top 100 | | |
![]() |
|
| slayer766 | Nov 25 2009, 03:11 PM Post #10 |
![]()
Hello all
![]()
|
This is a code request...a vBulletin code request though. Matching BBCode in your signature takes JavaScript - it would take PHP but it's on a forum and I don't know if you have open source/whatever on vBulletin. |
![]() Thanks Helena for the siggah!!! | |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| Go to Next Page | |
| « Previous Topic · Code University · Next Topic » |
- Pages:
- 1
- 2

























4:52 PM Sep 3