I've noticed that comments in VB code snippets are ended in the middle of a line if an apostrophe is present(i.e. using a contraction), then continue from the next one over several lines until it reaches another. I'm wondering if that can't be changed to keep it as a comment right to the next newline character. The code highlighting really gets screwed up the way it is.

Member Avatar
Member Avatar
+0 forum 6

I'm currently using this code to display a video lightbox on my site. If possible, I'm looking into rendering a disqus comment system under the popup video. Is that possible? Here's the js code. var Videobox = { init: function (options) { // init default options this.options = Object.extend({ resizeDuration: 400, // Duration of height and width resizing (ms) initialWidth: 250, // Initial width of the box (px) initialHeight: 250, // Initial height of the box (px) defaultWidth: 425, // Default width of the box (px) defaultHeight: 350, // Default height of the box (px) animateCaption: true, // Enable/Disable caption …

Member Avatar
Member Avatar
+0 forum 1

I put in my usercontrol(.ascx) the facebook social plugin(code below) <fb:comments href="my link here" num_posts="2" width="470"></fb:comments> My problem is it is not showing in my page(when it is in user control). The plugin works fine with aspx but not with the usercontrol.ascx

Member Avatar
Member Avatar
+0 forum 1

I've been trying to write this program and so far this is the best I could come up with. It doesn't work though. #include<stdio.h> #include<conio.h> void main() { FILE *fp,*fp1; int i=0; char str[80],fname[]="a1.txt",fname1[]="a2.txt"; clrscr(); fp=fopen(fname,"r"); fp1=fopen(fname1,"w"); if(fp==NULL) { printf("\n Cannot Open File : %s",fname); getch(); exit(1); } printf("\n File Data : \n"); while(!feof(fp)) { fgets(str,80,fp); // printf("%s",str); // fputs(str,fp1); if(strstr(str,"//")) { while(str[i]!='\0') { if(str[i]!='/'&&str[i+1]!='/') { putc(str[i],fp1); i++; } else { putc('\0',fp); i++; break; } } } else { fputs(str,fp1); } } fclose(fp); fclose(fp1);

Member Avatar
Member Avatar
+0 forum 5

Do-follow blogs on the other hand do not use the “no-follow” attribute in their links. This allows search engines to index the links in comments and pass page rank accordingly. As a result, commenting on these blogs offers improved SEO benefits.

Member Avatar
Member Avatar
+0 forum 4

I would like to put a scollbar in my page so that people would not see all the comments in my commentbox and would have to scroll down. I **do not** want to add an iframe or a textarea to do this. How can i do this? Sanchixx

Member Avatar
Member Avatar
+0 forum 6

Hi, I'm writing a simple page for University. I need it to basically just echo user input from a text box back onto the screen. Here is the code I have so far: Code blocks are created by indenting at least 4 spaces ... and can span multiple lines <!DOCTYPE html> <meta charset='UTF-8'> <title>Comments</title> </head> <body> <h3>Post Comment</h3> <form action="index.php" method="post"> <textarea name ="content" rows="3" cols="100"></textarea> <br> <input type="submit" value="POST"/> </form> </body> </html> I have no idea how to get the user input to echo back to the screen. My friend suggested PHP and says it's fairly simple and can …

Member Avatar
Member Avatar
+0 forum 7

I have an assignment question that asks us, given a test phrase, [CODE]// the first comment public class Test { // another comment public static void main( String[] args ) { // the main method String slashes = "//"; // ignore // in quotes System.out.println( slashes + " hi " + slashes ); } // end of main }[/CODE] ^ Test Phrase We have to go through the code and remove all the 1 line comments. Taking what was given as an aid to the problem i modified to look like this [CODE]import java.io.IOException; import java.io.BufferedReader; import java.io.FileReader; import java.io.Reader; …

Member Avatar
Member Avatar
+0 forum 11

Hello, I'm trying to make a facebook wall-alike php script. It loads the posts stuff, photo url and user stuff like username and user id from my MySQL database. It also checks if the post is just a comment to another post (parentof). I can present all the original posts with pictures with a simple do-while using <table> tags . But how could I present the comments under every post? I guess with another do-loop, but how? Here is my code: [CODE]<?php require_once "config.php"; $result = mysql_query('SET NAMES utf8'); $result = mysql_query('SET CHARACTER SET utf8'); $wallhaku = mysql_query("SELECT `wall`.`post_id`, `wall`.`parentof`, …

Member Avatar
Member Avatar
+0 forum 7

Is there any way to respond to reputation comments as I feel it a little unfair that if someone writes a comment about a post I have made that I feel is unjustified that I can't respond to it (unless I am missing something)? Or even a way to dispute a negative mark and comment?

Member Avatar
Member Avatar
+0 forum 9

