473,698 Members | 2,576 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Phpnuke: how to join sections and articles?

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
Jul 17 '05 #1
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
Jul 17 '05 #2
"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
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1775
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...
2
3302
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.
0
2474
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
0
1585
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
9
4265
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...
1
2742
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...
2
1772
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?
4
8855
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,
0
8680
marktang
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...
0
8609
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,...
0
9169
Oralloy
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...
1
8899
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,...
0
8871
tracyyun
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...
1
6528
isladogs
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...
0
5861
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();...
0
4622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2007
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.