• Page 1 of 1
  • 1
uCoz Community » uCoz Modules » Social Media Publisher » Naming a bunch of codes (How to give a name like $LOGIN$, $USERNAME$ to piece of code)
Naming a bunch of codes
yaamaan
Posts: 84
Reputation: 0

Message # 1 | 4:42 PM
Hi uCoz team
Many thanks for all your support

I want to know how can we define variables liKe $LOGIN$, $USERNAME$, $SITE_URL$ etc
I want to use a piece of codes at several places by giving a name like this. how can i do this
Please guide
Thanks
Sunny
Posts: 9296
Reputation: 456

Message # 2 | 9:00 PM
yaamaan, do you mean that you want to create custom $codes$? I'm afraid it is not possible.
I'm not active on the forum anymore. Please contact other forum staff.
yaamaan
Posts: 84
Reputation: 0

Message # 3 | 6:38 PM
ohh... But there must be a way. Because we are using so many codes like this in our websites. Can you please let us know?
Paradox
Old Guard
Posts: 3284
Reputation: 145

Message # 4 | 6:44 PM
yaamaan, unfortunately it's not possible. There's no way to work with any form of user defined server-side driven variables on uCoz websites at the current moment.
Jack of all trades in development, design, strategy.
Working as a Support Engineer.
Been here for 13 years and counting.
kpk1l
Posts: 27
Reputation: 0

Message # 5 | 8:20 AM
yaamaan, try with $GLOBAL_BLOCK$ (works for me biggrin )
Sunny
Posts: 9296
Reputation: 456

Message # 6 | 8:35 AM
yaamaan, actually kpk1l is right, maybe the global blocks is what you need. You can create a global block, put any code you need within, and then use a variable like $GLOBAL_YOURNAME$ to display the code on site pages.
I'm not active on the forum anymore. Please contact other forum staff.
uCoz Community » uCoz Modules » Social Media Publisher » Naming a bunch of codes (How to give a name like $LOGIN$, $USERNAME$ to piece of code)
  • Page 1 of 1
  • 1
Search: