• Anonymous
  • Login
  • Register
BlogSphere - Feature Request: Add Recent Comment Block.


Add Recent Comment Block.

I, customizing HotBlogs function, have mounted recent comment function.
Coz HotBlogs function use frequency to be low, customization simplicity.

The way:

1. I increased the number of displays of Hotblog Block to 20 on D6.SideBlocks Subform.

@Do(x1 := @DbColumn("Notes" : "NoCache"; ""; "HotBlogs"; 2);
x2 := @GetProfileField("BlogConfig";"Block_HotBlogs_Count");
x3 := @Subset(x1;20);
@If(x1 = "";"No Hot Blogs";x3)
2.I changed @formula of 2nd column on HotBlogs view.

numVal := 12;
strTextSource:=@Text(body);

@While(@Contains(strTextSource; "<");
leftStr := @Left(strTextSource;"<");
rightStr := @Right(strTextSource;">");
strTextSource := @Trim(leftStr + rightStr)
);

numLen := @Length(@Text(strTextSource));
strText := @If(numLen = 0; "(no comments...)" ;
numLen > numVal; @Left(strTextSource; numVal) + "...";
strTextSource);

HTML := "<span class=\"small\">" + @Text(Storydate;"D2S0")+" "+
"<a href=\""+HTTP_Referer+"\" >" +strText + "</a></span><br>";


HTML



Taken Actions by Owners

No actions have been taken yet.


Documents
In this field you can enter the actual request.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.
In this field owners can describe what they have done or want to do.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.