News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

PostPrefix

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

Previous topic - Next topic

JayBachatero

Ok thanks.  I'll add it to a separate package and post it later on today.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Itch™

Excellent mod Jay! But where do I set the permissions?

JayBachatero

#22
In the regular permission page.

EDIT:  If I get home early from work today I will try to update this mod to add the feature to select the boards.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Itch™

Quote from: Jay The Code Monkey on July 19, 2006, 11:25:58 AM
In the regular permission page.

I can't see it.....I am using the default theme though.

JayBachatero

What version of the mod are you using?
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Itch™


JayBachatero

Umm it should be there.  Check the General Permission section.  Right before karma.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Itch™

Here's a list of the mods I'm using:

Mod Name     Version     
1.    TinyPortal    0.95
2.    SMF 1.0.7 / 1.1 RC2 Update    1.0    
3.    SMF Arcade    1.3.0-MOD-E1.2    
4.    Users Online Today Mod    1.3.1    
5.    Googlebot & Spiders Mod    1.0.5    
6.    Award Mod    1.1    
7.    CAPTCHA (code verification)    0.1    
8.    Enhanced Quick Reply    TBA    
9.    Board Viewers    0.6    
10.    Search Topic    1.0    
11.    Karma Buttons    1.01    
12.    Reason For Editing Mod    1.0    
13.    Custom Profile Field Mod    3.11    
14.    Karma Blocks Package V.02    0.2    
15.    SMF Staff Page    1.0    
16.    EmailFlash    1.0    
17.    Moderator Activity Report SMF1.1RC2    1.0    
18.    User Email System    1.0    
19.    VisualWarning    1.3    
20.    Location Mod    1.2    
21.    Post Prefix    1.0.1    
22.    YouTube BBCode by Yakuza    0.1    
23.    PM On Registration    1.0.2    

And here's a screenshot of the Permission window

JayBachatero

#28
Did the mod fail in any of the modifications on install?
Any errors on error log?


EDIT:  Seems like it's a conflict with the send user email mod.  Need to look into that.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Itch™

Found it!

1.  Execute Modification  ./Sources/Post.php  Test successful
2. Execute Modification ./Sources/ManagePosts.php Test successful
3. Execute Modification ./Sources/ManagePermissions.php Test failed
4. Execute Modification ./Themes/default/Admin.template.php Test successful
5. Execute Modification ./Themes/default/Post.template.php Test successful
6. Execute Modification ./Themes/default/languages/Admin.english.php Test successful
7. Execute Modification ./Themes/default/languages/Post.english.php Test successful
8. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful

Itch™

ManagePermissions screwed up. Any way to fix this?

JayBachatero

Ahh that explains it. 
In ManagePermissions.php find

'karma_edit' => false,


Add before

'post_prefix' => false,
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Itch™

That was it! Thanks Jay, another great mod!

JayBachatero

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.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

JayBachatero

Ok I updated this mod.  I added the option to select the boards that the mod will be shown in.

daragor si puedes traslada los string a español y lo agregare.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

codenaught

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;
Dev Consultant
Former SMF Doc Coordinator

JayBachatero

Yea I was looking into it but it still would cause the same error :(.  Like if on two of my mods I search for "x" then you would have to uninstall the mod that you installed last, first and then uninstall the other mod.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

JayBachatero

K_4_kelly if found the fix for the utf-8 stuff.  In ManagePosts.php

Code (find) Select

// Update the actual settings.
updateSettings(array(
'removeNestedQuotes' => empty($_POST['removeNestedQuotes']) ? '0' : '1',
'enableEmbeddedFlash' => empty($_POST['enableEmbeddedFlash']) ? '0' : '1',


Code (add before) Select

// Fix UTF-8 stuff.
$_POST['post_prefix'] = preg_replace('~&#(\d{4,5}|[2-9]\d{2,4}|1[2-9]\d);~', '&#$1;', $_POST['post_prefix']);
$_POST['post_prefix'] = preg_replace('~&(#\d*)?$~', '', $_POST['post_prefix']);
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

K_4_kelly

Hello Jay ^^

thanks that you havent forgot about this !

i added the code you provided, but the problem still remain: :(


JayBachatero

Did you re-enter the data?  Try adding something else.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Advertisement: