Hi all... God, I hate it when someone new comes to a CMS's forum and blows the thing up with stupid questions..... Unfortunately I'm that guy today. I've been reading pages of documentation on Drupal, but I just can't seem to get everything just how I want it.

For starters, I have drupal 4.6 installed on a FreeBSD box with a MySQL database. Some of these features I would like to add may be already incorporated into drupal, some may need existing mods, and some may require new mods. I am looking for feedback, both specific and general on ways I can attempt to perform them.

Question one: I set up the stories module so that any registered user can post a story, BUT I don't want that story automatically posted to the front page-- I want it listed in the moderation queue so my moderators can review it before it goes live on the site. Am I missing an option button? I've searched all over the admin panel. (In my defense this backend has a steep learning curve.)

Question two: I want these news stories, all posted by visitors, to be specifically formatted. Ideally, I would like to format the submission form to contain specific variables which will be passed into a template for the post. I want the output to look like a newspaper article, with a lead image in the upper left corner set to a specific size range. Under the story title field I would like a "location" field where people type in the city the news story came from (so it can be displayed just like a newspaper does). Obviously I'll need an upload box for the image (preferably set to only accept jpg files). GD would them resize the image into a thumbnail with a specific width. I would also like an "Image description" field in the form, so when someone clicks on the thumbnail imbedded in the story it will open a new page showing the complete image with the image's description under it. I don't know if the existing story form can be edited to do this, or if I'll have to look at having another one designed.

