Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP
Author Message
kevinkap
Involved
Involved



Joined: Apr 22, 2006
Posts: 356

PostPosted: Thu Apr 26, 2007 9:31 am Reply with quote

I am trying to add a few lines of text to the index.php page of Asers shop module. I really would like it in its own "table" but not sure about that either. Anyhow I have this statement:

echo "Right now we are placing orders in batches. This means you will have until May 11 to order for the first round. After that date we will send them in for printing. <br /><br />Right now we are giving 2-4 weeks total for ordering the shirts, having them printed and delivery.<br /><br />THANKS!";

I have tried to put it in several places, one being right under the module logo but the text never shows. It is like I did not change anything.

What am I doing wrong please?

Thanks.

_________________
Kevin Kappes 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Thu Apr 26, 2007 10:02 am Reply with quote

are you putting that where the content starts?
meaning the output...
i never saw that mod.
 
View user's profile Send private message
jaded
Theme Guru



Joined: Nov 01, 2003
Posts: 1006

PostPosted: Thu Apr 26, 2007 10:17 am Reply with quote

Replace this entire function with the one below. It works flawlessly.



Code:
function menu($mainproduct) {

    global $module_name, $user;
    OpenTable();
    $ThemeSel = get_theme();
    if (file_exists("themes/$ThemeSel/images/shop-logo.gif")) {
   echo "<br><center><a href=\"modules.php?name=$module_name\"><img src=\"themes/$ThemeSel/images/shop-logo.gif\" border=\"0\" alt=\"Aser's Shop\"></a><br><br>";
    } else {
   echo "<br><center><a href=\"modules.php?name=$module_name\"><img src=\"modules/$module_name/images/shop-logo.gif\" border=\"0\" alt=\"Aser's Shop\"></a><br><br>";
    }
    echo "<center><a href=\"modules.php?name=$module_name&amp;s_op=viewcart\"><img src = \"modules/$module_name/images/your_cart.gif\" border =\"0\"></a>";
    if(is_user($user)) {
       echo "&nbsp;&nbsp;&nbsp;<a href=\"modules.php?name=$module_name&amp;s_op=vieworders\"><img src = \"modules/$module_name/images/your_orders.gif\" border =\"0\"></a>";
    }
    echo "</center>";
    SearchForm();
    echo "<font class=\"content\">[ ";
    if ($mainproduct>0) {
   echo "<a href=\"modules.php?name=$module_name\">"._ASERSHOPMAIN."</a> | ";
    }
    echo "<a href=\"modules.php?name=$module_name&amp;s_op=NewProducts\">"._NEW."</a>"
   ." | <a href=\"modules.php?name=$module_name&amp;s_op=MostPopular\">"._POPULAR."</a>"
   ." | <a href=\"modules.php?name=$module_name&amp;s_op=TopRated\">"._TOPRATED."</a> ]"
   ."</font></center>";
    CloseTable();
    echo "<p>";
    OpenTable();
echo "Right now we are placing orders in batches. This means you will have until May 11 to order for the first round. After that date we will send them in for printing. <br /><br />Right now we are giving 2-4 weeks total for ordering the shirts, having them printed and delivery.<br /><br />THANKS!"; 
    CloseTable();
}

_________________
Themes BB Skins
http://www.jaded-designs.com
Graphic Tees
http://www.cafepress.com/jadeddesigns
Paranormal Tees
http://www.cafepress.com/HauntedTees
Ghost Stories & More
http://www.hauntingtales.net 
View user's profile Send private message Visit poster's website
kevinkap







PostPosted: Thu Apr 26, 2007 10:21 am Reply with quote

Thanks Jaded!!

Looks great. Just a question. Why would the echo statement not work before when I tried to put it under the aser logo?
 
jaded







PostPosted: Thu Apr 26, 2007 10:29 am Reply with quote

You are welcome and I am not sure because I do not know where exactly you tried to use it.
 
kevinkap







PostPosted: Thu Apr 26, 2007 11:02 am Reply with quote

I tried to put it right after this statement

echo "<br><center><a href=\"modules.php?name=$module_name\"><img src=\"themes/$ThemeSel/images/shop-logo.gif\" border=\"0\" alt=\"Aser's Shop\"></a><br><br>";

Thanks.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©