How Do I Add Adsense To SMF?

Started by s11713e, May 16, 2010, 07:09:16 AM

Previous topic - Next topic

s11713e

Hi,

I'm not a techie, but I need to add adsense & maybe other networks to my smf forum. Is there a plugin like wordpress? Please advise


Arantor

Holder of controversial views, all of which my own.


s11713e

Hi thanks and do I just upload the file like in wordpress?



Arantor

Quote from: s11713e on May 16, 2010, 07:17:06 AM
Hi thanks and do I just upload the file like in wordpress?

You use SMF's package manager - http://docs.simplemachines.org/index.php?board=49.0;sort=subject

On custom themes you may have to do some code editing though, depending on your SMF version and your theme. Help is available for this though if you need it.
Holder of controversial views, all of which my own.


s11713e


Adish - (F.L.A.M.E.R)


s11713e

Not yet I have just installed smf & cant log in as the admin?

I get this error :

You are not allowed to administrate this forum.

On a fresh installation?

Adish - (F.L.A.M.E.R)

erm, are you set as a admin on the first place?

According to your SMF version, run the queries to make yourself admin: I accidentally deleted my admin account, what do I do?

s11713e

Yes I'm the admin , never logged in before

Adish - (F.L.A.M.E.R)

Try the commands in the link I have provided and see what happens. It is weird that you being an admin gets that message. :o

s11713e

#12
I tried but have no idea how to run this, for some reason my install is being silly, i even tried to uninstall several times.........is there anyone who can look at this and help me for free?

Adish - (F.L.A.M.E.R)


s11713e


Adish - (F.L.A.M.E.R)

Go to your control panel, find something called PhpMyAdmin

In there, go in the database you use for SMF.

Then, run the query:
UPDATE smf_members SET ID_GROUP = '1' WHERE memberName = 'yourusername'
Make sure that you replace the 'yourusername' with your username.

That is it, it will make you the admin and then try again if it lets you to administrate the forum.

s11713e

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Make sure that you replace the 'yourusername' with your username.' at line 1

Adish - (F.L.A.M.E.R)

READ WHAT I HAVE WRITTEN ABOVE. Don't just start doing things before you finish reading. I said, replace the 'yourusername' text with your own username in the forum. You don't seem to have done that.

s11713e

Its a new forum it has no members and it won't allow any new members

Adish - (F.L.A.M.E.R)

'YOURUSERNAME' is the username you are trying to login with and you say it is an admin. You don't have to create a new user or make anyone register again. Just run the query in phpmyadmin. It will make you admin and then you can do the mod install.

Advertisement: