• Page 1 of 1
  • 1
Fields in news and blog module
Sopiste
Posts: 1
Reputation: 0

Message # 1 | 12:07 PM
I have added custom fields within the news module, but they are not showing when the entry is added. I Choose from the Custom fields 1,2,3,4 which were in the news modul. When adding an entry they are showing, and also I can see them when I am editing the entry, but when I preview the entry it shows only the title, the description and the text.

Can anyone help me how can I make this fields to show when I am previewing the entry.

Thanks in advance

Sunny
Posts: 9296
Reputation: 456

Message # 2 | 11:18 AM
Sopiste, add the codes $OTHER1$, $OTHER2$ ... to the corresponding templates (Appearance of entries, Page with entry full text and its comments)
I'm not active on the forum anymore. Please contact other forum staff.
Youfan
Posts: 6
Reputation: 0

Message # 3 | 7:35 AM
Hello all,

I am a new user of uCoz services. Well, my first impression, this services are AWESOME!! Better than my latest site services. Great jobs... smile

I've set-up a new site on the uCoz. But now I'm stuck in a few problems that I hope somebody in here could help me. This are my problems:

1. I want the Guests could enter the Name, E-mail, and WEBSITE also when they give comments in the Site News or Blog (NOT only in the Guestbook). How could I set up that?? The default setting (for Guests to comment in the Site News and Blog) is just giving Name and E-mail. I want the Guests could enter their WEBSITE link also. Could I do that??

2. I want to use the Blog, and use the SMILEY also in the entries (NOT only in the comments). Either in the Site News or Blog entries. When I added a new entry in the Blog for the first time yesterday, I could use the SMILEY on the entry. But then when I tried again, the second entry, the smiley could not show up when the entry has been published. How to use the SMILEY on the entries??

That are my current problems... sad

I've tried to solve by myself from yesterday, changed all settings, but I couldn't solve it. I will REALLY appreciate any help.

Thank you very much.

Best regards,
Youfan

Sunny
Posts: 9296
Reputation: 456

Message # 4 | 2:59 PM
1. Edit the template in Control Panel -> Customize Design -> Comments -> Form for adding comments. You need to add the code $SITE$.

2. How did you add smileys? You need to add them by means of [img] code.


I'm not active on the forum anymore. Please contact other forum staff.
Dartz
Posts: 1931

Message # 5 | 6:18 PM
And...

2. Custom smiley's or uCoz default?


[... With uCoz since December 2 2007 ...]
Youfan
Posts: 6
Reputation: 0

Message # 6 | 11:50 AM
Sunny:
Thank you very much for the explanation... smile

I read the Comments Management and I found that there's WWW field. I tried to add this codes below in the Appearance of Comments template (Main » Customize design » Editing templates) and it WORKS:

Code
<?if($USERNAME$)?><a href="$PROFILE_URL$"><b>$USERNAME$</b></a>

<?else?><a href="$SITE$"><b>$NAME$</b></a>

<?endif?>

It could read the WWW field from the Comments Management table. Unfortunately, when I tried to add this codes in the Form for Adding Comments template (like Sunny said):

Code
<?if(!$USER_LOGGED_IN$)?>
<tr><td width="15%" class="commTd1" nowrap>Name *:</td><td class="commTd2"><input class="commFl" type="text" name="name" value="$NAME$" size="30" maxlength="60"></td></tr>
<tr><td class="commTd1">Email:</td><td class="commTd2"><input class="commFl" type="text" name="email" value="$EMAIL$" size="30" maxlength="60"></td></tr>

<tr><td class="commTd1">URL:</td><td class="commTd2"><input class="commFl" type="text" name="site" value="$SITE$" size="30" maxlength="60"></td></tr>

<?endif?>

It DOESN'T work. So, the codes could read the $SITE$ but it cannot submit the $SITE$ variable into the Database. I'm wondering... Is there something wrong with my codes or did I miss something??

Dartz:
It's uCoz default smileys. So I wanna add smileys also in my entries. I found that the uCoz default smileys could only be used in the Comments, but not in the Entries. So uCoz default smileys really cannot be used in the Entries eh?? I should use the [img] tag??

Hhhhmm... sad

Anyway, thank you very much for the reply... smile

Post edited by Youfan - Saturday, 2010-05-29, 2:21 PM
Dartz
Posts: 1931

Message # 7 | 11:58 AM
uCoz doesn't support PHP http://faq.ucoz.com/#2

As for smiley's. They work, you must enter smiley code
while using BBC Panel. You can do it like this: " :king: "


[... With uCoz since December 2 2007 ...]
Youfan
Posts: 6
Reputation: 0

Message # 8 | 10:25 AM
So... That means I cannot submit the variable for $SITE$ ??
o_lisovenko
ico.ukit.com
Posts: 132
Reputation: 15

Message # 9 | 1:22 PM
Quote (Youfan)
I tried to add PHP codes below in the Appearance of Comments template (Main » Customize design » Editing templates) and it WORKS:

It isn't PhP code.
Youfan
Posts: 6
Reputation: 0

Message # 10 | 1:33 PM
Aargh, sorry, my bad...

Then how I submit the value for $SITE$??

Post edited by Youfan - Saturday, 2010-05-29, 3:49 PM
o_lisovenko
ico.ukit.com
Posts: 132
Reputation: 15

Message # 11 | 1:46 PM
Youfan, it's work
Code
<td class="commTd1"><span lang="ru">Сайт</span>:</td><td class="commTd2">
<input class="commFl" type="text" name="site" value="$SITE$" size="30" maxlength="60"></td>
Youfan
Posts: 6
Reputation: 0

Message # 12 | 4:05 PM
surprised It doesn't work in my uCoz site... Aargh, what's wrong with mine... sad

I'll try again now...

Added (2010-05-29, 9:41 Am)
---------------------------------------------

It still doesn't work on my uCoz blog... Even I have copy-pasted your codes above. When I open the Comments Management, the WWW field is still blank... huh

Hhmmm... sad

Added (2010-05-29, 10:05 Am)
---------------------------------------------

Quote (Dartz)
As for smiley's. They work, you must enter smiley code
while using BBC Panel. You can do it like this: " : king : "

Eh it works... Even though it's just 1 smiley. So it should be writen in BBC Panel mode...
Thank you for the explanation... smile

Only how to submit $SITE$ then now...

Post edited by Youfan - Saturday, 2010-05-29, 4:09 PM
Dartz
Posts: 1931

Message # 13 | 6:29 PM
I hate when Russians mess from their support forum in ours. Especially by
not knowing our system and with terrible grammar. Go back to Russian SF.

Youfan, your $SITE$ wont work for guests. It will work for users.


[... With uCoz since December 2 2007 ...]
Youfan
Posts: 6
Reputation: 0

Message # 14 | 7:24 PM
So my Guests really cannot write down their sites on my blog?? Aaarghhh... Suddenly I feel soo sad... sad

But I'll still use this services... I hope someday uCoz could make Guests write down their sites on $SITE$ variable (since usually in a blog we could leave our links)... happy

Thank you very much for all your helps guys... smile I REALLY appreciate that. My thanks all to you.

If somebody still has another suggestions for me, I'll read it for sure. Thank you.

Post edited by Youfan - Saturday, 2010-05-29, 7:31 PM
  • Page 1 of 1
  • 1
Search: