This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

How to relate theme's to Blog's instead of visitors ?

Hi,

I am fairly new to Drupal and am investigating if it could serve as the basis for big multi-user blog system we are planning to build. Drupal looks great and offers a lot of functions and API's that would be useful to us.

Afaiks there are just two rather big hacks that should be made in order to fit our requirements:

spam module & comment spam

I've searched for this several times, but I can't find anything relevant - although I confess its hard to dig through all of the related topics.

I have the spam module installed on my site, in order to allow me to filter trackbacks. However, despite having the checkboxes filled so that (a) it shouldn't delete anything, only unpublish it, and (b) it only should check trackbacks, and not comments, its managed to detect 2 comments as spam (which weren't) and delete them.

Node & Banner

hi,
how can i put a banner after each x nodes?
already now thanks

Simplenews Category Permissions

Hello,

I have installed the module Simplenews (version 4.6.0) on my site.
In the menu my account > edit > my newletters everyone can subscribe to ALL the newsletters, even if they don't have the access in Category Permissions.

Do you have an idea to correct the problem ?

Fatal error: Allowed memory size... I'm pretty sure it's my coding, not actually memory.

Okay, so I'm getting this:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 276478 bytes) in /var/www/themes/engines/phptemplate/phptemplate.engine on line 336

The thing is, I had this once before on the same page I'm working on. The first time it was something with my coding...I just can't remember what though. Anyways, I got it fixed then, but I can't seem to find the problem now. I'm new to coding so it is very likely I messed up somewhere. If anyone could take a look and find what's doing it...or what may be doing it, would be greatly appreciated.



<?php

global $user;

$db = mysql_connect("localhost", "collin","MYPASSWORD");

mysql_select_db("MYDATABASE",$db);

//add books to database that are checked
$query="SELECT a.book, a.rarity, a.price, a.sid FROM collector_books a LEFT JOIN collector_books_read b ON a.sid = b.sid and b.uid = $user->uid WHERE b.sid IS NULL";

$result=mysql_query($query);
$num=mysql_numrows($result);

$i=0;
while ($i < $num) {
$sid=mysql_result($result,$i,"sid");

if($_REQUEST[$sid] == "on")
mysql_query("INSERT INTO collector_books_read VALUES ($sid, $user->uid)");

$i++;
}

//display all non-read books for user to select which ones he has read

if($_REQUEST['Submit'] != true){
if($_REQUEST['order_by']==""){
$order_by="book";
$_SESSION['old_page']=$order_by;
}elseif($_REQUEST['order_by']=="book" && $_SESSION['old_page']=="book"){
$order_by="book desc";
$_SESSION['old_page']="book desc";
}elseif($_REQUEST['order_by']=="book"){
$order_by="book";
$_SESSION['old_page']=$order_by;
}elseif($_REQUEST['order_by']=="rarity" && $_SESSION['old_page']=="rarity"){
$order_by="rarity desc";
$_SESSION['old_page']="rarity desc";
}elseif($_REQUEST['order_by'] == "rarity"){
$order_by="rarity";
$_SESSION['old_page']=$order_by;
}elseif($_REQUEST['order_by']=="price" && $_SESSION['old_page']=="price"){
$order_by="price desc";
$_SESSION['old_page']="price desc";
}elseif($_REQUEST['order_by'] == "price"){
$order_by="price";
$_SESSION['old_page']=$order_by;
}
}else
$order_by = $_SESSION['old_page'];

$query="SELECT a.book, a.rarity, a.price, a.sid FROM collector_books a LEFT JOIN collector_books_read b ON a.sid = b.sid and b.uid = $user->uid WHERE b.sid IS NULL ORDER BY $order_by";

$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
echo "Book Collector Checklist - Not Read

Everything is a node?

Sorry if this has been answered before; I couldn't find the answer. I'm making a testing engine as a Drupal module. Administrators will create and edit questions, and collect these questions into tests that users can then take. I've read in one of the handbooks that everything should be a node type.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions