Hi to all!
With your past help I make a new block in wich you can see last articles
I inserted in my phpnuke. You can see it at http://www.italialibri.org,
under the title.
But I have a problem: I can see new articles, but only for the sections
listed in the block. The idea is to change also the sections, joined
with the new articles inserted in the sections itself.
So, I have always the same sections in the block! Can anyone help me?
This is the code I used (I don't report html tag and global vars):
function listsections() {
[...]
$result = sql_query("sele ct secid, secname, image from
".$prefix."_sec tions order by secid LIMIT 7", $dbi);
[...]
while (list($secid, $secname, $image) = sql_fetch_row($ result, $dbi))
{
echo "<a
href=\"modules. php?name=$modul e_name&op=lista rticles&secid=$ secid\"><img
src=\"images/sections/$image\" border=\"0\" Alt=\"$secname\ "></a><br>";
listarticles($s ecid);
}
}
Function listarticles works fine, so I don't think the problem is
here... When I order sections by secid, how to tell the script that I
want only updated sections? Hope I explained the problem: my english is
not very good!
Thank for your help!
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG 2 2303
"Wolf" <bi*@libero.i t> wrote in message
news:bc******** *************** **************@ mygate.mailgate .org But I have a problem: I can see new articles, but only for the sections listed in the block. The idea is to change also the sections, joined with the new articles inserted in the sections itself.
Well, I found in NewsmaaX block this code:
while (list($s_sid, $catid, $aid, $title, $time, $expire, $now,
$hometext, $bodytext, $comments, $counter, $topic, $informant, $notes,
$acomm) = mysql_fetch_row ($result)) {
if ($catid > 0) {
list($cattitle) = mysql_fetch_row (mysql_query("s elect title
from $prefix"._stori es."_cat where catid='$catid'" ));
}
$sid = $s_sid;
if ($catid != 0) {
$resultm = mysql_query("se lect title from
$prefix"._stori es."_cat where catid='$catid'" );
list($title1) = mysql_fetch_row ($resultm);
$title = "$title <a class =\"storycat\"
href=\"modules. php?name=News&f ile=categories& op=newindex&cat id=$catid\">[
$title1 ]</a>";
}
This result in :
article title [section name].
I tried to modify for my problem, bu nothing! :( Any idea?
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
"Wolf" <bi*@libero.i t> wrote in message
news:bc******** *************** **************@ mygate.mailgate .org But I have a problem: I can see new articles, but only for the sections listed in the block. The idea is to change also the sections, joined with the new articles inserted in the sections itself.
Well, I found in NewsmaaX block this code:
while (list($s_sid, $catid, $aid, $title, $time, $expire, $now,
$hometext, $bodytext, $comments, $counter, $topic, $informant, $notes,
$acomm) = mysql_fetch_row ($result)) {
if ($catid> 0) {
list($cattitle) = mysql_fetch_row (mysql_query("s elect title
from $prefix"._stori es."_cat where catid='$catid'" ));
}
$sid = $s_sid;
if ($catid != 0) {
$resultm = mysql_query("se lect title from
$prefix"._stori es."_cat where catid='$catid'" );
list($title1) = mysql_fetch_row ($resultm);
$title = "$title <a class =\"storycat\"
href=\"modules. php?name=News&f ile=categories& op=newindex&cat id=$catid\">[
$title1 ]</a>";
}
This result in :
article title [section name].
I tried to modify for my problem, bu nothing! :( Any idea?
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Keegan Alex |
last post by:
Hi folks...
I just installed phpnuke, and it's a great program. One problem is
the Splatt forum really stinks. I'd LOVE to replace it with phpBB,
but I'm not sure how. Can someone tell me if this is possible?
Some of the problems I'm finding with Splatt are it doesn't work well
with various themes. Plus, IMO it's not organized looking or as
funcational as phpBB. I'm a newbie with phpNuke, but not with PHP,
web programming, or...
|
by: Keegan Alex |
last post by:
Hi folks,
I downloaded PHP-Nuke 6.7, and after reading the INSTALL file, it
looks very simple... but either i'm reading them wrong or they're very
flawed.
First, it says:
Untar the package into the directory you want to use on you web
server, if you're unsure where that is, ask you system administrator.
|
by: Mark Boyden |
last post by:
There have been several messages on newsgroups about problems with
phpNUKE related to a post-installation error of:
Fatal error: Call to undefined function: message_die() in
/<serverpath-to-phpnuke>/db/db.php on line 88
Well, I figured out the problem, so I'm posting it here.
ANSWER: You don't have your database configured correctly is the short
answer, and I can't help you there except that it is most likely one
|
by: cjescudero |
last post by:
Hello:
I am going to develop a web site to manage a conference, i.e.:
- Submission of presentations
- Registration of assistants
- Hotel booking
- …
I have experience in programming php+mysql and javascript. So, my
|
by: Market Mutant |
last post by:
PhpNuke is the worse written PHP script as I heared then what does not suck?
I need a fast, simple, CMS. I don't need that many hacks. No MySQL is the
best. CMS is about news, and forum. I found something called txtForum and
simpleboard both are not MySQL based. I assume the forum is the most MySQL
consuming application. News can just be put in text file. I like the idea to
update HTML files from PHP files. I wrote something to change every...
| |
by: Leave Me Alone |
last post by:
Hey folks... I have a standalone phpBB forums and just recently installed
PHPNuke on my website. I know phpnuke comes with it's own version of phpBB.
How can I make it possible for members who register through phpnuke to
automatically be register with my standalone phpBB?
If this is not possible, how can I transport my standalone phpbb to the one
that is included with PHPNuke?
(I've visited both phpbb forums and phpnuke forums and...
|
by: anon |
last post by:
I copied over the phpnuke html files (latest version from sourceforge),
created a mysql DB, added the settinsg to the config file.
Anything else I need to do?
When I run admin.php, I get a completely blank page. Looking at the html
source in the, it is a valid html file but with no content at all.
Any ideas?
|
by: Anthony Robinson |
last post by:
I was actually just wondering if someone could possibly take a look
and tell me what I may be doing wrong in this query? I keep getting
ambiguous column errors and have no idea why...?
Thanks in advance!!!
SELECT AIM.AIMRETRIEVAL.AIMRETRIEVALID,
AIM.AIMRETRIEVAL.DESCRIPTION,
AIM.ARCHIVERETRIEVAL.ARCHIVERETRIEVALID,
AIM.ARCHIVERETRIEVAL.STATUSID,
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |