Everything about [QUOTE] and [CODE] goes here
Prince0156
Posts: 18
Message # 61 |
4:31 PM
2011-09-13
Natashko , Not working in site news why only work forum pls help same problem as cracker56 , Here is link http://free2all.ucoz.com/news/2011-09-12-28
Susmoy
Posts: 185
Message # 62 |
5:19 PM
2011-09-13
Prince0156 , Just Paste this code after $MESSAGE$ on Page of Entry and It's Comments Code
<?if($USER_LOGGED_IN$)?><?else?> <script type="text/javascript"> // Copyright uCause ~ http://uCause.ucoz.com/ jQuery('div.bbCodeBlock').each(function(){ code = jQuery(this).find('div.codeMessage').html(); jQuery(this).replaceWith('<div class="HideCode"> you can not view this code, you are in the group "Guests" <a href="/index/1" target="_blank">Log in</a> or <a href="$REGISTER_LINK$" target="_blank">Register</a> to view this code</div>'); }); </script> <?endif?>
If I Help you then Please +Rep and Awards
Prince0156
Posts: 18
Message # 63 |
4:06 AM
2011-09-14
Susmoy , its not working http://free2all.ucoz.com/news/2011-09-12-28
Susmoy
Posts: 185
Message # 64 |
8:16 AM
2011-09-14
Prince0156 , I do not think you got my point , Paste that Script After $MESSAGE$, I checked your provided link , You did not paste that script on your site
If I Help you then Please +Rep and Awards
Prince0156
Posts: 18
Message # 65 |
8:55 AM
2011-09-14
Susmoy , I have Paste u can check it below script,If u found error then correct it and post again here
Code
<html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>$ENTRY_TITLE$ - $CAT_NAME$ <?if($SECTION_NAME$)?>- $SECTION_NAME$<?endif?> - $MODULE_NAME$ - $SITE_NAME$</title> <?$META_DESCRIPTION$?> <link type="text/css" rel="StyleSheet" href="/_st/my.css" /> </head> <body style="background:#FFFFFF; margin:0px; padding:0px;"> $ADMIN_BAR$ $GLOBAL_AHEADER$ <table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td width="100%" align="center"> <!-- <middle> --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td valign="top" width="202"> $GLOBAL_CLEFTER$ </td> <td valign="top" style="padding:0px 10px 0px 10px;"> <!-- <body> --><table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td width="80%"><a href="$HOME_PAGE_LINK$"><!--<s5176>-->Main<!--</s>--></a> » <a href="$MODULE_URL$"><!--<s5208>-->Articles<!--</s>--></a> <?if($SECTION_NAME$)?>» <a href="$SECTION_URL$">$SECTION_NAME$</a><?endif?> » <a href="$CAT_URL$">$CAT_NAME$</a></td> <td align="right" style="white-space: nowrap;"><?if($ADD_ENTRY_LINK$)?>[ <a href="$ADD_ENTRY_LINK$"><!--<s5202>-->Add new entry<!--</s>--></a> ]<?endif?></td> </tr> </table> <hr /> <div class="eTitle" style="padding-bottom:3px;"><?if($MODER_PANEL$)?><div style="float:right">$MODER_PANEL$</div><?endif?>$ENTRY_TITLE$</div> <table border="0" width="100%" cellspacing="0" cellpadding="2" class="eBlock"> <tr><td class="eText" colspan="2">$MESSAGE$ <?if($USER_LOGGED_IN$)?><?else?> <script type="text/javascript"> // Copyright uCause ~ http://uCause.ucoz.com/ jQuery('div.bbCodeBlock').each(function(){ code = jQuery(this).find('div.codeMessage').html(); jQuery(this).replaceWith('<div class="HideCode"> you can not view this code, you are in the group "Guests" <a href="/index/1" target="_blank">Log in</a> or <a href="$REGISTER_LINK$" target="_blank">Register</a> to view this code</div>'); }); </script> <?endif?><?if($SOURCE$)?><br /><br /><!--<s5174>-->Source<!--</s>-->: <a href="javascript://" rel="nofollow" onclick="window.open('$SOURCE$');return false;">$SOURCE$</a><?endif?></td></tr> <tr><td class="eDetails1" colspan="2"><?if($RATING$)?><div style="float:right"><?$RSTARS$('12','/.s/img/stars/3/12.png','1','float')?></div><?endif?><!--<s3179>-->Category<!--</s>-->: <a href="$CAT_URL$">$CAT_NAME$</a> | <!--<s3178>-->Added by<!--</s>-->: <a href="$PROFILE_URL$">$USER$</a> ($ADD_DATE$) <?if($AUTHOR_NAME$)?> | <!--<s5173>-->Author<!--</s>-->: <u>$AUTHOR_NAME$</u><?endif?> <?if($AUTHOR_EMAIL_JS$)?><a href="$AUTHOR_EMAIL_JS$" title="E-mail">E</a><?endif?> <?if($AUTHOR_SITE$)?><a rel="nofollow" href="javascript://" onclick="window.open('$AUTHOR_SITE$');return false;" title="Web-site">W</a><?endif?> </td></tr> <tr><td class="eDetails2" colspan="2"><!--<s3177>-->Views<!--</s>-->: <b>$READS$</b> <?if($COMMENTS_NUM$)?>| <!--<s3039>-->Comments<!--</s>-->: <b>$COMMENTS_NUM$</b><?endif?> <?if($TAGS$)?> | <!--<s5308>-->Tags<!--</s>-->: $TAGS$<?endif?> <?if($RATING$)?>| <!--<s3119>-->Rating<!--</s>-->: <b><span id="entRating$ID$">$RATING$</span></b>/<b><span id="entRated$ID$">$RATED$</span></b><?endif?></td></tr> </table> <?if($COM_IS_ACTIVE$)?> <?if($COM_CAN_READ$)?> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr><td width="60%" height="25"><!--<s5183>-->Total comments<!--</s>-->: <b>$COM_NUM_ENTRIES$</b></td><td align="right" height="25">$COM_PAGE_SELECTOR$</td></tr> <tr><td colspan="2">$COM_BODY$</td></tr> <tr><td colspan="2" align="center">$COM_PAGE_SELECTOR1$</td></tr> <tr><td colspan="2" height="10"></td></tr> </table> <?endif?> <?if($COM_CAN_ADD$)?> $COM_ADD_FORM$ <?else?> <?if($USER_LOGGED_IN$)?><?else?><div align="center" class="commReg"><!--<s5237>-->Only registered users can add comments.<!--</s>--><br />[ <a href="$REGISTER_LINK$"><!--<s3089>-->Registration<!--</s>--></a> | <a href="$LOGIN_LINK$"><!--<s3087>-->Login<!--</s>--></a> ]</div><?endif?> <?endif?> <?endif?><!-- </body> --> </td> <td valign="top" width="202"> $GLOBAL_DRIGHTER$ </td> </tr> </table> <!-- </middle> --> </td></tr></table> </td><td width="4%" style="background:url(/.s/t/771/22.gif) left repeat-y #FFFFFF;"></td> </tr></table> $GLOBAL_BFOOTER$ </body> </html>
Natashko
Posts: 3366
Message # 66 |
9:30 AM
2011-09-14
Prince0156 , make sure you have embedded the code in the template of the right module (Site News in your case and not Publisher): CP->Design->Design management (templates)->Site News->Page with entry full text and its comments
Prince0156
Posts: 18
Message # 67 |
1:18 PM
2011-09-14
Natashko , Thanx Now its working
Susmoy
Posts: 185
Message # 68 |
4:31 PM
2011-09-14
Prince0156 , LoL, I already told you to do this , Anyway, Now your problem Finished
If I Help you then Please +Rep and Awards
goenda
Posts: 4
Message # 69 |
8:59 PM
2011-10-28
I want to add "code" & "spoiler" button at "Adding entry" page, just the right side of "hide" button
Paradox
Old Guard
Posts: 3284
Message # 70 |
8:18 AM
2011-10-29
goenda , this isn't possible without the use of somewhat advanced custom scripting. Unfortunately we don't provide support on that here. Good luck
Jack of all trades in development, design, strategy. Working as a Support Engineer. Been here for 13 years and counting.
Prince0156
Posts: 18
Message # 71 |
8:23 AM
2011-11-04
I want to Add code & $CUT$ button in main page for adding new entry. Plzzzz Help
Post edited by Prince0156 - Friday, 2011-11-04, 8:23 AM
redhead
Posts: 113
Message # 72 |
9:44 AM
2011-11-04
Prince0156 , Unfortunately we do not provide help with it. You can make it by means of Javascript. Be more attentive and use search next time http://forum.ucoz.com/forum/9-9204-84400-16-1319831991
Expert1510
Posts: 92
Message # 73 |
3:36 AM
2012-04-11
Is there any way I can change the word "Code" at the top to another word?Added (2012-04-10, 9:36 PM) --------------------------------------------- How can I italicize my quotes
Sunny
Posts: 9296
Message # 74 |
11:31 AM
2012-04-11
Quote (Expert1510 )
Is there any way I can change the word "Code" at the top to another word?
Yes. You need to use the following script (change the things in red to anything you want): Quote
<?if($PAGE_ID$='threadpage')?> <script type="text/javascript"> $(".bbQuoteBlock").each(function(){ var alink = $(this).find('.qName').text(); if($(this).find('.qName').size()=='0'){$(this).find('.bbQuoteName').html('<div style="font-size:12px; font-family:georgia; text-align:left; color:#005B9A; margin-bottom:5px;"><b>YOUR TEXT </b></div>')} else if($(this).find('.qName').size()=='1'){$(this).find('.bbQuoteName').html('<div style="font-size:12px; font-family:georgia; text-align:left; color:#005B9A; margin-bottom:5px;"><b>I am quoting <a style="color:#8C8984;" href="/index/8-0-'+alink+'">'+alink+'</b></a>:</div>')} }); $(".bbCodeBlock").each(function(){ var alink = $(this).find('.cName').text(); if($(this).find('.cName').size()=='0'){$(this).find('.bbCodeName').html('<div style="font-size:12px; font-family:georgia; text-align:left; color:#005B9A; margin-bottom:5px;">YOUR TEXT </div>')} }); </script><?endif?>
Paste it after $BODY$ into General appearance of forum page s. The following part of the script is responsible for the appearance of the words: Code
<div style="font-size:12px; font-family:georgia; text-align:left; color:#005B9A; margin-bottom:5px;"><b>YOUR TEXT</b></div>
Quote (Expert1510 )
How can I italicize my quotes
Find the following in CSS: Code
.quoteMessage {background:#4D564D;font-size:9px;}
and add font-style:italic; Code
.quoteMessage {background:#4D564D;font-size:9px;font-style:italic;}
I'm not active on the forum anymore. Please contact other forum staff.
Expert1510
Posts: 92
Message # 75 |
9:59 PM
2012-04-11
Thank you for the codes, they are real worthy, however on the code changer...it worked all fine, but I'm not liking one itsy little thing I didn't like, I uploaded an attachment pic to show you...why doesn't the Confessional line up with the quote box? Quote (Sunny )
<?if($PAGE_ID$='threadpage')?> <script type="text/javascript"> $(".bbQuoteBlock").each(function(){ var alink = $(this).find('.qName').text(); if($(this).find('.qName').size()=='0'){$(this).find('.bbQuoteName').html('<div style="font-size:12px; font-family:georgia; text-align:left; color:#005B9A; margin-bottom:5px;"><b>YOUR TEXT</b></div>')} else if($(this).find('.qName').size()=='1'){$(this).find('.bbQuoteName').html('<div style="font-size:12px; font-family:georgia; text-align:left; color:#005B9A; margin-bottom:5px;"><b>I am quoting <a style="color:#8C8984;" href="/index/8-0-'+alink+'">'+alink+'</b></a>:</div>')} }); $(".bbCodeBlock").each(function(){ var alink = $(this).find('.cName').text(); if($(this).find('.cName').size()=='0'){$(this).find('.bbCodeName').html('<div style="font-size:12px; font-family:georgia; text-align:left; color:#005B9A; margin-bottom:5px;">YOUR TEXT</div>')} }); </script><?endif?>
Post edited by Expert1510 - Wednesday, 2012-04-11, 10:00 PM