Question three: I want a rating system for the articles. I see that there are already mods out there that can do this, so I am looking for a suggestion on what will be the best one to try. What I really want is a combination of the voting / userpoints / latest & greatest modules. I want people to be able to rate stories, and I want to use that data in combination with the number of page views to show the "Hottest Stories of the Week" on the side bar. Also, I want to use the userpoints module to work with this to find the "Submitter of the Week / Month / Year" buy calculating [(pageviews of all the user's posts) x (average rating) x (other points variables) = some comparable value]. I really hope that made some kind of sense.

Question four: The frontpage is set to display the ten most recent posts. Can I make a change to the template so mixed between the first post and the next nine is a block of random content? Furthermore, I would like to have the titles of posts #11-20 are listed on the right panel. I originally planned on modifying the RSS creator and including the parsed xml, but I think there is a simpler way.

I have spent the last month deciding what CMS to use for this site. Yesterday someone suggested Drupal, and I've been nothing but impressed with it so far. Excellent job to everyone that has had a part in the development of this script. Kudos.

Finally, I realize I am asking for a lot of info / help here. I am prepared to pay developers for their specific individual assistance on bringing this site to fruition. I hope that I can do most of this work myself, however I accept my limitations on both scripting and familiarity with this product.

Thanks to everyone in advance for their feedback, or just for reading my long drawn confusing description.

Comments

dgeilhufe@yahoo.com’s picture

1. When you create content you see some choices as an admin:
Published
In moderation queue
Promoted to front page
Sticky at top of lists
Create new revision

You can set the defaults on the back end:
administer > content > configure > content types
Select the appropriate content type
> configure > set the defualts.

2. You've got some learning to do. Edit the template files that display the story. There is also a mod for flexinode that gives you a lot of display control.
Location module.
There is a module for file attachements.
This is pretty complicated so your best off contracting out the work or investing the time to learn all the ins and outs.

3. Ratings module.
Just take a couple hours and install the various options and see how they fit into what you want to do. Not sure there is any best option.

Don't worry, your in the same boat with a lot of us... Drupal has a steep learning curve, but it does what you need it to do. I've found that paid help helps alot.

David Geilhufe
Social Source Foundation
Try CiviCRM http://www.civicrm.org/

agentrickard’s picture

You can either get your hands dirty (which is fun) or check with people who provide professional services. It sound to me like you're halfway home already.

One: Look under admin/node/configure/types/story. Set the 'default options' to meet your publishing model. [Click 'administer' > 'content' > 'configure' > 'content types' > 'story']

Two: That's going to take some work with the Forms API and possibly, CCK. (I can't really help there).

Three: Experiment. I use NodeVote and XTracker.

Four: Sure. Check the PHP Snippets section of the Theme Developer's Guide in the Handbook.

Tip: You might try separating these into separate issues to get better answers.

--
http://ken.blufftontoday.com/
Search first, ask good questions later.

agentrickard’s picture

I love it when someone else replies while I'm typing.

And my answer #2 doesn't apply to 4.6, sorry.

--
http://ken.blufftontoday.com/
Search first, ask good questions later.

croc’s picture

Don't worry, people posting when your writing only lends you creditability (at least it did in this case.)

Question one is solved. Thanks a ton here guys, I would have never found that menu on my own.

Great info all around, and in quite a timely fashion. I wasn't even going to check back until tomorrow, but once your elbow deep in building a site you can't help but refresh that old tab just to see. At least now I'm pointed in the right direction for some of these answers. I'm not going to fiddle with the ratings modules to see how well they will work for my needs and how easy I'll be able to mod them to work perfectly.

Looking back at question two I think I might be completely hosed there. I don't think there is any way I'm going to be able to do that. I guess it's one thing to have it in your head, another to put it on paper, and yet another to read it back and realize how insane the concept is. Having said that, I'm pretty sure I'll have to hire someone to do all that for me. I've looked around the list of developers, does anyone have any recomendations of someone I should concider hiring?

agentrickard’s picture

Flexinode will accomplish #2. But it will take some testing. (CCK is the 'improved' version of Flexinode for 4.7+).

--
http://ken.blufftontoday.com/
Search first, ask good questions later.

cel4145’s picture

Try the flexinode module as it will allow you to create a customized node type in place of using the story module. You'll be able to define various input elements for the user.

croc’s picture

I'm a little hesitant to install too many modules before I am sure if they are exactly what I want. I'm waiting to hear back from some coders, hopefully one of them will be able to solve question two for me. For now, I'm toying with the layout. What module will allow me to change my layout from this:

http://barfland.com/croc/files/ss01.gif

to this:

http://barfland.com/croc/files/ss02.gif

??????

Boy, I wish it were as easy as that quicky photoshop job was.

croc’s picture

ok, apparently I missed the flexiblock module. I'm playing with it now, but would still appreciate any suggestions you may find helpfull.

croc’s picture

I'm using the flexiblock module, and it's pretty sweet... however I can't figure out where to place the code in the page.tpl.php file so it will appear where I explained in the previous post. I post the code

 <!-- Start Dick playing around with flexiblock -->

<div class="sidebar" "sidebar-right">
<?php theme('flexiblock_html', 2) ?>
</div>

<!-- End dick playing around -->

and the block appears, but never where I want it. I've tried it everywhere, and it's never the right place! Grrrr....

wellsy’s picture

Q1: under 'content' that is set. The path is admin/node/configure/types

Q2: look to theming and possibly some other contrib and core modules for most of this (image, upload, image_assist) just keep plowing through the documentation and forums for more details.

Q3: not sure about this one myself but there is bound to be a module for something like that.

Q4: look at php snippets for this sort of functionality http://drupal.org/node/39282

Yep drupal is the right choice for sure!

Just keep testing what is recommended and asking for help here.

wellsy

orchidsonline.com.au

wellsy’s picture

something weird happened here!

When I first read this post....just now....there were no replies!

Then when I saved it there were heaps....the original post must have come out of cache to me...weird but it happened.

Tops work everyone.

wellsy

orchidsonline.com.au

croc’s picture

All help appreciated! Anyway, can you help me find a place to post this stinking flexiblock code? I never use div tags, I use tables... So I'm REALLY confused as to how to make another column!!!

wellsy’s picture

so I am sorry but I cannot help there

wellsy

orchidsonline.com.au

croc’s picture

Well thanks anyway! For those that are able to help, I'm using the demorcatica theme........

The flexiblock module works, which is probibly half of the battle, but I want to add an extra column on the right side of the site (like I have in the above screenshots) Everywhere I try to place it makes the block appear in a new (yet wrong) place. It is driving me bonkers! I cant remember the last time I had this much trouble.

agentrickard’s picture

Flexiblock is very useful, but seems to confuse a lot of people.

You can put that code anywhere you need to. Build your page in HTML, then paste the code in to the location you need.

If you need to put FlexiBlock inside a table, you can. Whatever makes it easier for you.

Personally, I like the verbose format for inserting Flexiblocks:

  <?php $blocks = theme('flexiblock_blocks', 2); ?>
  <?php foreach ( $blocks as $block ) { ?>
    <h3><?php echo $block['subject'] ?></h3>
    <?php echo $block['content'] ?>
  <?php } ?>

The <h3> tags and such a purely optional, and I think the Flexiblock documentation is pretty good: http://www.webg8.com/h/node/55.

In 4.7, btw, Flexiblock is not necessary, since 4.7 supports multiple page regions.

--
http://ken.blufftontoday.com/
Search first, ask good questions later.

grcm’s picture

If you want to execute PHP code in the block, use drupal_eval() instead of echo.

ie:

<?php echo $block['content'] ?> 

changes to

<?php drupal_eval( $block['content'] ) ?> 

-- Version control your Drupal with The File High Club

agentrickard’s picture

That's for security reasons, right? Because it 'works' with echo.

--
http://ken.blufftontoday.com/
Search first, ask good questions later.

croc’s picture

actually, that wasn't my problem, however it seems to be everyone elses issue. I had the blocks displaying properly-- that is they showed up where I put them with the correct contents. My problem was that the template I was using was an all css layout. I would have arranged the material in a table. Adding an extra column would have been cake in that case. My issue was making that extra table in css. I now have the issue solved, and now know more about css layouts than I want to. Talk about a headache!

The only MAJOR issue I'm having is the above mentioned "Question 2". I still haven't heard back from any of the drupal-friendly coders I've contacted. Apparently it's an issue nobody wants to touch with a 10 foot pole. Unfortunalty the entire site hinges on this being done. I know it can be done in drupal, it seems to be a combination of the image_node module and the flexinode module. I just have no idea how to do it! Grr!
If anyone knows any script writers that are familiar with drupal and need a fast $200, let me know.

croc’s picture

In order to make it completely clear as to what I want done, here's a drawing I made to help.

http://barfland.com/croc/files/demo.gif

lexmedia’s picture

hmmm interesting

-------
http://www.metartchicks.com