News:

Wondering if this will always be free?  See why free is better.

Main Menu

GuestBBC Button

Started by Rumpa, November 13, 2022, 02:11:44 PM

Previous topic - Next topic

Rumpa

Link to the mod

About

This modification is for guset visitor only. Members can create or post for guest.Topic or post creater can not see this content only guest can view it.


Best part of this mod put a "guest" button after "justify" button

tag use for this modification [guest]guest content[/guest]

Version

V1.3 for SMF 2.1.3
Solve the issue of error log

V1.2 for SMF 2.1.2
Remove little bug from the package info file thanks to Doug Heffernan

Language added
V1.1 for SMF 2.1.2
(Spanish language added credit goes to -Rock Lee-

Initial Release
V1.0 for SMF 2.1.2

Author

Rumpa

-Rock Lee-

It may be that fatigue can or I don't fully understand what it points to... can you leave a screenshot to understand it better?


Regards!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

Rumpa

^If you want to show a notice topic or post to your "guest" visitor only then this modification is for you. It's totally hide the topic content from registered members.

Rumpa

Here are the screen shots
As a member you see this


As a guest you see this

-Rock Lee-

I already understand this, it can be very useful for a forum I have for my university, great job ;D, and I also leave you the file translated into Spanish.


REgards!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

Rumpa

Spanish language added thanks to @-Rock Lee-

stefanop039

Hello, I installed this mod but it gives me an error in the error log, how can I fix?
Thanks for your attention



Kindred

the path is wrong....   there's and extra "/sourcedir/" in that path, which is why the code can't find the file.

Open your database in phpmyadmin
go to smf_settings (where smf_ is the actual prefix used by your installation)
search for %integrat%
find the reference for Subs-GuestBBC.php and correct the path.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

stefanop039

Quote from: Kindred on November 18, 2022, 10:21:48 AMthe path is wrong....  there's and extra "/sourcedir/" in that path, which is why the code can't find the file.

Open your database in phpmyadmin
go to smf_settings (where smf_ is the actual prefix used by your installation)
search for %integrat%
find the reference for Subs-GuestBBC.php and correct the path.
Thanks for the quick answer I opened the smf_settings table but I didn't find any reference to Subs-GuestBBC.php see images.
thank you



stefanop039

Quote from: Kindred on November 18, 2022, 10:21:48 AMthe path is wrong....   there's and extra "/sourcedir/" in that path, which is why the code can't find the file.

Open your database in phpmyadmin
go to smf_settings (where smf_ is the actual prefix used by your installation)
search for %integrat%
find the reference for Subs-GuestBBC.php and correct the path.
I uninstalled it but it keeps making errors, please further help
thank you

Kindred

apparently, your uninstall did not remove the hooks....
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Doug Heffernan

The reason that the hook was not removed properly upon uninstallation is because of a bug. At the package-info.xml file the following code:

<hook hook="integrate_bbc_buttons" function="GuestBBBC_buttons" file="$sourcedir/Subs-GuestBBC.php" reverse="true" />
should be:

<hook hook="integrate_bbc_buttons" function="GuestBBC_buttons" file="$sourcedir/Subs-GuestBBC.php" reverse="true" />
You can make the aforementioned changes, repackage the mod and then install it and uninstall it again. That should do it.

 

Rumpa

Modifications has been updated

stefanop039

Quote from: Doug Heffernan on November 18, 2022, 04:08:03 PMThe reason that the hook was not removed properly upon uninstallation is because of a bug. At the package-info.xml file the following code:

<hook hook="integrate_bbc_buttons" function="GuestBBBC_buttons" file="$sourcedir/Subs-GuestBBC.php" reverse="true" />
should be:

<hook hook="integrate_bbc_buttons" function="GuestBBC_buttons" file="$sourcedir/Subs-GuestBBC.php" reverse="true" />
You can make the aforementioned changes, repackage the mod and then install it and uninstall it again. That should do it.

 
a thousand thanks


Steve

DO NOT pm me for support!

Advertisement: