/core/functions_seo.php

Description

SEO - Search Engine Optimization functions for ILance

  • author: ILance
  • version: $Revision: 1.0.0 $
Functions
construct_seo_url (line 61)

Function to generate a valid search engine friendly url

  • return: Returns search engine friendly url (ie: itemc9-domain-names-1-year.html)
integer construct_seo_url ([string $type = ''], [integer $catid = 0], [integer $auctionid = 0], [string $name = ''], [string $customlink = ''], [bool $bold = 0], [string $searchquestion = ''], [integer $questionid = 0], [integer $answerid = 0], [string $removevar = ''], [string $extrahref = ''], [string $cutoffname = ''])
  • string $type: url logic type
  • integer $catid: category id
  • integer $auctionid: auction id
  • string $name: title of link (ie: Need design done for a project)
  • string $customlink: (optional) custom link
  • bool $bold: force bold titles
  • string $searchquestion: search question
  • integer $questionid: search question id
  • integer $answerid: search answer id
  • string $removevar: additional variables to exclude from a link (optional), eg: " ,'qid' "
  • string $extrahref: additional a href include (optional)
  • string $cutoffname: short string of the link title (ie: need-design-done-for...)
construct_seo_url_name (line 813)

Function to generate a valid search engine friendly url name (replaces spaces with underscores, etc)

  • return: Returns the url text formatted for any web browser url bar
integer construct_seo_url_name ([string $text = ''], [boolean $forcenolowercase = false])
  • string $text: text
  • boolean $forcenolowercase: force preventing text from being converted to lower case? (default false)
print_hidden_fields (line 986)

Function to print any hidden $ilance->GPC elements into a url string or hidden input fields. All fields values will be wrapped in urlencode.

  • return: Returns HTML representation of the url string or hidden input fields.
integer print_hidden_fields ([bool $string = false], [array $excluded = array()], [bool $questionmarkfirst = false], [string $prepend_text = ''], [string $append_text = ''], [boolean $htmlentities = true], [boolean $urldecode = false], [boolean $showsid = false])
  • bool $string: use input fields (default true)
  • array $excluded: excluded array keys (ie: 'cmd','cid','project_id')
  • bool $questionmarkfirst: print a ? question mark before any url text (default false)
  • string $prepend_text: prepend text to hidden input field names (example: old[)
  • string $append_text: append text to hidden input field names (example: ])
  • boolean $htmlentities: convert text using htmlentities() (default true)
  • boolean $urldecode: return urldecoded() string? (default false & urlencoded())
  • boolean $showsid: show sid[x]=true in url bit? (default false)
print_seo_url (line 31)

Function to parse a valid SEO (search engine optimized) url

  • return: Returns the url
integer print_seo_url ([string $string = ''])
  • string $string: text
rewrite_url (line 919)

Function to rewrite a url by providing a text to remove out of the url

  • return: Returns the replaced text
string rewrite_url ([string $string = ''], [string $removetext = ''], [array $removearray = array()])
  • string $string: search string text
  • string $removetext: replace string text
  • array $removearray: array holding multiple vars to be removed

Documentation generated on Mon, 08 Aug 2011 17:40:58 +0200 by phpDocumentor 1.4.1