Need help, please

Events happening in the community are now at Drupal community events on www.drupal.org.
phillipv's picture

I've spent far too long already trying to figure out how to change the "Donate Now" link at the bottom left hand column of this page (probably pretty straight forward):

http://llaa.org/

I was hoping someone could help me out... please

not sure if I should look in the php code or in the Drupal content interface to make the link change..

The php code driving the "Take Action" box looks like this:

Take Action

    <?php

                 
    if ( @strlen($node->flexinode_26) ) {
                       print
    " <li class=\"checkMark\"><a href=\"".$node->flexinode_26."\">".$node->flexinode_27."</a></li>";
                 }     
                    if ( @
    strlen($node->flexinode_28) ) {
                       print
    " <li class=\"checkMark\"><a href=\"".$node->flexinode_28."\">".$node->flexinode_29."</a></li>";
                 }
                  if ( @
    strlen($node->flexinode_30) ) {
                       print
    " <li class=\"checkMark\"><a href=\"".$node->flexinode_30."\">".$node->flexinode_31."</a></li>";
                 }     
                    if ( @
    strlen($node->flexinode_32) ) {
                       print
    " <li class=\"checkMark\"><a href=\"".$node->flexinode_32."\">".$node->flexinode_33."</a></li>";
                 }
                 
    ?>

...any ideas or help would be appreciated thanks!

Comments

eh...

mikeytown2's picture

http://drupal.org/project/flexinode is an old module. Anyway you need to find the even fields; this is the links. Odd fields are the link text. If you want to rip out flexinode and have this hardcoded to your harts content then just do this for each link you want.

<?php
print '<li class="checkMark"><a href="http://drupal.org">Drupal</a></li>';
?>

BTW the if statements should probably use !empty() instead of @strlen(). "@" hides any errors from php.

Just a Suggestion/Question about your problem...

bkmatwa's picture

Phillip,

Have you thought about using CiviCRM's Contribute? Together with the other parts of CiviCRM, I bet this would help your site. Just got back from taking a day class on CiviCRM just before DrupalCon in SF--it's an awesome tool for sites like yours. Let me know if you need any further info on CiviCRM functions.

~ Brian

devel

gilgabar's picture

I'm not too familiar with flexinode, but I would say it looks like the values are stored in the database and loaded as part of a node object. I would use the devel module's dsm() function to learn more about the specific node object. Something like dsm($node) should give you a lot of info including the node id which should hopefully let you go to http://llaa.org/node/[nid] and then edit the fields in question.

Thanks

phillipv's picture

thanks for the reply, i'm looking for a developer to help me on projects. Would you be interested in fixing this issue for me at an hourly rate with possibility of more work in the future?

phillip

Seattle

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: