Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.3
Author Message
gonehaywire
Worker
Worker



Joined: May 20, 2004
Posts: 126

PostPosted: Mon Aug 02, 2004 7:31 pm Reply with quote

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..
 
View user's profile Send private message Visit poster's website
GanjaUK
Life Cycles Becoming CPU Cycles



Joined: Feb 14, 2004
Posts: 633
Location: England

PostPosted: Mon Aug 02, 2004 7:40 pm Reply with quote

block-Modules.php

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
gonehaywire







PostPosted: Mon Aug 02, 2004 7:57 pm Reply with quote

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

PostPosted: Mon Aug 02, 2004 8:35 pm Reply with quote

Depending on which version of nuke you are using, you will find code like this from v7.3
Code:
    /* Now we make the Modules block with the correspondent links */


    $content .= "<strong><big>&middot;</big></strong>&nbsp;<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>&middot;</big></strong>&nbsp;<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.
 
View user's profile Send private message
gonehaywire







PostPosted: Mon Aug 02, 2004 8:55 pm Reply with quote

Yea thats the version i am using 7.3
 
gonehaywire







PostPosted: Mon Aug 02, 2004 9:10 pm Reply with quote

Raven wrote:
Depending on which version of nuke you are using, you will find code like this from v7.3
Code:
    /* Now we make the Modules block with the correspondent links */


    $content .= "<strong><big>&middot;</big></strong>&nbsp;<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>&middot;</big></strong>&nbsp;<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>&middot;</big></strong>

I added <images/icon_dot.gif">&nbsp;
and got error ?
 
Raven







PostPosted: Mon Aug 02, 2004 9:13 pm Reply with quote

You add images using the HTML img tag
Code:
<img src="images/icon_dot.gif" />
 
gonehaywire







PostPosted: Mon Aug 02, 2004 9:29 pm Reply with quote

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







PostPosted: Mon Aug 02, 2004 9:33 pm Reply with quote

It is the correct way but your syntax may be wrong. Try
Code:
<img src=\"images/icon_dot.gif\" />
Now I am assuming that the path to your image is correct.
 
gonehaywire







PostPosted: Mon Aug 02, 2004 9:35 pm Reply with quote

Ahh that one worked YAY now just need to find the rest of them down the list
 
gonehaywire







PostPosted: Mon Aug 02, 2004 9:43 pm Reply with quote

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 lol
Quote:
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
New Member



Joined: Nov 06, 2004
Posts: 1

PostPosted: Sat Dec 04, 2004 7:53 pm Reply with quote

Where I can find next links so as..
AvantGo , Downloads etc.. ? I want to add on fron of them some image as well .
 
View user's profile Send private message
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.3

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©