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: Thu Aug 05, 2004 3:31 pm Reply with quote

Goodday,
I added images to my Main Links Modules you can see on my site but i need to add either a <br> or <p> in them to space up the menu something like this:

Home
FAQ
Feedback
<p>or<br>
Forums
PrivateMseegaes
<br>or<p>
ETC,ETC

But looking in block-Modules.php file i dont see where to or even if thats the right file? I dont see any of those name links in there besides _Home.

How it is now
Home
FAQ
Feedback
Forums
Private Messages
Qshoutblock
Recommend Us
Search
Stories Archive
Stream-1
Stream-2
Submit News
Top 10
Topics
TopSites
WeatherHarvest
Web Links
Webcams
Your Account

Thanks hope someone can point me in right direction.
 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Fri Aug 06, 2004 12:25 pm Reply with quote

You don't have your URL listed so I can't see anything. Not sure how you're adding the images, but I would expect that you are testing the value of $m_title and then applying an appropriate image? If so, you would do a similar thing where you test for a certain title and then add the <br> to $content.
 
View user's profile Send private message
gonehaywire







PostPosted: Fri Aug 06, 2004 8:45 pm Reply with quote

[ Only registered users can see links on this board! Get registered or login! ] is my url look at Main Links i wasnt to break them up some add a image for each area just a small one you can see on this waht i am talking about [ Only registered users can see links on this board! Get registered or login! ] see under Main Menu his area withthe small images and the <br> or <p> that is what i am talking about i dont know which file i open up to add them to i looked in block-module.php and i dont see? this what i see in mine:

Quote:
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* [ Only registered users can see links on this board! Get registered or login! ] */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
/* Additional security & Abstraction layer conversion */
/* 2003 chatserv */
/* [ Only registered users can see links on this board! Get registered or login! ] -- [ Only registered users can see links on this board! Get registered or login! ] */
/************************************************************************/

if (eregi("block-Modules.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}

global $prefix, $db, $admin;

$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/module.php")) {
include("themes/$ThemeSel/module.php");
if (is_active("$default_module") AND file_exists("modules/$default_module/index.php")) {
$def_module = $default_module;
} else {
$def_module = "";
}
}

$row = $db->sql_fetchrow($db->sql_query("SELECT main_module FROM ".$prefix."_main"));
$main_module = $row['main_module'];

/* If the module doesn't exist, it will be removed from the database automaticaly */
$result2 = $db->sql_query("SELECT title FROM " . $prefix . "_modules");
while ($row2 = $db->sql_fetchrow($result2)) {
$title = stripslashes($row2['title']);
$a = 0;
$handle=opendir('modules');
while ($file = readdir($handle)) {
if ($file == $title) {
$a = 1;
}
}
closedir($handle);
if ($a == 0) {
$db->sql_query("DELETE FROM ".$prefix."_modules WHERE title='$title'");
}
}

/* Now we make the Modules block with the correspondent links */

$content .="<img src=\"images/icon_dot.gif\" />&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 .= "<img src=\"images/icon_dot.gif\" />&nbsp;<a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
}
}
}

/* If you're Admin you and only you can see Inactive modules and test it */
/* If you copied a new module is the /modules/ directory, it will be added to the database */

if (is_admin($admin)) {
$handle=opendir('modules');
while ($file = readdir($handle)) {
if ( (!ereg("[.]",$file)) ) {
$modlist .= "$file ";
}
}
closedir($handle);
$modlist = explode(" ", $modlist);
sort($modlist);
for ($i=0; $i < sizeof($modlist); $i++) {
if($modlist[$i] != "") {
$row4 = $db->sql_fetchrow($db->sql_query("SELECT mid FROM ".$prefix."_modules WHERE title='$modlist[$i]'"));
$mid = intval($row4['mid']);
$mod_uname = ereg_replace("_", " ", $modlist[$i]);
if ($mid == "") {
$db->sql_query("INSERT INTO ".$prefix."_modules VALUES (NULL, '$modlist[$i]', '$mod_uname', '0', '0', '1', '0')");
}
}
}
$content .= "<br><center><b>"._INVISIBLEMODULES."</b><br>";
$content .= "<font class=\"tiny\">"._ACTIVEBUTNOTSEE."</font></center><br>";
$result5 = $db->sql_query("SELECT title, custom_title FROM ".$prefix."_modules WHERE active='1' AND inmenu='0' ORDER BY title ASC");
while ($row5 = $db->sql_fetchrow($result5)) {
$mn_title = stripslashes($row5['title']);
$custom_title = $row5['custom_title'];
$mn_title2 = ereg_replace("_", " ", $mn_title);
if ($custom_title != "") {
$mn_title2 = $custom_title;
}
if ($mn_title2 != "") {
$content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=$mn_title\">$mn_title2</a><br>\n";
$dummy = 1;
} else {
$a = 1;
}
}
if ($a == 1 AND $dummy != 1) {
$content .= "<strong><big>&middot;</big></strong>&nbsp;<i>"._NONE."</i><br>\n";
}
$content .= "<br><center><b>"._NOACTIVEMODULES."</b><br>";
$content .= "<font class=\"tiny\">"._FORADMINTESTS."</font></center><br>";
$result6 = $db->sql_query("SELECT title, custom_title FROM ".$prefix."_modules WHERE active='0' ORDER BY title ASC");
while ($row6 = $db->sql_fetchrow($result6)) {
$mn_title = stripslashes($row6['title']);
$custom_title = $row6['custom_title'];
$mn_title2 = ereg_replace("_", " ", $mn_title);
if ($custom_title != "") {
$mn_title2 = $custom_title;
}
if ($mn_title2 != "") {
$content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=$mn_title\">$mn_title2</a><br>\n";
$dummy = 1;
} else {
$a = 1;
}
}
if ($a == 1 AND $dummy != 1) {
$content .= "<strong><big>&middot;</big></strong>&nbsp;<i>"._NONE."</i><br>\n";
}
}

/* LINES DRAGONZ WEBCAM */
$waitwebc = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_webcams_new"));
$content .= "<IMG SRC=\"images/greyarrow.gif\">&nbsp;<a href=\"admin.php?op=Webcams\">"._WAITCAMS."</a>: $waitwebc<br></font>";
/* END LINES DRAGONZ WEBCAM */
?>
 
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Fri Aug 06, 2004 9:05 pm Reply with quote

You might want to take a look at the somaire menu addon. Otherwise there are a few different ones simular to the one at trainmans out there. I know there is one based on some NSN blocks available at [ Only registered users can see links on this board! Get registered or login! ] and I think are a few nice blocks at [ Only registered users can see links on this board! Get registered or login! ]

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
gonehaywire







PostPosted: Sat Aug 07, 2004 10:11 am Reply with quote

Thanks sixonetonoffun
I installed it last this version Customize Menu v2.1 got it going but one small question when i'm in my admin area and clic kon the icon to configure add/remove stuff its all in Spanish makes it hard to configure cause i'm just guessing what to do is there away to make it English in that area?
 
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 ©