|
|
Forum moderator: bigblog |
uCoz Community For Webmasters Custom Solutions [script] random forum text for "no replies" (random text for "no replies") |
[script] random forum text for "no replies" |
This script gives you a possibility to change default "no replies" text at the forum empty sections.
1. Customize design - Forum - General appearance of forum pages 2. Find $BODY$, and put a script after it: Code <script type="text/javascript"> // autor: iWebb // edit: ucozwebmeistars.ucoz.lv $(".forumLastPostTd").each(function () { if($(this).text() == 'Ierakstu nav') { $(this).html('Esmu tukša sadaļa, papildini mani :[') } else { var TimesHref = $(this).find('a:first').attr('href'); var TimesText = $(this).find('a:first').text(); var MesImgHref = $(this).find('a:eq(1)').attr('href'); var MessageHref = $(this).find('a:eq(2)').attr('href'); var MessageText = $(this).find('a:eq(2)').text(); var UserseHref = $(this).find('a:eq(3)').attr('href'); var UserseText = $(this).find('a:eq(3)').text(); } }); </script> 3. Look at your forum, where is some empty forum sections without any thread, copy a text that says: "no replies", "no threads" etc. examples and paste it at the script code replacing this text "Ierakstu nav".. -this step will show your default NO REPLIES text for a script, so it could start working .. 4. Find at the script "Esmu tukša sadaļa, papildini mani :[" - and replace with your text, which you want to show every forum user, when some of the forum sections are empty .. 5. Result: Before as default: After with our random text: P.S. Sorry about bad English skills; If you come useful this script, put a +rep for my, ty Attachments:
8951406.png
(20.1 Kb)
·
5464091.png
(19.8 Kb)
Post edited by Korijs - Wednesday, 2013-02-13, 6:26 PM
|
| |||
| |||