Register at post View v.1.1

Started by Mick., April 17, 2010, 09:31:01 AM

Previous topic - Next topic

Mick.

Link to Mod

This mod will add 2 register buttons to post view and message index,..... Top and bottom.

Created on March 15th, 2010
Revision #1 - v.1.1  Added buttons to message index.
             #2 -Updated to 2.0.2

Created by idesignSMF.com


kingkingston

Awesome mod for people who use the twitter mod as well

Afro

#2
This sounds good.. Thanks for the mod..

It would be nice also if you can add the link on the message index to say "REGISTER TO CREATE A TOPIC"
Just a suggestion.

Mick.

Quote from: Afro on April 18, 2010, 07:48:29 AM
This sounds good.. Thanks for the mod..

It would be nice also if you can add the link on the message index to say "REGISTER TO CREATE A TOPIC"
Just a suggestion.

Good idea..... im sure something can be worked out.

Afro

Very well. I remember there was a time i asked for advice on how to allow the guests to see the "NEW TOPIC" Button,
which will of course direct them to Registration page. This is a perfect mod for that.
So you can use something like "START" instead of "CREATE".

Mick.

Added a "Register to create new topic" in message index per request.   Thanx Afro for the idea. ;)

Remove old mod and delete from mod list in admin.    Upload new version v.1.1

Afro

#6
Weldone. Its a good mod since many newbies don't really know where the registration button is located on the menubar.
Installed perfectly. I changed my
"REGISTER TO COMMENT ON THIS TOPIC" to "COMMENT ON THIS TOPIC"
"REGISTER TO CREATE NEW TOPIC" to "START NEW TOPIC" in the language file.
it will of course direct them to the reg page.

..

Rohan_

i wanna use this on 1.1.11 please tell me how do i do that please
Proud To Be An Indian

Rohan_

i made it different :) ... the url is not direct to register .. i made it like this

if ($user_info['is_guest'])
$buttonArray[] = '<a href="' . $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]) . '</a>';


because of this the url guests see is the reply url not register and when they click on it the forum tell them only registered users are allowed to access this section please register or login

can this be a problem ?

anyways thanks for the mod :)
Proud To Be An Indian

Afro


Rohan_

Proud To Be An Indian

Afro

Quote from: Rohan_ on April 26, 2010, 10:29:03 AM
Thanks Afro

You can also make things a little clear for rookies by writing the file(s) you modified like i did on my post here.
like
theme/default/registertemplate.php
or another file.

Rohan_

no i did not edited registertemplate ......... i just edited the display.template and messageindex.template and and gave the link of reply or new topic for guests and in permissions i set that guests can not reply or create new topic so whenever a guest click on the new topic or reply button they will automatically see the login page because their step has been rejected from the permissions
Proud To Be An Indian

Afro

I understand. I just said that you should tell the file.
Its ok.

ActivePatriot

I get this error when trying to download the package:

QuoteAlthough the package was downloaded to the server it appears to be   empty. Please check the Packages directory, and the "temp" sub-directory   are both writable. If you continue to experience this problem you   should try extracting the package on your PC and uploading the extracted   files into a subdirectory in your Packages directory and try again. For   example, if the package was called shout.tar.gz you should:
1) Download the package to your local PC and extract it into files.
2) Using an FTP client create a new directory in your "Packages" folder, in this example you may call it "shout".
3) Upload all the files from the extracted package to this directory.
4) Go back to the package manager browse page and the package will be automatically found by SMF.

Is the package empty?

Spoogs

download to your computer first then upload via package manager

ActivePatriot

Quote from: Spoogs on August 15, 2010, 08:59:15 PM
download to your computer first then upload via package manager

Thanks, that worked.

PenelopeQ

I received an error message.
QuoteError in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Here is the table of what failed and what did not fail.
TypeActionDescription
Execute Modification ./Themes/default/Display.template.PHPTest failed
Replace ./Themes/default/Display.template.PHPTest successful
Add After ./Themes/default/Display.template.PHPTest failed
Execute Modification ./Themes/default/MessageIndex.template.PHPTest failed
Replace ./Themes/default/MessageIndex.template.PHPTest failed
Add After ./Themes/default/MessageIndex.template.PHPTest successful
Execute Modification ./Themes/default/languages/Modifications.english.PHPTest successful
Add Before ./Themes/default/languages/Modifications.english.PHPTest successful
Execute Modification ./Themes/default/languages/Modifications.english-utf8.PHPTest successful

henrik1782

Nice mod....

Here is the Danish tranlation


<file name="$themedir/languages/Modifications.danish.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['registertopost'] = 'Registrer for at kommentere dette indlæg';
$txt['registertocreate'] = 'Registrer for at tilføje et indlæg';
]]></add>
</operation>

</file>

<file name="$themedir/languages/Modifications.danish-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['registertopost'] = 'Registrer for at kommentere dette indlæg';
$txt['registertocreate'] = 'Registrer for at tilføje et indlæg';
]]></add>
</operation>

</file>


Best regards
Henrik Poulsen
My favorite mods: Forum Firewall, httBL, MessagePreviewOnHover, BoardHover Mod, VB Style Board Index, Separate Replies and Views Column, Realtime clock by Joker, ENotify, Topic Solved.

Mick.


Advertisement: