Author |
Message |
rhineus
New Member


Joined: Feb 22, 2011
Posts: 7
|
Posted:
Tue Mar 01, 2011 2:20 pm |
|
Hello fellow nukers,
I'm not sure if I'm putting this in the right spot or not, if I am, would a mod move it to the right spot... Thank you
I would like to have a poetry and articles CMS but I'm not that familiar with CMS's. I know that phpnuke can do poetry and articles but phpnuke is to plane and I saw some members on this forum who were talking about poetry or poems on there site so I thought about giving this another try. Or another nuke site like: evonuke, xtremenuke, CPG-Nuke or DragonflyCMS (based off nuke) etc. I'm a n00b at CMS's so put that in consideration. Thank you and have a great day  |
|
|
|
 |
nuken
RavenNuke(tm) Development Team

Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina
|
Posted:
Tue Mar 01, 2011 3:31 pm |
|
The content plus module that comes with Ravennuke may work for you..... |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
 |
killing-hours
RavenNuke(tm) Development Team

Joined: Oct 01, 2010
Posts: 438
Location: Houston, Tx
|
Posted:
Tue Mar 01, 2011 4:25 pm |
|
|
|
 |
rhineus

|
Posted:
Tue Mar 01, 2011 6:42 pm |
|
Thx nuken and killing-hours... I'll try it out after my host gets freetype installed. Thanks a bunch
EDIT: I've searched these forums but I have yet to find a features list for the latest RN, so do you know where I can get them at?
Thx,
Michael |
|
|
|
 |
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm

