Uutiset:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu
Advertisement:

Adding a Donate button to header!

Aloittaja Miles Marshall, lokakuu 20, 2008, 07:45:51 IP

« edellinen - seuraava »

Miles Marshall

How do I add a donate button to the header like shown in the below picture
Need Computer Help? Just want to chat? Come on over! http://www.geekinc.org
"I tried to fix the world but they wouldn't give me the source code"

-Miles

vbgamer45

You would add it to the index.template.php of your theme in the template_above function.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Miles Marshall

So do  a search for theme_above. Then add the paypal code they give me in the spot? I'm afraid i'll brake somthing
Need Computer Help? Just want to chat? Come on over! http://www.geekinc.org
"I tried to fix the world but they wouldn't give me the source code"

-Miles

[SiNaN]

index.template.php

Find:

// If the user is logged in, display stuff like their name, new messages, etc.

Replace:

echo '
<div style="float: right;">
PAYPAL CODES HERE
</div>';

// If the user is logged in, display stuff like their name, new messages, etc.
Former SMF Core Developer | My Mods | SimplePortal

vwf

Lainaus käyttäjältä: [SiNaN] - lokakuu 25, 2008, 06:19:32 AP
index.template.php

Find:

// If the user is logged in, display stuff like their name, new messages, etc.

Replace:

echo '
<div style="float: right;">
PAYPAL CODES HERE
</div>';

// If the user is logged in, display stuff like their name, new messages, etc.


You are a genius [SiNaN], you helped me too except I didn't add a donate button, I added an ad banner.
Thanks!

http://verizonwirelessforum.com

chrisg2010

It would be ALOT easier to use the Ad modification ;) It has that spot along with 12 other spots.
www.DecayedAds.com - Post your ads for FREE!

vwf

Lainaus käyttäjältä: chrisg2010 - lokakuu 25, 2008, 08:27:26 IP
It would be ALOT easier to use the Ad modification ;) It has that spot along with 12 other spots.

I would've but I can't get the ad mod to install correctly.

chrisg2010

What kind of error do you get? I installed it on my forum fine. I am just having trouble installing it on my new skin. :P
www.DecayedAds.com - Post your ads for FREE!

vwf

It
Lainaus käyttäjältä: chrisg2010 - lokakuu 25, 2008, 08:48:36 IP
What kind of error do you get? I installed it on my forum fine. I am just having trouble installing it on my new skin. :P

It installs fine for me too, but it's not showing up under my Configuration panel.

aspenangler

Is that the same place that it would be added in the Babylon theme? This is what I have:


// If the user is logged in, display stuff like their name, new messages, etc.
   if ($context['user']['is_logged'])
   {
      echo '
                     ', $txt['hello_member'], ' <b>', $context['user']['name'], '</b>';

Advertisement: