Guest Registration Notification

Started by live627, June 18, 2010, 10:10:00 PM

Previous topic - Next topic

scooterhog

#20
This file installed without error. If I choose to uninstall Ad Management, I'll restore the original file. I do get two boxes on the Board Index, one on the Topic page.

Thanks for sticking with it!

Afro

Very good mod but bbc enclosed links opens in a new window.
It would be nice if you can make that open in the same window.

ascaland

#22
Dont forget HTML is also supported. A simple anchor tag fixes this. :)
But I have adjusted the url BBC a bit so it should now work up to your expectations.

Hold on, there is a small problem.

I looked through Subs.php to see how SMF parses the url BBC, and it seems it makes it open a new window/tab by default. However I did notice that iurl opens the link in the same window/tab. Instead of changing things around, I have a better idea.

scooterhog

Here's how it appears with enable on board index and posts turned off. No combination produces a single box. Disable works fine.

Afro

Quote from: scooterhog on June 20, 2010, 11:47:49 AM
Here's how it appears with enable on board index and posts turned off. No combination produces a single box. Disable works fine.

your installed it twice. you need to check you files and remove the codes.

ascaland

I have updated the modification and changelog. It should work now.

scooterhog

I reloaded the theme and installed today's update. It's working with my installation now.

Thanks again. Great work.

pixeleyes

I installed registration mod everything is fine even mod setting showing in admin panel.

But mod is not working.

ascaland

What isnt working about it, is it showing?
If it doesnt, are you using a custom theme?

kenso

Wicked mod thanks sooo much, is there anyway to remove the red exclamation marks?

Paul


www.ozfarmer.com
The Farmers and self-sufficiency forum
http://www.ozfarmer.com.au

ascaland

In each of the codes added into the BoardIndex, Display and MessageIndex template files, look for this,
echo (!empty($modSettings['guest_notify_img_path'])) ? '<img style="float: left; width: 2ex; font-size: 2em; color: red; padding-right: 5px;" src="' . $modSettings['guest_notify_img_path'] . '" title="" />'
: '<p class="alert">!!</p>';


Replace it with,
echo (!empty($modSettings['guest_notify_img_path'])) ? '<img style="float: left; width: 2ex; font-size: 2em; color: red; padding-right: 5px;" src="' . $modSettings['guest_notify_img_path'] . '" title="" />'
: '';

romper

Having problem with my ModSettings.php....I tried to do it manualy, but I still get error message. Can I get some help?
Thx.

ascaland

Quote from: romper on July 14, 2010, 07:15:48 AM
Having problem with my ModSettings.php....I tried to do it manualy, but I still get error message. Can I get some help?
Thx.

What error are you receiving?

romper

Quote from: Project Evolution on July 29, 2010, 02:31:11 PM
Quote from: romper on July 14, 2010, 07:15:48 AM
Having problem with my ModSettings.php....I tried to do it manualy, but I still get error message. Can I get some help?
Thx.

What error are you receiving?

Test failed during install

ascaland

The NiceToolTips mod is interfering with this one. Above line 168, add;
),
'guestnotify' => array(
'title' => $txt['guest_notify_tab'],
'href' => $scripturl . '?action=featuresettings;sa=guestnotify;sesc=' . $context['session_id'],
),


Then just reinstall. If you need help just post.


stefann

I'm trying to make this notice appear only after guests have opened x pages or been on the site for y minutes, does anyone have any suggestions on how to best achieve this on SMF1.1?

I'm not sure whether there's already a session variable for session creation, so another field may need to be added in the array before it's serialised too

Any help would be appreciated
full time lurker on freenode #smf

romper

Quote from: Project Evolution on July 29, 2010, 10:53:14 PM
The NiceToolTips mod is interfering with this one. Above line 168, add;
),
'guestnotify' => array(
'title' => $txt['guest_notify_tab'],
'href' => $scripturl . '?action=featuresettings;sa=guestnotify;sesc=' . $context['session_id'],
),


Then just reinstall. If you need help just post.

sorry for the delay, I was on vacation ;D...so I should add this code in modsettings and then install, or install with error and then add in modsettings?

DirtRider

I would like this mod to work not with my guest but my Newbie group. I need to give them instruction on completing the registration procedure that they cannot miss  :P
http://www.triumphtalk.com

"The real question is not whether machines think but whether men do. "

ascaland

romper: Install with error then add the snippet yourself. ;)

In the next version I could possibly implement a selection via checkboxes for different membergroups. Do you need help editting the mod or are you just pointing out a suggestion? :P

Kat9119

Im thinking of installing this, but I'm curious if there is a way to change the colors of the box and border

Advertisement: