YAFLogo

KyleG
  • KyleG
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
15 years ago
Hello, since there seems to be no real documentation on the source, I just have a couple questions to speed up my learning on how the forums work.

I'm pretty good with ASP.net and C#, but this is a fairly large project (from what i'm used to working with)

One thing I would like to do, is make it so the Active Discussion posts are not displayed to users who don't have access, on the forums i'm trying to set up, we have a members only forum, but when guests view the site, they can see the topics (not the actually messages, but they are aware that the members forum exists, and they can see the topic titles and what not).

What CS page renders the active discussion section? I was thinking maybe I would just comment that out or something to get rid of that problem.

The forums I'm working on are for a world of warcraft guild site, and I want people to be able to link items from the game (using something powered by WoWhead) so when they hover over the item, it will be displayed like many other sites

To do this I have to add the javascript file...like this


<script src="http://www.wowhead.com/widgets/power.js"></script>
and then, the links need to be in the format like...


<a class="q5" href="http://www.wowhead.com/?item=19019">Thunderfury, Blessed Blade of the Windseeker</a>

I would like to add a function somewhere before the page is displayed...where it would take something the user entered like ..


[item=19019]Thunderfury, Blessed Blade of the Windseeker[/item]

and convert it to


<a class="q5" href="http://www.wowhead.com/?item=19019">Thunderfury, Blessed Blade of the Windseeker</a>
so it displays properly.

If there's any people out there that are really familier with the source, and could even just point me to the right .cs pages to add this stuff in, I would be greatful, and it would probably save me lots of time.

If not I guess I'll keep just screwing around with the code until I find out how everything works.

Thanks for your time.

Kyle

Sponsor
KyleG
  • KyleG
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
15 years ago
Update:

As for the adding my own [](bracket) codes, it seems I found the spot..in BBCode.cs, in the makeHtml function..

someone stop me if this is the wrong place to do such a thing.

Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
15 years ago

Update:

As for the adding my own [](bracket) codes, it seems I found the spot..in BBCode.cs, in the makeHtml function..

someone stop me if this is the wrong place to do such a thing.

KyleG wrote:

Yep, that's where it is it in the old version. The latest version has a BBCode customization system with administration. No code changes needed.