Author |
Message |
gonehaywire
Worker


Joined: May 20, 2004
Posts: 126
|
Posted:
Mon Aug 02, 2004 7:31 pm |
|
Good day,
On my site i would like to add a image next to each link under Main Links such as Home, FAQ, Feedback and so on for the rest which file would I open up to do that? Thanks.. |
|
|
|
 |
GanjaUK
Life Cycles Becoming CPU Cycles

Joined: Feb 14, 2004
Posts: 633
Location: England
|
Posted:
Mon Aug 02, 2004 7:40 pm |
|
block-Modules.php |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
 |
gonehaywire

|
Posted:
Mon Aug 02, 2004 7:57 pm |
|
Cool thanks i see the one for home but not the rest is each link in it's own folder or something? |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Mon Aug 02, 2004 8:35 pm |
|
Depending on which version of nuke you are using, you will find code like this from v7.3Code: /* Now we make the Modules block with the correspondent links */
$content .= "<strong><big>·</big></strong> <a href=\"index.php\">"._HOME."</a><br>\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 .= "<strong><big>·</big></strong> <a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
}
}
}
| Now you will have to test each title and then assign an image to the anchor tag based on that value. |
|
|
|
 |
gonehaywire

|
Posted:
Mon Aug 02, 2004 8:55 pm |
|
Yea thats the version i am using 7.3 |
|
|
|
 |
gonehaywire

|
Posted:
Mon Aug 02, 2004 9:10 pm |
|
Raven wrote: | Depending on which version of nuke you are using, you will find code like this from v7.3Code: /* Now we make the Modules block with the correspondent links */
$content .= "<strong><big>·</big></strong> <a href=\"index.php\">"._HOME."</a><br>\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 .= "<strong><big>·</big></strong> <a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
}
}
}
| Now you will have to test each title and then assign an image to the anchor tag based on that value. |
ok im in the top line:
"<strong><big>·</big></strong>
I added <images/icon_dot.gif">
and got error ? |
|
|
|
 |
Raven

|
Posted:
Mon Aug 02, 2004 9:13 pm |
|
You add images using the HTML img tagCode:<img src="images/icon_dot.gif" />
|
|
|
|
|
 |
gonehaywire

|
Posted:
Mon Aug 02, 2004 9:29 pm |
|
Tried that and that didnt do it <img src="images/icon_dot.gif" />
<img src=images/icon_dot.gif\">
even added my full url and none worked |
|
|
|
 |
Raven

|
Posted:
Mon Aug 02, 2004 9:33 pm |
|
It is the correct way but your syntax may be wrong. TryCode:<img src=\"images/icon_dot.gif\" />
| Now I am assuming that the path to your image is correct. |
|
|
|
 |
gonehaywire

|
Posted:
Mon Aug 02, 2004 9:35 pm |
|
Ahh that one worked YAY now just need to find the rest of them down the list |
|
|
|
 |
gonehaywire

|
Posted:
Mon Aug 02, 2004 9:43 pm |
|
Thanks Raven.. But I forgot to ask one small question lol in the Main Links area how can i break them up some like put a <br> or a <p> like
Main Links
Home
FAQ
Feedback
Forums
<br>or<p>
then the next set of links? in the same block-Modules.php file?
Anyone here lolQuote: | Does anyone want to tackle this? feel free to jump in | I just need to know how and where do I add either <br> or <p> in the Main Link section (Which PhP file that is) I would like to add a image for each area if that makes sence? Thanks |
|
|
|
 |
maxout
New Member


Joined: Nov 06, 2004
Posts: 1
|
Posted:
Sat Dec 04, 2004 7:53 pm |
|
Where I can find next links so as..
AvantGo , Downloads etc.. ? I want to add on fron of them some image as well . |
|
|
|
 |
|