needmorebeerformewallaby Posted November 6, 2005 Share Posted November 6, 2005 Hi All, Can anyone tell me how i could go about linking to a forum on my site? Oscommerce is in its on directory and the forum is another inside the root director. What i am looking to do is have the forum appear in the center of oscommerce link when you click on a link such as privacy or my account. The forum is also in php but i am not quite sure what i should change in order to make this happen. Any advice would be great! Thanks. Steve Link to comment Share on other sites More sharing options...
WiseWombat Posted November 7, 2005 Share Posted November 7, 2005 Hi All, Can anyone tell me how i could go about linking to a forum on my site? Oscommerce is in its on directory and the forum is another inside the root director. What i am looking to do is have the forum appear in the center of oscommerce link when you click on a link such as privacy or my account. The forum is also in php but i am not quite sure what i should change in order to make this happen. Any advice would be great! Thanks. Hi take a look in www.yourdomain.whatever/catalog/includes/boxes/information.php and add this '<a href=" /forum/"target=\"_blank\">Our Forum</a><BR>' . to say something like this. $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href=" /forum/"target=\"_blank\">Our Forum</a><BR>' . '<a href="' . tep_href_link(FILENAME_LINKS) . '">' . BOX_INFORMATION_LINKS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); '<a href="' . tep_href_link(FILENAME_CATALOG_PRODUCTS_WITH_IMAGES, '', 'NONSSL') . '">' . BOX_CATALOG_PRODUCTS_WITH_IMAGES . '</a><br>' . you can use target blank as a popup or <a href=" /forum/">Our Forum</a><BR>' . to fit into your page :D ( WARNING ) I think I know what Im talking about. BACK UP BACK UP BACK UP BACK UP Link to comment Share on other sites More sharing options...
needmorebeerformewallaby Posted November 7, 2005 Author Share Posted November 7, 2005 Hi take a look inwww.yourdomain.whatever/catalog/includes/boxes/information.php and add this '<a href=" /forum/"target=\"_blank\">Our Forum</a><BR>' . to say something like this. $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href=" /forum/"target=\"_blank\">Our Forum</a><BR>' . '<a href="' . tep_href_link(FILENAME_LINKS) . '">' . BOX_INFORMATION_LINKS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); '<a href="' . tep_href_link(FILENAME_CATALOG_PRODUCTS_WITH_IMAGES, '', 'NONSSL') . '">' . BOX_CATALOG_PRODUCTS_WITH_IMAGES . '</a><br>' . you can use target blank as a popup or <a href=" /forum/">Our Forum</a><BR>' . to fit into your page :D Thank you WiseWombat, This is pretty much what i have been looking for! Do you know how i can get it to appear in between the left and right colums? Thanks! : :D Steve Link to comment Share on other sites More sharing options...
Guest Posted November 20, 2005 Share Posted November 20, 2005 This thread has answered a problem I have tried to work out earlier. How to link to an external page from inside the boxes. I thank you for that. I have many future uses for this tip. However, I have a similar issue to ?needmorebeer? but with an important difference. Our site http://www.mdba.org.au/shop/ is used for an association. We don?t have account holders, we have members. Certain sections of the site are available to members only. I have accomplished this by using one of the checkout pages as a template for new pages. In this way, if they are not logged in they are sent to login.php to do so. After logging in, they are then sent to their destination. You can see this in action in our ?Members? menu at the above URL. At present there are 2 links to our forum. ?Forum? uses the only method I could see to solve the problem while ?Our Forum? uses Wise Wombat?s solution You can use [email protected] and password visit to see how things work. But?.how can I use this method to link to an external page such as the forum which is in another directory? I have searched high and low on login.php and the template pages but I cannot for the life of me see where the coding is that dictates which page to send them to once they have logged in. My knowledge of PHP is zip & nil, but so far I have been able to make changes by searching the code until I see something that looks like what I need to alter and altering it. Then trying something different when that doesn?t work. Can anyone direct me to where I should look for this particular issue? Link to comment Share on other sites More sharing options...
Guest Posted November 20, 2005 Share Posted November 20, 2005 Just to add... I have wondered in the past if this line $navigation->set_snapshot(); was the answer. Does this mean "Take a snapshot of where they asked to go and return them there once logged in???" I'm guessing, as you can see. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.