Here is a complete and working code that 1. Adds the numbers(input) to get a sum(output) 2. Sorts the numbers in a descending order Can you post any suggestions on how I can improve my code :) main.c [CODE]#include <stdio.h> #include "header.h" main (){ int sum, x, y, z,choices; input(&x, &y, &z); printf ("\nChoose function\n"); do{ printf("\n1 -Input-Output (Add) function \n"); printf("2 - Swap and Sort function \n"); printf("3 - Quit\n"); scanf ("%d", &choices); switch (choices) { case 1: addfunction(&x, &y, &z, &sum); printf ("%d+%d+%d=%d.\n",x,y,z,sum); break; case 2: sortnswap(&x, &y, &z); printf ("%d %d %d \n", x, y, z); break; …

Member Avatar
Member Avatar
+0 forum 3

Ok in Code blocks I was commenting my code instuff and since I have a computer running xp when it is bult for winNT or win95 and a compaqu keyboard I have many tyPos, freezes, pieces of curcutry on my driveway under my window I accsedentaly typed three / in the comment and codeblocks made it a shade of perrywikle and when the fouth / came up it went back to gray. So my question is what does /// mean in C++ I searched comments and escape characters but nothing came up.

Member Avatar
Member Avatar
+0 forum 1

[CODE]<div id="test1"><div id="fb-root"></div> <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"> </script> <fb:comments href="http://www.jewelryfresh.com/" num_posts="10" width="739"></fb:comments></div>[/CODE] Above is the code for facebook comments box. I want to dynamically change the href value to the page on which it is. How can i do it.I do not want the static href value as it is now. Please help.

Member Avatar
+0 forum 0

I am trying to create a movie review website, the majority of my site is coming together. I do not know how to create a script that will display user reviews on the website. Here is what I have so far for the form, how do I display user reviews after they hit the submit button? [code] <label>Enter your name here: <form action="http://www.daaq.net/utils/echopost.php " method= "post" <br/> First name: <input type="text" name="firstname" /><br/> Last name: <input type="text" name="lastname" /><br/> </label> <label>Write Review: <br/> <textarea name= "textareasample" rows="5" cols="30" wrap="physical"> </textarea> </label> <br/> <label>Rate Movie(Double-Click): <br/> <input type="radio" name="rating" value="one"/> One …

Member Avatar
Member Avatar
+0 forum 3

Hi Guys...can anyone help me out? I just to have the list of topics. Example: About Nature About man About Society Now, this is what i want to do...if I will go to each of it. I can post comment of each of them. And when I view one of them all the comments of each topic will be display. Can anyone help me? I am happy to hear your answer guys. Please help me. I am confused of this. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 1

Hi, I am trying to include a commented threaded system for my webpage. I have the db design ready... Comments Table Comment Id Parent ID (will be zero for the base comment) Comment Description Submitted by Submitted on I am able to store comments inside the table.I need to display it in a indented format.. Comment 1 .. Reply to Comment1 ...Next reply Which control to use for displaying comments? How to do it? Any Ideas?

Member Avatar
+0 forum 0

Can Anyone help me implement a nested comment structure like reddit using ASP? I have a few ideas like using ListView or XML or something, but I'm not sure how. I googled a lot but it wasn't too much help. Is there a way I can implement a reddit-like nested comment structure in my website? Any help would be appreciated, because I have no idea even where to start.

Member Avatar
Member Avatar
+0 forum 1

I followed this tutorial and set up comments on my website: [url]http://www.ruhanirabin.com/easy-steps-to-facebook-connect-comment-box-how-to/[/url] Our site received hundreds of "Like's" and Comments. I changed the URL for my root directory and got a SSL certificate. The Facebook app is broken now, can anyone lend some insight?

Member Avatar
Member Avatar
+0 forum 2

For homework in turbo pascal I have to find a some bugs and refactor them. I need some help changing this so that it does the same thing which is to remove comments without the excessive code. [CODE]k:=0; for i:=length(s) downto 1 do if s[i]=' ; ' then k:=i; if k>0 then s:=lstr(s,k-1); [/CODE]

Member Avatar
Member Avatar
+0 forum 1

I have a need to strip "some" of the comments from a C file. The comments can be C or C++ style and can ofcourse be part, single or multi line comments. As in [code=c]/* usual C style comment */ int i; /* this is going to count things */ // a single line comment // which can be followed by one or more /* long comments over two or even more lines */ [/code] To simply remove them with a regex is reasonably simple. There is a twist in the tail with my question. I need to preserve the …

Member Avatar
Member Avatar
+0 forum 1

This may just be an impression, but I think DANIWEB is working faster, at least on my system!:)

Member Avatar
Member Avatar
+0 forum 22

The End.