The Rules

Started by Deprecated, August 25, 2008, 05:42:14 PM

Previous topic - Next topic

Cal O'Shaw

Ran into two interesting "features" when I installed this on my new v2b4 test forum.

1) I had also installed the Breadcrumbs MOD and when I went to The Rules, I got the breadcrumbs twice "(forumname) > The Rules".  When I uninstalled the Breadcrumbs MOD the double breadcrumbs vanished.

2) The [list][li][/li][/list] BBCs don't seem to be working in Rules.  I tested with a regular post to be sure the BBC was working, and it is.

Tom_S

Quote from: Sabre™ on November 25, 2008, 12:15:04 AM
Buddy, all you would need to edit is your custom themes   index.template.php.
You will find instructions on [THIS] page where it states  "Download this mod".
Use the drop menu to select your smf version, then click submit.
Scroll down to where it shows the code needed for your index.template, and youre good to go.

Remember to back that file up before you edit it.
If you still feel uncomfortable/uneasy about attempting this, then attach your index.template here, and someone will add it for you.

Deprecated is a very busy man, and I will be more than happy to repay his generosity and hard work, by assisting you with this.

Cheers

Scroll down to where? There is nothing to scroll down to or I just don't see where I need to be looking.  There is one readme.txt in the download I got and there is nothing about customization of your theme. I really would like to get this to work with the babylon theme. Any help would be super appreciated. I am running the most recent copy of 1.1.7

Thanks in advance...
Tom

Sabre™

What I meant is on the page I've linked to in that post, not the package itself.

Click that link again, and see where it says   Manual Install Instructions for SMF  on the right of the page, you use that dropdown menu(thing next to the submit button), and choose your SMF version, then click submit.
Scroll down that page until you get to the instructions for your  index.template.php,   then follow those directions to get this mod to display on your babylon theme.

Good luck :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Tom_S

The mod changes for "Find" aren't even in the files so I won't be adding the mod. There are no button additions manually so that rules out the mod as well so I guess I will work on a different direction. I like the mod though. I wish I could talk these folks into changing themes.

Thanks for the help anyway.  ;)

Sabre™

Okay mate :)

Quote from: Tom_S on December 02, 2008, 05:57:51 PM
The mod changes for "Find" aren't even in the files so I won't be adding the mod.

I got a little lost understanding that, but then again, I am pretty tired.
Good luck :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Tom_S

For instance where you have everything simplified to find and add or find and replace here http://www.simplemachines.org/community/index.php?topic=262164.40 most of the text to "find" isn't even in the code to find.

Example:
Look for:
Quote// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global

And add $db_prefix, at the end, so it looks like this
Quote// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $db_prefix,

The "Look for" isn't in the index.template.php for the babylon theme.

Make better sense now?  ;)


Sabre™

Indeed it does.
Could you possibly upload your babylon themes  index.template.php  so I may look at it?
I don't have a copy of it browse over.
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Tom_S

Here ya go. Also I was in a bit of a hurry when I was making sense and the correct portion of what isn't there where I stopped is:

Quotearray('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'page'

Thanks for the help.

Tom

Sabre™

Ummmm...
Could it be that you are requesting about another mod?

That link above is for the Pages mod, and the edits you are trying to make are for that.
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Tom_S

That one was. I am pulling my hair out on this deal I will tell ya. I keep trying different mods to get what I need. I basically only need to add a page with the rules on it and a graphic link to work inline with the other links in the babylon theme. If I could get that coded in I would be one happy camper.

Sabre™

Yeah.
You'd get better assistance waiting for someone familiar with that themes code.
It looks easy enough to make a button image then add it to the nav bar, but I dont even know what that theme looks like, and if I do it, you will not have the all of the options this mod offers.

Someone with more knowledge than I will be best suited to assist you.
Help shouldnt be too far away ;)
Good luck :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Tom_S

Babylon is one of the three themes that comes with SMF. I have the button made. That was a piece of cake.

The rest is that I am not familiar with SMF at all.

Any whoo...thanks again.

Sabre™

Yep, I delete those themes and start from scratch with another theme, then my own

I can make that button appear for you, but I cannot code in the options this mod offers for that button...  eg..  group, permissions etc

The best I personally can do in regards to permissions, is only allow guests to see it, or only members to see it when logged in, or for everyone to see it.
But once clicked, it will direct you to your rules page

Would this do for you?
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Tom_S

Sure thing. I just need it for anyone and everyone to be able to see it and the button at all times. That would be great of you to help with that. Thanks sooooo very much!

Sabre™

Okay bud.

Try the attached file please.
I have no way to check it.

Be sure to place your button in your images folder with the other buttons in your theme.
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Tom_S

Okay. The button is there. Now I need the page for it. You are good!  ;)

Tom_S

How do I add a page?

Sabre™

Have you got the mod installed?

If so, go to your admin panel, and click on Features and Options, and you should see a tab named The Rules.
Click on that, and you will see your options to create a page there.
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Tom_S

I can't get the dang mod to install for some reason on this site. It appears to install but it dosen't. It does not show up under "Features and Options".

It works fine on my site but the site I need it on it doesn't. It shows it as installed in packages but when I go to uninstall it there are test failed errors. That is why I was resolving to just add a button and a page on the thing and be done with it.

I have a html page for the rules setup. Is there a way to link that button to it?

Tom_S

I got it figured out. Thanks again for all your help.  :)

Advertisement: