| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| Query nickname | |
|---|---|
| Tweet Topic Started: May 6 2010, 10:42 AM (598 Views) | |
| Sytrus-ZNS | May 6 2010, 10:42 AM Post #1 |
|
Member
![]() ![]() ![]()
|
Greetings, i was wondering if there is any chance to put something like Welcome text like Welcome [name] [sign out] to new web page on ZB.... i had some other forum software on which i type $name, it show who is watching the page (when is logged - guest if not).... thanks. ZB Board link: s1.zetaboards.com/EnigmaOZ private forum. as i read some text about this.... jquery "$" doesn't work on web pages... it converts automatically to html tag $, so it doesn't work... maybe there is some chance? or making a .php on new addon page on zetaboards using cgi..? ^o) ^o) ^o) Edited by Sytrus-ZNS, May 6 2010, 02:47 PM.
|
![]() |
|
| Sytrus-ZNS | May 7 2010, 12:16 PM Post #2 |
|
Member
![]() ![]() ![]()
|
anyone? |
![]() |
|
| Reid-ZNS | May 8 2010, 12:16 AM Post #3 |
![]()
C'est un piège!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Currently, you cannot extend ZetaBoards to work with external websites. This will be changed using the API (you may find a working demo of the API here; notice that the front page is the website and then there is a separate forum). As for the $ in web pages issue, this is an irritating issue. Also, the pipe ( | ) is escaped too. A workaround for the $ issue is to use the variable jQuery instead. For example, this code: would become:
|
![]() |
|
| Sytrus-ZNS | May 8 2010, 05:10 AM Post #4 |
|
Member
![]() ![]() ![]()
|
thanks
|
![]() |
|
| Sytrus-ZNS | May 9 2010, 10:13 AM Post #5 |
|
Member
![]() ![]() ![]()
|
by the way, i found a perfect match what i want... Reid, have you ever view slayer766's RPG for ZB, and when you enter the Town Inn you have one elder speaking to you:
I bold it.. i fount in his js code script , and that show your name on the page... that's what i want, i tried to take that part but it can't be done |
![]() |
|
| HolySavior | May 9 2010, 10:20 AM Post #6 |
|
if( holy + alcohol){ happycoding()}
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
thats become "+u_name+" is a variable set by slayer766. which actually is like this
|
![]() |
|
| Beaumont-ZNS | May 9 2010, 10:23 AM Post #7 |
|
Member
![]() ![]() ![]() ![]()
|
So... putting this above your code will set that variable equal to that:
By the way... $ does work for me in the Website Maker, but | does not. Oh wow, just a minute too slow on this one. Sorry Holy Savior. Edited by Beaumont-ZNS, May 9 2010, 10:25 AM.
|
![]() |
|
| Reid-ZNS | May 9 2010, 12:15 PM Post #8 |
![]()
C'est un piège!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Ah, I misread your post and I thought you were talking about using the name with another website. I apologize. ![]() Yes, you can get a person's name through jQuery as illustrated above. |
![]() |
|
| Sytrus-ZNS | May 9 2010, 01:09 PM Post #9 |
|
Member
![]() ![]() ![]()
|
@ HolySavior yea, i figured it out a few minutes ago... slayer's variable... i saw on the beginning of the var and raw later. @ Reid. it's okay, maybe i did not say very well... i've been lookin' to jQuery, and i cannot figured how it works... so can you make that code? |
![]() |
|
| Reid-ZNS | May 9 2010, 11:02 PM Post #10 |
![]()
C'est un piège!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
On your web page, use this script: Use that where you want their name to appear and it should do the trick. Edited by Reid-ZNS, May 9 2010, 11:02 PM.
|
![]() |
|
| Sytrus-ZNS | May 10 2010, 08:47 AM Post #11 |
|
Member
![]() ![]() ![]()
|
thanks... i own you
|
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · ZetaBoards Support · Next Topic » |





![]](http://z1.ifrm.com/static/1/pip_r.png)





9:03 PM Jul 10