PostPrefix

Started by JayBachatero, June 28, 2006, 10:26:20 AM

Previous topic - Next topic

Aileen

will this work in 1.1.4?

Jade Elizabeth

Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Tarpon

I did some changes to this mod to add more then one prefix and it is working OK. (this mod is working like charm on 1.1.4) Now I would like to change the postprefix display method that the prefixes will be display in the post body in a table and not in the post subject is it possible?

TrueSatan

Possible...yes. You'd need to look at moving code from Post.template.php to Display.template.php and making your table there.

Tarpon

can you be more specific on how to implement it ?

Aileen

Can It also be a suffix on the title for SEO? I would like to add a keyword

TrueSatan

It's not something I'm going to spend time making so you'll need to look at what the mod does to Post.template.php (study the install.XML in the mod package) and play with it for yourself; it's purely a cosmetic move and I suspect that doing it might interfere with other mods so I'm really not keen on the idea particularly as many mods seek to add to the Display.template.php.

I would also have absolutely no plans to work it into SEO...that is a completely different area of SMF customisation that is always full of problems and incompatibilities with other mods. It is often best to keep things as simple and uncluttered as possible as that gives greatest reliability and least bug issues.

lucasramiro

Where do we set the permissions? Everything is working but not permissions, I don't see the prefix thing.

TrueSatan

Please look in ACP>Posts and Topics and ACP>Permissions. Like almost all mods this mod only installs automatically into the SMF default theme and for all other themes you will need to manually install it into those themes.

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531

http://www.simplemachines.org/community/index.php?topic=34526.0

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html


Additionally you may need to chack your forum language settings:

You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.

Also:

You need to go to ACP>Packages>Options>Installation Options and set the fields according to your hosting details then on the same page go to Cleanup Permissions and select All files Writeable and run the cleanup...check via ftp that CHMOD of all your files is now 777 or 775 according to the peculiarities of your hosting and if not recheck the settings you made in Installation Options and run the cleanup again...continue as needed until you get the right settings.

qubbah

how can i set it up only for certain board which i choose?

TrueSatan

The mod is a forum global one and thus you'd have to hard code based on akabugeyes post earlier in this topic to make the custom feature you require...what you have requested is not a feature of this mod.

ne.miguelito

"Added the ability to specify what boards to show prefix options on."

it doesn't work because he does appear in all of the boards the no selected

Sorry, my bad english, I am Portuguese...

TrueSatan

If you will please read the rest of the topic before posting you will find that your queries have, often, already been answered.

The above is the case with this query and a hard coded solution is also available in the topic.

ne.miguelito

Give de page where is the resolution to my problem, see the all pages, but i can't find anything

Please help me  :'(

TrueSatan

Please search for a posting by akabugeyes.

ne.miguelito

Quote from: akabugeyes on July 21, 2006, 01:07:37 PM
Quote from: Jay The Code Monkey on July 19, 2006, 01:16:04 PM
Glad to hear it's solved :).

* Jay The Code Monkey needs to find a way to make it so that this mod wont have a conflict with other mods.
Jay, you can always have something outside of an array. That may make it easier for the mod to install.

So something like this:

$permissionList['membergroup']['general']['post_prefix'] = false;
Quote from: akabugeyes on January 24, 2007, 06:38:29 PM
The following is a hardcoded solution, that while has no interface, may be acceptable if you don't plan on adding or editing that many after you add the initial prefixes.

Open Themes/default/Post.template.php.

Find:

$post_prefix = explode(',', $modSettings['post_prefix']);

Add after:

$board_specific = array(
'hello' => array(1, 2, 3),
'Test!' => array(1, 5),
);

foreach($board_specific as $name => $board_ids)
{
if (in_array($context['current_board'], $board_ids))
$post_prefix[] = $name;
}


Where the $board_specific array follows this pattern - 'preset name' => array(boards_to_show_in).

I don't understand....

I already tried the second option but it didn't work

TrueSatan

I have tested the advice given by Akabugeyes and it does work...others have also tested it and use it...please recheck your edits and follow the advice precisely. Obviously you have to adapt the edit to your specific use changing the board numbers affected and the text added.

Mick.

LOL!   I dloaded both 1.1 & 1.1a  and i get this using the parser.

Package ID: wordzilla:DC_SMF_Search
Package name: DonationCoder.com SMF Search Enhancement Mod
Package version: 1.1.9
Package type: modification

Its a "search" mod?

Jade Elizabeth

Quote from: BlueDevil on March 11, 2008, 06:33:04 PM
LOL!   I dloaded both 1.1 & 1.1a  and i get this using the parser.

Package ID: wordzilla:DC_SMF_Search
Package name: DonationCoder.com SMF Search Enhancement Mod
Package version: 1.1.9
Package type: modification

Its a "search" mod?


Nope, sometimes the parsers cache messes up and it displays the wrong modification, try extracting the mod, it should be the right one inside :)
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

hecho

Hi!
sorry for my google english!

I installed this mod on SMF 1.1.4. I set the prefixes only 2 sections of my forum but I see them always, even in sections not empowered, why? What mistake?  :'(

Luc@
www.hornet.it - Honda Hornet forever

Advertisement: