pirula 0 Newbie Poster

@pixelsoul
"A quick look around (like literally 2 minutes) and I found this font that is very similar to the look of their logo."

yep, it looks very similar to the image :) I would not dare to say it's the right match, probably because the logo is custom made but it's definitely something I can start with. thanks for finding this font

pirula 0 Newbie Poster

I have been trying to figure out what is the name of the font used to create this stylish logo - no luck so far :(

so, does anyone know what font is used for the "box" logo? please take a look at http://www.box.net/

I would really appreciate your help on this one.

pirula 0 Newbie Poster
pirula 0 Newbie Poster

I want to create a custom search engine(SE) friendly 404 page to handle 404 (Not found) and 404-like content. In theory everything should be done in application.cfc page with a few lines of code.

Here is what I have in mind. CF code needs to recognize the 404s, redirect to SE friendly 404-page.cfm (for example) and then to redirect to the index.cfm!? Also it would be great if the code could recognize both http://www.whatever.com/abc.html and http://www.whatever.com/abc/ as 404s.

The question is, should I use onMissingTemplate()?
Please give me some example or at least tell me where to start.

pirula 0 Newbie Poster

I found a solution for my problem! If you need code please let me know i will post it here.

pirula 0 Newbie Poster

similar idea came to me. i figured out it has something to do with page
refresh. It's perfectly clear now, you explained it well in your first post.
Problem is i still can not make it work. I tried several things with cfifs and cfaborts and somehow, for some reason i didn't succeed. I will keep trying.

i already tried Compare and same! also your code from second post doesn't seem to be working as it supose to. problem still persist.

pirula 0 Newbie Poster

I am so confused, I want to add some anti-spam security to my upcoming register page but something is really wrong.
Note that my server is Coldfusion MX7 (i can not afford better) and because of that i can not use
cfimage(captcha).

This is what i have:

<cfset strLowerCaseAlpha = "abcdefghijklmnopqrstuvwxyz">
 
<cfset strUpperCaseAlpha = UCase( strLowerCaseAlpha )>

<cfset strNumbers = "0123456789">
 
<cfset strAllValidChars = (
    strLowerCaseAlpha &
    strUpperCaseAlpha &
    strNumbers
    )>
 
<cfset arrPassword = ArrayNew( 1 )>
 
<cfset arrPassword[ 1 ] = Mid(
    strNumbers,
    RandRange( 1, Len( strNumbers ) ),
    1
    )>
 
<cfset arrPassword[ 2 ] = Mid(
    strLowerCaseAlpha,
    RandRange( 1, Len( strLowerCaseAlpha ) ),
    1
    )>
 
<cfset arrPassword[ 3 ] = Mid(
    strUpperCaseAlpha,
    RandRange( 1, Len( strUpperCaseAlpha ) ),
    1
    )>
 
<cfloop
    index="intChar"
    from="#(ArrayLen( arrPassword ) + 1)#"
    to="8"
    step="1">
 
    <cfset arrPassword[ intChar ] = Mid(
        strAllValidChars,
        RandRange( 1, Len( strAllValidChars ) ),
        1
        )>
 
</cfloop>
 
 
<cfset strPassword = ArrayToList(
    arrPassword,
    ""
    )>




<cfif IsDefined("FORM.spamcode")>
    <cfif form.spamcode neq strPassword >
    not equal
    <cfelse>
   finally working
</cfif>
</cfif>



                 <cfif isdefined ("strPassword")>
                 <cfoutput>#strPassword#</cfoutput>
                 </cfif>


<form action="" method="post">
  <label>
    <input type="text" name="spamcode" id="spamcode" />
  </label>
</form>

this is just testing code but it is somehow messed up.
every time when i click on the submit button i get not equal!
I also need to add when i set up strPassword manualy instead of ArrayToList, for example
<cfset strPassword=test413> and then insert in form test413 and compare it everything is fine. You can copy/paste this code to …

pirula 0 Newbie Poster

i was tired to think when i posted question. You can use and i am using cfif and cfloop tags in cfqueries. Just loop url.name, that is simple explanation and for advanced one you will need a couple of cfif,cfset and cfloop's in cfqueries.

pirula 0 Newbie Poster

Hi,

I would like to search one field in database with multiple words. Also i will allow searches for example : a or cs....(one,two characters).
My code:

<cfparam name="URL.NAME" default="1" type="Any">
<cfquery name="search" datasource="datasource">
SELECT *
FROM search
WHERE NAME LIKE ="%#URL.NAME#%"
ORDER BY DATE DESC
</cfquery>

this code works fine but only with one word or if there is exact match with multiple words.
Example:
database rows:
1.adobe photohop
2.adobe photoshop cs4

search string adobe(my code) will display both results,but
search string adobe cs4 will not display results. I want if user type one,two, three words to match any of these words and to display all results like google.
What am I doing wrong? I also tried to replace characters and add + but no results.
Any idea or example i would appreciate.

pirula 0 Newbie Poster

Hi, i have problem to send cfmail to @yahoo. I am using simple contact us page and another page to send emails.

contactus.cfm

<form id="form2" name="form2" method="POST" action="send-email.cfm">
<input name="username" type="text" id="username" size="40" />
<label>
 <input name="email" type="text" id="email" size="40" />
</label>
<label>
<input name="subject" type="text" id="subject" size="40" />
</label>
<textarea name="message" cols="70" rows="15" id="message"></textarea>

send-email.cfm

this is email for me (i will recive this email):

<CFMAIL to="webmaster@mysite.com" from="#form.email#" Subject="#form.subject#" server="mail.mysite.com">
        #form.message#

        Message By:#form.username# 
</CFMAIL>

and this is reply to user:

   <CFMAIL to="#form.email#" from="webmaster@mysite.com" Subject="Thank you for contacting us">

    Thank you for your message,
  
    You wrote:
    #form.message#

    Message By: #form.username# - #form.email#
 
    </CFMAIL>

<cflocation url="index.cfm">

When somebody contact me with @hotmail,@gmail,@mydomain..
everything is fine i receive email and user receive email, byt when somebody try with @yahoo there is a problem i can receive email but user receive email as spam with delay 20min-few hours....I have same problem with my register page can somebody tell me what am i doing wrong. I tried to type
server="mail.mysite.com"
and
server="127.0.0.1" and nothing, user with @yahoo will receive email as spam with delay.
Please help me I am desperate!!!!

pirula 0 Newbie Poster

Hi can anyone please help me I am pretty much stuck.

I want to add coldfusion counter on page , simple or advanced i can type whatever I want, that is not an issue. I tried i think 7-10 different types(I made all of them) of Coldfusion counter and something is wrong, my cfm counter is messy. I am sure that any of this code should work. Problem is in google adsense. When I delete google adsense from that page any code i type work fine. Can anyone please help me with my problem.

this is code i ma using now(I tried a few different code for update(count) on this page and then i decided to try with cfhttp...):

<cfparam name="URL.idscripts" default="1" type="Any">
<cfset count = 1*1>
<cfhttp method="Post"
	url="http://counter.cfm">
       <cfhttpparam type="URL"
		value="#URL.idscripts#"
		name="ID">
        
      <cfhttpparam type="URL"
		value="#count#"
		name="count">    
</cfhttp>

page that counts:

<cfparam name="URL.ID" default="14" type="Any">
<cfparam name="URL.count" default="1" type="Any">

<cfset element = #URL.ID#>
<cfset rate = #URL.count#>
// get total votes and current rate
<cfquery datasource="" name="getTotalVotes">
SELECT total_votes, total_value, post_rate
FROM scripts
WHERE idscripts = #element#
</cfquery>
// calculate new rate
<cfset newRate = (#getTotalVotes.total_value# + #rate#)/(#getTotalVotes.total_votes# + 1)>
// update rate
<cfquery datasource="" name="updateRate">
UPDATE scripts
SET post_rate = #newRate#,
total_value= (#getTotalVotes.total_value#+#rate#),
total_votes= (#getTotalVotes.total_votes# + 1)
WHERE idscripts = #element#
</cfquery>

again notice: When I delete google commercial any code works fine