Author |
Message |
Pandera
New Member


Joined: Apr 03, 2006
Posts: 9
|
Posted:
Mon Apr 03, 2006 6:07 pm |
|
Ok I was here a bit ago and thought I found my answer, but I didnt. Im truley new at this, PHP is so far away from anything Ive ever done before do please dont be upset by my stupid questions.
My 1st problem is my paypal donation link will not work in a block nor in a footer. It wont convert to the little picture link and stretches my page for miles. Is there some special coding for this ?
Secondly, I'm used to using something likeCode: [url=http://targeturl]MYTEXT[/url]
| this seems to work just fine in my php forums, but will not work in a block ?
Could some kind person please help me out with these ?[/code] |
|
|
|
 |
spottedhog
Regular


Joined: Jun 02, 2004
Posts: 88
|
Posted:
Mon Apr 03, 2006 6:32 pm |
|
Your problem is probably due to not commenting out the "". By this I mean there must NOT be any " after the initial one for the content.
For example:
$content .="SOME CODE OR WORDS HERE";
When you put that code in the block, it probably had some " in it.
Here is how to uncomment them:
$content .="<a href=\"http://www.paypay.com\">";
notice the back slashes....
[ ] is bbcode and is only used in forums. |
|
|
|
 |
Pandera

|
Posted:
Mon Apr 03, 2006 6:38 pm |
|
Could you possibly show me the code I should be using for that rather than bbcode ? pwease |
|
|
|
 |
spottedhog

|
Posted:
Mon Apr 03, 2006 6:48 pm |
|
I just did......  |
|
|
|
 |
Pandera

|
Posted:
Mon Apr 03, 2006 7:12 pm |
|
LOL, Im not catching on, I just tried that and still the same outcome. Maybe we could try this ... If you have a minute.
Lets say I want a block, with a link to Ravens site, I want the word in the block to just be "Raven" but with theis mouse over code to link with Code:http://ravenphpscripts.com
|
Could you just show me the code for that and Ill try to work that out ? |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Tue Apr 04, 2006 6:07 am |
|
Just extend a bit what spottedhog had to this:
$content .="<a href=\"http://www.ravenphpscripts.com\" title=\"Quality Web Hosting\">Raven</a>";
This assumes you already had $content valued with something and you were wanting to ADD more to the string. If $content has not been valued yet, either set it to $content = ""; up front or remove the "dot before the equal sign" in my example above. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
Pandera

|
Posted:
Tue Apr 04, 2006 1:28 pm |
|
OK, I tried this yesterday, just like you posted it, it didnt work, I just now tried Code:$content .="<a href=\"http://ravenphpscripts.com\" title=\"Quality Web Hosting\">Raven</a>";
| and then Code:$content ="<a href=\"http://ravenphpscripts.com\" title=\"Quality Web Hosting\">Raven</a>";
|
and still it wont work. |
|
|
|
 |
daemon
Worker


Joined: Jan 07, 2005
Posts: 163
|
Posted:
Tue Apr 04, 2006 2:13 pm |
|
you could always search around for the paypal block, I don't remember where I saw it but you could use it or look at the code to see what you need.
Just my 2 cents. |
|
|
|
 |
daemon

|
Posted:
Tue Apr 04, 2006 2:17 pm |
|
nukescripts has a version on there site, but there is another one out there just dont remember where. |
|
|
|
 |
daemon

|
Posted:
Tue Apr 04, 2006 2:30 pm |
|
heres the one I have I used to use it.
Code:
<?php
/****************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com) */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/* */
/* Donations block to accept money thru PayPal. */
/* */
/* Scott Rubin - phpnuke id: scottr - http://www.ierealtor.com - 1/2003 */
/* email: scottr2@earthlink.net */
/* */
/* This assumes you have already setup an account with PayPal. */
/* Just change $paypal_email below to your PayPal email address. */
/* */
/*++++***********************************************************************/
if ( !defined('BLOCK_FILE') ) {
Header("Location: ../index.php");
die();
}
# Block to accept money thru PayPal
/*******************************************************************/
/* change $paypal_email value to be your paypal email address */
/* change $top_msg value to display text above the paypal image */
/* change $bottom_msg value to display text below the paypal image */
/*******************************************************************/
$paypal_email="donations@email.net";
$top_msg = "";
$bottom_msg = "";
$content = "<br><center>";
$content .= "$top_msg";
$content .= "<form target=\"blank_\" action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\">";
$content .= "<input type=\"hidden\" name=\"cmd\" value=\"_xclick\">";
$content .= "<input type=\"hidden\" name=\"business\" value=\"$paypal_email\">";
/* $content .= "<input type=\"image\" src=\"https://www.paypal.com/images/x-click-but04.gif\" border=\"0\" name=\"submit\" alt=\"Make payments with PayPal - it's fast, free and secure!\">"; */
$content .= "<input type=\"image\" src=\"http://www.yournet.com/images/donate_visa_mc.bmp\" border=\"0\" name=\"submit\" alt=\"Make payments with PayPal - it's fast, free and secure!\">";
$content .= "</form>";
/* $content .= "$bottom_msg"; */
/* $content .= "</center><br>"; */
$content .= "</center>";
?>
|
Hope it helps |
|
|
|
 |
Pandera

|
Posted:
Tue Apr 04, 2006 2:40 pm |
|
Thanks for that paypal code, Ill whip that up right now, now, if I could just figure out the easy one. |
|
|
|
 |
Pandera

|
Posted:
Tue Apr 04, 2006 3:02 pm |
|
Nope, that code wouldnt take either  |
|
|
|
 |
Pandera

|
Posted:
Tue Apr 04, 2006 5:26 pm |
|
Back to trying to put a simple link in a block, I just tried this Code:<?php
$content .= "<center>";
$content .= "<a href=\"http://www.the-gamblers.net.eqdkp\" target=\"_blank\"><b>DKP Site</b></a></center>";
?>
| and still not happening. Please, is there anyone that can figure out what Im doing wrong ? |
|
|
|
 |
daemon

|
Posted:
Wed Apr 05, 2006 3:37 pm |
|
I have that block running on my site |
|
|
|
 |
hitwalker
Sells PC To Pay For Divorce

Joined:
Posts: 5661
|
Posted:
Wed Apr 05, 2006 3:52 pm |
|
And like this....
Code:
<?php
$content = "<center>";
$content .= "<a href=\"http://www.the-gamblers.net.eqdkp\" target=\"_blank\"><b>DKP Site</b></a></center>";
?>
|
|
|
|
|
 |
Pandera

|
Posted:
Wed Apr 05, 2006 4:14 pm |
|
|
|
 |
daemon

|
Posted:
Wed Apr 05, 2006 4:36 pm |
|
its look like your putting the code inside a block already, take the code I gave you save as block-Donations.php activate it through your admin panel, you will need to change the email to your paypal and put the right path in for image. |
|
|
|
 |
|