| User | Post |
|
1:22 am 1 May 2007
| Joe
Guest
| | | |
|
| |
|
|
Andy,
A vendor would like to sponsor a forum within our discussion board.
We would like to include a the vendor's logo in the forum header or on a forum page they will be sponsoring.
It appears that the Forum name is an entry in the database. So I am a bit lost to know if a forum can be sponsored with a logo and how one might accomplish it.
Thanks for your thoughts and assistance.
Joe
|
|
|
|
|
Look in the User Guide. There are currently 10 'hooks' that allow you to insert any content you like in a variety of places.
Although, of course, these are not 'forum specific', which I suppose would suit you better. But you could filter the hook on a specific forum easily enough (by the id). So it can work.
I could also consider a more precise mechanism for the future.
|
|
|
1:42 pm 25 Aug 2007
| Doc
Member
| | | |
|
| posts 49 |
|
|
What is the right syntax for a change in the hook phrase?
function sf_hook_post_forum($forumid)
{
if($forumid=7)
{
$out.= ‘TEST’."\n";
}
return $out;
}
The "Text" String appears now below every forum listed in the mainpage although my if=7 order. An code example is missing in ur documentation. Thatswhy i´m asking.
|
|
|
|
|
A single ‘=’ is an assignment. For a conditional test you need ‘==’ - i.e, two eqauls signs.
|
|
|
2:06 pm 25 Aug 2007
| Doc
Member
| | | |
|
| posts 49 |
|
|
thx - now it works fine
Did u get my email from yesterday? Maybe its spamblocked? Your reply I had to pull out of the junk folder too. But I answered to your main-address, so I wonder ´bout.
|
|
|
|
|
I only got the first one where you talked about the password. There is nothing in my spam folder either.
|
|
|
4:06 pm 25 Aug 2007
| Doc
Member
| | | |
|
| posts 49 |
|
|
I paste it here:
"Hi Andy,
now it works. Thanks so far.
The only thing I had to do is to load up a new avatar. the old one was gone but the signature was kept by the system. Anyway:
I am using wp 2.2 … with a german language pack. I am wondering ´bout
no other users have had such problems. My first impression was you were
kicking me out of the usertable … OR ur sqlfile is damaged.
anyway … i have found another bug:
The page navigation buttons (1,2,3…) in the forum-view pushes me back
into the start-forum page. Interestingly … if I select the forum-page
(maybe "2" displaed in brackets) directly from the startpage, i get into
the right site. Understand?
best regards
the reincarnated Doc"
|
|
|
|
|
I think I know what you mean and it is fixed in the next release coming to a download near you soon!
|
|
|
4:57 pm 8 Nov 2007
| ricardo
Guest
| | | |
|
| |
|
|
Hi Andy!
Here I am again needing help…
This time to put the forum logo before the forum itself.
I understand that I’ve to use the "function sf_hook_pre_content()" but I don’t know what code to use to "call" the logo to the top of the forum…
And I don’t know if I can use an image located in my flickr account or if it has to be in the plugin folder.
Help me please.
Thanks!
|
|
|
|
|
You use standard HTML syntax. So the hook function needs to return an image tag. Like:
return ‘<img src="….. image source url…." alt="" title="" />’;
Yes it could come from your flickr account and I guess that will get cached so it might not be too slow. Othewise you can out it anywhere on your server as long as the url in the tag above is correct.
|
|
|
6:29 pm 8 Nov 2007
| ricardo
Guest
| | | |
|
| |
|
|
Andy, thanks again!
Now I see how it works…
I’ve put also adsense code in the forum, but the <div aligh=center> does not work on it…
With the header logo it works fine, it’s now centered, but with the adsense code it doesn’t…
:(
|
|
|
|
|
You may need to place the CSS in context. Prefix the adsense CSS with the specific forum CSS ‘path’. Look in your forum skin CSS file, you should be able to find the right directives.
|
|
|
3:48 am 2 Feb 2008
| Glen
Guest
| | | |
|
| |
|
|
Hello,
I’m not a programmer, and I lover you forum. I downloaded it tonight, and got it up and running at NativeDish.com … my only problem is, how do I change the name "Simple Forum" to "Native Dish Topic" on both the side bar and on the header.
Thanks,
Glen
|
|
|
|
|
Change the title of the ‘page’ (Manage > Pages) record currently named ‘Simple Forum’.
|
|