Thanks rajug,
it’s work now but we have request please
1-we have spider that import links from google but its import url, title and description, we want it import also keywords
this is code
function spider_link($url,$title,$description,$keywords) {
global $s;
$s[x]++;
echo '<tr>
<td align="left" colspan="2"><span class="text13"><input class="bbb" type="checkbox" name="import_it[]" value="'.$s[x].'" checked> <a target="nove" href="'.$url.'">'.$title.'</a><br />'.$description.'<br /></td>
</tr>
<tr>
<td align="left"><span class="text13">URL: </td>
<td align="left"><input class="field10" name="url['.$s[x].']" style="width:550px" maxlength=255 value="'.$url.'"></td>
</tr>
<tr>
<td align="left"><span class="text13">Title: </td>
<td align="left"><input class="field10" name="title['.$s[x].']" style="width:550px" maxlength=255 value="'.$title.'"></td>
</tr>
<tr>
<td align="left"><span class="text13">Description: </td>
<td align="left"><input class="field10" name="description['.$s[x].']" style="width:550px" maxlength=255 value="'.replace_once_text($description).'"></td>
</tr>
<tr>
<td align="left"><span class="text13">Keywords: </td>
<td align="left"><input class="field10" name="keywords['.$s[x].']" style="width:550px" value="'.$keyword.'"></td>
</tr>';
}
we tried to use this
function spider_link($url,$title,$description,$keywords) {
global $s;
[COLOR="red"][B]$tags = get_meta_tags('.$url.');[/B][/COLOR]
$s[x]++;
echo '<tr>
<td align="left" colspan="2"><span class="text13"><input class="bbb" type="checkbox" name="import_it[]" value="'.$s[x].'" checked> <a target="nove" href="'.$url.'">'.$title.'</a><br />'.$description.'<br /></td>
</tr>
<tr>
<td align="left"><span class="text13">URL: </td>
<td align="left"><input class="field10" name="url['.$s[x].']" style="width:550px" maxlength=255 value="'.$url.'"></td>
</tr>
<tr>
<td align="left"><span class="text13">Title: </td>
<td align="left"><input class="field10" name="title['.$s[x].']" style="width:550px" maxlength=255 value="'.$title.'"></td>
</tr>
<tr>
<td align="left"><span class="text13">Description: </td>
<td align="left"><input class="field10" name="description['.$s[x].']" style="width:550px" maxlength=255 value="'.replace_once_text($description).'"></td>
</tr>
<tr>
<td align="left"><span class="text13">Keywords: </td>
<td align="left"><input class="field10" name="keywords['.$s[x].']" style="width:550px" value="'.[COLOR="red"][B]$tags[/B][/COLOR].'"></td>
</tr>';
}
to import keywords also but it’s faild
2-if this code like this to get new items in its template
{ $table = $s[item_types_tables][$what];
$data[$what][new_items] = create_in_files_get_new_items($what);
$q = dq("select * from $s[pr]cats where use_for = '$what' AND visible = '1' AND level = '1' order by name",1);
}
if ($mark=='new_items')
{ //foreach ($item_array as $k5=>$v5) echo "$k5 - $v5<br>";
if ($what=='links') $new_items[$what][$st][] = php_rebuild_parse_part('new_links_template.html',$st,$item_array);
}
how get new item in category number #72 ??
we tried this but not work !!
{ $table = $s[item_types_tables][$what];
$data[$what][new_cat_items] = create_in_files_get_new_items($what);
$q = dq(“select * from $s[pr]cats where use_for = ‘$what’ AND visible = ‘1’ AND level = ‘1’ AND id=‘72’ order by name”,1);
}
if ($mark==‘new_catitems’)
{ //foreach ($item_array as $k5=>$v5) echo “$k5 - $v5<br>”;
if ($what==‘links’) $newcatitems[$what][$st][] = php_rebuild_parse_part('new_linkscat_72_template.html’,$st,$item_array);
}
can you help