Joined: Aug 13, 2009
Posts: 1123
|
Posted:
Wed Mar 02, 2011 6:00 am |
|
It contains an old block
OLD
Code:<?php
if (eregi("block-Poetry_Scroll.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
global $prefix, $dbi;
$content .= "<marquee direction=\"up\" scrollamount=\"2\" height=\"220\" onmouseover='this.stop()' onmouseout='this.start()'>";
$content .="<table class=\"outer\" cellpadding=\"5\" style=\"border-collapse: collapse\" bordercolor=\"#FFFFFF\" cellspacing=\"1\" border=\"0\">";
$content .="<tr class=\"even\" vAlign=\"left\"><td align=\"left\">";
$result = sql_query("SELECT poemid, title FROM ".$prefix."_poetry order by title", $dbi);
while(list($poemid, $thetitle) = sql_fetch_row($result, $dbi)) {
$content .= "<strong><big>·</big></strong> <a href=\"modules.php?name=Enchanted_Poetry&func=PoemView&poemid=$poemid\">$thetitle</a><br>";
}
$content .="</td></tr></table></div>";
$content .="</marquee>";
?>
|
Replace with
Code:<?php
//updated by unicornio
if ( !defined('BLOCK_FILE') ) {
Header("Location: ../index.php");
die();
}
global $prefix, $db;
$content .= "<marquee direction=\"up\" scrollamount=\"2\" height=\"220\" onmouseover='this.stop()' onmouseout='this.start()'>";
$content .="<table class=\"outer\" cellpadding=\"5\" style=\"border-collapse: collapse\" bordercolor=\"#FFFFFF\" cellspacing=\"1\" border=\"0\">";
$content .="<tr class=\"even\" vAlign=\"left\"><td align=\"left\">";
$result = $db->sql_query("SELECT poemid, title FROM ".$prefix."_poetry order by title");
while(list($poemid, $thetitle) = $db->sql_fetchrow($result)) {
$content .= "<strong><big>·</big></strong> <a href=\"modules.php?name=Enchanted_Poetry&func=PoemView&poemid=$poemid\">$thetitle</a><br>";
}
$content .="</td></tr></table></div>";
$content .="</marquee>";
?>
|
It should work with RavenNuke now.  |
|
|
|
 |
hicuxunicorniobestbuildpc

|
Posted:
Wed Mar 02, 2011 6:02 am |
|
oops! the whole module needs an update. I will update it soon!!! |
|
|
|
 |
hicuxunicorniobestbuildpc

|
Posted:
Wed Mar 02, 2011 6:32 am |
|
Admin module has been finished but I can't post it here.
Examples:
[code]global $prefix, $db, $admin_file;
if (!defined('ADMIN_FILE')) { die ("Access Denied"); }
$aid = substr("$aid", 0,25);
$row = $db->sql_fetchrow($db->sql_query("SELECT radminsuper FROM " . $prefix . "_authors WHERE aid='$aid'"));
if ($row['radminsuper'] == 1) {
function MenuBlock($pagename){
global $db, $prefix;
$count = "SELECT COUNT(poemuid) AS total FROM ".$prefix."_poetry_unvalid";
$count_result = $db->sql_query($count);
$unval_count = mysql_result($count_result,0,0);
OpenTable();
echo "<center><font class=\"title\">$pagename</font><br><a href=\"admin.php?op=PoetryOptions\">Options</a> | <a href=\"admin.php?op=PoetryCat\">View Categories</a> | <a href=\"admin.php?op=PoetryStyle\">View Styles</a> | <a href=\"modules.php?name=Enchanted_Poetry&file=add\">Add Poem</a> | <a href=\"admin.php?op=PoetryView\">View Poetry</a> | <a href=\"admin.php?op=PoetryValidate\">Validate Poetry ($unval_count)</a> | <a href=\"admin.php?op=PoetryComments\">View Comments</a></center>";
CloseTable();
echo "<br>";
}[/code]
Compare with the rest of the code. |
Last edited by hicuxunicorniobestbuildpc on Wed Mar 02, 2011 6:39 am; edited 2 times in total |
|
|
 |
nuken

|
Posted:
Wed Mar 02, 2011 6:35 am |
|
|
|
 |
rhineus

|
Posted:
Wed Mar 02, 2011 11:05 am |
|
Thx nuken... Take a look at it
@unicornio thx for updating the poetry module. Where can I find the updated poetry module? |
|
|
|
 |
killing-hours

|
Posted:
Wed Mar 02, 2011 11:19 am |
|
Unicorno is posting the corrected code here in this thread for you to update the module with. Maybe he/she will post a completely updated module later? |
|
|
|
 |
rhineus

|
Posted:
Wed Mar 02, 2011 2:06 pm |
|
killing-hours wrote: | Unicorno is posting the corrected code here in this thread for you to update the module with. Maybe he/she will post a completely updated module later? | O' ok, thx killing-hours for letting me know about this.  |
|
|
|
 |
hicuxunicorniobestbuildpc

|
Posted:
Thu Mar 03, 2011 8:44 am |
|
Hello Again
The module has been updated with lots of efforts checking code by code.If u find any issue let us know.
Free Download Link
http://tiny.cc/5y3yo
Note: Required registration to download, compatible with RavenNuke and all phpnuke.
Enjoy guys!  |
|
|
|
 |
rhineus

|
Posted:
Thu Mar 03, 2011 3:13 pm |
|
Thx unicornio
It worked! lol Just have to upload it and import the sql file... If everything was this easy lol |
|
|
|
 |
hicuxunicorniobestbuildpc

|
Posted:
Fri Mar 04, 2011 1:29 am |
|
Actaully you didn't need to import any sql file through phpMyadmin, that is extra if you have find any issue. The module installed by itself if you just go to administration from the module. Keep in mine this was an old module and that is why I needed more time to check everything so we do not put the core in risk. I am glad it worked for you. |
|
|
|
 |
killing-hours

|
Posted:
Fri Mar 04, 2011 2:29 pm |
|
rhineus wrote: | Thx unicornio
It worked! lol Just have to upload it and import the sql file... If everything was this easy lol |
Good to hear!
@uni... Thanks for the effort... I didn't have the time to go through it until later this weekend. |
|
|
|
 |
hicuxunicorniobestbuildpc

|
Posted:
Tue Aug 14, 2012 5:40 am |
|
unfortunately this module will give you error and it won't work anymore with RavenNuke 2.5. Guys,
In order to convert this line please let me know what kind of code we should use instead of mysq_result
Code:$cat_count = mysql_result($count_result,0,0);
|
Note: Modules which use this abstraction will not work with RavenNuke and I wonder if this line should be
Code:$cat_count = $db->sql_fetchrow($count_result,0,0);
|
|
|
|
|
 |
neralex
Site Admin

Joined: Aug 22, 2007
Posts: 1775
|
Posted:
Tue Aug 14, 2012 6:52 am |
|
 |
Last edited by neralex on Wed Aug 15, 2012 11:30 am; edited 1 time in total |
|
|
 |
KennyW
Hangin' Around

Joined: Jul 15, 2004
Posts: 44
|
Posted:
Wed Aug 15, 2012 11:23 am |
|
|
|
 |
hicuxunicorniobestbuildpc

|
Posted:
Wed Aug 15, 2012 12:42 pm |
|
That module is for RavenNuke 2.3+ ONLY. I don't think it will work with RavenNuke 2.5 |
|
|
|
 |
Palbin
Site Admin

Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania
|
Posted:
Wed Aug 15, 2012 1:21 pm |
|
It says 2.3+ which I would take to mean anything after and including 2.3. |
_________________ "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. |
|
|
 |
|