Quote:
|
Originally Posted by GuMmO
I dont get what this was meant to doo.. i did it anywyas because another question i needed showed me this link.. now when i log into the cppanel of my site, i get that line ontop of my main navigation block.
Q - What was that added line meant to doo? and how do i see if it has worked?
EDIT: well i thought that it might have worked but it didnt, instead i had a part of the line being wrote above my no1 navigation block --> $content "...", and now i cant get rid of the line.
Q - How do i get this to work and how do i take it off.? btw when i click on it it says... "HTTP Error Page cannot be found etc etc.." my site = www.ed-clan.co.uk, can somebody check it please and tell me what i have done wrong and how i can correct it thanks.
|
How in the heck did you manage that?
Reverse what you did to get rid of it.
You need to open the
blocks/blocks-Modules.php file
Just after this code you add that links you want
Code:
/* Now we make the Modules block with the correspondent links */
$content .= "<big>·</big><a href=\"index.php\">"._HOME."</a>
\n";
$result3 = $db->sql_query("SELECT title, custom_title, view FROM " . $prefix . "_modules WHERE active='1' AND title!='$def_module' AND inmenu='1' ORDER BY custom_title ASC");
while ($row3 = $db->sql_fetchrow($result3)) {
$m_title = stripslashes($row3['title']);
$custom_title = $row3['custom_title'];
$view = intval($row3['view']);
$m_title2 = ereg_replace("_", " ", $m_title);
if ($custom_title != "") {
$m_title2 = $custom_title;
}
if ($m_title != $main_module) {
if ((is_admin($admin) AND $view == 2) OR $view != 2) {
$content .= "<big>·</big><a href=\"modules.php?name=$m_title\">$m_title2</a>
\n";
so it would look like this
Code:
/* Now we make the Modules block with the correspondent links */
$content .= "<big>·</big><a href=\"index.php\">"._HOME."</a>
\n";
$result3 = $db->sql_query("SELECT title, custom_title, view FROM " . $prefix . "_modules WHERE active='1' AND title!='$def_module' AND inmenu='1' ORDER BY custom_title ASC");
while ($row3 = $db->sql_fetchrow($result3)) {
$m_title = stripslashes($row3['title']);
$custom_title = $row3['custom_title'];
$view = intval($row3['view']);
$m_title2 = ereg_replace("_", " ", $m_title);
if ($custom_title != "") {
$m_title2 = $custom_title;
}
if ($m_title != $main_module) {
if ((is_admin($admin) AND $view == 2) OR $view != 2) {
$content .= "<big>·</big><a href=\"modules.php?name=$m_title\">$m_title2</a>
\n";
$content .= "<big>·</big><a href=\"http://www.yourlink.com\">YOURLINK</a>
\n";
notice the line I added?
Code:
$content .= "<big>·</big><a href=\"http://www.yourlink.com\">LINKNAME</a>
\n";
you can modify that line with your yourlink.com and your LINKNAME.
Now, if you want all your Content pages displayed in teh Modules block, you can simply copy the Content blocks coe to the Modules block code like this: SAme code as above, instead of adding that one line I'll add the entire Content block code so the Modules block will also display all the Content pages.
Code:
/* Now we make the Modules block with the correspondent links */
$content .= "<big>·</big><a href=\"index.php\">"._HOME."</a>
\n";
$result3 = $db->sql_query("SELECT title, custom_title, view FROM " . $prefix . "_modules WHERE active='1' AND title!='$def_module' AND inmenu='1' ORDER BY custom_title ASC");
while ($row3 = $db->sql_fetchrow($result3)) {
$m_title = stripslashes($row3['title']);
$custom_title = $row3['custom_title'];
$view = intval($row3['view']);
$m_title2 = ereg_replace("_", " ", $m_title);
if ($custom_title != "") {
$m_title2 = $custom_title;
}
if ($m_title != $main_module) {
if ((is_admin($admin) AND $view == 2) OR $view != 2) {
$content .= "<big>·</big><a href=\"modules.php?name=$m_title\">$m_title2</a>
\n";
$result = $db->sql_query("SELECT pid, title FROM " . $prefix . "_pages WHERE active='1'");
while ($row = $db->sql_fetchrow($result)) {
$pid = intval($row['pid']);
$title = stripslashes($row['title']);
$content .= "<big>·</big><a href=\"modules.php?name=Content&pa=showpage&pid=$pid\">$title</a>
";
}