Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
Pandera
New Member
New Member



Joined: Apr 03, 2006
Posts: 9

PostPosted: Mon Apr 03, 2006 6:07 pm Reply with quote

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 like
Code:
 [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]
 
View user's profile Send private message Visit poster's website
spottedhog
Regular
Regular



Joined: Jun 02, 2004
Posts: 88

PostPosted: Mon Apr 03, 2006 6:32 pm Reply with quote

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.
 
View user's profile Send private message Visit poster's website
Pandera







PostPosted: Mon Apr 03, 2006 6:38 pm Reply with quote

Could you possibly show me the code I should be using for that rather than bbcode ? pwease
 
spottedhog







PostPosted: Mon Apr 03, 2006 6:48 pm Reply with quote

I just did...... Wink
 
Pandera







PostPosted: Mon Apr 03, 2006 7:12 pm Reply with quote

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

PostPosted: Tue Apr 04, 2006 6:07 am Reply with quote

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.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
Pandera







PostPosted: Tue Apr 04, 2006 1:28 pm Reply with quote

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
Worker



Joined: Jan 07, 2005
Posts: 163

PostPosted: Tue Apr 04, 2006 2:13 pm Reply with quote

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.
 
View user's profile Send private message Visit poster's website AIM Address
daemon







PostPosted: Tue Apr 04, 2006 2:17 pm Reply with quote

nukescripts has a version on there site, but there is another one out there just dont remember where.
 
daemon







PostPosted: Tue Apr 04, 2006 2:30 pm Reply with quote

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: [ Only registered users can see links on this board! Get registered or login! ]                                             */
/*                                                                          */
/* 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







PostPosted: Tue Apr 04, 2006 2:40 pm Reply with quote

Thanks for that paypal code, Ill whip that up right now, now, if I could just figure out the easy one.
 
Pandera







PostPosted: Tue Apr 04, 2006 3:02 pm Reply with quote

Nope, that code wouldnt take either Sad
 
Pandera







PostPosted: Tue Apr 04, 2006 5:26 pm Reply with quote

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







PostPosted: Wed Apr 05, 2006 3:37 pm Reply with quote

I have that block running on my site
 
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Wed Apr 05, 2006 3:52 pm Reply with quote

And like this....

Code:


<?php

$content  =  "<center>";

$content  .=  "<a href=\"http://www.the-gamblers.net.eqdkp\" target=\"_blank\"><b>DKP Site</b></a></center>";
?>
 
View user's profile Send private message
Pandera







PostPosted: Wed Apr 05, 2006 4:14 pm Reply with quote

No go ... heres a link of what that did [ Only registered users can see links on this board! Get registered or login! ] bottom left side
 
daemon







PostPosted: Wed Apr 05, 2006 4:36 pm Reply with quote

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.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

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 ©