Новости:

Приветствуем Вас на философском форуме!

Главное меню

All Encyclopedia Hacks

Автор Пламен, 23 сентября 2003, 16:45:44

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

Пламен

To begin with, here is the code for transferring the Encyclopedy and the Term Titles into the Browser Bar

open /Encyclopedia/index.php

and REPLACE
$pagetitle = "- "._ENCYCLOPEDIA."";
WITH
$pagetitle = "$name";
if($tid) {
 $sql = "SELECT title, eid FROM ".$prefix."_encyclopedia_text WHERE tid='$tid'";
 $result = $db->sql_query($sql);
 $row = $db->sql_fetchrow($result);
 $term = $row[title];
 $entitle = $row[eid];

 $sql = "SELECT title, eid FROM ".$prefix."_encyclopedia WHERE eid='$entitle'";
 $result = $db->sql_query($sql);
 $row = $db->sql_fetchrow($result);
 $entitle = $row[title];

 $pagetitle = "$name | $entitle | $term";  
}
if($eid) {
 $sql = "SELECT title FROM ".$prefix."_encyclopedia WHERE eid='$eid'";
 $result = $db->sql_query($sql);
 $row = $db->sql_fetchrow($result);
 $title = $row[title];

 $pagetitle = "$name | $title";  
}
elseif($eid) {
 $sql = "SELECT title FROM ".$prefix."_encyclopedia WHERE eid='$eid'";
 $result = $db->sql_query($sql);
 $row = $db->sql_fetchrow($result);
 $title = $row[title];

 $pagetitle = "| $name | $title";  
}

Then you will have the title of the Encyclopedia and the entry title in the Browser Bar, as demonstrated here, in our historical Term One of the OG Encyclopedia. :-)

http://www.orientalia.org/term1.html

Пламен

Hack # 2

This simple hack will make bigger the font of the encyclopedia term Title and put a search icon after the title to search for all entries in all encyclopedia that contain the same term.

1. Dowload this icon in ../images/



2. Open /modules/Encyclopedia/index.php

FIND echo "<font class=\"title\">$ency[title]</font><br><br><br>";
and REPLACE with
echo "<br><font class=\"storytitle\">$ency[title] <a href=\"gate.html?name=Encyclopedia&file=search&query=$ency[title]\"><img src=\"images/icon_mini_search.gif\" border=0 alt=\""._ALLTERMS."\" align=\"middle\"></a></font><br>";


change gate.html to  m o d u l e s . p h p  without spaces

put a nonbreaking space
BEFORE<a href
translate _ALLTERMS in your lang-file

Upload and look at the result
http://www.orientalia.org/term21656.html

Click on the search icon...

novalife

Thanks very much for the lovely work. Used it nicely. Though I am still worried with the way my encyclopedia is getting google tapped. it's not working perfectly.

Пламен

It will be indexed, don't worry. I've just checked the encyclopedia and it works like a charm. You need only to put at the end of the encyco description this link, saying

Get All Terms

centered on a prominent central place after the descritpion.

Google will get all terms and index them, as is indexing mine - over 15000 terms indexed. Now Inktomi is also indexing the encyclopedia.

admin

no that's working that's not the problem, but as you see on my site, http://www.mysite.info/modules.php?name=Encyclopedia does not get tapped as http://www.mysite.info/encyclopedia.htm

that is the problem.

Пламен

It is not tapped because the standard module link is

http://www.mysite.info/modules.php?name=Encyclopedia

If we rewrite this root url some of the other files using the same root will not work properly. That's why we take the long url

http://www.mysite.info/modules.php?name=Encyclopedia& file = index

Put a link /encyclopedia.html in the horizonatl navigation bar. But this is not needed because Google normally index all basic firles, like the first one. Or you can post the link in some message at you Forum and google will also fetch it.

What is more important is that if there will be no international diacritics and foreign languages for the Encyclopedia title, we could googlify the letters too.

admin

Цитата: "Plamen"Hack # 2
echo "<br><font class=\"storytitle\">$ency[title] &<a href=\"gate.html?name=Encyclopedia&file=search&query=$ency[title]\"><img src=\"images/icon_mini_search.gif\" border=0 alt=\""._ALLTERMS."\" align=\"middle\"></a></font><br>";

I had to make a couple of small changes to get this working for me:

echo "<br><font class=\"storytitle\">$ency[title] <a href=\"gate.html?name=Encyclopedia&file=search&query=$ency[title]\"><img src=\"images/icon_mini_search.gif\" border=0 alt=\""._ALLTERMS."\" align=\"middle\"></a></font><br>";

I changed

&<a href=\

to

<a href=\

and

gate.html

to

gate.html

Then, success!

Thanks for the handy hack!

Пламен

Thank you for the reminder.

The server is overwriting

"&n b s p;" without spaces to &
and
http://mysite.com/modules.php
to
http://mysite.com/gate.html

checksum

Hi,
where can I get the GT hack for the encyclopedia?

Пламен

Have you checked the Googlifier section? There are instructions on how to change the code provided by the Googlifier in order to make the Encyclopedia as it is now on our site.